/* tokens.css — design system foundation */

/* Brand fonts are self-hosted (no external CDN) — see public/css/fonts.css.
   Imported here so every surface that loads tokens.css gets the faces. */
@import 'fonts.css';

:root {
  /* The Support Impersonation banner's height — 0 unless a session is live, when
     `body.has-support-banner` sets it (support-impersonation-banner.css). Every
     shell that pins something to the top of the viewport offsets by THIS, so the
     number is stated once (BUG-105). */
  --support-banner-height: 0px;
  /* ── Color ─────────────────────────────── */
  --color-bg:           #fffcf7;
  --color-surface:      #FFFFFF;
  --color-border:       #E2DED6;
  --color-border-subtle: #efede8;
  --color-border-dark:  #C8C3B8;

  --color-text:         #1A1A1A;
  --color-text-muted:   #6B6760;
  --color-text-faint:   #A09C95;

  --color-accent:       #1D4A35;
  --color-accent-light: #EBF2EE;

  /* Focus ring (see base.css). Softened accent rather than a hard line — but not
     softer than 3:1 against the surface behind it, which is the WCAG 1.4.11 floor
     for a focus indicator. 65% is the measured softest that clears it on every
     light surface (3.58:1 on the tightest, accent-light); 55% does not.
     Dark scopes override this with --color-focus-ring-dark. */
  --color-focus-ring:      color-mix(in srgb, #1D4A35 65%, transparent);
  --color-focus-ring-dark: color-mix(in srgb, #C6A15A 75%, transparent);
  --color-money-green:  #008000;
  --color-negative:     #8B2020;
  --color-negative-bg:  #F9EEEE;
  --color-warning:      #B45309;
  --color-warning-bg:   #FEF3C7;

  --color-error:        #8B3A3A;
  --color-error-bg:     #F9EDED;
  --color-success:      #1D4A35;   /* matches --color-accent */
  --color-success-bg:   #EDF4F0;

  /* ── OTA brand colors ──────────────────────── */
  --color-airbnb:       #fe5959;
  --color-vrbo:         #4c6aa8;

  /* Info message banners (global .info-message) */
  --color-info-msg-info-bg:      #e8f4fc;
  --color-info-msg-info-ink:     #1e3a5f;
  --color-info-msg-info-accent:  #2563eb;
  --color-info-msg-success-bg:   #ecfdf5;
  --color-info-msg-success-ink:  #166534;
  --color-info-msg-success-accent: #16a34a;
  --color-info-msg-warning-bg:   #fffbeb;
  --color-info-msg-warning-ink:  #92400e;
  --color-info-msg-warning-accent: #d97706;
  --color-info-msg-error-bg:     #fef2f2;
  --color-info-msg-error-ink:    #991b1b;
  --color-info-msg-error-accent: #dc2626;

  /* ── Typography ────────────────────────── */
  /* Brand serif — THE swap point. Change this one value to re-serif every
     surface at once. --font-heading and --font-narrative both track it, so the
     heading/narrative split is preserved (repoint either to give headings a
     distinct display cut later) without a second face today. Names describe the
     ROLE, never the font. NOTE: the standalone bundles that can't see this file
     mirror this value — keep them in sync: marketing.css, login.html, stay.css. */
  --font-serif:     'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-heading:   var(--font-serif);   /* h1–h4, page titles, section/KPI labels */
  --font-narrative: var(--font-serif);   /* editorial prose, modal titles, onboarding */

  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-mono:      'IBM Plex Mono', 'Courier New', monospace;
  /* Brand wordmark — the canonical "Steward" logo face (brand-wordmark.css).
     Deliberately its OWN token, decoupled from --font-serif so auditioning a
     new brand serif never restyles the logo. Consolidate into --font-serif here
     if/when they should move together. */
  --font-wordmark:  'Libre Caslon Text', Georgia, Cambria, 'Times New Roman', serif;

  /* ⚠️ Below --text-xs, for tracked-out UPPERCASE chrome only. At 10px lower
     case is too small to read comfortably; uppercase with letter-spacing is
     legible at this size and is the only place it is used (the owner report's
     control bar). Do not reach for it for body copy. */
  --text-2xs:        0.625rem;  /* 10px */
  --text-xs:         0.75rem;   /* 12px */
  --text-sm:         0.875rem;  /* 14px */
  --text-base:       1rem;      /* 16px */
  --text-lg:         1.125rem;  /* 18px */
  --text-xl:         1.25rem;   /* 20px */
  --text-2xl:        1.5rem;    /* 24px */
  --text-3xl:        2rem;      /* 32px */
  --text-4xl:        2.75rem;   /* 44px */
  --text-page-title: 1.95rem;   /* ~31px — page h1 headers */

  /* ── Spacing ───────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ── Layout ────────────────────────────── */
  --max-width:     960px;
  --nav-height:    56px;
  --border-radius: 4px;

  /* ── Shadows ───────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);

  /* ── Transitions ───────────────────────── */
  --transition: 150ms ease;
}
