@layer reset, tokens, base, layout, components;

@layer tokens {
  :root {
    /* Surfaces: Architectural Warm Alabaster and Obsidian Charcoal */
    --bg-canvas: #f7f5f0;
    --bg-surface: #ffffff;
    --bg-surface-muted: #efece4;
    --bg-ink: #111214;
    --bg-ink-elevated: #1a1c20;

    /* Ink Hierarchy */
    --text-primary: #111214;
    --text-secondary: #43474d;
    --text-muted: #5d6269;
    --text-on-dark: #f4f2ec;
    --text-on-dark-muted: #a6aab0;

    /* Signature Accent: Signal Vermilion and Deep Sage */
    --accent: #c43e1d;
    --accent-hover: #9f2f13;
    --accent-text: #a83316;
    --accent-subtle: rgba(196, 62, 29, 0.08);
    --accent-on-dark: #e66141;
    --sage: #1d4b3b;
    --sage-subtle: rgba(29, 75, 59, 0.09);

    /* Borders & Hairlines */
    --border: #dcd7cc;
    --border-strong: #b4aea0;
    --border-dark: #2a2d33;
    --border-dark-strong: #3e434b;

    /* Typography */
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Fluid Type Scale (max <= 2.5 * min for WCAG 200% zoom compliance) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.65vw, 1.625rem);
    --text-2xl: clamp(1.45rem, 1.15rem + 1.25vw, 2.25rem);
    --text-3xl: clamp(1.75rem, 1.25rem + 1.8vw, 2.9rem);
    --text-display: clamp(2rem, 1.35rem + 2.3vw, 3.65rem);

    /* Spacing & Layout */
    --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: 4.5rem;
    --space-9: clamp(3.5rem, 2.75rem + 3.5vw, 6.75rem);

    --container-max: 84rem;
    --container-narrow: 54rem;
    --gutter: clamp(1.25rem, 0.8rem + 2vw, 3rem);
    --header-height: 4.35rem;

    /* Geometry & Motion */
    --radius-sharp: 2px;
    --radius-sm: 3px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 180ms;
    --duration-base: 320ms;
  }
}
