/* Design tokens for Breevast.

   Two layers, two namespaces (see STARTER.md):
   1. --brand-*: the fixed palette and brand values, role-named.
   2. --theme-*: the semantic layer components read.

   Sizes come from the 1440px design artboard. Fluid values use
   clamp(min, vw, max) where the vw part equals the design value at
   1440px (px / 14.4), so the layout scales with the viewport and
   stops growing a little above the artboard width. */

:root {
  /* Brand palette */
  --brand-color-primary: #c8833a;
  --brand-color-secondary: #dce3e0;
  --brand-color-accent: #b1740f;
  --brand-color-contrast: #000;
  --brand-color-dark: #061922;
  --brand-color-light: #f4edf0;
  --brand-color-slate: #2f4249;
  --brand-color-grey: #abaeae;

  /* Brand fonts: licensed families first, self-hosted stand-ins after */
  --brand-font-sans: baikal, inter, ui-sans-serif, system-ui, sans-serif;
  --brand-font-serif: 'Season Serif', newsreader, ui-serif, georgia, serif;

  /* Semantic colors */
  --theme-color-background: #fff;
  --theme-color-surface: var(--brand-color-light);
  --theme-color-surface-alt: var(--brand-color-secondary);
  --theme-color-inverse: var(--brand-color-dark);
  --theme-color-text: var(--brand-color-contrast);
  --theme-color-text-inverse: #fff;
  --theme-color-text-muted: #6b6b6b;
  --theme-color-text-subtle: var(--brand-color-grey);
  --theme-color-heading-alt: var(--brand-color-slate);
  --theme-color-border: #000;
  --theme-color-border-soft: #c9c4c6;
  --theme-color-border-inverse: rgb(255 255 255 / 45%);
  --theme-color-primary: var(--brand-color-primary);
  --theme-color-accent: var(--brand-color-accent);
  --theme-color-secondary: var(--brand-color-secondary);
  --theme-color-contrast: var(--brand-color-contrast);

  /* Type families */
  --theme-font-body: var(--brand-font-sans);
  --theme-font-heading: var(--brand-font-sans);
  --theme-font-quote: var(--brand-font-serif);

  /* Type scale (comment = design px at 1440) */
  --theme-fs-2xs: 0.625rem; /* 10 */
  --theme-fs-xs: 0.75rem; /* 12 */
  --theme-fs-sm: clamp(0.875rem, 1.042vw, 1rem); /* 15 */
  --theme-fs-base: clamp(0.9375rem, 1.181vw, 1.125rem); /* 17 */
  --theme-fs-md: clamp(1rem, 1.25vw, 1.1875rem); /* 18 */
  --theme-fs-lg: clamp(1.0625rem, 1.458vw, 1.375rem); /* 21 */
  --theme-fs-xl: clamp(1.1875rem, 1.736vw, 1.625rem); /* 25 */
  --theme-fs-2xl: clamp(1.25rem, 1.944vw, 1.875rem); /* 28 */
  --theme-fs-3xl: clamp(1.5rem, 2.361vw, 2.25rem); /* 34 */
  --theme-fs-4xl: clamp(1.5rem, 2.5vw, 2.375rem); /* 36 */
  --theme-fs-5xl: clamp(1.625rem, 2.917vw, 2.75rem); /* 42 */
  --theme-fs-6xl: clamp(1.75rem, 3.125vw, 3rem); /* 45 */
  --theme-fs-7xl: clamp(1.875rem, 3.472vw, 3.25rem); /* 50 */
  --theme-fs-8xl: clamp(2rem, 3.958vw, 3.7rem); /* 57 */
  --theme-fs-9xl: clamp(2.125rem, 4.167vw, 3.875rem); /* 60 */
  --theme-fs-10xl: clamp(2.5rem, 5.069vw, 4.7rem); /* 73 */
  --theme-fs-11xl: clamp(2.75rem, 5.139vw, 4.75rem); /* 74 */

  --theme-lh-tight: 1.1;
  --theme-lh-heading: 1.1;
  --theme-lh-snug: 1.36;
  --theme-lh-body: 1.47;
  --theme-lh-relaxed: 1.62;
  --theme-tracking-heading: -0.01em;
  --theme-tracking-caps: 0.04em;

  /* Layout: 12 columns, 25px side margin, 20px gutter at 1440 */
  --theme-columns: 12;
  --theme-margin: clamp(1rem, 1.736vw, 1.875rem);
  --theme-gutter: clamp(0.75rem, 1.389vw, 1.5rem);
  --theme-header-height: clamp(4.5rem, 6.944vw, 6.25rem);

  /* Vertical rhythm */
  --theme-space-2xs: clamp(0.5rem, 0.694vw, 0.75rem);
  --theme-space-xs: clamp(0.75rem, 1.389vw, 1.5rem);
  --theme-space-sm: clamp(1.25rem, 2.222vw, 2.5rem);
  --theme-space-md: clamp(2rem, 4.167vw, 4.5rem);
  --theme-space-lg: clamp(3rem, 6.944vw, 7.5rem);
  --theme-space-xl: clamp(4rem, 8.333vw, 9.375rem);
  --theme-space-2xl: clamp(5rem, 11.111vw, 12rem);

  /* Radius, borders */
  --theme-radius-pill: 62.5rem;
  --theme-border-width: 1px;

  /* Motion (kept minimal, final motion design comes later) */
  --theme-ease-signature: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-duration: 0.4s;
}
