/* Layer declaration — establishes cascade order for the entire document */
@layer reset, tokens, base, components;

@layer tokens {
  :root {
    /* Fluid type scale — clamp(min, viewport-relative, max)
       Targets match the design brief exactly at full desktop width */
    --text-xl: clamp(1.75rem, 4vw, 2.5rem);
    --text-lg: clamp(1.125rem, 2.5vw, 1.5rem);
    --text-md: clamp(0.9375rem, 1.5vw, 1rem);
    --text-sm: clamp(0.8125rem, 1.2vw, 0.875rem);
    --text-xs: clamp(0.6875rem, 1vw, 0.75rem);

    /* Spacing — base 4px unit, expressed in rem */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --max-width: 720px;
    --padding-inline: var(--space-6);

    /* Light mode */
    --color-bg: #FAFAF9;
    --color-surface: #FFFFFF;
    --color-text-primary: #1A1A18;
    --color-text-muted: #6B6B67;
    --color-border: #E5E4DF;
    --color-accent: #2D5BE3;

    /* Steel — muted blue-gray, used for headshot bg and tag chips */
    --color-steel: #C2D3DF;
    --color-steel-subtle: #EBF1F5;
    --color-steel-border: #AEBFCC;
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg: #111110;
      --color-surface: #1C1C1A;
      --color-text-primary: #F0EFEA;
      --color-text-muted: #8A8A85;
      --color-border: #2A2A28;
      --color-accent: #6B8EF5;

      /* Steel — dark mode equivalents */
      --color-steel: #1E2D36;
      --color-steel-subtle: #1A2830;
      --color-steel-border: #2A3C48;
    }
  }
}
