/* Freshers Park design tokens. Every colour pair used for text is checked by tests/test_design_contrast.py. */
@font-face { font-family: "Sora"; src: url("/static/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* type: fluid scale (sized for laptops at 125% display scaling: ~15px body text) */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: clamp(.6875rem, .67rem + .08vw, .75rem);
  --fs-sm: clamp(.75rem, .73rem + .1vw, .8125rem);
  --fs-md: clamp(.84rem, .82rem + .12vw, .9375rem);
  --fs-lg: clamp(1rem, .94rem + .35vw, 1.2rem);
  --fs-xl: clamp(1.3rem, 1.08rem + .95vw, 1.75rem);
  --fs-2xl: clamp(1.75rem, 1.25rem + 2.4vw, 2.9rem);
  --fs-hero: clamp(1.95rem, 1.15rem + 3vw, 3.5rem);

  /* shape and spacing */
  --r-sm: 9px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 10px; --s-4: 14px; --s-5: 20px; --s-6: 28px; --s-7: 40px; --s-8: 60px;
  --tap: 38px;  /* buttons and fields; 44px on touch screens (below) */

  /* brand (theme independent) */
  --emerald: #10b981; --teal: #14b8a6; --sky: #0ea5e9; --coral: #fb7185; --amber: #f59e0b;
  --grad: linear-gradient(135deg, #34d399 0%, #10b981 40%, #14b8a6 100%);
  --grad-warm: linear-gradient(135deg, #fb7185 0%, #f59e0b 100%);
  --on-grad: #04221a;            /* text on the emerald gradient */

  /* motion tokens (shared by CSS and motion.js) */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 500ms; --dur-5: 800ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);  /* fallback; a true spring curve below where supported */
  --stagger: 60ms;
}
@media (pointer: coarse) { :root { --tap: 44px; } }  /* fingers need bigger targets than a mouse */

@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.9%, 1.067 23.2%, 1.074 26.1%, 1.043 30.6%, .99 36.6%, .98 40.5%, .982 45.8%, 1.004 58%, 1.002 66%, 1); }
}

/* dark is the default; the light theme is applied by data-theme or the OS preference (see theme.js) */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020; --bg-2: #0f1630; --surface: #121a36; --surface-2: #1a2447; --surface-glass: rgba(18, 26, 54, .62);
  --fg: #eaf0ff; --muted: #a8b3d1; --faint: #8d99ba;
  --line: rgba(255, 255, 255, .11); --line-strong: rgba(255, 255, 255, .22);
  --accent: #34d399;              /* links/emphasis on dark: 9.9:1 on --bg */
  --accent-strong: #6ee7b7;
  --danger: #ff8a8a; --warn: #fbbf24; --ok: #4ade80;
  --field: #0f1630; --field-line: rgba(255, 255, 255, .42);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.25);
  --shadow-2: 0 4px 12px rgba(0,0,0,.35), 0 16px 40px rgba(0,0,0,.3);
  --shadow-3: 0 10px 30px rgba(0,0,0,.45), 0 40px 90px rgba(0,0,0,.4);
  --glow: 0 0 0 1px rgba(52,211,153,.35), 0 0 40px rgba(16,185,129,.28);
  --aurora-a: rgba(16,185,129,.38); --aurora-b: rgba(14,165,233,.30); --aurora-c: rgba(251,113,133,.20);
  --noise-opacity: .06;
  --tint-ok: rgba(74,222,128,.14); --tint-warn: rgba(251,191,36,.14); --tint-bad: rgba(255,138,138,.14); --tint-info: rgba(168,179,209,.14);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7f2; --bg-2: #f3efe7; --surface: #ffffff; --surface-2: #f6f2ea; --surface-glass: rgba(255, 255, 255, .72);
  --fg: #0b1020; --muted: #4a5470; --faint: #5f6a87;
  --line: rgba(11, 16, 32, .12); --line-strong: rgba(11, 16, 32, .28);
  --accent: #047857;              /* 5.4:1 on --bg */
  --accent-strong: #065f46;
  --danger: #b42318; --warn: #8a5300; --ok: #0b6b2e;
  --field: #ffffff; --field-line: rgba(11, 16, 32, .5);
  --shadow-1: 0 1px 2px rgba(20,24,40,.08), 0 2px 8px rgba(20,24,40,.06);
  --shadow-2: 0 4px 12px rgba(20,24,40,.08), 0 16px 40px rgba(20,24,40,.08);
  --shadow-3: 0 10px 30px rgba(20,24,40,.12), 0 40px 90px rgba(20,24,40,.12);
  --glow: 0 0 0 1px rgba(4,120,87,.35), 0 0 40px rgba(16,185,129,.22);
  --aurora-a: rgba(16,185,129,.30); --aurora-b: rgba(14,165,233,.22); --aurora-c: rgba(251,113,133,.20);
  --noise-opacity: .05;
  --tint-ok: rgba(11,107,46,.10); --tint-warn: rgba(138,83,0,.10); --tint-bad: rgba(180,35,24,.09); --tint-info: rgba(74,84,112,.09);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #faf7f2; --bg-2: #f3efe7; --surface: #ffffff; --surface-2: #f6f2ea; --surface-glass: rgba(255, 255, 255, .72);
    --fg: #0b1020; --muted: #4a5470; --faint: #5f6a87;
    --line: rgba(11, 16, 32, .12); --line-strong: rgba(11, 16, 32, .28);
    --accent: #047857; --accent-strong: #065f46;
    --danger: #b42318; --warn: #8a5300; --ok: #0b6b2e;
    --field: #ffffff; --field-line: rgba(11, 16, 32, .5);
    --shadow-1: 0 1px 2px rgba(20,24,40,.08), 0 2px 8px rgba(20,24,40,.06);
    --shadow-2: 0 4px 12px rgba(20,24,40,.08), 0 16px 40px rgba(20,24,40,.08);
    --shadow-3: 0 10px 30px rgba(20,24,40,.12), 0 40px 90px rgba(20,24,40,.12);
    --glow: 0 0 0 1px rgba(4,120,87,.35), 0 0 40px rgba(16,185,129,.22);
    --aurora-a: rgba(16,185,129,.30); --aurora-b: rgba(14,165,233,.22); --aurora-c: rgba(251,113,133,.20);
    --noise-opacity: .05;
    --tint-ok: rgba(11,107,46,.10); --tint-warn: rgba(138,83,0,.10); --tint-bad: rgba(180,35,24,.09); --tint-info: rgba(74,84,112,.09);
  }
}
