/* Valley Orthodontics brand tokens v2.1 (15 Sep 2026)
   Dr. Jeremy Haines | valleyorthoak.com
   Colour values as supplied by the practice (Colors.png, 4 Sep 2026).
   Ink sampled from the supplied vector artwork.

   Three tiers: primitives (this palette), semantic roles (--text, --bg, --line-on-dark ...),
   and the scales the components draw from (space, type, z). Skins remap the semantic
   tier on their body class; they never write a new primitive.

   Type: the wordmark face is still unidentified (fonts/FONTS.md). Headings use Barlow
   Condensed because the wordmark is a heavy condensed sans and the pair reads as one
   family from across the room; body is Nunito per the Dr. M. Rogers persona spec.
   Both self-hosted, latin subset, swap, with a metric-matched local fallback for the
   display face so the H1 does not reflow when the webfont lands. */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800-latin.woff2') format('woff2'); }
/* Fallback tuned so a condensed system face occupies roughly the same box as Barlow Condensed. */
@font-face { font-family: 'Barlow Condensed Fallback'; src: local('Arial Narrow'), local('Roboto Condensed'), local('Arial'); size-adjust: 88%; ascent-override: 96%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/nunito-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/nunito-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/nunito-700-latin.woff2') format('woff2'); }

:root {
  /* ---- primitives: brand palette ---- */
  --gold: #FCC351;   /* Pantone 122 U  | decorative on white (1.61:1); a GROUND for ink text (10.1:1) */
  --mist: #93ABB1;   /* Pantone 2211 U | decorative on white (2.41:1); text only on ink (6.75:1), never on slate (1.96:1) */
  --slate: #5A7880;  /* Pantone 7476 U | AA body text on white (4.74:1); white text on it (4.74:1) */
  --ink: #231F20;    /* wordmark colour | AAA on white (16.3:1) */

  /* ---- primitives: neutrals ---- */
  --white: #FFFFFF;
  --paper: #F6F8F8;      /* cool, chroma toward mist, not warmth-by-default. Muted text holds 5.2:1 here. */
  --mist-tint: #E6EEF0;  /* mist at ~25% on white: light band ground; muted text 4.7:1 */
  --gold-tint: #FDE1A8;  /* gold at 50% on white; ink text 13:1, muted text fails (4.4:1) so remap --text-2 to ink on it */
  --line: #DDE4E6;
  --muted: #5F6B6F;      /* 5.5:1 on white */

  /* ---- semantic roles (skins remap these on their body class) ---- */
  --text: var(--ink);
  --text-2: var(--muted);
  --bg: var(--white);
  --accent: var(--gold);
  --dark: var(--ink);
  --on-dark: var(--white);
  --on-dark-2: var(--mist);                          /* secondary text on --dark */
  --line-on-dark: rgb(255 255 255 / .18);             /* hairlines on any dark ground */
  --ink-tint: rgb(35 31 32 / .12);                    /* ink at 12%: placeholders on gold */
  --focus: var(--ink);                                /* ring on light and gold grounds (10:1 on gold, 16:1 on white) */
  --focus-on-dark: var(--white);                      /* ring on ink (16:1) and slate (4.7:1) */

  /* ---- type ---- */
  --font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', 'Arial Narrow', sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --fs-caption: 15px;   /* figure captions, legal line only */
  --fs-small: 16px;     /* nav, notes, meta */
  --fs-body: 18px;
  --fs-lede: 20px;
  --fs-label: 22px;     /* display-face labels: phone, table captions, figcaption titles, footer heads */
  --fs-h3: clamp(24px, 2.2vw, 30px);
  --fs-h2: clamp(34px, 3.8vw, 58px);
  --fs-h1: clamp(40px, 5.2vw, 76px);
  --lh-body: 1.6;
  --lh-tight: 1.1;
  --track-label: .01em;
  --hl-size: .58em;      /* height of the gold marker swipe behind emphasised text */
  --hl-seat: 92%;        /* where that swipe sits: just under the x-height */
  --ridge: clamp(34px, 3vw, 44px);    /* depth of the arrow notch cut into a band */
  --ridge-span: min(70vw, 420px);     /* and how wide it spans, capped so the angle holds */

  /* ---- space: 4px base for component gaps, fluid steps for section rhythm ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --gap-s: clamp(16px, 2vw, 28px);    /* grid gaps */
  --gap-m: clamp(32px, 3.4vw, 52px);  /* head-to-content, list-to-footer */
  --gap-l: clamp(32px, 5vw, 80px);    /* two-column splits */
  --pad-l: clamp(84px, 10vw, 168px);
  --pad-m: clamp(56px, 7vw, 112px);
  --pad-s: clamp(28px, 3.5vw, 48px);

  /* ---- geometry ---- */
  --radius: 4px;
  --rule: 3px;                        /* the gold rule thickness, everywhere it appears */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  /* Distance from the viewport edge to the edge of .wrap. Past 1336px the wrap stops
     growing, so the gutter alone no longer reaches the edge. Photos bleed by a negative
     margin of this; sections that lay out their own columns pad by it to stay on grid. */
  --bleed: max(var(--gutter), (100vw - var(--wrap)) / 2);
  --z-header: 30;
  --z-bar: 40;
  --z-skip: 100;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 560ms;
  --dur-fast: 240ms;

  /* ---- browser surfaces ---- */
  color-scheme: light;
  accent-color: var(--slate);
  caret-color: var(--slate);
}
