/* ==========================================================================
   TDT Frame · shared design tokens
   One file, loaded first by every TDT site. Values come from the TDT brand
   guidelines (2026). Each site re-maps the semantic tokens at the bottom
   (--surface, --accent-*, etc.) in its own site.css.
   ========================================================================== */

@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Shared neutral foundation (guideline p.26) ---------------------- */
  --white: #ffffff;
  --light-grey: #f2f2f2;
  --dark-grey: #595959;
  --black: #000000;
  /* Working shades between the approved neutrals, for dark UI surfaces and
     hairlines. Never used as a brand colour on their own. */
  --black-900: #0a0a0b;
  --black-800: #121214;
  --black-700: #1b1b1e;
  --black-600: #2a2a2e;
  --grey-300: #bdbdbd;
  --grey-200: #dcdcdc;

  /* ---- TDT Plays (p.27) ------------------------------------------------- */
  --plays-deep-blue: #0316b3;
  --plays-royal-blue: #0646fe;
  --plays-electric-blue: #1170fe;
  --plays-sky-blue: #44bafe;
  --plays-deep-gold: #e4a812;
  --plays-light-gold: #ffd86f;
  --plays-grad-deep: linear-gradient(90deg, #0316b3, #0646fe);
  --plays-grad-bright: linear-gradient(90deg, #1170fe, #44bafe);
  --plays-grad-gold: linear-gradient(90deg, #e4a812, #ffd86f);

  /* ---- TDT Talks (p.28) ------------------------------------------------- */
  --talks-deep-red: #d31e03;
  --talks-orange: #fa8306;
  --talks-golden-yellow: #fec01f;
  --talks-grad-hot: linear-gradient(90deg, #d31e03, #fa8306);
  --talks-grad-warm: linear-gradient(90deg, #fa8306, #fec01f);

  /* ---- TDT Reviews (p.29) ----------------------------------------------- */
  --reviews-deep-green: #0f4c30;
  --reviews-emerald: #12a66a;
  --reviews-fresh-green: #20c982;
  --reviews-grad-deep: linear-gradient(90deg, #0f4c30, #12a66a);
  --reviews-grad-fresh: linear-gradient(90deg, #12a66a, #20c982);

  /* ---- TeoDaTank (derived from the approved social mark + logo) --------- */
  --teo-night: #07133b;
  --teo-shield: #0057ba;
  --teo-sky: #44bafe;
  --teo-gold: #e4a812;
  --teo-gold-light: #ffe46c;
  --teo-shield-gold: #ffca3a;
  --teo-ice: #f6f7ff;

  /* ---- Type ------------------------------------------------------------- */
  --font-display: "Switzer", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Fluid scale (min @ 360px → max @ 1440px) */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);   /* 13 → 14 */
  --step-0: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);        /* 16 → 17 */
  --step-1: clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);    /* 18 → 21 */
  --step-2: clamp(1.375rem, 1.26rem + 0.56vw, 1.75rem);      /* 22 → 28 */
  --step-3: clamp(1.75rem, 1.53rem + 1.1vw, 2.5rem);         /* 28 → 40 */
  --step-4: clamp(2.25rem, 1.83rem + 2.08vw, 3.75rem);       /* 36 → 60 */
  --step-5: clamp(2.75rem, 2.04rem + 3.5vw, 5.5rem);         /* 44 → 88 */
  --step-6: clamp(3.25rem, 2.1rem + 5.75vw, 8rem);           /* 52 → 128 */

  --leading-tight: 0.95;
  --leading-snug: 1.12;
  --leading-body: 1.6;
  --tracking-label: 0.14em;
  --tracking-display: -0.025em;

  /* ---- Space (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: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --page-max: 1320px;
  --text-max: 68ch;

  /* ---- Shape ------------------------------------------------------------ */
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;
  /* The TDT slant: the angle used for cut corners and panel edges, taken
     from the brand's geometric panels. */
  --slant: 12deg;
  --cut: 18px;

  /* ---- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms;
  --dur-2: 260ms;
  --dur-3: 520ms;
  --dur-4: 900ms;

  /* ---- Semantic defaults (sites override these) ------------------------- */
  --surface: var(--white);
  --surface-2: var(--light-grey);
  --surface-3: var(--grey-200);
  --on-surface: var(--black);
  --on-surface-muted: var(--dark-grey);
  --line: rgb(0 0 0 / 0.12);
  --accent-1: var(--black);
  --accent-2: var(--dark-grey);
  --accent-3: var(--dark-grey);
  --on-accent: var(--white);
  --accent-grad: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  --focus: var(--accent-2);
  --rail-h: 44px;
}

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