/* Design tokens. Two layers: --brand-* (palette, fixed names) and
   --theme-* (semantic layer, what components read). Layer order is
   declared once here; every other stylesheet puts its rules in one
   of these layers. */

@layer reset, tokens, base, components, pages, utilities;

@layer tokens {
  :root {
    --brand-color-primary: #163f40;
    --brand-color-secondary: #586656;
    --brand-color-accent: #7f9c95;
    --brand-color-contrast: #fff;
    --brand-color-dark: #262b25;
    --brand-color-light: #e5e5e5;
    --brand-border-radius: 0;

    --theme-color-background: #fff;
    --theme-color-surface: color-mix(in srgb, var(--brand-color-light) 55%, #fff);
    --theme-color-border: color-mix(in srgb, var(--brand-color-dark) 14%, #fff);
    --theme-color-text: var(--brand-color-dark);
    --theme-color-text-muted: color-mix(in srgb, var(--brand-color-dark) 65%, #fff);
    --theme-color-primary: var(--brand-color-primary);
    --theme-color-primary-foreground: var(--brand-color-contrast);
    --theme-color-primary-hover: color-mix(in srgb, var(--brand-color-primary) 82%, #fff);
    --theme-color-secondary: var(--brand-color-secondary);
    --theme-color-accent: var(--brand-color-accent);
    --theme-color-contrast: var(--brand-color-contrast);
    --theme-color-inverse: var(--brand-color-primary);
    --theme-color-inverse-soft: color-mix(in srgb, var(--brand-color-primary) 76%, #fff);
    --theme-color-inverse-text: var(--brand-color-contrast);
    --theme-color-inverse-muted: color-mix(
      in srgb,
      var(--brand-color-contrast) 70%,
      var(--brand-color-primary)
    );

    --theme-font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --theme-font-heading: var(--theme-font-body);
    --theme-font-size-sm: 0.875rem;
    --theme-font-size-base: clamp(0.9375rem, 0.91rem + 0.15vw, 1rem);
    --theme-font-size-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
    --theme-font-size-h3: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
    --theme-font-size-h2: clamp(1.45rem, 1.2rem + 1.1vw, 2.125rem);
    --theme-font-size-h1: clamp(1.8rem, 1.4rem + 2.2vw, 3.25rem);

    --theme-radius-sm: var(--brand-border-radius);
    --theme-radius-md: var(--brand-border-radius);
    --theme-radius-lg: var(--brand-border-radius);
    --theme-radius-pill: var(--brand-border-radius);

    --theme-ease-signature: cubic-bezier(0.22, 1, 0.36, 1);
    --theme-duration: 0.35s;

    --theme-container: 105rem;
    --theme-container-narrow: 48rem;
    --theme-gutter: clamp(1rem, 4vw, 6rem);
    --theme-header-height: 5rem;

    --theme-space-2xs: 0.5rem;
    --theme-space-xs: clamp(0.75rem, 1.2vw, 1rem);
    --theme-space-sm: clamp(1rem, 2vw, 1.5rem);
    --theme-space-md: clamp(1.5rem, 3vw, 2.5rem);
    --theme-space-lg: clamp(2.5rem, 5vw, 4.5rem);
    --theme-space-xl: clamp(3.5rem, 8vw, 7rem);

    --theme-shadow-card: 0 1px 2px rgb(20 35 31 / 6%), 0 8px 24px rgb(20 35 31 / 8%);
  }
}
