/* Boutique Build Advisory — design tokens
   Direction: an architect's drafting table. Warm greige paper, ink-black type,
   hairline rules, line drawings, and a bronze accent used only for meaning
   (step numbers, dimensions, active states). */
:root {
  /* Palette */
  --color-bg: #e6ded3;
  --color-bg-raised: #ece6dd;
  --color-bg-sunk: #d9d0c1;
  --color-card: #efeae2;
  --color-field: #f6f2ec;
  --color-ink: #2a2927;
  --color-ink-hover: #3d3a36;
  --color-ink-soft: #4a4642;
  --color-muted: #59524a;        /* AA (4.5:1+) on bg, card and sunk */
  --color-line: #bfb5a7;
  --color-line-strong: #2a2927;
  --color-accent: #7a5c3c;       /* bronze, AA for small text on bg */
  --color-accent-line: #a88b68;  /* bronze, decorative lines only */
  --color-on-ink: #f1ece4;
  --color-on-ink-muted: #b3aa9d; /* AA (6:1) on ink */
  --color-on-ink-accent: #d9c3a5;
  --color-line-on-ink: rgba(241, 236, 228, 0.16);
  --color-focus: #8a6d4b;
  --color-error: #8c3b2e;
  --color-error-bg: #f5e9e5;

  /* Type */
  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --text-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.75rem);
  --text-h1: clamp(2.75rem, 1.8rem + 4vw, 5.25rem);
  --text-display: clamp(3rem, 1.8rem + 4.6vw, 6rem);
  --text-statement: clamp(1.75rem, 1.35rem + 1.9vw, 3.125rem);

  --tracking-label: 0.22em;
  --tracking-wordmark: 0.28em;

  /* Space */
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --content-max: 76rem;
  --measure: 36rem;
  --header-h: 4.75rem;

  /* Surfaces */
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(42, 41, 39, 0.05), 0 14px 34px -22px rgba(60, 48, 32, 0.4);
  --shadow-lift: 0 2px 4px rgba(42, 41, 39, 0.06), 0 30px 60px -32px rgba(60, 48, 32, 0.55);
  --grid-paper:
    linear-gradient(rgba(122, 92, 60, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 60, 0.075) 1px, transparent 1px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.34 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Motion */
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --duration-slow: 600ms;
  --duration-reveal: 900ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}
