@layer ea-reset, ea-tokens, ea-base, ea-components, ea-utilities;

@layer ea-tokens {
  :root {
    --ea-color-paper: #F5F0E7;
    --ea-color-porcelain: #FFFDFC;
    --ea-color-ink: #24211D;
    --ea-color-cinnabar: #A44A3F;
    --ea-color-cinnabar-hover: #8F4037;
    --ea-color-stone: #6F6961;
    --ea-color-muted: #8A837A;
    --ea-color-border: #D8D0C4;
    --ea-color-border-strong: #BEB4A6;
    --ea-color-surface-subtle: #EFE8DD;
    --ea-color-overlay: rgb(36 33 29 / 58%);
    --ea-color-success: #356A4B;
    --ea-color-warning: #8A5A16;
    --ea-color-error: #9B2C2C;
    --ea-five-wood: #4E7355;
    --ea-five-fire: #A44A3F;
    --ea-five-earth: #8A6D43;
    --ea-five-metal: #6F7478;
    --ea-five-water: #3F6074;
    --ea-font-display: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
    --ea-font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
    --ea-font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ea-text-caption: 0.75rem;
    --ea-text-body-sm: 0.875rem;
    --ea-text-body: 1rem;
    --ea-text-body-lg: 1.125rem;
    --ea-text-heading-4: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
    --ea-text-heading-3: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem);
    --ea-text-heading-2: clamp(1.75rem, 1.45rem + 1vw, 2.5rem);
    --ea-text-heading-1: clamp(2.25rem, 1.7rem + 2vw, 3.75rem);
    --ea-text-display: clamp(2.75rem, 2rem + 3vw, 5rem);
    --ea-leading-tight: 1.15;
    --ea-leading-heading: 1.25;
    --ea-leading-body: 1.65;
    --ea-leading-relaxed: 1.8;
    --ea-space-0: 0;
    --ea-space-1: 0.25rem;
    --ea-space-2: 0.5rem;
    --ea-space-3: 0.75rem;
    --ea-space-4: 1rem;
    --ea-space-5: 1.5rem;
    --ea-space-6: 2rem;
    --ea-space-7: 3rem;
    --ea-space-8: 4rem;
    --ea-space-9: 6rem;
    --ea-space-10: 8rem;
    --ea-content-narrow: 42rem;
    --ea-content-reading: 48rem;
    --ea-content-default: 72rem;
    --ea-content-wide: 88rem;
    --ea-gutter-min: 1rem;
    --ea-gutter-fluid: clamp(1rem, 3vw, 2.5rem);
    --ea-section-space: clamp(4rem, 8vw, 8rem);
    --ea-border-width: 1px;
    --ea-border-width-strong: 2px;
    --ea-radius-sm: 0.25rem;
    --ea-radius-md: 0.5rem;
    --ea-radius-lg: 0.75rem;
    --ea-radius-pill: 999px;
    --ea-shadow-none: none;
    --ea-shadow-sm: 0 1px 2px rgb(36 33 29 / 8%);
    --ea-shadow-md: 0 8px 24px rgb(36 33 29 / 10%);
    --ea-focus-color: #A44A3F;
    --ea-focus-width: 2px;
    --ea-focus-offset: 3px;
    --ea-hit-target-min: 44px;
    --ea-duration-fast: 120ms;
    --ea-duration-normal: 200ms;
    --ea-duration-slow: 300ms;
    --ea-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  }
}
