/* Fonts are served from this site (no third-party font requests). Jost and Michroma, SIL Open Font
   License (fonts/*-OFL.txt), subset to Latin and Latin Extended. */
@font-face { font-family: "Jost"; src: url("/fonts/jost.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Michroma"; src: url("/fonts/michroma.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --bg: #140d08;
  --bg-2: #1c140e;
  --ink: #f4dfae;
  --ink-2: #c9b48c;
  --dim: #8f7f6b;
  --amber: #ffb44c;
  --line: #2f2419;
  --btn-line: #3a2e23;
  --btn-hi: #6a5238;
  --btn-top: #211a14;
  --btn-bot: #120e0b;
  --cta-line: #4a3a2a;
  --cta-top: #2a221b;
  --cta-bot: #17120e;
  --glow: rgba(255,140,40,.08);
  --max: 1120px;
  color-scheme: dark;
}

/* The era switch sets the page's era too: each one in the colours of its own rack. Wood is above. */
:root[data-era="metal"] {
  --bg: #1a2329;
  --bg-2: #222d34;
  --ink: #e6eef0;
  --ink-2: #b4c1c5;
  --dim: #8a989d;
  --amber: #5ff0d4;
  --line: #2e3c46;
  --btn-line: #36444c;
  --btn-hi: #4c6a68;
  --btn-top: #252f35;
  --btn-bot: #161d21;
  --cta-line: #34403f;
  --cta-top: #29343a;
  --cta-bot: #182024;
  --glow: rgba(95,240,212,.07);
}
:root[data-era="black"] {
  --bg: #050505;
  --bg-2: #0e0e0e;
  --ink: #f2e6d8;
  --ink-2: #bdb3a8;
  --dim: #85807a;
  --amber: #ff5f33;
  --line: #232120;
  --btn-line: #333030;
  --btn-hi: #7a3a26;
  --btn-top: #1c1b1b;
  --btn-bot: #0c0c0c;
  --cta-line: #3e3836;
  --cta-top: #232120;
  --cta-bot: #121111;
  --glow: rgba(255,95,51,.08);
}
html.era-anim body, html.era-anim body * {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.era-anim body, html.era-anim body * { transition: none; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 18px/1.6 "Jost", system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 400 15px/1 "Michroma", sans-serif; letter-spacing: .12em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.lang { font-size: 14px; letter-spacing: .08em; color: var(--dim); }
.lang a { color: var(--dim); }

/* Hero */
.hero { text-align: center; padding-top: 48px; padding-bottom: 24px; }
.hero h1 { margin: 0 auto 16px; max-width: 16ch; color: var(--ink); font: 500 clamp(36px, 6vw, 64px)/1.1 "Jost", sans-serif; letter-spacing: -.01em; }
.hero p { margin: 0 auto; max-width: 40ch; font-size: clamp(18px, 2.2vw, 21px); }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 13px 22px; border: 1px solid var(--cta-line); border-radius: 4px;
  background: linear-gradient(var(--cta-top), var(--cta-bot)); color: var(--ink); font: 500 14px/1 "Jost", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.cta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.cta:hover { text-decoration: none; border-color: var(--btn-hi); }
.note { margin-top: 12px; font-size: 14px; color: var(--dim); }

.stage { margin: 40px auto 88px; max-width: 1400px; padding: 0 16px; }
.screen { position: relative; overflow: hidden; border-radius: 6px; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 120px var(--glow); }
.screen img, .screen video { display: block; width: 100%; height: auto; }
.screen video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.screen.playing video { opacity: 1; }
.switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; padding: 0 16px; }
.switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--btn-line); border-radius: 4px;
  background: linear-gradient(var(--btn-top), var(--btn-bot)); color: var(--ink-2); font: 400 11px/1 "Michroma", sans-serif; letter-spacing: .16em;
  text-transform: uppercase; cursor: pointer; }
.switch button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--btn-line); }
.switch button[aria-pressed="true"] { color: var(--ink); border-color: var(--btn-hi); }
.switch button[aria-pressed="true"]::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.switch button:hover { border-color: var(--btn-hi); }
.switch button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.switch .pause { margin-left: 14px; }
.switch .pause::before { display: none; }

/* Sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
.kicker { margin: 0 0 10px; color: var(--amber); font: 400 12px/1 "Michroma", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
h2 { margin: 0 0 18px; color: var(--ink); font: 500 clamp(28px, 4vw, 40px)/1.15 "Jost", sans-serif; }
.lead { max-width: 52ch; margin: 0; }

.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.unit h3 { margin: 0 0 6px; color: var(--ink); font: 400 15px/1.2 "Michroma", sans-serif; letter-spacing: .1em; }
.unit p { margin: 0; font-size: 16px; }

.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.era img { border-radius: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.era h3 { margin: 16px 0 4px; color: var(--ink); font: 500 19px/1.2 "Jost", sans-serif; }
.era p { margin: 0; font-size: 15px; color: var(--dim); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .pic img { border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.split.narrow-pic { grid-template-columns: 1.4fr 1fr; }
.split.narrow-pic .pic img { max-width: 340px; margin: 0 auto; }

.wide { margin-top: 40px; }
.wide img { width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

ul.plain { list-style: none; padding: 0; margin: 20px 0 0; }
ul.plain li { padding: 10px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }

/* Questions */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin-top: 36px; }
.qa { padding: 22px 0; border-top: 1px solid var(--line); }
.qa h3 { margin: 0 0 8px; color: var(--ink); font: 500 19px/1.3 "Jost", sans-serif; }
.qa p { margin: 0; font-size: 16px; }

/* Text pages */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 80px; }
.doc h1 { color: var(--ink); font: 500 40px/1.15 "Jost", sans-serif; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc .date { color: var(--dim); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--ink-2); }

@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .units, .eras, .faq { grid-template-columns: 1fr; }
  .split, .split.narrow-pic { grid-template-columns: 1fr; gap: 32px; }
  .stage { padding: 0 16px; margin-bottom: 64px; }
  .top { padding-top: 18px; padding-bottom: 18px; }
  .switch .pause { margin-left: 0; }
}
