/* =====================================================================
   Cask · design tokens
   Breweries, wineries, distilleries and cellar doors. Light is "Cellar door"; dark is "Candlelight".
   --claret is the one accent (buttons, links, chosen pours and slots, the lit words).
   --amber is ale-gold, for fills only (the wave under the lit words, bubbles, the standard drinks meter, totals); text on it is ink. --amber-ink is its text colour.
   --ok marks a plan within the drinking guidelines and in-stock items; --alert marks invalid fields and a plan over the guidelines.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --card: #ffffff;
  --well: #ebe3d6;
  --line: #d9cfc0;
  --ink: #1c1512;
  --ink-2: #3d342e;
  --muted: #5e544c;
  --claret: #7b1e3a;
  --claret-2: #5f162c;
  --on-claret: #ffffff;
  --claret-soft: #f5e1e6;
  --amber: #e8a33d;
  --amber-soft: #fbefd6;
  --amber-ink: #7a4a00;
  --ok: #1d6b45;
  --alert: #b3261e;
  --focus: #7b1e3a;
  --shadow-card: 0 1px 2px rgba(28, 21, 18, 0.06), 0 18px 36px -26px rgba(28, 21, 18, 0.42);
  --shadow-lift: 0 30px 60px -30px rgba(28, 21, 18, 0.5);

  --display: "DM Serif Display", Georgia, serif;
  --body: "Epilogue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Source Code Pro", ui-monospace, Menlo, monospace;

  --fs-h1: clamp(48px, 6.6vw, 104px);
  --fs-h2: clamp(34px, 4.2vw, 60px);
  --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: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --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;
}

/* ---------- Candlelight ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #16110f;
    --card: #201a17;
    --well: #1a1512;
    --line: #352c27;
    --ink: #f4ede4;
    --ink-2: #d8cfc6;
    --muted: #aaa097;
    --claret: #f2a1b6;
    --claret-2: #f6c0ce;
    --on-claret: #330a17;
    --claret-soft: #2c1820;
    --amber: #e8a33d;
    --amber-soft: #2b2010;
    --amber-ink: #e8a33d;
    --ok: #7fd6a0;
    --alert: #ff9a90;
    --focus: #f2a1b6;
    --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: #16110f;
  --card: #201a17;
  --well: #1a1512;
  --line: #352c27;
  --ink: #f4ede4;
  --ink-2: #d8cfc6;
  --muted: #aaa097;
  --claret: #f2a1b6;
  --claret-2: #f6c0ce;
  --on-claret: #330a17;
  --claret-soft: #2c1820;
  --amber: #e8a33d;
  --amber-soft: #2b2010;
  --amber-ink: #e8a33d;
  --ok: #7fd6a0;
  --alert: #ff9a90;
  --focus: #f2a1b6;
  --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);
}
