/* Design tokens from the Figma library «Novera – Design library» (page 14:2),
   plus the page values that #1 names (journey, phase and card colours).
   Light mode only: the site never switches to dark colours.

   Use tokens, not raw values, in page CSS. Add a token here only when the
   library or #1 defines it (and say so in your report). */

:root {
  color-scheme: light;

  /* ── Fonts ─────────────────────────────────────────── */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* ── Colour primitives ─────────────────────────────── */
  --green-950: #061d1b;
  --green-900: #002f27;
  --green-800: #073f32;
  --green-600: #3e7a56;
  --green-500: #5b8f6e;
  --green-100: #e8f1e9;
  --green-50: #f2f7f5;
  --teal-700: #17576c;
  --blue-700: #175374;
  --blue-600: #2b6e96;
  --blue-100: #e7f2fa;
  --blue-50: #f4faff;
  --gold-700: #8a5a12;
  --gold-600: #b58223;
  --gold-500: #c18a24;
  --gold-300: #d6b173;
  --gold-100: #fbf0da;
  --gold-50: #fff9ed;
  --sand-200: #e6d8c3;
  --violet-600: #5062a5;
  --violet-50: #eeeff9;
  --red-700: #a63d2f;
  --red-50: #fbece8;
  --amber-100: #fff0cd;
  --neutral-0: #ffffff;
  --neutral-25: #f8f7f2;
  --neutral-100: #f0f1f2;
  --neutral-200: #eaecea;
  --neutral-300: #c9cfca;
  --neutral-400: #9aa19d;
  --neutral-600: #5f6b6a;
  --neutral-700: #3e4a58;

  /* ── Semantic colours (library variables) ──────────── */
  --color-bg-page: var(--neutral-0);
  --color-bg-surface: var(--neutral-0);
  --color-bg-canvas: var(--neutral-25); /* beige sections */
  --color-bg-subtle: var(--green-50);
  --color-bg-brand: var(--green-900);
  --color-bg-brand-hover: var(--green-800);
  --color-bg-feature-green: var(--green-800);
  --color-bg-feature-teal: var(--teal-700);
  --color-bg-feature-sand: var(--sand-200);
  --color-bg-notice: var(--gold-50);
  --color-bg-disabled: var(--neutral-100);
  --color-accent-sage: var(--green-100);
  --color-accent-sky: var(--blue-100);
  --color-accent-peach: var(--gold-100);

  --color-text-primary: var(--green-950);
  --color-text-secondary: var(--neutral-700);
  --color-text-muted: var(--neutral-600);
  --color-text-disabled: var(--neutral-400);
  --color-text-on-brand: var(--neutral-0);
  --color-text-link: var(--blue-700);
  --color-text-accent: var(--gold-700); /* gold-600 is 3.4:1 on white, below AA for 13px text */

  --color-icon-default: var(--green-950);
  --color-icon-brand: var(--green-600);
  --color-icon-accent: var(--gold-500);
  --color-icon-on-brand: var(--neutral-0);

  --color-border-default: var(--neutral-200);
  --color-border-strong: var(--neutral-300);
  --color-border-focus: var(--green-600);
  --color-border-accent: var(--gold-300);
  --color-border-notice: var(--gold-300);

  --color-status-success-bg: var(--green-100);
  --color-status-success-text: var(--green-600);
  --color-status-info-bg: var(--blue-100);
  --color-status-info-text: var(--blue-600);
  --color-status-warning-bg: var(--amber-100);
  --color-status-warning-text: var(--gold-700);
  --color-status-error-bg: var(--red-50);
  --color-status-error-text: var(--red-700);
  --color-status-neutral-bg: var(--neutral-100);
  --color-status-neutral-text: var(--neutral-600);
  --color-status-approved-bg: var(--violet-50);
  --color-status-approved-text: var(--violet-600);

  /* ── Colours named in #1 (page values) ─────────────── */
  /* Journey colours: only on journey content. */
  --color-journey-carbon: #05614b;
  --color-journey-enterprise: #115c75;
  --color-journey-public: #6c502b;
  --color-text-gold: #e6c886; /* gold text on journey colours and dark backgrounds */
  --color-text-on-journey: rgba(255, 255, 255, 0.85);
  --color-divider-on-journey: rgba(255, 255, 255, 0.25);

  /* Phase colours: only on process steps. Line/number colour + icon-circle background. */
  --color-phase-green: #2f6b4f;
  --color-phase-green-bg: #e4efe8;
  --color-phase-blue: #2e5e8c;
  --color-phase-blue-bg: #e6eef6;
  --color-phase-amber: #9a6a12;
  --color-phase-amber-bg: #fbf0dc;
  --color-phase-purple: #6b4c8a;
  --color-phase-purple-bg: #eee8f4;

  /* Cards (#1 rule 3). */
  --color-card-border: #d2c8b5;
  --color-card-divider: #e6e1d6;

  /* Info note (component 781:4128). */
  --color-note-icon: #3e4a47;
  --color-note-text: #5b6661;

  /* Wayfinding band (617:858). */
  --color-wayfinding-bg: #f3f7f3;
  --color-wayfinding-text: #0d211c;

  /* ── Radii ─────────────────────────────────────────── */
  --radius-sm: 4px; /* badges */
  --radius-md: 6px; /* buttons, fields, notices */
  --radius-lg: 10px;
  --radius-xl: 14px; /* panels */
  --radius-full: 999px; /* tags, chips, status, circles */
  --radius-card: 12px; /* cards (ruling 4 on #1) */
  --radius-card-journey: 16px; /* journey cards */

  /* ── Shadows ───────────────────────────────────────── */
  --shadow-card: 0 10px 24px -4px rgba(0, 47, 39, 0.09), 0 1px 2px rgba(0, 47, 39, 0.06); /* soft shadow */
  --shadow-card-flat: 0 2px 8px 0 rgba(5, 28, 26, 0.06); /* library Shadow/Card */
  --shadow-focus: 0 0 0 3px rgba(62, 122, 86, 0.35); /* library Focus/Ring */

  /* ── Spacing (4/8 scale) ───────────────────────────── */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* ── Layout ────────────────────────────────────────── */
  --content-width: 1200px; /* 1440 frame minus 2 × 120 */
  --gutter: 20px; /* side padding at phone width */
  --section-space: 48px; /* section padding top and bottom */
  --header-height: 64px;

  /* ── Text styles (library) ─────────────────────────── */
  /* Each style is a `font` shorthand plus a letter-spacing. Headings scale
     fluidly from the mobile size at 390 px to the desktop size at 1440 px. */
  /* Display 72 → Mobile Display 40 (M01 hero); H1 56 → 40; H2 46 → 30 (M07 pattern 5). */
  --size-display: clamp(40px, 28.11px + 3.048vw, 72px);
  --size-h1: clamp(40px, 34.06px + 1.524vw, 56px);
  --size-h2: clamp(30px, 24.06px + 1.524vw, 46px);
  --text-display: 400 var(--size-display) / 1.08 var(--font-serif);
  --tracking-display: -0.02em;
  --text-h1: 400 var(--size-h1) / 1.12 var(--font-serif);
  --tracking-h1: -0.02em;
  --text-h2: 400 var(--size-h2) / 1.15 var(--font-serif);
  --tracking-h2: -0.015em;
  --text-h3: 400 26px / 1.2 var(--font-serif);
  --tracking-h3: -0.01em;
  --text-h4: 400 20px / 1.25 var(--font-serif);
  --tracking-h4: -0.005em;
  --text-kpi: 400 30px / 1.1 var(--font-serif);
  --tracking-kpi: -0.01em;

  --text-lead: 400 19px / 1.5 var(--font-sans);
  --text-body: 400 16px / 1.5 var(--font-sans);
  --text-body-strong: 500 16px / 1.5 var(--font-sans);
  --text-small: 400 14px / 1.45 var(--font-sans);
  --text-small-strong: 500 14px / 1.45 var(--font-sans);
  --text-caption: 400 12px / 1.4 var(--font-sans);
  --text-button: 500 16px / 1.25 var(--font-sans);
  --text-button-small: 500 14px / 1.25 var(--font-sans);
  --text-label: 500 13px / 1.3 var(--font-sans);
  --text-table-header: 600 13px / 1.3 var(--font-sans); /* uppercase in use */
  --text-status: 500 12px / 1.2 var(--font-sans);
  --text-eyebrow: 500 13px / 1.3 var(--font-sans); /* uppercase */
  --tracking-eyebrow: 0.22em;
  --text-badge: 500 11px / 1.2 var(--font-sans); /* uppercase */
  --tracking-badge: 0.1em;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-space: 64px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px; /* at 1440 the content starts at x = 120, as in Figma */
    --section-space: 72px;
    --header-height: 72px;
  }
}
