/* digital-paper design tokens.
   Colour values confirmed against the real Figma export in
   reference/figma-designs/ (exact hex matches on both) and against
   digital-paper's own 03-foundations-and-tokens.md.

   Font roles are this implementation's own resolution of a conflict
   between two source documents (initial-prompt.md vs. the newer
   03-foundations-and-tokens.md), chosen by matching the actual
   rendered mockup rather than either document alone — see
   design-decisions.md. Pending Shannon's confirmation. */

:root {
    /* Paper / ink / rule scale */
    --paper-50: #FDFBF6;
    --paper-100: #F7F2E7;
    --paper-200: #EFE7D6;
    --paper-300: #E3D8C2;
    --ink-900: #1B1915;
    --ink-700: #3E3A33;
    --ink-500: #6B6355;
    --ink-300: #A79C89;
    --rule-200: #D9CFBB;

    /* Accents */
    --accent-sienna: #A4501F;
    --accent-sienna-hover: #8A3F17;
    --accent-moss: #5F6F4A;
    --accent-ochre: #B7791F;
    --accent-brick: #A63A2E;

    /* The real mockup's primary red is this exact value, confirmed
       in the SVG — not the same red as accent-brick above. Used for
       primary CTAs and the "01/02/03" eyebrow numerals. */
    --accent-red: #B5332A;

    /* Semantic tokens */
    --surface-page: var(--paper-50);
    --surface-sheet: var(--paper-50);
    --surface-hero: var(--paper-100);
    --surface-well: var(--paper-300);
    --text-primary: var(--ink-900);
    --text-secondary: var(--ink-700);
    --text-muted: var(--ink-500);
    --border-subtle: var(--rule-200);
    --border-strong: var(--ink-700);
    --interactive-default: var(--accent-sienna);
    --interactive-hover: var(--accent-sienna-hover);
    --status-success: var(--accent-moss);
    --status-warning: var(--accent-ochre);
    --status-danger: var(--accent-brick);

    /* Typography. Mono matches both source documents; display/heading
       and body are this implementation's resolution — see the note
       above. */
    --font-display: 'Rubik Dirt', sans-serif;
    --font-heading: 'Rubik Dirt', sans-serif;
    --font-body: 'Special Elite', serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing scale (base unit 4px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Page gutter — confirmed exactly from the Figma export at each
       breakpoint (the rule beneath the header spans the full content
       width in each one). */
    --gutter: 20px;

    /* Content max-width at the desktop breakpoint: 1440 viewport minus
       a 72px gutter each side. */
    --content-max: 1296px;
}

@media (min-width: 768px) {
    :root {
        --gutter: 40px;
    }
}

@media (min-width: 1200px) {
    :root {
        --gutter: 72px;
    }
}
