/* OneLoaf Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --bg: #faf7f2;
  --surface: #fff9f4;
  --surface-sunken: #f5ede0;
  --surface-raised: #ffffff;
  --ink: #2c1d0e;
  --ink-muted: #7a5c42;
  --ink-on-primary: #ffffff;
  --primary: #aa5a32;
  --primary-strong: #8f4726;
  --primary-tint: #f6e3d8;
  --brand-terra: #c4683a;
  --brand-blush: #e8c4b8;
  --brand-espresso: #1a0f06;
  --espresso-ink: #f5ede0;
  --espresso-muted: #c9b29b;
  --espresso-hover: #2e2017;
  --espresso-selected: #3d2416;
  --espresso-accent: #eba27a;
  --border-control: #9b7a5f;
  --border-hairline: #eadfce;
  --focus: #2557b3;
  --success: #2d7048;
  --success-tint: #e3f0e7;
  --warning: #8a5a00;
  --warning-tint: #f8ecd2;
  --danger: #b83232;
  --danger-tint: #f8e1df;
  --ink-on-danger: #ffffff;
  --info: #2557b3;
  --info-tint: #e3ebf8;
  --scrim: rgba(44, 29, 14, 0.5);
  --shadow-card: 0 2px 14px rgba(44, 29, 14, 0.07);
  --shadow-raised: 0 14px 44px rgba(44, 29, 14, 0.13);
  --shadow-modal: 0 24px 80px rgba(44, 29, 14, 0.22);
}
[data-theme="dark"] {
  --bg: #1a0f06;
  --surface: #241811;
  --surface-sunken: #120a04;
  --surface-raised: #2e2017;
  --ink: #f5ede0;
  --ink-muted: #c9b29b;
  --ink-on-primary: #1a0f06;
  --primary: #e08a5e;
  --primary-strong: #eba27a;
  --primary-tint: #3d2416;
  --brand-terra: #c4683a;
  --brand-blush: #e8c4b8;
  --brand-espresso: #1a0f06;
  --espresso-ink: #f5ede0;
  --espresso-muted: #c9b29b;
  --espresso-hover: #2e2017;
  --espresso-selected: #3d2416;
  --espresso-accent: #eba27a;
  --border-control: #8c725d;
  --border-hairline: #3a2a1e;
  --focus: #8db4ff;
  --success: #6cc08b;
  --success-tint: #173322;
  --warning: #e3b04b;
  --warning-tint: #3a2b0c;
  --danger: #f28b82;
  --danger-tint: #3d1715;
  --ink-on-danger: #1a0f06;
  --info: #8db4ff;
  --info-tint: #17233a;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.45);
  --shadow-raised: 0 14px 44px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, 0.7);
}
:root {
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;
  --target-min: 2.75rem;
  --target-comfortable: 3rem;
  --icon-sm: 1rem;
  --icon-md: 1.25rem;
  --icon-lg: 1.5rem;
  --content-max: 72rem;
  --content-max-ultra: 100rem;
  --reading-max: 42rem;
  --sidebar-width: 15rem;
  --rail-width: 5.5rem;
  --topbar-height: 3.5rem;
  --bottom-nav-height: 4rem;
  --bp-watch: 17.5em;
  --bp-medium: 37.5em;
  --bp-expanded: 64em;
  --bp-large: 90em;
  --bp-ultra: 160em;
  --z-nav: 100;
  --z-overlay: 200;
  --z-toast: 300;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.display { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }
.h1 { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.h2 { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; font-weight: 600; }
.h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; font-weight: 600; }
.title { font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; font-weight: 600; }
.small { font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.45; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 0.75rem; line-height: 1.3; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.metric { font-family: var(--font-sans); font-size: 1.75rem; line-height: 1.15; font-weight: 600; }
