/* ==========================================================================
   Go as Guest — design tokens
   Source of truth: Go as Guest Brand Book v1.0 (03/11/2026).
   If the Brand Book changes, update THIS file first; everything else reads
   from these custom properties.
   ========================================================================== */

/* --- Typography (self-hosted, SIL Open Font License 1.1) ----------------- */
@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Official palette ------------------------------------------------- */
  --gag-blue: #1925db;      /* Guest Blue — primary recognition colour, digital anchor */
  --gag-coral: #ff694a;     /* Coral — warm, expressive accent */
  --gag-yellow: #ffd166;    /* Guest Yellow — underline, highlight. Never text on light bg */
  --gag-lavender: #b388ff;  /* Lavender — community / secondary accent */
  --gag-canvas: #f3efe7;    /* Warm Canvas — breathing space, editorial contrast */
  --gag-black: #171717;     /* Almost Black — text, dark neutral */
  --gag-white: #ffffff;
  --gag-rule: #e5e0d6;      /* derived from Canvas for hairlines; not a brand colour */

  /* Contrast rules (WCAG, from the Brand Book):
     white on blue 9.0 ✓ · yellow on blue 6.3 ✓ · black on coral/lavender/yellow ✓
     white on coral/lavender ✗ · coral/lavender/yellow text on light ✗ · black on blue ✗ */

  /* --- Font stacks ------------------------------------------------------ */
  --font-display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* --- Fluid type scale (mobile-first, clamps to desktop) ---------------- */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.4vw, 4.8rem);
  --step-5: clamp(2.8rem, 1.8rem + 5vw, 7rem);
  --step-6: clamp(3.6rem, 1.6rem + 9.5vw, 12rem);

  /* --- Space ------------------------------------------------------------ */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --space-2xl: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --max-width: 84rem;

  /* --- Shape -------------------------------------------------------------
     The brand avoids soft "app" cards. Corners are square by default;
     irregularity comes from Guest Frames (clip-paths), not radius. */
  --radius-0: 0;
  --radius-pill: 999px; /* buttons only */
  --border-bold: 3px;

  /* --- Motion ------------------------------------------------------------ */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 160ms;
  --dur-med: 420ms;

  /* --- Contextual roles (overridden per section via .theme-* classes) ---- */
  --bg: var(--gag-canvas);
  --fg: var(--gag-black);
  --accent: var(--gag-blue);
  --focus: var(--gag-blue);
}

/* Section themes. Each one only uses combinations the Brand Book approves. */
.theme-canvas   { --bg: var(--gag-canvas);   --fg: var(--gag-black); --accent: var(--gag-blue);   --focus: var(--gag-blue); }
.theme-white    { --bg: var(--gag-white);    --fg: var(--gag-black); --accent: var(--gag-blue);   --focus: var(--gag-blue); }
.theme-blue     { --bg: var(--gag-blue);     --fg: var(--gag-white); --accent: var(--gag-yellow); --focus: var(--gag-yellow); }
.theme-coral    { --bg: var(--gag-coral);    --fg: var(--gag-black); --accent: var(--gag-black);  --focus: var(--gag-black); }
.theme-yellow   { --bg: var(--gag-yellow);   --fg: var(--gag-black); --accent: var(--gag-blue);   --focus: var(--gag-blue); }
.theme-lavender { --bg: var(--gag-lavender); --fg: var(--gag-black); --accent: var(--gag-black);  --focus: var(--gag-black); }
.theme-black    { --bg: var(--gag-black);    --fg: var(--gag-canvas); --accent: var(--gag-yellow); --focus: var(--gag-yellow); }
