/* TUMA website design tokens (owner: site-foundation).
   Light values on :root; dark values for "auto" under prefers-color-scheme and for an
   explicit data-theme="dark". theme.js sets data-theme before the first paint.

   Contrast (WCAG 2.x, computed): every text pair below is >= 4.5:1, UI (focus, control
   borders) >= 3:1, in both themes. See the table in docs/website.md before changing a color.
   --border is decorative (card outlines); form controls use --border-strong. */

@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fredoka-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/fredoka-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/nunito-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/nunito-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/nunito-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;

  /* --- colors: light (soft cream, coral / violet / teal) --- */
  --bg: #fff8f0;
  --bg-soft: #fdeee0;
  --surface: #ffffff;
  --surface-2: #fff2e6;
  --text: #271e3d;
  --text-muted: #5b5270;
  --border: #eedccb;              /* decorative only */
  --border-strong: #8a7f98;       /* form controls, >= 3:1 */
  --brand-1: #b03a25;             /* coral (text-safe, also on --brand-1-soft) */
  --brand-2: #5b3fd6;             /* violet (text-safe, links) */
  --brand-3: #0b7069;             /* teal (text-safe) */
  --accent: #ffb547;              /* warm yellow: fills and decoration, never text */
  --on-brand: #ffffff;            /* text on --grad-cta / --brand-2 fills */
  --on-accent: #271e3d;           /* text on --accent fills */
  --brand-1-soft: #ffe1d6;        /* tinted fills (chips, icon wells) */
  --brand-2-soft: #ebe5ff;
  --brand-3-soft: #d8f3ef;
  --grad-hero: linear-gradient(135deg, #ffe3d3 0%, #f6e6ff 50%, #ede4ff 100%);
  --grad-cta: linear-gradient(120deg, #c9402a 0%, #9a3fae 50%, #6a44e0 100%);
  --focus: #5b3fd6;
  --ok: #1d7346;
  --err: #b8322a;
  --overlay: rgb(20 14 40 / 0.55);

  /* --- radii --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* --- spacing (4px base) --- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 6.5rem;

  /* --- type (fluid between 320 px and 1280 px viewports) --- */
  --font-head: "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --fs-sm: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.06rem + 0.33vw, 1.3rem);
  --fs-xl: clamp(1.3rem, 1.18rem + 0.6vw, 1.65rem);
  --fs-2xl: clamp(1.6rem, 1.38rem + 1.1vw, 2.3rem);
  --fs-3xl: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --fs-4xl: clamp(2.4rem, 1.8rem + 3vw, 4.25rem);
  --lh-tight: 1.15;
  --lh-base: 1.6;

  /* --- shadows --- */
  --sh-1: 0 1px 2px rgb(39 30 61 / 0.06), 0 2px 8px rgb(39 30 61 / 0.06);
  --sh-2: 0 4px 12px rgb(39 30 61 / 0.08), 0 12px 32px rgb(39 30 61 / 0.08);
  --sh-3: 0 10px 24px rgb(39 30 61 / 0.12), 0 28px 64px rgb(91 63 214 / 0.14);

  /* --- motion --- */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 400ms;
  --dur-4: 700ms;

  /* --- layout --- */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 72px;
  --tap: 44px;                    /* minimum touch target */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #13102a;
    --bg-soft: #1a1636;
    --surface: #221c44;
    --surface-2: #2a2452;
    --text: #f7f2ff;
    --text-muted: #bdb4da;
    --border: #3a3368;
    --border-strong: #8279b0;
    --brand-1: #ff8e78;
    --brand-2: #b3a3ff;
    --brand-3: #5ed6c9;
    --accent: #ffc46b;
    --on-brand: #ffffff;
    --on-accent: #13102a;
    --brand-1-soft: #3a2140;
    --brand-2-soft: #2e2860;
    --brand-3-soft: #173a46;
    --grad-hero: linear-gradient(135deg, #2a1f4a 0%, #221a46 50%, #1c2a4a 100%);
    --grad-cta: linear-gradient(120deg, #c9402a 0%, #9139a8 50%, #5f3cd8 100%);
    --focus: #ffc46b;
    --ok: #6edba4;
    --err: #ff9189;
    --overlay: rgb(5 3 15 / 0.7);
    --sh-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.25);
    --sh-2: 0 4px 12px rgb(0 0 0 / 0.35), 0 12px 32px rgb(0 0 0 / 0.3);
    --sh-3: 0 10px 24px rgb(0 0 0 / 0.4), 0 28px 64px rgb(95 60 216 / 0.25);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #13102a;
  --bg-soft: #1a1636;
  --surface: #221c44;
  --surface-2: #2a2452;
  --text: #f7f2ff;
  --text-muted: #bdb4da;
  --border: #3a3368;
  --border-strong: #8279b0;
  --brand-1: #ff8e78;
  --brand-2: #b3a3ff;
  --brand-3: #5ed6c9;
  --accent: #ffc46b;
  --on-brand: #ffffff;
  --on-accent: #13102a;
  --brand-1-soft: #3a2140;
  --brand-2-soft: #2e2860;
  --brand-3-soft: #173a46;
  --grad-hero: linear-gradient(135deg, #2a1f4a 0%, #221a46 50%, #1c2a4a 100%);
  --grad-cta: linear-gradient(120deg, #c9402a 0%, #9139a8 50%, #5f3cd8 100%);
  --focus: #ffc46b;
  --ok: #6edba4;
  --err: #ff9189;
  --overlay: rgb(5 3 15 / 0.7);
  --sh-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 2px 8px rgb(0 0 0 / 0.25);
  --sh-2: 0 4px 12px rgb(0 0 0 / 0.35), 0 12px 32px rgb(0 0 0 / 0.3);
  --sh-3: 0 10px 24px rgb(0 0 0 / 0.4), 0 28px 64px rgb(95 60 216 / 0.25);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
  }
}
