/* Preqnet studio site. Quiet chalk-and-ink page; each game appears as a panel in its own colours, a
   window into that game. One family (Schibsted Grotesk), sentence case, no shadows, hairlines only. */
:root {
  --bg: #ECEEE8;
  --surface: #E2E5DD;
  --ink: #12201B;
  --muted: #4F5D57;
  --accent: #1F5A4A;
  --hair: rgba(18, 32, 27, 0.14);
  /* Follow the Future panel: the game's own colours */
  --ftf-desk: #13221F;
  --ftf-text: #E9EFEA;
  --ftf-muted: #A9BAB2;
  --ftf-amber: #F4A93A;
  --ftf-land: #EFA63B;
  --ftf-hair: rgba(213, 233, 235, 0.16);
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1513; --surface: #16201D; --ink: #E6EBE7; --muted: #9FB0A8; --accent: #7FC4AE;
    --hair: rgba(230, 235, 231, 0.14); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1513; --surface: #16201D; --ink: #E6EBE7; --muted: #9FB0A8; --accent: #7FC4AE;
  --hair: rgba(230, 235, 231, 0.14); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

.top, main > section, .foot { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.mark { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); padding: 8px 0; }
.top nav a:hover { color: var(--ink); }

/* Intro: the statement is the hero */
.intro { padding-top: clamp(48px, 10vw, 120px); padding-bottom: clamp(40px, 7vw, 80px); }
.intro h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); max-width: 15ch; letter-spacing: -0.035em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }

/* Game panel: a window into the game, in the game's own colours */
.games { padding-bottom: clamp(56px, 8vw, 96px); }
.game-panel {
  display: grid; gap: 28px; align-items: center; background: var(--ftf-desk); color: var(--ftf-text);
  border-radius: 16px; border: 1px solid var(--ftf-hair); padding: clamp(24px, 4vw, 48px);
}
@media (min-width: 860px) { .game-panel { grid-template-columns: 1fr 1fr; } }
.game-panel h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.game-panel p { color: var(--ftf-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 10px;
  background: var(--ftf-amber); color: #1D2A26; font-weight: 700; font-size: 1.05rem; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible { outline-color: var(--ftf-amber); }
.game-panel .link { color: var(--ftf-text); text-underline-offset: 4px; }
.game-panel .link:focus-visible { outline-color: var(--ftf-amber); }
.outlines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 12px; }
.outlines svg { display: block; width: 100%; aspect-ratio: 1; }
.outlines path { fill: var(--ftf-land); stroke: var(--ftf-land); stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Principles */
.how, .contact { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--hair); }
.principles { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.principles p { color: var(--muted); }
.link { color: var(--accent); text-underline-offset: 4px; }

.foot { padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--hair); color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
