/* =====================================================================
   Focal · design tokens
   Optometrists and eyewear. Light is "Clear view"; dark is "Low light".
   --rust is the one accent (buttons, links, chosen frames and lenses, the booking).
   --lens is lens-glass blue, for fills only (the iris rings, lens shapes, the totals panel, eligibility); text on it is ink. --lens-ink is its text colour.
   --ok marks covered tests and in-stock frames; --alert marks invalid fields and symptoms that need care today.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #f4f7f8;
  --card: #ffffff;
  --well: #e7eef0;
  --line: #d3dde1;
  --ink: #0f1d26;
  --ink-2: #34434c;
  --muted: #55636c;
  --rust: #9c3d1e;
  --rust-2: #7e3016;
  --on-rust: #ffffff;
  --rust-soft: #f7e4dc;
  --lens: #bfe6ee;
  --lens-soft: #e3f3f6;
  --lens-ink: #1d5f6e;
  --ok: #1d6b45;
  --alert: #b3261e;
  --focus: #9c3d1e;
  --shadow-card: 0 1px 2px rgba(15, 29, 38, 0.06), 0 18px 36px -26px rgba(15, 29, 38, 0.42);
  --shadow-lift: 0 30px 60px -30px rgba(15, 29, 38, 0.5);

  --display: "Prata", Georgia, serif;
  --body: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "PT Mono", ui-monospace, Menlo, monospace;

  --fs-h1: clamp(44px, 6vw, 90px);
  --fs-h2: clamp(32px, 3.9vw, 56px);
  --fs-h3: 22px;
  --fs-lead: clamp(17.5px, 1.35vw, 20.5px);
  --fs-body: 16.5px;
  --fs-small: 15px;
  --fs-label: 12px;

  --wrap: 1200px;
  --gutter: max(20px, 4vw);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 40px; --s-7: 64px; --s-8: 104px;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 150ms;
  --d: 300ms;
  --d-slow: 900ms;
}

/* ---------- Low light ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0c161c;
    --card: #142128;
    --well: #101b21;
    --line: #263640;
    --ink: #eef3f5;
    --ink-2: #ccd6db;
    --muted: #9aa8b0;
    --rust: #ffa384;
    --rust-2: #ffc0a8;
    --on-rust: #2e0e04;
    --rust-soft: #2c1912;
    --lens: #bfe6ee;
    --lens-soft: #132a30;
    --lens-ink: #bfe6ee;
    --ok: #7fd6a0;
    --alert: #ff9a90;
    --focus: #ffa384;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c161c;
  --card: #142128;
  --well: #101b21;
  --line: #263640;
  --ink: #eef3f5;
  --ink-2: #ccd6db;
  --muted: #9aa8b0;
  --rust: #ffa384;
  --rust-2: #ffc0a8;
  --on-rust: #2e0e04;
  --rust-soft: #2c1912;
  --lens: #bfe6ee;
  --lens-soft: #132a30;
  --lens-ink: #bfe6ee;
  --ok: #7fd6a0;
  --alert: #ff9a90;
  --focus: #ffa384;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 34px -20px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 30px 60px -26px rgba(0, 0, 0, 0.9);
}
