/* Hallmark · route: custom (bespoke) · structure: letterhead masthead, portrait hero, guided concern finder, service ledger, tide-breath pause, first-visit steps, fees estimator, training, about, questions, contact
 * idea: "an anchor line lowers as you read, and the page gives you one slow minute at anchor before it asks anything of you"
 * paper: oklch(97.2% 0.012 78) · accent: oklch(52% 0.15 42) · display: Fraunces (soft, roman) · body: Figtree
 * axes: light / roman-serif / warm · genre: editorial (soft) · nav: two-tier letterhead with sticky link row · footer: Ft5 statement
 * gates: all-pass · studied: no · context: inferred from brief and live site · Hallmark v1.1.0
 */

:root {
  /* Colour: warm paper from the portrait's light, slate-navy ink from the suit, ember accent from the pocket square. */
  --color-paper:        oklch(97.2% 0.012 78);
  --color-paper-2:      oklch(94.4% 0.019 76);
  --color-paper-3:      oklch(90.8% 0.026 74);
  --color-ink:          oklch(25% 0.045 255);
  --color-ink-2:        oklch(37% 0.04 255);
  --color-muted:        oklch(45% 0.032 255);
  --color-rule:         oklch(85% 0.022 76);
  --color-rule-strong:  oklch(56% 0.032 255);
  --color-accent:       oklch(52% 0.15 42);
  --color-accent-deep:  oklch(44% 0.14 42);
  --color-accent-ink:   oklch(98.5% 0.008 78);
  --color-accent-soft:  oklch(92.5% 0.04 62);
  --color-focus:        oklch(50% 0.17 42);
  --color-deep:         oklch(26% 0.05 255);
  --color-deep-2:       oklch(32% 0.052 255);
  --color-deep-rule:    oklch(44% 0.045 255);
  --color-on-deep:      oklch(96.5% 0.012 78);
  --color-on-deep-2:    oklch(86% 0.02 78);
  --color-on-deep-accent: oklch(82% 0.12 68);
  --color-error:        oklch(46% 0.17 27);
  --color-error-soft:   oklch(95% 0.025 27);
  --color-success:      oklch(42% 0.09 155);

  /* Scene colours for the breathing pause. The default set is daytime; site.js swaps the set by local hour. */
  --scene-sky-top:      oklch(88% 0.045 235);
  --scene-sky-low:      oklch(95% 0.035 80);
  --scene-orb:          oklch(90% 0.11 85);
  --scene-shore:        oklch(52% 0.045 240);
  --scene-water-far:    oklch(72% 0.055 225);
  --scene-water-mid:    oklch(60% 0.065 232);
  --scene-water-near:   oklch(46% 0.07 240);
  --scene-buoy:         oklch(52% 0.15 42);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-read: 1.125rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(1.625rem, 1.1vw + 1.35rem, 2.125rem);
  --text-2xl: clamp(2rem, 2.2vw + 1.45rem, 3.125rem);
  --text-display: clamp(2.5rem, 4.2vw + 1.1rem, 4.5rem);

  --lh-display: 1.06;
  --lh-heading: 1.18;
  --lh-body: 1.62;

  /* Space: 4 pt scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --page-max: 76rem;
  --measure: 62ch;

  /* Shape */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-arch: 12rem;
  --rule-hair: 1px;
  --rule-bold: 2px;
  --rule-chain: 3px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --dur-breath: 4000ms;

  /* Layers */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-overlay: 400;
  --z-skip: 500;

  --nav-height: 3.5rem;
  --actionbar-height: 4.5rem;
}

/* Scene colour sets by time of day. */
[data-time="dawn"] {
  --scene-sky-top:    oklch(80% 0.06 300);
  --scene-sky-low:    oklch(90% 0.08 60);
  --scene-orb:        oklch(88% 0.13 70);
  --scene-shore:      oklch(42% 0.05 270);
  --scene-water-far:  oklch(74% 0.06 330);
  --scene-water-mid:  oklch(60% 0.065 280);
  --scene-water-near: oklch(44% 0.07 265);
}
[data-time="dusk"] {
  --scene-sky-top:    oklch(52% 0.09 285);
  --scene-sky-low:    oklch(80% 0.13 55);
  --scene-orb:        oklch(80% 0.16 55);
  --scene-shore:      oklch(30% 0.05 275);
  --scene-water-far:  oklch(62% 0.09 40);
  --scene-water-mid:  oklch(46% 0.07 300);
  --scene-water-near: oklch(33% 0.065 270);
}
[data-time="night"] {
  --scene-sky-top:    oklch(20% 0.05 265);
  --scene-sky-low:    oklch(34% 0.065 262);
  --scene-orb:        oklch(93% 0.03 95);
  --scene-shore:      oklch(17% 0.035 265);
  --scene-water-far:  oklch(36% 0.06 258);
  --scene-water-mid:  oklch(28% 0.055 260);
  --scene-water-near: oklch(21% 0.05 262);
  --scene-buoy:       oklch(74% 0.14 62);
}
