/* Sweatshop for Agents — public site.
   StrongMocha Register 6 "The Foundry" (launch-hero jurisdiction):
   roast ink, cream, brass ≤10%, Fraunces 900 + IBM Plex Mono. No CDNs. */

@font-face { font-family: 'Fraunces'; font-weight: 900; src: url('assets/fonts/Fraunces-900.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-weight: 400; src: url('assets/fonts/Fraunces-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-weight: 400; font-style: italic; src: url('assets/fonts/Fraunces-400i.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; src: url('assets/fonts/IBMPlexMono-400.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; src: url('assets/fonts/IBMPlexMono-500.woff2') format('woff2'); font-display: swap; }

* { box-sizing: border-box; }
:root {
  --paper: #17130E; --card: #1F1A13; --panel: #241E16;
  --ink: #F2EDE0; --muted: #A79C87; --agate: #877D69;
  --line: #383024;
  --brass: #C9A24B; --brass-contrast: #17130E;
  --ember: #B4552D;
  --ok: #9BC98A; --warn: #E0A94F; --bad: #E88070;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --measure: 62ch;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.65; }
a { color: var(--brass); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.label { font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* nav */
nav { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 20px 0; flex-wrap: wrap; }
nav .mark { font-family: var(--serif); font-weight: 900; font-size: 1.05rem;
  color: var(--ink); text-decoration: none; }
nav .mark em { font-style: normal; color: var(--brass); }
nav .links { display: flex; gap: 18px; flex-wrap: wrap; }
nav .links a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--muted); }
nav .links a:hover { color: var(--brass); }

/* hero — the only sanctioned gradient in the house */
.hero { background: radial-gradient(90% 120% at 50% -20%, #2A2114 0%, var(--paper) 60%);
  padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 5vw, 64px); }
.hero .kicker { font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 0 0 18px; }
.hero h1 { font-family: var(--serif); font-weight: 900; letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1.02; margin: 0 0 20px; max-width: 20ch; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brass); }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: var(--measure);
  color: var(--muted); margin: 0 0 28px; }
.hero .lede b { color: var(--ink); font-weight: 400; }
.heroimg { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: clamp(20px, 4vw, 40px); }
.heroimg video { width: 100%; display: block; }
.heroimg .placeholder { aspect-ratio: 21 / 9; display: grid; place-items: center;
  background: var(--card); color: var(--agate); font-family: var(--mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 20px; }

/* sections */
section { padding: clamp(32px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.1; margin: 0 0 10px; }
.sectionlede { color: var(--muted); max-width: var(--measure); margin: 0 0 32px; }

/* the line diagram */
.line { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.station { min-width: 150px; flex: 1; border: 1px solid var(--line); background: var(--card);
  border-radius: 6px; padding: 16px; position: relative; }
.station + .station { margin-left: 28px; }
.station + .station::before { content: "→"; position: absolute; left: -22px; top: 50%;
  transform: translateY(-50%); color: var(--brass); font-family: var(--mono); }
.station b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 8px; }
.station p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 22px; }
.card b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card p strong { color: var(--ink); font-weight: 400; }

/* inspection figure */
.inspection { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.inspection img { width: 100%; display: block; }
.inspection figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--agate); padding: 10px 16px; border-top: 1px solid var(--line); }

/* live floor */
.floorwrap { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 20px; }
.floorwrap .stamp { font-family: var(--mono); font-size: 11px; color: var(--agate); margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; background: var(--panel); }
.kpi b { display: block; font-family: var(--mono); font-weight: 500; font-size: 24px; color: var(--brass); }
.kpi span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.tickrow { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; flex-wrap: wrap; }
.tickrow:last-child { border-bottom: none; }
.tickrow .t { font-family: var(--mono); font-size: 11px; color: var(--agate); white-space: nowrap; }
.floorempty { color: var(--agate); font-style: italic; }

/* prose pages (legal) */
.prose { max-width: 70ch; padding: clamp(24px, 5vw, 56px) 0; }
.prose h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1; margin: 0 0 8px; }
.prose h2 { font-size: 1.2rem; margin: 2em 0 0.5em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 400; }
.prose .updated { font-family: var(--mono); font-size: 11px; color: var(--agate);
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 6vw, 72px);
  padding: 28px 0 40px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
footer .legal a { font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; }
footer .legal a:hover { color: var(--brass); }
footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.attribution { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; }
.attribution::before { content: ""; width: 7px; height: 7px; background: var(--brass); }
.attribution b { color: var(--ink); font-weight: 500; }
.attribution:hover, .attribution:hover b { color: var(--brass); }
footer .code { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--agate); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
