/* Fire, Gees & Braai! website. Style B "Postcards from Mzansi": a road-trip
   scrapbook in the game's palette (scripts/ui/ui_kit.gd in the game repo). */

@font-face { font-family: "Lilita One"; src: url(/assets/fonts/lilita-one.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/assets/fonts/nunito.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }

/* ---------- Game palette ---------- */
:root {
  --sky: #3CC6E8; --sky-deep: #1E8FB8; --sky-pale: #A9E7F6;
  --cream: #FFF6E5; --cream-dark: #EBD9B8; --ink: #2B1B12; --brown: #5C4636;
  --sun: #FFD23F; --sun-dark: #E0A800; --flame: #FF8A1F; --flame-dark: #D0650A;
  --tomato: #F2542D; --tomato-dark: #C23A18; --grass: #5BC236; --grass-dark: #3E8E24;
}

/* ---------- Theme tokens: paper by day, "night postcard" in dark mode.
   tests/site.test.js checks every token here also has both dark values. ---------- */
:root {
  color-scheme: light;
  --bg: #F6E7C8; --dot: rgba(92, 70, 54, .08); --card: #FFFFFF; --text: #2B1B12; --muted: #5C4636;
  --line: #2B1B12; --rule: #EBD9B8; --kraft: #C99A62; --kraft-dark: #A87A45; --shadow: rgba(92, 70, 54, .25);
  --map-paper: #F3DDB0; --map-land: #FBEBCB; --map-line: #5C4636; --route: #C23A18;
  --st-1: #C23A18; --st-2: #3E8E24; --st-3: #1E8FB8; --link: #C23A18;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #21160F; --dot: rgba(246, 231, 200, .05); --card: #33251B; --text: #F6E7C8; --muted: #D9C3A0;
    --line: #0E0805; --rule: #4A3627; --kraft: #5A3F28; --kraft-dark: #3E2B1B; --shadow: rgba(0, 0, 0, .45);
    --map-paper: #2C1F16; --map-land: #3A2A1E; --map-line: #D9C3A0; --route: #FF7A55;
    --st-1: #FF7A55; --st-2: #7BD65A; --st-3: #5AD2F0; --link: #FFB08F;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #21160F; --dot: rgba(246, 231, 200, .05); --card: #33251B; --text: #F6E7C8; --muted: #D9C3A0;
  --line: #0E0805; --rule: #4A3627; --kraft: #5A3F28; --kraft-dark: #3E2B1B; --shadow: rgba(0, 0, 0, .45);
  --map-paper: #2C1F16; --map-land: #3A2A1E; --map-line: #D9C3A0; --route: #FF7A55;
  --st-1: #FF7A55; --st-2: #7BD65A; --st-3: #5AD2F0; --link: #FFB08F;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 600 17px/1.6 "Nunito", system-ui, sans-serif; color: var(--text); background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 7px 7px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: "Lilita One", system-ui, sans-serif; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
section { padding: 76px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 50; left: 12px; top: -80px; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 10px; background: var(--sun); color: var(--ink); font-weight: 900; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.retro { color: var(--sun); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 var(--tomato), 8px 8px 0 var(--ink); }
.hand { font-style: italic; font-weight: 800; color: var(--muted); }
.sec-title { font-size: clamp(38px, 7vw, 66px); }
.sec-lead { max-width: 52ch; margin: 14px 0 34px; font-size: 18px; }

/* ---------- Buttons and App Store slot ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--tomato-dark); color: #fff;
  font: 400 20px/1 "Lilita One", sans-serif; text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
  transition: translate .12s, box-shadow .12s; }
.btn:hover { translate: 2px 2px; box-shadow: 2px 2px 0 var(--ink); }
.appstore { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; }
.appstore img { width: auto; height: 52px; }
.appstore-soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border: 3px dashed var(--line);
  border-radius: 12px; background: var(--card); color: var(--text); font: 800 15px/1.2 "Nunito", sans-serif; }

/* ---------- Header ---------- */
.top { padding: 12px 0; border-bottom: 3px dashed var(--kraft-dark); }
.top .wrap { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); text-decoration: none;
  font: 400 clamp(18px, 4.6vw, 22px)/1 "Lilita One", sans-serif; }
.logo img { width: 46px; height: 46px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a, .menu nav a { color: var(--text); font-weight: 800; text-decoration: none; }
.nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: var(--tomato); }
.menu { position: relative; margin-left: auto; }
.menu summary { display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { position: relative; display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--text); }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -7px; }
.menu summary span::after { top: 7px; }
.menu nav { position: absolute; z-index: 30; right: 0; top: 58px; display: grid; min-width: 210px; padding: 8px;
  border: 3px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 5px 5px 0 var(--shadow); }
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 8px; }
.menu nav a:hover, .menu nav a[aria-current] { background: var(--bg); }
@media (min-width: 860px) { .nav { display: flex; } .menu { display: none; } }

/* ---------- Hero postcard ---------- */
.hero { padding: 48px 0 84px; }
.hero > .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .hero > .wrap { grid-template-columns: 1fr 1.15fr; } }
.hero h1 { font-size: clamp(44px, 9vw, 88px); }
.hero .hand { margin-bottom: 8px; }
.lead { max-width: 32ch; margin: 22px 0 26px; font-size: 20px; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.meta { margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 800; }
.postcard { position: relative; margin: 24px 8px 0; padding: 14px; rotate: 2deg; background: var(--card);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08), 10px 16px 0 var(--shadow); }
.pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.pic-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.greet { position: absolute; left: 6%; top: 6%; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  font: 400 clamp(13px, 2.4vw, 22px)/1 "Lilita One", sans-serif; letter-spacing: .06em; }
.big { position: absolute; left: 5%; top: 14%; font: 400 clamp(40px, 8vw, 84px)/1 "Lilita One", sans-serif; }
.duo { position: absolute; right: -2%; bottom: -3%; display: flex; width: 62%; }
.duo img { width: 55%; margin-left: -10%; filter: drop-shadow(4px 4px 0 rgba(43, 27, 18, .4)); }
.stamp { position: absolute; z-index: 4; top: -26px; right: -6px; width: clamp(78px, 16vw, 110px); padding: 8px; rotate: 8deg; background: #fff;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px at 6px 6px, transparent 97%, #000) -6px -6px / 12px 12px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 4px at 6px 6px, transparent 97%, #000) -6px -6px / 12px 12px round; }
.postmark { position: absolute; z-index: 5; top: 22px; right: 56px; display: grid; place-items: center; width: clamp(84px, 20vw, 112px); aspect-ratio: 1;
  border: 3px solid rgba(30, 143, 184, .75); border-radius: 50%; rotate: -14deg; color: rgba(30, 143, 184, .9); text-align: center;
  font: 400 clamp(10px, 2.4vw, 13px)/1.2 "Lilita One", sans-serif; letter-spacing: .08em; pointer-events: none; }
.postmark::after { content: ""; position: absolute; left: 90%; top: 30%; width: 70px; height: 40px;
  background: repeating-linear-gradient(transparent 0 7px, rgba(30, 143, 184, .7) 7px 10px); }
.flagpin { position: absolute; z-index: 4; left: -14px; bottom: 34px; width: clamp(64px, 14vw, 92px); rotate: -8deg;
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform-origin: left center; animation: wave 3.4s ease-in-out infinite; }
@keyframes wave { 50% { transform: perspective(240px) rotateY(-16deg); } }

/* ---------- Live-event ticket ---------- */
.live-wrap { padding: 0 0 40px; }
.ticket { display: grid; grid-template-columns: 1fr auto; max-width: 760px; margin-inline: auto; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--sun); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.ticket .l { padding: 18px 22px; }
.ticket small { display: block; font: 900 12px/1.3 "Nunito", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ticket b { display: block; margin: 6px 0 4px; font: 400 clamp(22px, 4vw, 30px)/1.1 "Lilita One", sans-serif; }
.ticket .r { display: grid; place-content: center; min-width: 150px; padding: 18px 22px; border-left: 3px dashed var(--ink);
  border-radius: 0 12px 12px 0; background: var(--cream); text-align: center; }
.ticket .r span { color: var(--tomato-dark); font: 400 26px/1.1 "Lilita One", sans-serif; }
@media (max-width: 560px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .r { border-left: 0; border-top: 3px dashed var(--ink); border-radius: 0 0 12px 12px; }
}

/* ---------- Gameplay: polaroid trailer and taped phones ---------- */
.play-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .play-grid { grid-template-columns: 1.25fr 1fr; } }
.polaroid { position: relative; margin: 0; padding: 14px 14px 58px; rotate: -1.5deg; background: var(--card); box-shadow: 8px 12px 0 var(--shadow); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 16px; color: var(--muted); text-align: center; font: italic 800 18px/1 "Nunito", sans-serif; }
.tape { position: absolute; z-index: 3; width: 110px; height: 30px; background: rgba(255, 210, 63, .75); }
.polaroid .tape { top: -14px; left: 40%; rotate: -4deg; }
.trailer { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.trailer:disabled { cursor: default; }
.trailer img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; translate: -50% -50%; border: 4px solid var(--ink); border-radius: 50%;
  background: var(--tomato); box-shadow: 4px 4px 0 var(--ink); }
.play-icon::before { content: ""; position: absolute; left: 31px; top: 22px; border-left: 28px solid #fff; border-block: 17px solid transparent; }
.phones { display: flex; justify-content: center; gap: 18px; }
.taped { position: relative; width: 180px; }
.taped:nth-child(1) { rotate: -5deg; }
.taped:nth-child(2) { rotate: 4deg; margin-top: 40px; }
.taped .tape { top: -12px; left: 50%; width: 90px; translate: -50% 0; rotate: 6deg; background: rgba(169, 231, 246, .8); }
@media (max-width: 480px) { .taped { width: 230px; } .taped:nth-child(2) { display: none; } }
.phone { position: relative; width: 100%; aspect-ratio: 720 / 1560; padding: 9px; border-radius: 38px; background: #111;
  box-shadow: 0 0 0 3px #2a2a2a inset, 0 24px 50px -18px rgba(0, 0, 0, .55); }
.phone::before { content: ""; position: absolute; z-index: 5; top: 17px; left: 50%; width: 30%; height: 17px; translate: -50% 0; border-radius: 20px; background: #000; }
.phone > .shot { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }

/* ---------- The Braai Tour ---------- */
.tour { border-block: 3px dashed var(--kraft-dark); background: var(--kraft); background-image: radial-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px); background-size: 6px 6px; }
.tour-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 940px) { .tour-grid { grid-template-columns: 1fr 1.2fr; } }
.on-kraft { color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.oldmap { position: relative; padding: 18px; rotate: -1deg; border: 3px solid var(--ink); box-shadow: 8px 8px 0 rgba(43, 27, 18, .35);
  background: radial-gradient(ellipse at 20% 10%, rgba(168, 122, 69, .25), transparent 50%), var(--map-paper); }
.m-land { fill: var(--map-land); stroke: var(--map-line); stroke-width: 2.5; stroke-linejoin: round; }
.m-les { fill: none; stroke: var(--map-line); stroke-width: 1.5; stroke-dasharray: 4 3; }
.m-route { fill: none; stroke: var(--route); stroke-width: 3; stroke-dasharray: 9 7; stroke-linecap: round; }
.m-pin { fill: var(--route); stroke: var(--ink); stroke-width: 2; }
.m-lbl { fill: var(--map-line); font: 400 12px "Lilita One", sans-serif; }
.m-plane path { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.compass { position: absolute; right: 18px; bottom: 14px; color: var(--map-line); font: 400 16px "Lilita One", sans-serif; }
.cards { display: flex; gap: 18px; margin: 44px 0 0; padding: 12px 4px 26px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
/* Carousel (assets/js/carousel.js): the scrollbar gives way to arrows and page dots. */
.cards.is-carousel { scrollbar-width: none; scroll-behavior: smooth; }
.cards.is-carousel::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .cards.is-carousel { scroll-behavior: auto; } }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.car-btn { display: grid; place-items: center; flex: none; width: 52px; height: 52px; padding: 0; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--sun); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: translate .12s, box-shadow .12s, opacity .12s; }
.car-btn svg { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:hover:not(:disabled) { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.car-btn:disabled { opacity: .45; box-shadow: none; cursor: default; }
.car-dots { display: flex; flex-wrap: wrap; justify-content: center; }
.car-dot { display: grid; place-items: center; width: 26px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.car-dot::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream-dark); transition: width .15s, background-color .15s; }
.car-dot[aria-current]::before { width: 22px; background: var(--sun); }
.car-dot:hover::before { background: var(--sun); }
.pc { flex: 0 0 220px; padding: 10px 10px 14px; scroll-snap-align: start; background: var(--card); box-shadow: 5px 7px 0 rgba(43, 27, 18, .3); }
.pc:nth-child(odd) { rotate: -1.5deg; }
.pc:nth-child(even) { rotate: 1.5deg; }
.pc img, .ph-none { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph-none { background: repeating-linear-gradient(45deg, var(--sky) 0 14px, var(--sky-pale) 14px 28px); }
.pc .date { display: inline-block; margin-top: 10px; padding: 2px 9px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font: 400 14px/1.3 "Lilita One", sans-serif; }
.pc b { display: block; margin-top: 8px; font: 400 18px/1.15 "Lilita One", sans-serif; }
.pc small { display: block; color: var(--muted); font-weight: 800; line-height: 1.35; }

/* ---------- Feature stamps ---------- */
.stamps-wrap { padding-top: 110px; }
.stamps { display: grid; gap: 70px 30px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .stamps { grid-template-columns: repeat(3, 1fr); } }
.st { position: relative; padding: 28px 24px 24px; border: 4px double currentColor; border-radius: 18px; background: color-mix(in srgb, var(--card) 45%, transparent); text-align: center; }
.st:nth-child(1) { color: var(--st-1); rotate: -2deg; }
.st:nth-child(2) { color: var(--st-2); rotate: 1deg; }
.st:nth-child(3) { color: var(--st-3); rotate: -1deg; }
.seal { display: grid; place-items: center; width: 96px; height: 96px; margin: -64px auto 10px; border: 4px dashed currentColor; border-radius: 50%; background: var(--bg); font-size: 42px; }
.st h3 { margin-bottom: 6px; font-size: 30px; }
.st p { margin: 0; color: var(--text); }

/* ---------- Footer: the back of a postcard ---------- */
.foot { padding: 30px 0 60px; }
.back { display: grid; gap: 26px; padding: 28px; rotate: -.5deg; background: var(--card); box-shadow: 8px 10px 0 var(--shadow); }
@media (min-width: 820px) { .back { grid-template-columns: 1fr 1fr; } .to { padding-left: 28px; border-left: 2px solid var(--rule); } }
.msg { color: var(--muted); font: italic 800 19px/1.6 "Nunito", sans-serif; }
.to { display: grid; align-content: start; }
.to a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid var(--rule); color: var(--text); font-weight: 800; text-decoration: none; }
.to a:hover { color: var(--link); }
.to small { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* ---------- Trailer lightbox ---------- */
.lightbox { width: min(960px, 100% - 24px); padding: 0; border: 4px solid var(--ink); border-radius: 18px; background: #000; }
.lightbox::backdrop { background: rgba(20, 12, 6, .8); }
.lightbox video { display: block; width: 100%; max-height: 80vh; }
.lb-close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--sun); color: var(--ink); font: 900 20px/1 "Nunito", sans-serif; cursor: pointer; }

/* ---------- Inner pages: a letter on the paper background ---------- */
.page { padding: 40px 0 70px; }
.letter { max-width: 780px; margin-inline: auto; padding: clamp(22px, 5vw, 48px); background: var(--card); box-shadow: 8px 10px 0 var(--shadow); }
.letter h1 { margin: 4px 0 12px; font-size: clamp(40px, 8vw, 64px); }
.letter h2 { margin: 38px 0 10px; font-size: clamp(26px, 5vw, 34px); }
.letter h3 { margin: 24px 0 6px; font-size: 21px; }
.letter p, .letter li { max-width: 66ch; }
.letter ul { padding-left: 1.2em; }
.letter li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: 14px; }
.note { padding: 12px 16px; border-left: 5px solid var(--sun); background: color-mix(in srgb, var(--sun) 16%, transparent); }
.faq details { border-bottom: 2px dashed var(--rule); }
.faq summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; cursor: pointer; list-style: none; font: 400 20px/1.2 "Lilita One", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--tomato); font-size: 26px; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; }
.contact-card { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: 20px 0; padding: 20px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--sun); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.contact-card p { margin: 0; font-weight: 800; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { padding: 10px 8px; border-bottom: 2px dashed var(--rule); text-align: left; vertical-align: top; }
.facts th { width: 38%; font: 400 18px/1.3 "Lilita One", sans-serif; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.downloads a { display: grid; gap: 8px; min-height: 48px; padding: 12px; border: 2px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--text); font-weight: 800; text-decoration: none; }
.downloads a:hover { border-color: var(--tomato); }
.downloads img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.downloads small { color: var(--muted); font-weight: 700; }
.slots { display: grid; gap: 14px; margin: 18px 0; padding: 0; list-style: none; }
.slots li { max-width: none; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 12px; background: var(--sun); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.slots li:nth-child(even) { background: var(--cream); }
.slots b { display: block; font: 400 20px/1.2 "Lilita One", sans-serif; }
.rules { display: grid; gap: 10px; padding: 0; list-style: none; }
.rules li { padding-left: 34px; position: relative; }
.rules li::before { content: "✓"; position: absolute; left: 0; top: -2px; color: var(--st-2); font: 900 22px/1 "Nunito", sans-serif; }
.lost { text-align: center; }
.lost .big-404 { color: var(--muted); font: 400 clamp(64px, 20vw, 140px)/1 "Lilita One", sans-serif; }

/* ---------- Motion ---------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; translate: 0 24px; transition: opacity .5s, translate .5s cubic-bezier(.3, 1.4, .5, 1); }
  .js-reveal .reveal.in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
