/* DashStar site styles. Plain CSS, no build step.
   Identity: US guide-sign green with a yellow supplemental plaque.
   Type: Overpass (headings, OFL) and Atkinson Hyperlegible (body, OFL).
   Colors live in the :root block. Dark mode sets are right below it. */

@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Edit colors here ---------- */
:root {
  --paper: #f2f5f3;       /* page background, cool grey-green */
  --surface: #ffffff;     /* panels */
  --ink: #15211b;         /* body text */
  --muted: #4a5751;       /* secondary text, 7:1 on paper */
  --line: #c6d1cb;        /* borders */
  --sign: #0b5b3c;        /* guide-sign green; white text 7.6:1 */
  --sign-ink: #ffffff;
  --link: #0b5b3c;
  --plaque: #f4c430;      /* caution yellow: used only for status and "do not follow" */
  --plaque-ink: #17150b;
  --gone: #66716b;        /* discarded items, 4.9:1 on white */
  --focus: #1f56c9;
  --head: "Overpass", "Atkinson Hyperlegible", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1712; --surface: #12221a; --ink: #e3ece7; --muted: #a8b7af; --line: #2b3f34;
    --sign: #0d6844; --link: #84d6aa; --gone: #8f9b95; --focus: #f4c430;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1712; --surface: #12221a; --ink: #e3ece7; --muted: #a8b7af; --line: #2b3f34;
  --sign: #0d6844; --link: #84d6aa; --gone: #8f9b95; --focus: #f4c430;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sign :focus-visible { outline-color: var(--plaque); }

h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 1.95rem); margin-top: 0; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.35em; }
p, ul, ol, dl { margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
strong, b { font-weight: 700; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink); border-radius: 6px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.prose { max-width: 42rem; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .mark-bg { fill: var(--sign); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 1rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--link); font-weight: 700; }

/* ---------- Main rhythm ---------- */
main { padding: 40px 0 72px; }
@media (min-width: 800px) { main { padding-top: 56px; } }
.block { margin-top: 64px; }
.page-head { margin-bottom: 40px; }
.page-head .lede { margin-bottom: 0; }

/* ---------- Hero: the guide sign ---------- */
.sign {
  position: relative;
  background: var(--sign);
  color: var(--sign-ink);
  border-radius: 20px;
  padding: 36px 26px 34px;
}
.sign::before {
  content: "";
  position: absolute; inset: 8px;
  border: 3px solid var(--sign-ink);
  border-radius: 13px;
  pointer-events: none;
}
@media (min-width: 720px) { .sign { padding: 56px 56px 52px; } }
.sign .descriptor { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.sign .descriptor svg { width: 28px; height: 28px; flex: none; }
.sign h1 { font-size: clamp(2.35rem, 1.3rem + 5vw, 4.4rem); line-height: 1.02; max-width: 15ch; margin-bottom: 22px; }
.sign h1 span { display: block; }
.sign p { max-width: 38rem; font-size: 1.2rem; margin-bottom: 0; }
.sign a { color: var(--sign-ink); }

.plaque {
  display: inline-block;
  background: var(--plaque);
  color: var(--plaque-ink);
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  padding: 10px 16px 9px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--plaque-ink);
}
.hero .plaque { margin: 12px 0 0 18px; }
@media (min-width: 720px) { .hero .plaque { margin-left: 46px; font-size: 1.15rem; } }
.plaque-inline { font-size: 0.95rem; padding: 6px 12px 5px; }

/* ---------- Kept / thrown away ---------- */
.split { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; gap: 20px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 8px; }
.panel h3 { font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.panel.keep { border-top: 6px solid var(--sign); }
.panel.gone { border-top: 6px solid var(--gone); }
.panel ul { padding-left: 1.2em; }

/* Sample check demo */
.demo { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.demo h3 { margin-bottom: 4px; }
.plates { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.plates li { margin: 0; }
.plate {
  width: 84px; height: 42px; border-radius: 6px; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; position: relative;
  transition: opacity 400ms ease, border-color 200ms ease;
}
.plate::before { content: ""; width: 54px; height: 9px; border-radius: 3px; background: var(--muted); }
.plate.checking { border-color: var(--sign); box-shadow: 0 0 0 3px var(--sign); }
.plate.gone { opacity: 0.28; border-style: dashed; }
.demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.demo-out { margin: 0; font-weight: 700; min-height: 1.6em; }
button.btn, a.btn {
  font: 700 1rem/1 var(--body);
  background: var(--sign); color: var(--sign-ink);
  border: 0; border-radius: 8px; padding: 13px 18px; cursor: pointer; text-decoration: none; display: inline-block;
}
button.btn:hover, a.btn:hover { filter: brightness(1.12); }
button.btn[disabled], button.btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }

/* ---------- Status ledger ---------- */
.ledger { margin: 20px 0 8px; border-top: 2px solid var(--ink); max-width: 46rem; }
.ledger div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .ledger div { grid-template-columns: 15rem 1fr; } }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-weight: 700; }

/* ---------- Diagram ---------- */
.diagram { margin: 8px 0 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 12px 12px; }
@media (max-width: 639px) {
  .diagram { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; padding: 14px 2px 12px; }
}
.diagram svg { display: block; width: 100%; max-width: 540px; margin: 0 auto; }
.diagram figcaption { max-width: 42rem; margin: 12px auto 0; color: var(--muted); font-size: 0.95rem; padding: 0 8px; }
.dg text { font-family: var(--body); font-size: 13px; fill: var(--ink); }
.dg .t-strong { font-weight: 700; }
.dg .zone { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg .zone-label { font-family: var(--head); font-weight: 800; font-size: 13px; fill: var(--muted); }
.dg .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.dg .box-gone { fill: var(--paper); stroke: var(--gone); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dg .box-gone + text, .dg .t-gone { fill: var(--muted); }
.dg .box-sign { fill: var(--sign); stroke: none; }
.dg .on-sign { fill: var(--sign-ink); }
.dg .box-plaque { fill: var(--plaque); stroke: var(--plaque-ink); stroke-width: 1.5; }
.dg .on-plaque { fill: var(--plaque-ink); }
.dg .arrow { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.dg .arrowhead { fill: var(--ink); }
.dg .note { font-size: 12px; fill: var(--muted); font-style: italic; }

/* ---------- Steps, cards, lists ---------- */
.steps { padding-left: 1.4em; max-width: 42rem; }
.steps li { padding-left: 4px; }
.steps li + li { margin-top: 0.7em; }

.commit-list { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: c; max-width: 50rem; }
.commit-list > li { counter-increment: c; position: relative; padding: 20px 0 14px 56px; border-top: 1px solid var(--line); margin: 0; }
.commit-list > li::before {
  content: counter(c);
  position: absolute; left: 0; top: 20px;
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--sign); color: var(--sign-ink);
  font-family: var(--head); font-weight: 800; font-size: 1.15rem;
  display: grid; place-items: center; padding-top: 3px;
}
.commit-list h3 { font-size: 1.25rem; font-weight: 800; }
.check { margin: 10px 0 0; padding: 12px 14px; background: var(--surface); border-left: 4px solid var(--sign); border-radius: 0 8px 8px 0; }
.check b { display: block; font-family: var(--head); font-weight: 600; }

.never { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; max-width: 50rem; }
@media (min-width: 760px) { .never { grid-template-columns: repeat(3, 1fr); } }
.never li { margin: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; padding: 18px 18px 6px; }
.never h3 { font-weight: 800; }

.two-col { display: grid; gap: 18px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 22px; } }

.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--plaque); border-radius: 8px; padding: 16px 18px 4px; max-width: 46rem; }
.callout.green { border-left-color: var(--sign); }

table { border-collapse: collapse; width: 100%; max-width: 50rem; margin: 12px 0 8px; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); font-family: var(--head); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.todo { color: var(--muted); font-style: italic; }

.faq h2 { font-size: 1.35rem; margin-top: 0; }
.faq section { padding: 22px 0 6px; border-top: 1px solid var(--line); max-width: 44rem; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; font-size: 1rem; }
.site-foot p { max-width: 46rem; }
.site-foot .foot-main { font-family: var(--head); font-weight: 600; font-size: 1.1rem; }
.site-foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; }
.site-foot li + li { margin-top: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.table-scroll + .prose { margin-top: 28px; }
