/* ==========================================================================
   Cypress Ridge — design tokens
   Every value used by components and sections lives here. Nothing else
   hard-codes a color, size, space, radius, shadow, duration or easing.
   ========================================================================== */
:root {
  /* ---- Color: pine, bone, rust, brass -------------------------------- */
  --pine-950: #0e1a14;
  --pine-900: #14231c;
  --pine-800: #1c3228;
  --pine-700: #2a4638;
  --bone-50:  #f6f1e4;
  --bone-100: #efe8d6;
  --bone-200: #e2d8bf;
  --bone-300: #cfc3a4;
  --ink-900:  #17120d;
  --ink-700:  #3d352b;
  --ink-500:  #6a5f50;
  --rust-600: #9a4321;   /* text + buttons on bone: 6.1:1 against bone-100 */
  --rust-500: #b4532a;
  --brass-400: #c39a52;  /* hairlines + small marks on pine */

  /* semantic roles */
  --bg:        var(--bone-100);
  --bg-alt:    var(--bone-200);
  --bg-deep:   var(--pine-900);
  --fg:        var(--ink-900);
  --fg-muted:  var(--ink-700);
  --fg-soft:   var(--ink-500);
  --fg-on-deep:       var(--bone-100);
  --fg-on-deep-muted: rgb(239 232 214 / 0.76);
  --accent:    var(--rust-600);
  --accent-hover: var(--rust-500);
  --rule:      rgb(23 18 13 / 0.18);
  --rule-on-deep: rgb(195 154 82 / 0.45);
  --focus:     var(--brass-400);
  --scrim:     rgb(14 26 20 / 0.62);

  /* ---- Type ------------------------------------------------------------- */
  --font-display: "Gambetta", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-text: "General Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-xs:   0.8125rem;                         /* 13 */
  --fs-sm:   0.9375rem;                         /* 15 */
  --fs-base: 1.0625rem;                         /* 17 */
  --fs-md:   1.3125rem;                         /* 21 */
  --fs-lg:   clamp(1.5rem, 2.2vw, 1.875rem);    /* 24–30 */
  --fs-xl:   clamp(2rem, 3.6vw, 3rem);          /* 32–48 */
  --fs-2xl:  clamp(2.5rem, 5.4vw, 4.75rem);     /* 40–76 */
  --fs-display: clamp(3.25rem, 7.6vw, 7.25rem);/* 46–116 */
  --fs-mega: clamp(3.5rem, 14.2vw, 15rem);

  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --tracking-caps: 0.14em;
  --tracking-display: -0.025em;

  /* ---- Space: 8pt grid (4 for hairline nudges) -------------------------- */
  --sp-0: 4px;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
  --sp-20: 160px;
  --sp-24: 192px;
  --section-y: clamp(var(--sp-10), 11vw, var(--sp-24));
  --gutter: clamp(var(--sp-3), 4vw, var(--sp-8));
  --page-max: 1360px;
  --measure: 62ch;

  /* ---- Shape + depth ---------------------------------------------------- */
  --radius-0: 0;
  --radius-1: 2px;
  --radius-pill: 999px;
  --shadow-plate: 0 1px 0 rgb(23 18 13 / 0.06), 0 16px 32px -16px rgb(23 18 13 / 0.35);
  --shadow-nav: 0 1px 0 var(--rule-on-deep);

  /* ---- Motion ----------------------------------------------------------- */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 240ms;
  --dur-slow: 600ms;
  --dur-reveal: 800ms;

  /* ---- Texture ---------------------------------------------------------- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .96  0 0 0 0 .86  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-opacity: 0.07;
}
