/* RichLabs Antiquarian — design tokens. Light is the default; dark is opt-in via data-theme or system preference. */
:root {
  --paper: #efeae0;
  --paper-2: #e6dfd0;
  --rule: #cfc7b6;
  --ink: #1c1a17;
  --muted: #665f54;
  --link: #44627c;
  --accent: #4f6f8a;
  --sage: #5e7668;
  --sage-dark: #2f4a3a;
  --peach: #e0a37c;
  --font-display: "Cinzel", "Trajan Pro", "Cormorant SC", Georgia, serif;
  --font-serif: "EB Garamond", "Iowan Old Style", Garamond, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 104px;
  --radius-none: 0px; --radius-pill: 999px;
  --content-max: 1180px; --hairline: 1px; --heading-rule: 72px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: max(48px, env(safe-area-inset-left, 0px)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0f1419;
  --paper-2: #161c23;
  --rule: #2a333d;
  --ink: #e6e1d6;
  --muted: #aaa396;
  --link: #8fb0c9;
  --accent: #8fb0c9;
  --sage: #8fa58a;
  --sage-dark: #c9d5c4;
  --peach: #e0a37c;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0f1419;
  --paper-2: #161c23;
  --rule: #2a333d;
  --ink: #e6e1d6;
  --muted: #aaa396;
  --link: #8fb0c9;
  --accent: #8fb0c9;
  --sage: #8fa58a;
  --sage-dark: #c9d5c4;
  --peach: #e0a37c;
  color-scheme: dark;
}

/* Type styles */
.t-display { font: 400 clamp(40px, 5.6vw, 70px)/1.05 var(--font-serif); letter-spacing: -0.01em; text-wrap: balance; }
.t-h1 { font: 400 clamp(32px, 4vw, 48px)/1.08 var(--font-serif); text-wrap: balance; }
.t-h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--font-serif); text-wrap: balance; }
.t-h3 { font: 500 22px/1.25 var(--font-serif); }
.t-lead { font: 400 19px/1.6 var(--font-serif); }
.t-body { font: 400 17px/1.65 var(--font-serif); }
.t-small { font: 400 15px/1.5 var(--font-serif); }
.t-label, .t-caption { font: 500 11px/18px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }

/* Fonts (self-hosted). Or load from Google Fonts: Cinzel 400–600, EB Garamond 400/500 + italic. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/EBGaramond-Italic-Variable.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
