/* The Method Board (hesperia.top) — "Kanban Board" visual.
   Cool board grey (#e9ecf1) + sticky-note accents + ember accent (#e4572e) + slate ink (#243040).
   Motif: three-column board, swimlane dividers, sticky-note method cards, monospaced meta.
   Square corners only (no rounding). Condensed grotesk headings. */

:root {
  --bg: #e9ecf1;
  --panel: #ffffff;
  --ink: #243040;
  --muted: #5d6b7d;
  --line: #ccd4de;
  --accent: #e4572e;
  --accent-d: #bf3a18;
  --lane: rgba(36, 48, 64, .05);
  --col: rgba(36, 48, 64, .045);
  /* sticky-note lane colours */
  --fw: #d99a12;
  --rl: #3f7cbd;
  --ce: #4f9060;
  --am: #c25a86;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, "Helvetica Neue", Arial, sans-serif;
  background:
    repeating-linear-gradient(90deg, var(--col) 0 1px, transparent 1px 260px),
    var(--bg);
  color: var(--ink);
  line-height: 1.66;
  font-size: 16px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

h1, h2 { font-family: "Franklin Gothic Medium", "Franklin Gothic", "Arial Narrow", Arial, sans-serif; }
.mono, .note-tag, .fact-k, .lane-count, .panel-title, .spec-key {
  font-family: "Consolas", "SFMono-Regular", "Menlo", "Liberation Mono", monospace;
}

/* ---- motif: a swimlane divider (dashed horizontal band) ---- */
.lane-stripe {
  display: block; height: 3px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--accent) 0 16px, transparent 16px 28px);
}

/* ---- header: dark board bar with a swimlane rule ---- */
.board-top { background: var(--ink); }
.board-top .lane-stripe { background: repeating-linear-gradient(90deg, #f6b26b 0 16px, transparent 16px 28px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.board-brand { display: flex; align-items: center; gap: 13px; color: #fff; }
.brand-glyph { display: inline-flex; color: #f6b26b; }
.brand-lines { display: flex; flex-direction: column; line-height: 1.18; }
.brand-title { font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .3px; }
.brand-sub { font-family: "Consolas", monospace; font-size: 10.5px; color: #9fb0c2; letter-spacing: 1.2px; text-transform: uppercase; }
.board-nav { display: flex; gap: 22px; }
.board-nav a {
  color: #dfe6ee; font-size: 14px; font-weight: 600; padding: 3px 0;
  border-bottom: 2px solid transparent;
}
.board-nav a:hover { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }

/* ---- hero: board backdrop with column grid ---- */
.board-hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  background-image:
    linear-gradient(var(--lane) 1px, transparent 1px),
    linear-gradient(90deg, var(--lane) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
}
.hero-kicker { font-family: "Consolas", monospace; color: var(--accent); font-size: 12px; letter-spacing: 2.4px; font-weight: 700; margin-bottom: 12px; }
.board-hero h1 { font-size: 37px; line-height: 1.12; font-weight: 700; margin-bottom: 14px; max-width: 780px; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: 17px; }

section { padding: 28px 0; }

/* ---- swimlane rail (category nav) ---- */
.rail-label { font-family: "Consolas", monospace; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.rail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lane-tile {
  display: flex; flex-direction: column; gap: 5px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); padding: 0 0 14px 0;
}
.lane-tile:hover { text-decoration: none; border-color: var(--accent); }
.lane-strip { display: block; height: 7px; background: var(--c, var(--accent)); }
.lane-tile .lane-count { font-size: 11px; color: var(--muted); padding: 12px 16px 0; }
.lane-tile .lane-name { font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 17px; padding: 0 16px; }
.rail-inline { padding-top: 4px; }

/* sticky-note lane colour hooks */
.c-fw { --c: var(--fw); }
.c-rl { --c: var(--rl); }
.c-ce { --c: var(--ce); }
.c-am { --c: var(--am); }

/* ---- lane (category section) ---- */
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lane-head h2 { font-size: 23px; font-weight: 700; display: flex; align-items: center; gap: 11px; }
.lane-chip { display: inline-block; width: 15px; height: 15px; background: var(--c, var(--accent)); }
.lane-more { font-size: 13px; font-weight: 600; }

/* ---- note wall + sticky-note cards ---- */
.note-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--accent));
  position: relative;
}
.note:hover { border-color: var(--c, var(--accent)); text-decoration: none; }
.note-tab { display: block; height: 4px; background: var(--c, var(--accent)); opacity: .35; }
.note-head { padding: 12px 14px 0; }
.note-tag { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--c, var(--accent)); }
.note-body { display: flex; flex-direction: column; gap: 11px; padding: 10px 14px 14px; }
.note-title { font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.3; }
.note-facts { display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.fact-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.fact-k { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.fact-v { text-align: right; color: var(--ink); }
.note-sum { font-size: 13px; color: var(--muted); }

/* ---- page head ---- */
.page-head { padding: 34px 0 10px; }
.crumb { font-family: "Consolas", monospace; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 31px; line-height: 1.18; font-weight: 700; }
.lede { color: var(--muted); margin-top: 8px; }

/* ---- entry: method card panel + prose ---- */
.board-entry { display: grid; grid-template-columns: 308px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.method-panel { align-self: start; background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--accent)); }
.panel-head { padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.panel-head .lane-stripe { height: 3px; margin-bottom: 9px; background: repeating-linear-gradient(90deg, var(--c, var(--accent)) 0 14px, transparent 14px 24px); }
.panel-tag { display: inline-block; font-family: "Consolas", monospace; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--c, var(--accent)); }
.panel-title { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 2px; }
.panel-spec { }
.spec-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-key {
  flex: 0 0 40%; padding: 9px 14px; color: var(--muted); border-right: 1px solid var(--line);
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.spec-val { flex: 1; padding: 9px 14px; }
.spec-row.is-legend { background: rgba(228, 87, 46, .07); box-shadow: inset 4px 0 0 var(--accent); }
.spec-row.is-legend .spec-val { font-weight: 600; }

.prose { background: var(--panel); border: 1px solid var(--line); padding: 26px 30px; }
.prose-legal h2 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.prose-legal p { margin-bottom: 12px; }
.prose-block { margin-bottom: 24px; }
.prose-block:last-child { margin-bottom: 0; }
.prose-block h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.prose-num {
  font-family: "Consolas", monospace; font-size: 12px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); padding: 1px 6px;
}
.prose p { margin-bottom: 12px; color: #333d4b; }
.prose p:last-child { margin-bottom: 0; }
.related-list { list-style: none; }
.related-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.related-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.board-foot { background: var(--ink); margin-top: 24px; }
.board-foot .lane-stripe { background: repeating-linear-gradient(90deg, #f6b26b 0 16px, transparent 16px 28px); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 28px 20px; }
.foot-brand { flex: 1 1 340px; }
.foot-brand .brand-title { color: #fff; font-size: 17px; }
.foot-brand p { color: #9fb0c2; font-size: 14px; margin-top: 6px; }
.foot-nav { display: flex; gap: 16px; }
.foot-nav a { color: #dfe6ee; font-size: 14px; font-weight: 600; }
.copyright { flex: 1 1 100%; font-size: 12px; color: #8595a7; margin-top: 8px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .note-wall { grid-template-columns: repeat(2, 1fr); }
  .rail-grid { grid-template-columns: repeat(2, 1fr); }
  .board-entry { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .note-wall, .rail-grid { grid-template-columns: 1fr; }
  .top-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .board-nav { gap: 14px; }
  .board-hero h1 { font-size: 28px; }
  .prose { padding: 20px 18px; }
}
