/* Next Great American Base · brand guidelines. Created 2026-11-09 (PT) · Updated 2026-11-10 · Version 2.
   Same tokens and the same dark room as the site: one ground, surfaces one tone step up, gold only on the action. */
:root {
  --bg: #070a10; --surface: #0d131d; --surface-2: #131b28; --nose: #eef2f6; --ink: #e3e8ee; --muted: #aebaca; --dim: #7d8da4; --ridge: #52637c;
  --navy: #0e1b33; --accent: #e0ad4c; --hot: #ffd89a;
  --m: 24px; --arrive: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Archivo', system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--hot); text-underline-offset: 4px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--nose); }
h1, h2, h3 { font-stretch: 125%; font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; color: var(--nose); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px var(--m); background: var(--bg); }
.home { display: flex; align-items: center; gap: 10px; color: var(--nose); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; transition: color .2s; }
.bar nav a:hover, .bar nav a.on { color: var(--nose); }

/* cover: the live mark above, the title in the band below */
.cover { position: relative; height: min(88svh, 860px); min-height: 520px; display: grid; grid-template-rows: 1fr auto; background: var(--bg); }
#markgl { width: 100%; height: 100%; display: block; }
.cover-copy { padding: 0 var(--m) 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cover h1 { font-weight: 500; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(36px, 7vw, 104px); line-height: .9; }
.cover p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.ghost, .btn { font: inherit; font-size: 15px; font-weight: 500; color: var(--bg); background: var(--accent); border: 0; border-radius: 0; padding: 15px 24px; cursor: pointer; text-decoration: none; display: inline-block; transition: background-color .25s, transform .4s var(--arrive); }
.ghost:hover, .btn:hover { background: var(--hot); transform: translateY(-2px); }

.doc { max-width: 1240px; margin: 0 auto; padding: 0 var(--m); }
.sec { padding: 160px 0 0; }
.js .sec > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--arrive), transform 1s var(--arrive); }
.js .sec.in > * { opacity: 1; transform: none; }
.js .sec.in > *:nth-child(2) { transition-delay: .08s; } .js .sec.in > *:nth-child(3) { transition-delay: .16s; } .js .sec.in > *:nth-child(n+4) { transition-delay: .24s; }
.sec h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; margin: 0 0 32px; }
.sec h3 { font-size: 22px; margin: 48px 0 16px; }
.lead, .sec p { color: var(--ink); max-width: 68ch; margin: 0 0 16px; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules > div { background: var(--surface); padding: 22px 24px; }
.rules h3 { margin: 0 0 12px; font-size: 17px; font-stretch: 100%; font-weight: 600; }
.rule-yes h3 { color: #a9dcb4; } .rule-no h3 { color: #f0a796; }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { font-stretch: 112%; color: var(--nose); }
.rule-no li { color: var(--muted); }
.rules small { display: block; font-stretch: 100%; font-size: 15px; color: var(--dim); }

.anatomy { margin: 0; padding: 24px; background: var(--surface); }
.anatomy svg { width: 100%; height: auto; overflow: visible; }
.anatomy .callouts path { fill: none; stroke: var(--accent); stroke-width: .6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--arrive); }
.anatomy .callouts text { fill: var(--muted); font-family: 'Archivo', sans-serif; font-size: 9px; opacity: 0; transition: opacity .8s .6s; }
.sec.in .anatomy .callouts path { stroke-dashoffset: 0; }
.sec.in .anatomy .callouts text { opacity: 1; }
.anatomy .callouts path:nth-of-type(2) { transition-delay: .25s; } .anatomy .callouts path:nth-of-type(3) { transition-delay: .5s; }
.anatomy .callouts path:nth-of-type(4) { transition-delay: .75s; } .anatomy .callouts path:nth-of-type(5) { transition-delay: 1s; }
.defs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.defs dt { font-weight: 600; color: var(--nose); }
.defs dd { margin: 0; color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { margin: 0; background: var(--surface); display: flex; flex-direction: column; transition: transform .5s var(--arrive); }
.tile:hover { transform: translateY(-3px); }
.tile .art { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; }
.tile .art img { max-height: 100%; width: auto; max-width: 100%; }
.tile.dark .art { background: var(--bg); } .tile.light .art, .tile.mono-navy .art { background: #f4f6f9; } .tile.mono-white .art { background: var(--navy); }
.tile .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; font-size: 15px; color: var(--muted); }
.tile .meta a { white-space: nowrap; }

.clear { margin: 0; }
.clear-box { position: relative; padding: 40px; background: var(--surface); }
.clear-box img { background: var(--bg); outline: 40px solid rgba(224, 173, 76, .14); }

.misuse { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mis { margin: 0; background: var(--surface); }
.mis .art { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.mis .art img { width: 60%; }
.mis p { margin: 0; padding: 12px 14px 16px; font-size: 15px; color: var(--muted); }

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sw { font: inherit; text-align: left; color: inherit; background: var(--surface); border: 0; padding: 0; cursor: pointer; transition: transform .45s var(--arrive); }
.sw:hover { transform: translateY(-3px); }
.sw .chip { height: 120px; }
.sw .lbl { padding: 12px 14px; font-size: 15px; }
.sw .lbl b { display: block; font-weight: 600; color: var(--nose); }
.sw .lbl span { color: var(--dim); font-variant-numeric: tabular-nums; }
.sw.copied .lbl span::after { content: ' · copied'; color: var(--hot); }

.specimens { display: grid; gap: 12px; }
.spec { background: var(--surface); padding: 28px; }
.spec-name { margin: 0 0 14px !important; font-size: 15px; color: var(--muted) !important; }
.spec-name small { margin-left: 8px; font-size: 15px; color: var(--dim); }
.spec-show { margin: 0 !important; color: var(--nose) !important; max-width: none !important; line-height: 1.1; }
.spec-show.wide { font-stretch: 125%; text-transform: uppercase; font-size: clamp(22px, 3.6vw, 48px); }
.spec-show.med { font-weight: 500; letter-spacing: .26em; }
.spec-show.light { font-weight: 300; letter-spacing: .5em; font-size: clamp(15px, 1.8vw, 24px); color: var(--hot) !important; }
.spec-show.body { font-size: 20px; line-height: 1.6; max-width: 720px !important; }
.spec-note { margin: 14px 0 0 !important; font-size: 15px; color: var(--muted) !important; }
.spec.live label { display: inline-flex; align-items: center; gap: 10px; margin: 18px 24px 0 0; font-size: 15px; color: var(--muted); }
.spec.live input { accent-color: var(--accent); width: 180px; }
.axis { font-size: clamp(28px, 5vw, 64px); font-stretch: 125%; font-weight: 500; outline: none; }

.primary-line { padding: 8px 0 0; }
.tl { font-stretch: 125%; font-weight: 300; text-transform: uppercase; letter-spacing: .4em; font-size: clamp(18px, 2.6vw, 32px); color: var(--hot) !important; margin: 0 0 12px !important; max-width: none !important; line-height: 1.3; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lines li { display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 24px; padding: 18px 20px; background: var(--surface); transition: background-color .25s; }
.lines li:hover { background: var(--surface-2); }
.lines li span { font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; font-size: 15px; color: var(--nose); }
.lines li em { font-style: normal; color: var(--muted); }
.alts { margin: 0; padding: 0 0 0 20px; color: var(--ink); }
.alts li { margin: 6px 0; font-stretch: 112%; }

.voice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.voice > div { background: var(--surface); padding: 22px 24px; }
.voice h3 { margin: 0 0 8px; font-size: 20px; }
.voice p { margin: 0; color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .8s var(--arrive); }
.gallery figure { overflow: hidden; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 15px; color: var(--muted); padding: 10px 0 0; background: var(--bg); position: relative; }
.motion-demo { margin: 0; }
.motion-demo video { width: 100%; height: auto; display: block; }
.motion-demo figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.foot { max-width: 1240px; margin: 160px auto 0; padding: 40px var(--m) 60px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--muted); background: var(--surface); }
.foot p { margin: 0; max-width: 760px; }

@media (max-width: 900px) {
  :root { --m: 16px; }
  .bar nav { display: none; }
  .cols, .voice, .gallery, .rules { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .misuse { grid-template-columns: repeat(2, 1fr); }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .lines li { grid-template-columns: 1fr; gap: 4px; }
  .defs { grid-template-columns: 1fr; gap: 2px; } .defs dd { margin-bottom: 12px; }
  .sec { padding-top: 112px; }
  .cover-copy { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .js .sec > * { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.cover h1 span { display: block; font-size: .32em; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); margin-top: .5em; line-height: 1.2; }
.spec-show + .spec-name { margin: 16px 0 0 !important; }
.kit-art { margin: 0; background: var(--surface); padding: 56px; display: grid; place-items: center; }
.kit-art img { width: min(320px, 80%); }
.cover-actions { display: flex; align-items: center; gap: 20px; }
.replay { font: inherit; font-size: 15px; color: var(--nose); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.replay:hover { color: var(--hot); }
.cover { height: min(80svh, 820px); }
.bar { position: relative; }
.cover { height: min(78svh, 800px); }
.cover h1 { font-size: clamp(30px, 5.2vw, 76px); }
.cover { grid-template-rows: minmax(0, 1fr) auto; }
.cover-copy { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: 16px 32px; }
.cover-copy h1 { grid-column: 1; grid-row: 1 / 3; }
.cover-copy > p { grid-column: 2; grid-row: 1; margin: 0; text-align: right; }
.cover-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
@media (max-width: 900px) { .cover-copy { grid-template-columns: 1fr; } .cover-copy h1, .cover-copy > p, .cover-actions { grid-column: 1; grid-row: auto; text-align: left; justify-content: flex-start; } }
