@layer tokens {
  :root {
    /* Editorial & Tactile Palette (Light) */
    --bg-canvas: #FAF7F2;
    --bg-surface: #F2EDE4;
    --bg-surface-elevated: #FFFDF9;
    --bg-surface-tint: #EBE4D8;
    --header-bg: rgba(250, 247, 242, 0.94);
    --nav-bg: rgba(250, 247, 242, 0.96);
    --text-ink: #1F1E1B;
    --text-muted: #635E55;
    --btn-ink: #FFFDF9;
    --accent-primary: #9E4C2E;
    --accent-primary-hover: #853D23;
    --accent-primary-soft: rgba(158, 76, 46, 0.1);
    --accent-secondary: #4A6B5D;
    --accent-secondary-hover: #3B574B;
    --accent-secondary-soft: rgba(74, 107, 93, 0.12);
    --accent-amber: #7D501A;
    --accent-amber-soft: rgba(125, 80, 26, 0.12);
    --border-hairline: rgba(31, 30, 27, 0.14);
    --border-control: rgba(31, 30, 27, 0.45);
    --border-strong: rgba(31, 30, 27, 0.5);

    /* Typography */
    --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Fluid Type Scale */
    --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
    --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --text-xl: clamp(1.375rem, 1.2rem + 0.85vw, 1.875rem);
    --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);

    /* Spacing Scale */
    --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;

    /* Radii & Motion */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 160ms;
    --duration-base: 260ms;
    --duration-slow: 420ms;

    /* Layout Constraints */
    --container-max: 74rem;
    --reading-max: 46rem;
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg-canvas: #181714;
    --bg-surface: #211F1B;
    --bg-surface-elevated: #282520;
    --bg-surface-tint: #2F2B25;
    --header-bg: rgba(24, 23, 20, 0.94);
    --nav-bg: rgba(24, 23, 20, 0.96);
    --text-ink: #F2ECE1;
    --text-muted: #BDB5A7;
    --btn-ink: #181714;
    --accent-primary: #E08766;
    --accent-primary-hover: #EA9D80;
    --accent-primary-soft: rgba(224, 135, 102, 0.14);
    --accent-secondary: #81B39B;
    --accent-secondary-hover: #97C4AE;
    --accent-secondary-soft: rgba(129, 179, 155, 0.15);
    --accent-amber: #E0AB5D;
    --accent-amber-soft: rgba(224, 171, 93, 0.15);
    --border-hairline: rgba(242, 236, 225, 0.15);
    --border-control: rgba(242, 236, 225, 0.38);
    --border-strong: rgba(242, 236, 225, 0.5);
  }
}
