/* Zestacor design tokens.
   Colour block: Brand Color System v1.0, LOCKED (directive §9) — values verbatim, do not edit without owner authorisation.
   Functional accessibility tokens and the type/space/shape system were approved by the owner on 29 Nov 2026 (Phases 5–6 directive §2). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- LOCKED: Brand Color System v1.0 ---- */
:root {
  color-scheme: light;

  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-section-alt: #EEF4F7;

  --color-text-primary: #1F2937;
  --color-text-secondary: #4B5563;

  --color-accent: #84CC16;
  --color-accent-hover: #5E9B12;
  --color-teal: #0F766E;

  --color-border: #D9E2EC;
  --color-button-text: #111827;
  --color-cta-background: #EAF7D5;
  --color-neutral: #E5E7EB;

  --color-footer-background: #EEF4F7;
  --color-footer-text: #1F2937;
}
/* ---- end LOCKED ---- */

/* ---- APPROVED functional accessibility tokens (Phases 5–6 directive §2). Functional additions, not brand colours. ---- */
:root {
  --color-input-border: #4B5563;
  --color-error: #B91C1C;
  --color-error-background: #FEF2F2;
  --color-focus: #0F766E;
}
/* ---- end APPROVED functional ---- */

/* ---- APPROVED (Phases 5–6 §2): type, space, shape, motion ---- */
:root {
  --font-heading: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type: min at 390px viewport, max at 1440px viewport */
  --text-xs: 0.8125rem;                                        /* 13px  annotations, table meta */
  --text-sm: 0.9375rem;                                        /* 15px  small UI */
  --text-body: clamp(1.0625rem, 1.016rem + 0.19vw, 1.125rem);  /* 17 → 18px */
  --text-lead: clamp(1.125rem, 1.03rem + 0.38vw, 1.3125rem);   /* 18 → 21px */
  --text-h4: 1.125rem;                                         /* 18px */
  --text-h3: clamp(1.25rem, 1.2rem + 0.19vw, 1.375rem);        /* 20 → 22px */
  --text-h2: clamp(1.75rem, 1.4rem + 1.14vw, 2.5rem);          /* 28 → 40px */
  --text-h1: clamp(2.25rem, 1.43rem + 3.43vw, 3.75rem);        /* 36 → 60px */

  --leading-body: 1.7;
  --leading-tight: 1.12;
  --leading-heading: 1.2;
  --tracking-display: -0.025em;
  --tracking-heading: -0.015em;

  /* 4px base spacing scale */
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 2.5rem;   /* 40 */
  --space-8: 3rem;     /* 48 */
  --space-9: 4rem;     /* 64 */
  --space-10: 5rem;    /* 80 */
  --space-section: clamp(3.5rem, 2.4rem + 4.57vw, 6.5rem);     /* 56 → 104px */
  --space-gutter: clamp(1.25rem, 0.8rem + 1.9vw, 2.5rem);      /* 20 → 40px */

  --width-container: 80rem;   /* 1280px */
  --width-reading: 47.5rem;   /* 760px  */

  --radius-card: 12px;
  --radius-button: 8px;
  --radius-input: 8px;

  --shadow-raised: 0 1px 2px rgb(17 24 39 / 0.05), 0 8px 24px -12px rgb(17 24 39 / 0.14);

  --focus-ring: 3px solid var(--color-focus);
  --focus-offset: 3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 140ms;
  --duration-slow: 900ms;
}
