/* Base for the exam room: the Optimize design tokens, fonts, buttons and the eyebrow label that public/css/quiz.css
   builds on. Copied from optimize-it's public/css/site.css (+ the v2 lime focus) on 2026-12-04; only what the room
   uses. Dark theme: lime #B5E61D on black, Space Grotesk 600 for display, Inter for text. */

@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Metric-matched fallbacks: local Arial/Liberation (or DejaVu on bare Linux) resized to the brand fonts, so text
   wraps the same before and after the web fonts swap in. Without them the hero headline drops a line on swap and
   the centred hero visual jumps (CLS 0.17 on PageSpeed, v1.5.3). size-adjust was tuned by sweeping the home hero
   at 320-1920px until its line breaks matched the real fonts (397/401 widths); ascent/descent = font metric / size-adjust. */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('LiberationSans'), local('Arimo'), local('Helvetica'); font-weight: 100 500; size-adjust: 107.5%; ascent-override: 90.12%; descent-override: 22.44%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'); font-weight: 600 900; size-adjust: 101.1%; ascent-override: 95.82%; descent-override: 23.86%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback DV'; src: local('DejaVu Sans'), local('DejaVuSans'); font-weight: 100 500; size-adjust: 94.97%; ascent-override: 102.01%; descent-override: 25.40%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback DV'; src: local('DejaVu Sans Bold'), local('DejaVuSans-Bold'); font-weight: 600 900; size-adjust: 84.86%; ascent-override: 114.15%; descent-override: 28.42%; line-gap-override: 0%; }
@font-face { font-family: 'Space Grotesk Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('LiberationSans-Bold'), local('Arimo Bold'), local('Helvetica Bold'); font-weight: 300 700; size-adjust: 102.6%; ascent-override: 95.91%; descent-override: 28.46%; line-gap-override: 0%; }
@font-face { font-family: 'Space Grotesk Fallback DV'; src: local('DejaVu Sans Bold'), local('DejaVuSans-Bold'); font-weight: 300 700; size-adjust: 85.47%; ascent-override: 115.13%; descent-override: 34.16%; line-gap-override: 0%; }

:root {
  --brand: #B5E61D;
  --brand-tint: #83B30C;
  --surface: #000000;
  --ink: #FFFFFF;
  --muted: #BDBDBD;
  --line: #262626;
  --on-brand: #0A0A0A;
  --danger: #FF6B5E;
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', 'Space Grotesk Fallback DV', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Inter', 'Inter Fallback', 'Inter Fallback DV', system-ui, sans-serif;
  --body: 1rem;
  --eyebrow: .75rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 var(--body)/1.625 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-sm); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: var(--radius-md); font-weight: 600; }
.skip:focus { top: 16px; color: var(--on-brand); }
.eyebrow { font-size: var(--eyebrow); line-height: 1.33; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-md); font-family: var(--font-sans); font-weight: 600; font-size: var(--body); line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; text-align: center; }
.btn-lg { min-height: 56px; padding: 16px 28px; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-tint); color: var(--on-brand); }
.btn-outline { border-color: color-mix(in srgb, var(--ink) 42%, transparent); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
