/* Field manual: khaki grid paper, olive and ink, stencil headings, one signal orange. */
:root {
  --paper: #e8e1cc;
  --paper-2: #ddd5bc;
  --ink: #1e2316;
  --text: #2e3324;
  --muted: #4f553f;
  --line: #1e2316;
  --rule: #b7ae92;
  --grid: rgb(63 74 34 / 0.08);
  --olive: #3f4a22;
  --olive-ink: #e8e1cc;
  --olive-muted: #cfc8ae;
  --olive-rule: #66733f;
  --accent: #e06a1f;
  --accent-text: #a8470c;
  --on-accent: #1e2316;
  --shadow: #1e2316;
  --strip: #1e2316;
  --strip-ink: #e8e1cc;
  --plate: #1b1e19;
  --code-bg: #d6cdb1;
  --stencil: "Saira Stencil One", "Impact", sans-serif;
  --cond: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171b12; --paper-2: #1e2318; --ink: #e6dfc8; --text: #cfcbb5; --muted: #a9ab93;
    --line: #525a40; --rule: #353c2b; --grid: rgb(230 223 200 / 0.045);
    --olive: #2b3318; --olive-ink: #e6dfc8; --olive-muted: #b9b69c; --olive-rule: #48532c;
    --accent: #e8762b; --accent-text: #f0904f; --on-accent: #171b12; --shadow: #0a0c08;
    --strip: #0e100c; --strip-ink: #cfcbb5; --plate: #0e100c; --code-bg: #262b1e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171b12; --paper-2: #1e2318; --ink: #e6dfc8; --text: #cfcbb5; --muted: #a9ab93;
  --line: #525a40; --rule: #353c2b; --grid: rgb(230 223 200 / 0.045);
  --olive: #2b3318; --olive-ink: #e6dfc8; --olive-muted: #b9b69c; --olive-rule: #48532c;
  --accent: #e8762b; --accent-text: #f0904f; --on-accent: #171b12; --shadow: #0a0c08;
  --strip: #0e100c; --strip-ink: #cfcbb5; --plate: #0e100c; --code-bg: #262b1e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.wrap { max-width: 1312px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 64px); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
code, kbd { font: 500 0.86em/1 var(--mono); background: var(--code-bg); padding: 2px 5px; }
kbd { box-shadow: inset 0 -1px 0 var(--rule); }
pre code { display: block; padding: 12px 14px; line-height: 1.5; white-space: pre; }

.label { font: 500 13px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
/* Stencil faces are set in capitals, like the markings they imitate. */
.brand, .hero h1, .section-head h2, .wheel h2, .band h2, .guide-head h1, article.doc h2, .stamp, footer .home { text-transform: uppercase; }

/* Classification strip and header */
.strip { background: var(--strip); color: var(--strip-ink); font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.strip .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; }
@media (max-width: 640px) { .strip .right { display: none; } }

header.top { border-bottom: 2px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 400 26px/1 var(--stencil); letter-spacing: 0.02em; white-space: nowrap; }
.brand svg { width: 38px; height: 38px; flex: none; }
nav.links { display: flex; gap: 32px; font: 600 16px/1 var(--cond); letter-spacing: 0.12em; text-transform: uppercase; }
nav.links a { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
nav.links a:hover, nav.links a[aria-current="page"] { border-bottom-color: var(--accent); }
@media (max-width: 980px) { nav.links { display: none; } }
@media (max-width: 420px) { header.top .wrap { gap: 12px; } .brand { gap: 8px; font-size: 18px; } .brand svg { width: 28px; height: 28px; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px;
  border: 2px solid var(--line); color: var(--ink); text-decoration: none;
  font: 700 18px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase;
}
.button:hover { background: var(--paper-2); }
.button.primary { background: var(--accent); border-color: var(--shadow); color: var(--on-accent); box-shadow: 4px 4px 0 var(--shadow); }
.button.primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.soon { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; padding: 4px 7px; border: 1.5px solid currentColor; }
@media (max-width: 420px) { header.top .button.small { padding: 0 12px; font-size: 14px; } }
@media (max-width: 360px) { header.top .button.small { display: none; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 64px; align-items: start; padding-block: 72px 96px; }
@media (max-width: 1180px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-block: 48px 72px; } }
/* The headline is sized to its column (cqi), so its longest word, COMMAND, always fits. */
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 12px; align-content: start; container-type: inline-size; }
.hero h1 { font: 400 clamp(40px, 16.5cqi, 112px)/0.92 var(--stencil); letter-spacing: -0.01em; }
.hero .sub { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--cond); letter-spacing: 0.04em; text-transform: uppercase; color: var(--olive); }
:root[data-theme="dark"] .hero .sub { color: var(--accent-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero .sub { color: var(--accent-text); } }
.hero .lede { max-width: 34em; font-size: 20px; line-height: 1.5; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-top: 12px; }
.fine { font: 400 13px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }

figure.fig { margin: 0; display: grid; gap: 16px; position: relative; min-width: 0; }
.fig figcaption { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.stamp {
  position: absolute; top: -18px; right: -14px; z-index: 2; transform: rotate(8deg);
  border: 3px solid var(--accent-text); color: var(--accent-text); background: color-mix(in srgb, var(--paper) 85%, transparent);
  padding: 6px 14px; font: 400 22px/1 var(--stencil); letter-spacing: 0.06em;
}
@media (max-width: 520px) { .stamp { font-size: 16px; right: -4px; } }
.plate { background: var(--plate); border-radius: 20px; padding: clamp(14px, 3.5vw, 28px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 18px); box-shadow: 8px 8px 0 var(--olive); }
.knob { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; padding-top: 2px; }
.knob svg { width: 100%; max-width: 88px; height: auto; display: block; }
.knob .bar { width: 32px; max-width: 40%; height: 6px; border-radius: 3px; background: #30352c; transition: background 0.2s; }
.knob .name { font: 400 11px/1.2 var(--mono); color: #a9ae9c; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knob .tag {
  position: absolute; top: -6px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #1e2316; font: 400 15px/1 var(--stencil);
}
@media (max-width: 480px) { .knob .name { display: none; } .knob .tag { width: 20px; height: 20px; font-size: 12px; top: -4px; left: 0; } }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 12px; }
@media (max-width: 640px) { .legend { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.legend div { display: grid; gap: 6px; align-content: start; border-top: 2px solid var(--line); padding-top: 10px; transition: border-color 0.25s; }
.legend div.active { border-top-color: var(--accent); }
.legend strong { font: 400 18px/1.2 var(--stencil); }
.legend span { font-size: 15px; line-height: 1.4; color: var(--text); }
.legend output { font: 500 13px/1 var(--mono); color: var(--accent-text); min-height: 1em; font-variant-numeric: tabular-nums; }

/* Sections */
section.block { border-top: 2px solid var(--line); }
section.block > .wrap { padding-block: clamp(64px, 8vw, 96px); display: grid; gap: clamp(36px, 5vw, 56px); }
section.block.alt { background: var(--paper-2); border-bottom: 2px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.section-head > div { display: grid; gap: 14px; }
.section-head h2, .wheel h2 { font: 400 clamp(38px, 5vw, 64px)/1 var(--stencil); }
.more { font: 700 18px/1 var(--cond); letter-spacing: 0.1em; text-transform: uppercase; }

.orders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 860px) { .orders { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.order { display: grid; gap: 16px; align-content: start; }
.order .num { display: flex; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.order .num b { font: 400 72px/0.9 var(--stencil); color: var(--accent); }
.order .num span { font: 700 22px/1 var(--cond); letter-spacing: 0.14em; text-transform: uppercase; }
.order h3 { font: 600 30px/1.1 var(--cond); }
.order p { color: var(--text); }

/* Target manifest */
.manifest { border: 2px solid var(--line); background: var(--paper); }
.manifest .row { display: grid; grid-template-columns: 110px minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 28px; align-items: baseline; }
.manifest .row + .row { border-top: 1px solid var(--rule); }
.manifest .head { background: var(--strip); color: var(--strip-ink); padding-block: 14px; font: 400 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.manifest .code { font: 500 14px/1 var(--mono); color: var(--accent-text); text-decoration: none; }
.manifest .code:hover { text-decoration: underline; }
.manifest .name { font: 600 24px/1.15 var(--cond); }
.manifest .turn, .manifest .press { font-size: 17px; color: var(--text); }
.manifest .turn::before, .manifest .press::before { display: none; font: 400 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); margin-right: 8px; }
@media (max-width: 860px) {
  .manifest .head { display: none; }
  .manifest .row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 20px; }
  .manifest .row + .row, .manifest .head + .row { border-top: 1px solid var(--rule); }
  .manifest .head + .row { border-top: 0; }
  .manifest .turn::before { content: "TURN"; display: inline; }
  .manifest .press::before { content: "PRESS"; display: inline; }
}

/* The Wheel */
.wheel { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
@media (max-width: 860px) { .wheel { grid-template-columns: minmax(0, 1fr); } }
.wheel svg { width: 100%; max-width: 480px; height: auto; display: block; margin-inline: auto; }
.wheel-copy { display: grid; gap: 22px; }
.wheel-copy p:not(.label) { max-width: 34em; font-size: 20px; color: var(--text); }
.wheel .seg { transition: fill 0.25s; }
.wheel .item { font: 600 17px/1 var(--cond); letter-spacing: 0.04em; text-anchor: middle; fill: #e6e8dd; transition: fill 0.25s; }
.wheel .item.dim { fill: #a9ae9c; }

/* Field-guide band */
.band { background: var(--olive); color: var(--olive-ink); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; padding-block: clamp(64px, 7vw, 88px); }
@media (max-width: 860px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }
.band .label { color: var(--olive-muted); }
.band h2 { font: 400 clamp(36px, 4.5vw, 60px)/1 var(--stencil); }
.band .copy { display: grid; gap: 22px; justify-items: start; }
.band ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; font: 500 21px/1.2 var(--cond); }
@media (max-width: 480px) { .band ol { grid-template-columns: minmax(0, 1fr); } }
.band li a { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--olive-rule); color: var(--olive-ink); text-decoration: none; }
.band li a:hover { color: #fff; }
.band li a b { font: 400 13px/1.6 var(--mono); color: var(--olive-muted); }

/* Footer */
footer { background: var(--strip); color: #a9ae9c; font-size: 14px; line-height: 1.6; }
footer .wrap { display: flex; justify-content: space-between; align-items: start; gap: 24px 64px; flex-wrap: wrap; padding-block: 48px 56px; }
footer .notes { display: grid; gap: 10px; max-width: 760px; }
footer .home { font: 400 22px/1 var(--stencil); color: #e8e1cc; text-decoration: none; }

/* Guide page */
.guide-head .wrap { display: grid; gap: 16px; padding-block: 64px 48px; border-bottom: 2px solid var(--line); }
.guide-head h1 { font: 400 clamp(44px, 6vw, 88px)/0.95 var(--stencil); }
.guide-head p:not(.label) { font-size: 20px; color: var(--text); max-width: 36em; }
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 48px 96px; }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; } }
.toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; border: 2px solid var(--line); background: var(--paper); }
.toc summary { list-style: none; cursor: default; padding: 12px 16px; background: var(--strip); color: var(--strip-ink); font: 400 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.toc summary::-webkit-details-marker { display: none; }
.toc > details > ol { counter-reset: toc; padding: 8px 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > details > ol > li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 16px; color: var(--ink); text-decoration: none; font: 500 17px/1.25 var(--cond); }
.toc > details > ol > li > a::before { content: counter(toc, decimal-leading-zero); font: 400 12px/1.8 var(--mono); color: var(--accent-text); }
.toc a:hover { background: var(--paper-2); }
.toc ol ol { padding: 0 0 6px 30px; }
.toc ol ol a { font-size: 15.5px; padding-block: 3px; color: var(--muted); }
@media (max-width: 900px) {
  .toc { position: static; max-height: none; }
  .toc summary { cursor: pointer; }
  .toc summary::after { content: " ▾"; }
}

article.doc { max-width: 46em; counter-reset: sec; }
article.doc section { padding-block: 0 40px; scroll-margin-top: 24px; counter-increment: sec; }
article.doc section + section { border-top: 2px solid var(--line); padding-top: 36px; }
article.doc h2 { display: flex; align-items: baseline; gap: 16px; font: 400 clamp(30px, 3.4vw, 40px)/1.05 var(--stencil); margin-bottom: 20px; }
article.doc h2::before { content: counter(sec, decimal-leading-zero); color: var(--accent); }
article.doc h3 { font: 600 24px/1.15 var(--cond); letter-spacing: 0.02em; margin: 30px 0 10px; scroll-margin-top: 24px; }
article.doc p { margin-bottom: 14px; color: var(--text); }
article.doc li { color: var(--text); }
article.doc strong { color: var(--ink); font-weight: 600; }
article.doc ul, article.doc ol.steps { margin: 0 0 16px; padding-left: 24px; display: grid; gap: 8px; }
article.doc ul li::marker { content: "▪  "; color: var(--accent); }
article.doc ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
article.doc ol.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); }
article.doc ol.steps li::before { content: counter(step); font: 400 24px/1.1 var(--stencil); color: var(--accent-text); }
.table-scroll { overflow-x: auto; margin-bottom: 16px; }
article.doc table { border-collapse: collapse; width: 100%; font-size: 16px; border: 2px solid var(--line); background: var(--paper); }
article.doc th, article.doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--text); }
article.doc thead th { background: var(--strip); color: var(--strip-ink); font: 400 12px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 0; }
article.doc tbody th { font: 600 18px/1.3 var(--cond); color: var(--ink); white-space: nowrap; }
