/* Sump and Spoke. One stylesheet, two moods: html[data-mood="road"] (near-black, oil amber, Barlow) and
   html[data-mood="bench"] (steel, white panels, rust accent, IBM Plex). Same components, same grid: 1400 max,
   48px gutters, single column under 860px. Fonts are self-hosted (static/fonts, SIL OFL). */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/barlowcondensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/barlowcondensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/barlowcondensed-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-style: normal; font-display: swap; src: url(/static/fonts/ibmplexsans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/static/fonts/ibmplexmono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/ibmplexmono-500.woff2) format("woff2"); }

:root {
  --max: 1400px; --gutter: 48px; --radius: 6px; --t: .18s ease;
  /* ROAD is the default so the page is right before any script runs */
  --bg: #0E0E0F; --panel: #161618; --line: #2A2A2D; --ink: #F2EFE9; --ink-2: #B9B4AA; --ink-3: #7E7A72; --accent: #E8A33D; --accent-ink: #0E0E0F; --ok: #7BC47F; --warn: #E8A33D; --bad: #E2655C;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "Barlow", "Helvetica Neue", Arial, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --head-tt: uppercase; --head-ls: .01em; --head-lh: .92; --head-w: 700; --panel-shadow: none; --hero-grad: linear-gradient(180deg, rgba(14,14,15,0) 20%, rgba(14,14,15,.55) 60%, #0E0E0F 100%);
  color-scheme: dark;
}
html[data-mood="bench"] {
  --bg: #EEF0F2; --panel: #FFFFFF; --line: #D5DAE0; --ink: #15191E; --ink-2: #4B5560; --ink-3: #7C8691; --accent: #B8471C; --accent-ink: #FFFFFF; --ok: #1F7A4D; --warn: #B8471C; --bad: #B3261E;
  --head: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --head-tt: none; --head-ls: -.015em; --head-lh: 1.05; --head-w: 600; --panel-shadow: 0 1px 0 rgba(21,25,30,.04); --hero-grad: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); transition: background var(--t), color var(--t); }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .14em; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: var(--head-w); text-transform: var(--head-tt); letter-spacing: var(--head-ls); line-height: var(--head-lh); margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
h4 { font-size: 20px; }
html[data-mood="bench"] h1 { font-size: clamp(34px, 5.2vw, 64px); }
html[data-mood="bench"] h2 { font-size: clamp(26px, 3.2vw, 40px); }
p { margin: 0 0 1em; }
.num, .mono, .plate, .price, time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
html[data-mood="road"] .price, html[data-mood="road"] .num { font-family: var(--head); font-weight: 600; letter-spacing: .02em; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 14px; } .xs { font-size: 12.5px; }
.k { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-family: var(--body); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grid */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(12, 1fr); }
.c4 { grid-column: span 4; } .c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c3 { grid-column: span 3; } .c12 { grid-column: 1 / -1; }
.cards { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
section.band { padding: 56px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .grid { gap: 20px; } .c4, .c6, .c8, .c3 { grid-column: 1 / -1; }
  .cards { gap: 20px; grid-template-columns: 1fr; }
  section.band { padding: 36px 0; }
  body { font-size: 16px; }
}

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 22px; line-height: 1; white-space: nowrap; }
html[data-mood="bench"] .brand { text-transform: none; letter-spacing: -.01em; font-weight: 600; }
.brand svg { width: 34px; height: 34px; }
nav.main { display: flex; gap: 4px; margin-left: auto; align-items: center; }
nav.main a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; font-size: 15.5px; color: var(--ink-2); }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
nav.main a.cta { color: var(--accent-ink); background: var(--accent); margin-left: 6px; }
nav.main a.cta:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.mood { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel); }
.mood button { appearance: none; border: 0; background: transparent; color: var(--ink-3); font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.mood button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu { display: none; appearance: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 8px 10px; margin-left: auto; cursor: pointer; }
.menu span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; }
@media (max-width: 860px) {
  .menu { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 8px; font-size: 18px; }
  nav.main a.cta { margin: 8px 0 0; text-align: center; }
  .mood { margin: 14px 0 0; align-self: flex-start; }
}
.preview-bar { background: var(--accent); color: var(--accent-ink); font: 600 12.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 6px var(--gutter); }

/* hero: ROAD full-bleed photograph with a bottom gradient and the headline over it; BENCH a panel with the reg check */
.hero { position: relative; overflow: hidden; }
.hero.photo { min-height: min(78vh, 760px); display: grid; align-items: end; color: #F2EFE9; }
.hero.photo picture, .hero.photo > img, .hero.photo .ph-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.photo .ph-frame { background: repeating-linear-gradient(135deg, #1a1a1c 0 18px, #141416 18px 36px); }
.hero.photo::after { content: ""; position: absolute; inset: 0; background: var(--hero-grad); }
html[data-mood="bench"] .hero.photo::after { background: linear-gradient(180deg, rgba(21,25,30,.05) 0%, rgba(21,25,30,.72) 100%); }
.hero.photo .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.hero.photo h1 { max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero.photo .k { color: var(--accent); }
html[data-mood="bench"] .hero.photo .k { color: #F2EFE9; }
.hero.photo .stand { max-width: 60ch; font-size: 19px; color: rgba(242,239,233,.86); }
.hero.photo .btn.ghost { color: #F2EFE9; border-color: rgba(242,239,233,.45); } .hero.photo .btn.ghost:hover { border-color: #F2EFE9; background: rgba(242,239,233,.1); }
.hero.panel { padding: 48px 0 24px; }
.hero.panel .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero.panel .wrap { grid-template-columns: 1fr; gap: 24px; } .hero.photo { min-height: 70vh; } .hero.photo .wrap { padding-top: 80px; padding-bottom: 32px; } }

/* cards and panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--panel-shadow); overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--t); }
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.card .img { aspect-ratio: 3 / 2; background: var(--line); position: relative; overflow: hidden; }
.card .img img, .card .img .ph-frame { width: 100%; height: 100%; object-fit: cover; }
.card .img .ph-frame { display: grid; place-items: center; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--panel) 80%, var(--line)) 0 16px, var(--panel) 16px 32px); color: var(--ink-3); font: 500 12px var(--mono); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 24px; } html[data-mood="bench"] .card h3 { font-size: 20px; }
.card h3 a { text-decoration: none; } .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-top: auto; color: var(--ink-2); font-size: 14px; }
.card .price { font-size: 22px; color: var(--ink); } html[data-mood="bench"] .card .price { font-size: 18px; font-weight: 500; }
.badge { display: inline-block; font: 600 11.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.badge.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.private { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-2); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--panel-shadow); }
.dark-band { background: #15191E; color: #F2EFE9; --panel: #1D2228; --line: #2E353D; --ink: #F2EFE9; --ink-2: #B9B4AA; --ink-3: #7E7A72; }
html[data-mood="road"] .dark-band { background: var(--panel); }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; gap: 8px; appearance: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--body); letter-spacing: .02em; padding: 13px 20px; border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background var(--t), transform var(--t); }
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.big { padding: 17px 26px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: default; }
form .fld { display: block; margin: 0 0 16px; }
form .fld > span { display: block; font: 600 12.5px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], textarea, select { width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
html[data-mood="bench"] input, html[data-mood="bench"] textarea, html[data-mood="bench"] select { background: #FFFFFF; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 140px; resize: vertical; }
input.plate { font-family: var(--mono); font-size: 28px; letter-spacing: .08em; text-transform: uppercase; text-align: center; font-weight: 500; }
.fld.bad input, .fld.bad textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: 14px; margin: 6px 0 0; }
.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); } .notice.warn { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); } .notice.bad { border-color: var(--bad); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg a, .seg button { appearance: none; border: 0; background: var(--panel); color: var(--ink-2); font: 600 13.5px/1 var(--body); padding: 10px 14px; text-decoration: none; cursor: pointer; border-right: 1px solid var(--line); }
.seg > :last-child { border-right: 0; }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* story page */
.prose { max-width: 70ch; font-size: 18.5px; line-height: 1.6; }
.prose p { margin-bottom: 1.25em; } .prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); color: var(--ink-2); font-size: 1.1em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.prose figure, .figs figure { margin: 2em 0; }
figure { margin: 0; } figcaption { font: 500 13.5px/1.4 var(--mono); color: var(--ink-3); margin-top: 10px; }
html[data-mood="road"] figcaption { font-family: var(--body); letter-spacing: .02em; }
figure.ph .ph-frame { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-3); font: 500 12.5px var(--mono); }
.byline { display: flex; align-items: center; gap: 14px; margin: 20px 0 32px; }
.byline .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--line); object-fit: cover; flex: none; }
.byline .ava.blank { display: grid; place-items: center; font: 700 16px var(--head); color: var(--ink-3); }
.article-head { padding: 56px 0 8px; } .article-head h1 { max-width: 18ch; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.story-layout aside { position: sticky; top: 84px; }
@media (max-width: 1100px) { .story-layout { grid-template-columns: 1fr; } .story-layout aside { position: static; } }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 24px 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px; background: var(--line); }

/* parts */
.parts table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.parts th.price { text-align: right; }
.parts th { text-align: left; font: 600 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.parts td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.parts td.price { white-space: nowrap; text-align: right; }
.parts td:last-child, .parts th:last-child { padding-right: 0; text-align: right; }
.parts .note { color: var(--ink-3); font-size: 13.5px; display: block; }
.parts a.buy { white-space: nowrap; font-weight: 600; }
.parts .mk { display: none; } .parts .mk.on { display: table-cell; }
.parts-list { list-style: none; margin: 0; padding: 0; }
.parts-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.parts-list li:last-child { border-bottom: 0; }
.parts-list .price { font-size: 18px; }
.disclose { font-size: 13px; color: var(--ink-3); }

/* reg check */
.check-form { display: grid; gap: 12px; }
.check-form .row { gap: 10px; } .check-form input.plate { flex: 1; min-width: 180px; }
.result .spec { width: 100%; border-collapse: collapse; } .result .spec th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px 12px 8px 0; width: 42%; border-bottom: 1px solid var(--line); } .result .spec td { padding: 8px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.trail { list-style: none; padding: 0; margin: 0; } .trail li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; } .trail .pts { font-family: var(--mono); min-width: 3ch; text-align: right; } .trail .neg .pts { color: var(--bad); } .trail .pos .pts { color: var(--ok); }
.dial { font-family: var(--head); font-size: 64px; line-height: 1; font-weight: 700; } html[data-mood="bench"] .dial { font-family: var(--mono); font-size: 48px; font-weight: 500; }

/* tours */
.legs { list-style: none; margin: 0; padding: 0; counter-reset: leg; }
.legs li { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.legs li::before { counter-increment: leg; content: counter(leg, decimal-leading-zero); font: 600 14px var(--mono); color: var(--accent); }
.legs .km { font-family: var(--mono); color: var(--ink-2); white-space: nowrap; }
.route-map { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.route-map svg { width: 100%; height: auto; }
.route-map .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.route-map .dot { fill: var(--panel); stroke: var(--accent); stroke-width: 3; } .route-map text { font: 500 12px var(--mono); fill: var(--ink-2); }
.route-map .grid line { stroke: var(--line); stroke-width: 1; }

/* filters and listing pages */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters select, .filters input { width: auto; padding: 9px 12px; font-size: 15px; }
.filters .count { margin-left: auto; color: var(--ink-3); font-family: var(--mono); font-size: 14px; }
.listing-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 40px 0 16px; }
.listing-head .price { font-size: 44px; } html[data-mood="bench"] .listing-head .price { font-size: 34px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-grid div { background: var(--panel); padding: 14px 16px; } .spec-grid .k { margin-bottom: 4px; } .spec-grid .v { font-family: var(--mono); font-size: 17px; }
html[data-mood="road"] .spec-grid .v { font-family: var(--body); font-weight: 600; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 32px 0; }
.pager .gap { border: 0; color: var(--ink-3); } .pager a, .pager span { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--mono); font-size: 14px; } .pager [aria-current] { background: var(--ink); color: var(--bg); }

/* contributor profile and contribute form */
.profile { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start; }
.profile .ava { width: 160px; height: 160px; border-radius: 8px; object-fit: cover; background: var(--line); }
@media (max-width: 600px) { .profile { grid-template-columns: 1fr; } }
.stat { display: inline-grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 120px; }
.stat b { font: 600 24px/1 var(--mono); }
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--ink-2); cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--ink); }
.drop input { display: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.rec { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rec .time { font-family: var(--mono); min-width: 6ch; }
.rec .live { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 15px var(--head); margin-bottom: 12px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 64px; color: var(--ink-2); font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer b { color: var(--ink); font-family: var(--head); text-transform: var(--head-tt); letter-spacing: var(--head-ls); font-size: 20px; font-weight: var(--head-w); }
footer ul { list-style: none; padding: 0; margin: 10px 0 0; } footer li { margin: 6px 0; } footer a { text-decoration: none; } footer a:hover { text-decoration: underline; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr; } }

/* admin and account pages (served by the API, same stylesheet) */
.table { width: 100%; border-collapse: collapse; font-size: 15px; } .table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .table th { font: 600 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.status { font: 600 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.status.published { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .status.sent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
textarea.body { min-height: 420px; font-family: var(--mono); font-size: 15px; }
.audio { width: 100%; margin: 8px 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { .top, footer, .mood, .menu { display: none; } body { background: #fff; color: #000; } }

/* part hunter */
.hunter { max-width: 900px; }
.hunter-out { margin-top: 8px; }
.hunter-out .lead { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); }
.hunter-out .lead .q { font-family: var(--mono); font-size: 15px; color: var(--ink-2); }
.hunter-out .others { display: flex; gap: 8px; flex-wrap: wrap; }
.hunter-out .others a { font: 600 13px/1 var(--body); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }

/* ---- frame builder ---- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin: 24px 0 64px; align-items: start; }
.builder .stage { position: relative; aspect-ratio: 4 / 3; min-height: 420px; background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--panel) 70%, var(--ink) 4%) 0%, var(--bg) 70%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.builder .stage canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.builder .stage canvas:active { cursor: grabbing; }
.builder .hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.builder .views { display: flex; gap: 4px; flex-wrap: wrap; pointer-events: auto; }
.builder .views button, .builder .seg button { appearance: none; font: 600 13px/1 var(--body); letter-spacing: .02em; color: var(--ink-2); background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer; backdrop-filter: blur(6px); }
.builder .views button[aria-pressed=true], .builder .seg button[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.builder .readout { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; pointer-events: none; }
.builder .readout div { display: flex; flex-direction: column; gap: 2px; }
.builder .readout dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.builder .readout dd { margin: 0; font-family: var(--mono); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.builder .flash { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; font-size: 13px; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: 999px; }
.builder .controls { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 92px); overflow: auto; }
.builder .controls section { display: flex; flex-direction: column; gap: 8px; }
.builder .controls h2.k { margin: 0 0 2px; font-size: 11.5px; }
.builder .seg { display: flex; flex-wrap: wrap; gap: 4px; }
.builder .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 14px; color: var(--ink-2); align-items: center; }
.builder .row output { font-family: var(--mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.builder .row input[type=range] { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--accent); height: 22px; }
.builder .swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.builder .swatch { appearance: none; border: 2px solid var(--line); border-radius: var(--radius); background: var(--sw); height: 34px; cursor: pointer; padding: 0; position: relative; }
.builder .swatch span { position: absolute; left: -9999px; }
.builder .swatch[aria-pressed=true] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--panel) inset; }
.builder .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.builder .two select { margin-top: 4px; padding: 8px 10px; font-size: 15px; }
.builder .check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.builder .check input { accent-color: var(--accent); width: 16px; height: 16px; }
.builder .actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.builder .actions .btn { padding: 11px 14px; font-size: 14px; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } .builder .controls { position: static; max-height: none; } .builder .stage { min-height: 320px; aspect-ratio: 1 / 1; } }
.builder .nogl { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--ink-2); max-width: none; }
.builder .inline { display: flex; gap: 6px; }
.builder .inline input { flex: 1; min-width: 0; padding: 9px 11px; font-size: 14px; }
.builder .inline .btn { padding: 9px 12px; font-size: 14px; white-space: nowrap; }
.builder .mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.builder .mine li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; }
.builder .mine .x { appearance: none; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.builder .mine .x:hover { color: var(--bad); }
.builder .mine .faint { font-family: var(--mono); font-size: 12px; }
#gallery .card .img { display: block; }
.builder.design .stage { aspect-ratio: 16 / 10; }
.builder .design-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.builder .spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.builder .spec th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 6px 10px 6px 0; vertical-align: top; white-space: nowrap; }
.builder .spec td { padding: 6px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
.builder .spec tr:last-child td { border-bottom: 0; }
.builder .assess { padding: 16px 18px; }
.builder .assess-form { display: flex; flex-direction: column; gap: 8px; }
.builder .assess-form input, .builder .assess-form textarea { font-size: 14px; padding: 9px 11px; }
.builder .assess-form .btn { align-self: flex-start; padding: 10px 14px; font-size: 14px; }
.people-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.people-row .person { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.people-row .person:hover { border-color: var(--ink-3); }
.people-row .ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; display: block; }
