/* DMC design tokens, v1.0 (approved at Gate 4, 10 October 2026).
   Source of truth for colour, type, space, shape and motion. Components use roles, never raw brand values.
   Brand values: DMC Brand Guidelines v1.0. Derived colours approved as D35 (Brand Guidelines addendum, web colours).
   theme.json mirrors the palette and type scale for the editor; change both together (tools/check-tokens.mjs compares them). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-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: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-wght-italic.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;

  /* ---- Brand palette (raw values; do not use directly in components) ---- */
  --dmc-navy: #00152E;     /* Deep Navy, primary */
  --dmc-cyan: #18D9E8;     /* Cyan / Aqua, primary; dark backgrounds only (1.7:1 on white) */
  --dmc-violet: #7627D8;   /* Royal Violet, primary; 6.9:1 on white, 2.7:1 on navy */
  --dmc-fuchsia: #F21BCB;  /* accent only: small details, never text on white, never large areas (D26) */
  --dmc-lime: #A8E82C;     /* accent only: as above */
  --dmc-gold: #F5B52B;     /* accent only: as above */
  --dmc-white: #FFFFFF;
  --dmc-mist: #F4F7FB;     /* page background */

  /* ---- Derived colours (approved, D35) ---- */
  --dmc-navy-2: #0A2547;       /* raised surface on navy */
  --dmc-violet-ink: #6420BC;   /* violet hover / pressed; 8.5:1 on white */
  --dmc-violet-soft: #B48CF5;  /* violet on navy for links and highlights; 7.0:1 */
  --dmc-teal-ink: #0B6E78;     /* the cyan family on light backgrounds; 6.0:1 on white, 5.6:1 on mist */
  --dmc-slate: #3B4A63;        /* secondary text on light; 9.0:1 on white */
  --dmc-haze: #A9B9D2;         /* secondary text on navy; 9.2:1 */
  --dmc-ice: #EEF4FF;          /* text on navy */
  --dmc-rule: #DCE1EB;         /* decorative hairlines on light (1.3:1: never the only boundary of a control) */
  --dmc-field: #8592A8;        /* form-control borders; 3.2:1 on white, meets the 3:1 rule for controls */

  /* ---- Colour roles ---- */
  --c-bg: var(--dmc-mist);
  --c-surface: var(--dmc-white);
  --c-text: var(--dmc-navy);
  --c-text-2: var(--dmc-slate);
  --c-rule: var(--dmc-rule);
  --c-field-border: var(--dmc-field);
  --c-action: var(--dmc-violet);
  --c-action-hover: var(--dmc-violet-ink);
  --c-on-action: var(--dmc-white);
  --c-label: var(--dmc-teal-ink);
  --c-focus: var(--dmc-violet);
  --c-stage: var(--dmc-navy);
  --c-stage-2: var(--dmc-navy-2);
  --c-on-stage: var(--dmc-ice);
  --c-on-stage-2: var(--dmc-haze);
  --c-stage-accent: var(--dmc-cyan);
  --c-stage-link: var(--dmc-violet-soft);
  --c-error: #B3261E;          /* 6.5:1 on white */
  --c-success: #1E7A46;        /* 5.4:1 on white */
  --gradient-brand: linear-gradient(90deg, var(--dmc-cyan), var(--dmc-violet) 35%, var(--dmc-fuchsia) 60%, var(--dmc-lime) 82%, var(--dmc-gold));
  /* The brand gradient is for thin ribbons and rules only on the web, never behind text or as a large area (D26). */

  /* ---- Type: Montserrat only (approved). Sentence case for headings; caps only for short labels. ---- */
  --font: "Montserrat", "Segoe UI", Arial, system-ui, sans-serif;
  --fw-body: 400;
  --fw-medium: 500;
  --fw-heading: 650;           /* variable axis between SemiBold 600 and Bold 700 */
  --fw-display: 700;
  --label-tracking: 0.15em;
  --step--2: 0.75rem;
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.1875rem);  /* body: 16px on phones to 19px on very wide screens */
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);
  --step-5: clamp(2.8rem, 1.6rem + 5.6vw, 7rem);
  --step-6: clamp(3rem, 1.2rem + 8.6vw, 9rem);
  --lh-body: 1.6;
  --lh-heading: 1.04;
  --measure: 65ch;

  /* ---- Space (4 px base) ---- */
  --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;
  --section: clamp(80px, 11vw, 160px);
  /* Full-width layout (D31): no fixed-width container. Content spans the screen inside fluid side margins
     on a 12-column grid; running text keeps a readable measure inside its columns. */
  --gutter: clamp(20px, 5vw, 112px);
  --col-gap: clamp(16px, 2vw, 40px);

  /* ---- Shape and depth (Prism: square corners, cut top-right corners) ---- */
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-pill: 999px;
  --chamfer: 18px;
  --shadow-float: 0 16px 40px rgb(0 21 46 / 0.18);
  --tap: 48px;                 /* minimum touch target */

  /* ---- Motion (README-motion.md; D28 native engine, D36 refined timings) ---- */
  --m-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --m-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --m-fast: 200ms;
  --m-med: 450ms;
  --m-dur: 720ms;
  --m-dur-quick: 320ms;
  --m-rise: 1.5rem;
}
