/* RANGE Brand Rails v2.0 (2026-11-25) — the ONE web source for type and colour.
   Rules: brand/RANGE-Brand-Rails.md. Both clinics. Marketing, public sites, patient documents.
   NOT the staff app. Never redefine these values in a page — import this file.

   v2.0, owner 2026-11-25 ("functionhealth.com — I like that look"; picked Option D, "roll it out"):
   warm cream ground, light serif headlines in sentence case with one italic phrase in maroon,
   Figtree body, pill buttons, rounded sand cards. Maroon #7F202C stays the one accent. */

@font-face { font-family: 'Newsreader'; src: url('/brand/rails/fonts/Newsreader-Variable.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/brand/rails/fonts/Newsreader-Italic-Variable.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/brand/rails/fonts/Figtree-Variable.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
/* Archivo stays loaded: the staff-facing pages and older documents still name it. */
@font-face { font-family: 'Archivo'; src: url('/brand/rails/fonts/Archivo-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DejaVu Sans Mono'; src: url('/brand/rails/fonts/DejaVuSansMono.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: only light;   /* never repainted dark by a phone in dark mode (owner 2026-11-25) */
  /* Base */
  --rails-black: #0A0A0A;      /* near-black — the dark bands, footer and dark buttons (owner 2026-11-25: "I want the dark brownish to be black") */
  --rails-ink: #2A2B2F;        /* body text */
  --rails-ink-soft: #5A5650;   /* secondary text (5.9:1 on cream) */
  --rails-paper: #FBF7F0;      /* warm cream — the page */
  --rails-sand: #F3EADC;       /* cards and alternate bands */
  --rails-sand-deep: #EFE6D8;  /* the announcement strip */
  --rails-rule: #E7DDCD;       /* hairlines on cream */
  --rails-white: #FFFFFF;
  --rails-logo-ink: #231F20;   /* original dark logo artwork only */
  /* Accent — the italic phrase in a headline, the primary button, a key number */
  --rails-red: #7F202C;        /* Sun Day Red maroon — v1.4, owner 2026-10-15 */
  --rails-red-deep: #651923;   /* hover / pressed */
  --rails-red-on-dark: #E9C2C7; /* the italic phrase on a black band */
  --rails-on-dark: #F3EFE7;       /* text on a black band */
  --rails-on-dark-soft: #D9D3C8;  /* secondary text on a black band */
  --rails-on-dark-muted: #BDB8AE; /* quiet text on a black band */
  /* Secondary gray — decoration only, never essential text */
  --rails-gray-number: #8C857B;
  --rails-gray-rule: #D8CCBA;

  /* Shape */
  --rails-radius-card: 20px;
  --rails-radius-photo: 24px;
  --rails-radius-pill: 999px;

  /* Type */
  --rails-font-h1: 'Newsreader', Georgia, serif;   /* 300, sentence case, -0.01em, lh 1.04 */
  --rails-font-h2: 'Newsreader', Georgia, serif;   /* 300, sentence case, lh 1.06 */
  --rails-font-headline: var(--rails-font-h1);
  --rails-font-body: 'Figtree', system-ui, sans-serif; /* 400; 500/600 for emphasis */
  --rails-font-mono: 'Figtree', system-ui, sans-serif; /* labels are small sans caps now */
}

/* Opt-in helpers */
.rails-h1 { font-family: var(--rails-font-h1); font-weight: 300; text-transform: none; line-height: 1.04; letter-spacing: -0.01em; }
.rails-h2 { font-family: var(--rails-font-h2); font-weight: 300; text-transform: none; line-height: 1.06; letter-spacing: -0.005em; }
.rails-headline { font-family: var(--rails-font-h1); font-weight: 300; text-transform: none; line-height: 1.04; letter-spacing: -0.01em; }
:is(.rails-h1, .rails-h2, .rails-headline) :is(em, i) { font-style: italic; color: var(--rails-red); }
.rails-body { font-family: var(--rails-font-body); font-weight: 400; }
.rails-meta { font-family: var(--rails-font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.rails-rule { border: 0; border-top: 1px solid var(--rails-rule); }
.rails-cta { background: var(--rails-red); color: var(--rails-white); font-family: var(--rails-font-body); font-weight: 600; border: 0; padding: 14px 26px; border-radius: var(--rails-radius-pill); }
.rails-photo { filter: none; border-radius: var(--rails-radius-photo); }  /* full colour, rounded */
