:root { color-scheme: dark;
  --bg: #1f1b19; --surface: #2a2522; --ink: #f3eee3; --muted: #a79d90; --rule: #3f3833;
  --orange: #c8632e; --orange-ink: #f3eee3; --brass: #c8973e;
  --photo-bg: #141110; --photo-stripe: rgba(243,238,227,0.035);
  --plate: #c8632e; --plate-ink: #f3eee3; --frame: #6e635a; }
/* Primal Scout — carbon / concrete / safety orange */
/* color tokens are injected by build.mjs (THEME=light|dark) */
:root {
  --wordmark: "Black Ops One", "Barlow Condensed", Impact, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.fine { font-size: 0.85rem; color: var(--muted); }

/* masthead */
.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border-bottom: 2px solid var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 48px; height: 44px; color: var(--orange); flex: none; }
.wordmark { font-family: var(--wordmark); font-weight: 400; font-size: 1.7rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1; padding-top: 4px; filter: url(#worn); }
@media (max-width: 600px) { .mark { width: 40px; height: 37px; } .wordmark { font-size: 1.5rem; } }
.masthead nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-left: auto; }
.masthead nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--orange); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { margin: 40px 0; }

/* hero */
.hero { margin: 52px auto 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-row { display: flex; align-items: center; justify-content: flex-end; gap: 40px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; padding-right: 40px; border-right: 1px solid var(--rule); }
.hero-mark { width: 150px; height: 138px; }
.lockup-name { font-family: var(--wordmark); font-size: 1.9rem; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; color: var(--ink); filter: url(#worn); margin-top: 6px; white-space: nowrap; }
.lockup-tag { font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.hero-row h1, .hero-row .lede { text-align: left; }
@media (max-width: 760px) { .hero-row { flex-direction: column; gap: 24px; } .lockup { padding-right: 0; border-right: 0; } .hero-text { align-items: center; } .hero-row h1, .hero-row .lede { text-align: center; } .hero-mark { width: 120px; height: 110px; } }
.hero h1 { max-width: 30ch; font-size: clamp(2.1rem, 3.8vw, 2.9rem); text-wrap: balance; }
.hero .lede { margin-top: 14px; max-width: 54ch; text-wrap: balance; }

/* pick cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.pick-card { background: var(--surface); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.pick-card .thumb { display: block; aspect-ratio: 4 / 3; background: var(--photo-bg); overflow: hidden; }
.pick-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.04em; background: repeating-linear-gradient(135deg, transparent 0 14px, var(--photo-stripe) 14px 16px), var(--photo-bg); }
.no-photo.large { aspect-ratio: 4 / 3; }
.pick-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--orange); margin: 0; }
.pick-body h3 a { text-decoration: none; }
.pick-body h3 a:hover { text-decoration: underline; }
.why { color: var(--muted); margin: 0 0 8px; flex: 1; }
.buy {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--orange-ink);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em;
  padding: 10px 14px; text-decoration: none; border: 2px solid var(--orange);
}
.buy:hover { background: var(--ink); border-color: var(--ink); }
.buy .tag { font-family: var(--body); font-weight: 400; font-size: 0.72rem; opacity: 0.85; border-left: 1px solid var(--orange-ink); padding-left: 10px; }
.buy.big { font-size: 1.3rem; padding: 14px 20px; margin-top: 16px; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 18px; border-top: 2px solid var(--ink); padding-top: 12px; }
.section-head p { color: var(--muted); margin: 0; }

/* categories */
.cats h2 { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 18px; }
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 620px) { .cat-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cat-list { grid-template-columns: repeat(3, 1fr); } }
.cat-list a { display: grid; gap: 4px; background: var(--surface); padding: 18px; text-decoration: none; min-height: 130px; }
.cat-list a:hover .cat-name { color: var(--orange); }
.cat-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.cat-blurb { color: var(--muted); font-size: 0.95rem; }
.cat-count { margin-top: auto; font-size: 0.85rem; color: var(--muted); }

/* page head, empty */
.page-head { margin-top: 36px; }
.page-head h1 { margin-bottom: 12px; }
.empty { border: 1px dashed var(--rule); padding: 28px; max-width: 60ch; }
.empty h2 { margin-bottom: 8px; }

/* pick page */
.pick { margin-top: 36px; }
.crumb { font-family: var(--display); font-weight: 600; color: var(--orange); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.pick h1 { max-width: 18ch; margin-bottom: 14px; }
.aff-note { font-style: italic; font-size: 0.92rem; color: var(--muted); max-width: 62ch; margin-top: -4px; }
.pick-layout { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 28px; }
@media (min-width: 860px) { .pick-layout { grid-template-columns: 5fr 7fr; align-items: start; } .pick-media { position: sticky; top: 16px; } }
.pick-text { max-width: 66ch; }
.pick-text h2 { margin: 28px 0 10px; }
.pick-text p, .pick-text li { font-size: 1.05rem; }

.spec-check { margin: 0 0 28px; border: 2px solid var(--frame); background: var(--surface); }
.spec-check h2 { font-size: 1.1rem; letter-spacing: 0.06em; background: var(--plate); color: var(--plate-ink); padding: 6px 14px; margin: 0; }
.spec-check table { width: 100%; border-collapse: collapse; }
.spec-check th, .spec-check td { text-align: left; padding: 9px 14px; border-top: 1px solid var(--rule); vertical-align: top; font-size: 0.98rem; }
.spec-check tr:first-child th, .spec-check tr:first-child td { border-top: 0; }
.spec-check th { font-weight: 500; color: var(--muted); width: 38%; }
.spec-check td { font-variant-numeric: tabular-nums; }

.skip { border-left: 4px solid var(--orange); padding-left: 16px; margin-top: 28px; }
.skip h2 { margin-top: 0; }

/* about / prose */
.prose { max-width: 66ch; }
.prose h2 { margin: 32px 0 8px; }
.prose > p:first-child { font-size: 1.12rem; }

/* footer */
.colophon { max-width: var(--max); margin: 64px auto 0; padding: 20px var(--gutter) 32px; border-top: 2px solid var(--ink); font-size: 0.95rem; }
.colophon .mark { width: 56px; height: 52px; margin-bottom: 14px; color: var(--muted); }
.disclosure { max-width: 80ch; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.social a { margin-right: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .masthead nav a, .buy, .cat-name { transition: color .15s, border-color .15s, background-color .15s; }
}
