@font-face {
  font-family: Inter;
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Same tokens as the apps: warm ink neutrals and one amber accent. */
:root {
  --bg: oklch(0.165 0.01 65);
  --surface: oklch(0.205 0.011 65);
  --raised: oklch(0.255 0.012 65);
  --line: oklch(0.33 0.012 65);
  --fg: oklch(0.95 0.008 80);
  --muted: oklch(0.76 0.012 75);
  --subtle: oklch(0.62 0.012 75);
  --accent: oklch(0.8 0.145 72);
  --accent-ink: oklch(0.22 0.04 60);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--fg); background: var(--surface); }

/* Hero: the same pool of warm light as the apps' 3D stage. */
.hero {
  background: radial-gradient(110% 80% at 72% 40%, oklch(0.27 0.02 68) 0%, oklch(0.2 0.013 65) 45%, var(--bg) 100%);
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
}
.hero-body { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 56px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin-top: 12px; }
.lede { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 46ch; }
.hero img { width: auto; max-height: 420px; justify-self: center; filter: drop-shadow(0 30px 60px oklch(0 0 0 / 0.5)); }

/* App list: rows, like the levels list inside the apps. */
section.wrap { padding-top: 56px; padding-bottom: 8px; }
section.wrap + section.wrap { padding-bottom: 72px; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.apps { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.app { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.app img { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.app h3 { font-size: 17px; letter-spacing: -0.01em; }
.app p { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 2px; }
.more { color: var(--muted); margin-top: 18px; font-size: 15px; }
.status { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--subtle); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.status.live { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts h3 { font-size: 17px; }
.facts p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Text pages */
.page { padding-top: 32px; padding-bottom: 72px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); }
.page .updated { color: var(--subtle); font-size: 14px; margin-top: 10px; }
.page h2 { margin-top: 40px; }
.page p, .page li { color: var(--muted); margin-top: 12px; }
.page strong { color: var(--fg); }
.page ul { padding-left: 20px; }
.contact { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact p:first-child { margin-top: 0; }
.todo { color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--subtle); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 8px; }
  .hero img { max-height: 220px; order: -1; }
  .apps, .facts { grid-template-columns: 1fr; }
  .nav a { padding: 8px 8px; }
}
