/* Warewinter site. Tokens match the Warewinter design system (light only). */
/* Fonts are self-hosted (SIL Open Font Licence, see fonts/OFL-*.txt), so no request leaves this site. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3-latin.woff2) format("woff2"); }
:root {
  --surface-base: #F6F5F1; --surface-raised: #FFFFFF; --ink: #121826; --ink-muted: #4F5868;
  --line: #D8DAE0; --surface-tint: #FFF1E8;
  --accent: #B5400F; --accent-ink: #FFFFFF; --signal: #FF7A3D; --signal-ink: #121826;
  --success: #17703A; --warning: #8A5A00;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--surface-base); color: var(--ink);
  font: 16px/1.55 var(--sans);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 48px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 64px; min-width: 0; }
p { margin: 0; max-width: 65ch; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: 40px; line-height: 1.06; letter-spacing: -.01em; }
@media (min-width: 760px) { h1 { font-size: 58px; line-height: 1.02; } }
h2 { font-weight: 800; font-size: 30px; line-height: 1.15; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.eyebrow { font: 800 13px/1.3 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 19px; color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.hl { background: linear-gradient(transparent 60%, var(--signal) 60%); padding: 0 2px; }

.nav { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 800 16px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: .22em; text-transform: uppercase; }
.wordmark img { display: block; }
.nav ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

.hero { display: grid; gap: 28px; padding-top: 24px; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.shot { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.shot img, .shot .video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.shot figcaption { font-size: 12px; color: #C3CAD8; padding: 8px 12px; background: var(--ink); }
.shot figcaption a { color: #FFB48F; }
figure { margin: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface-raised); }

section { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card p { color: var(--ink-muted); }

.flagship { display: grid; gap: 24px; }
@media (min-width: 880px) { .flagship { grid-template-columns: 1fr 1fr; align-items: center; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-raised); }
.chip.live { color: var(--success); border-color: var(--success); }

/* Stack diagram */
.stack { display: flex; flex-direction: column; gap: 0; }
.layer { border-radius: 16px; padding: 18px; display: grid; gap: 12px; min-width: 0; }
.layer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.layer h3 { font-size: 20px; }
.layer .tag { font-size: 13px; font-weight: 700; }
.mods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mod { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: var(--ink-muted); }
.mod b { display: block; color: var(--ink); font-size: 15px; }
.l-games { background: var(--ink); color: #F2F4F8; }
.l-games .tag { color: #C3CAD8; }
.l-games .mod { background: #1E2638; border-color: #343E55; color: #C3CAD8; }
.l-games .mod b { color: #F2F4F8; }
.l-engine { background: var(--accent); color: var(--accent-ink); }
.l-engine .tag { color: #FFE1D2; }
.l-tools { background: var(--surface-raised); border: 1px solid var(--line); }
.l-tools .mod { background: var(--surface-base); }
.l-ai { background: var(--signal); color: var(--signal-ink); }
.l-ai .tag { color: #4A1D08; }
.l-ai .mod { border-color: #E0632A; }
.joint { text-align: center; font-size: 13px; font-weight: 700; color: var(--ink-muted); padding: 6px 0; }

.contact { background: var(--surface-tint); border: 1px solid #F6D3BF; border-radius: 16px; padding: 24px; }
footer { max-width: 1080px; margin: 64px auto 0; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer a { color: var(--ink-muted); }

/* Morse rule: dot dash dash, the logo's W. A divider, used once or twice a page. */
.morse { display: flex; gap: 6px; align-items: center; height: 8px; }
.morse i { display: block; height: 8px; border-radius: 4px; background: var(--signal); width: 24px; }
.morse i:first-child { width: 8px; }
