/*
  Design concept: "Cyanotype blueprint" — grounded in what a STEM team
  actually does (measuring, drafting, prototyping), for a bilingual Hong
  Kong youth-centre audience. Deliberately distinct from the centre's
  existing Cow Club sub-group, which uses a dark neon pink/orange party
  aesthetic: this palette is dark too, but blue/cyan-family, because
  that's literally what a real blueprint (a cyanotype print) looks like —
  pale cyan linework on deep indigo paper. Dark is the default, matching
  a real cyanotype's dark paper; the light theme is the same system read
  as ordinary drafting paper instead.

  Type: Space Grotesk for Latin display/headline text (falls back to
  Noto Sans HK's bold weight for Chinese headlines); Noto Sans HK for all
  body/UI copy in both languages — chosen specifically for its Hong Kong
  Traditional Chinese glyph set, not a generic Noto Sans TC substitute.
*/
:root {
  color-scheme: dark;

  /* ---- Cyanotype (dark, default) ---- */
  --color-paper: #0b1526;
  --color-paper-raised: #141f38;
  --color-ink: #eaf0f7;
  --color-ink-soft: #93a7c2;
  --color-blueprint: #5fd8e8;
  --color-blueprint-soft: rgba(95, 216, 232, 0.16);
  --color-signal: #f0a93e;
  --color-signal-strong: #ffc266;
  --color-teal: #45d1b8;
  --color-teal-soft: rgba(69, 209, 184, 0.16);
  --color-line: rgba(147, 171, 199, 0.24);
  --grid-line: rgba(147, 171, 199, 0.1);
  --color-danger: #ff6b5d;
  --color-danger-soft: rgba(255, 107, 93, 0.16);
  --color-panel-bg: linear-gradient(135deg, #172746 0%, #1c3357 100%);
  --color-panel-fg: #eaf0f7;
  --glow-accent: 0 0 0 1px rgba(95, 216, 232, 0.35), 0 16px 44px rgba(95, 216, 232, 0.16);
  --glow-signal: 0 10px 28px rgba(240, 169, 62, 0.25);

  /* Fixed regardless of theme: amber is always a light-ish fill, so text
     on it always needs a dark ink, never the theme's flipped --color-ink.
     Reused anywhere else a light fill needs guaranteed-dark text (e.g.
     the featured panel's hover state), not just on the signal button. */
  --on-signal: #1a1206;

  --hero-glow: drop-shadow(0 0 44px rgba(95, 216, 232, 0.28)) drop-shadow(0 0 90px rgba(240, 169, 62, 0.12));

  --font-display: 'Space Grotesk', 'Noto Sans HK', sans-serif;
  --font-body: 'Noto Sans HK', 'Space Grotesk', sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-medium: 360ms;
  --duration-slow: 640ms;
  --duration-theme: 320ms;

  --content-max: 72rem;
  --content-narrow: 40rem;

  --focus-ring: 0 0 0 3px var(--color-blueprint-soft), 0 0 0 1.5px var(--color-blueprint);
}

/* ---- Drafting paper (light) ---- */
:root[data-theme='light'] {
  color-scheme: light;

  --color-paper: #eef1f2;
  --color-paper-raised: #ffffff;
  --color-ink: #16232e;
  --color-ink-soft: #4b5c6b;
  --color-blueprint: #2b5b8c;
  --color-blueprint-soft: #dce7ef;
  --color-signal: #f0a93e;
  --color-signal-strong: #a8660f;
  --color-teal: #1f8c7a;
  --color-teal-soft: #dceee9;
  --color-line: #c7d2d8;
  --grid-line: rgba(199, 210, 216, 0.55);
  --color-danger: #b8402a;
  --color-danger-soft: #f6e2dd;
  --color-panel-bg: #16232e;
  --color-panel-fg: #f7fafc;
  --glow-accent: none;
  --glow-signal: none;
  --hero-glow: none;
}
