/* ============================================================
   MMM Nexus Group — design tokens
   Single source of truth for colour, type and spacing.
   ============================================================ */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* ---- Brand palette ---- */
  --navy: #0A2540;        /* Midnight Navy — dominant */
  --ivory: #F6F4EF;       /* Warm Ivory — dominant */
  --stone: #B7B2A4;       /* Warm Stone — selective: rules, logo, text on navy */
  --silver: #8E949C;      /* Architectural Silver — selective: rules, fine detail */
  --charcoal: #2B2B2B;    /* body text */

  /* ---- Derived tones (tints and shades of the five above) ---- */
  --navy-deep: #071A2E;       /* footer, pressed states */
  --navy-soft: #1B3552;       /* hover on navy */
  --ivory-deep: #ECE9E1;      /* alternate section ground */
  --paper: #FCFBF8;           /* form fields, raised surfaces */
  --text: var(--charcoal);
  --text-muted: #5C5F63;      /* 6.1:1 on ivory */
  --text-on-navy: var(--ivory);
  --text-on-navy-muted: #C9C5BA; /* 9.5:1 on navy */
  --rule: #D9D5CA;            /* hairlines on ivory */
  --rule-strong: var(--stone);
  --rule-on-navy: rgba(246, 244, 239, 0.16);
  --focus: #1F5FA8;           /* visible focus ring on ivory */
  --focus-on-navy: #F6F4EF;

  /* ---- Typography ---- */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Fluid editorial scale (min at 360px, max at 1440px viewport) */
  --text-display: clamp(2.75rem, 1.6rem + 5.1vw, 6rem);     /* 44 → 96  hero */
  --text-h1: clamp(2.5rem, 1.8rem + 3.1vw, 4.5rem);          /* 40 → 72  page titles */
  --text-h2: clamp(2rem, 1.55rem + 2vw, 3.25rem);            /* 32 → 52  section titles */
  --text-h3: clamp(1.5rem, 1.33rem + 0.75vw, 2rem);          /* 24 → 32 */
  --text-h4: clamp(1.25rem, 1.2rem + 0.25vw, 1.4375rem);     /* 20 → 23 */
  --text-lead: clamp(1.125rem, 1.07rem + 0.25vw, 1.3125rem); /* 18 → 21 */
  --text-body: 1.0625rem;                                    /* 17 */
  --text-small: 0.9375rem;                                   /* 15 */
  --text-caption: 0.8125rem;                                 /* 13 */
  --text-label: 0.75rem;                                     /* 12, uppercase tracked */

  --leading-display: 1.02;
  --leading-heading: 1.1;
  --leading-body: 1.7;
  --tracking-display: -0.015em;
  --tracking-label: 0.18em;
  --measure: 62ch;

  /* ---- Spacing (8px 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;
  --space-9: 6rem;     --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6.5vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --container: 1280px;
  --container-narrow: 860px;

  /* ---- Form ---- */
  --radius: 0;                 /* architectural: square corners throughout */
  --hairline: 1px;
  --nav-height: 84px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 180ms;
  --duration: 320ms;
  --duration-slow: 700ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration: 0ms; --duration-slow: 0ms; }
}
