/* Bokatider – tokens. Genererad från designsystemets tokens.json. Ändra värden där, inte här. */

:root {
  color-scheme: light dark;
  --surface-0: #f6f4ee;
  --surface-1: #ffffff;
  --surface-2: #ece9e0;
  --line: #d9d4c7;
  --line-strong: #8a8578;
  --ink: #17201b;
  --ink-muted: #596159;
  --brand: #1d5a43;
  --on-brand: #ffffff;
  --brand-tint: #d9eadf;
  --brand-ink: #174a37;
  --accent: #e0703f;
  --on-accent: #1f1009;
  --status-yes: #0b6a74;
  --status-yes-tint: #d6edef;
  --status-no: #b0431a;
  --status-no-tint: #f7e1d6;
  --status-maybe: #7d5f00;
  --status-maybe-tint: #f3e8c6;
  --focus: #0b6a74;
  --shadow-card: 0 1px 2px rgba(23, 32, 27, 0.06), 0 4px 16px rgba(23, 32, 27, 0.06);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --content-width: 720px;
  --page-width: 1120px;
  /* Rubriker och stora siffror: samma typsnitt som brödtexten. Bara loggan har ett eget. */
  --font-display: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Mörkt tema: följer systemets inställning, kan tvingas med data-theme på <html>. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --surface-0: #111411;
  --surface-1: #1a1e1b;
  --surface-2: #232824;
  --line: #333a35;
  --line-strong: #6f786f;
  --ink: #edf0ea;
  --ink-muted: #a6aea6;
  --brand: #7fcca6;
  --on-brand: #0d2419;
  --brand-tint: #1c3529;
  --brand-ink: #9ad9b9;
  --accent: #f0905f;
  --on-accent: #1f1009;
  --status-yes: #6ccbd4;
  --status-yes-tint: #123437;
  --status-no: #f19870;
  --status-no-tint: #3a2117;
  --status-maybe: #e3c25c;
  --status-maybe-tint: #33290d;
  --focus: #6ccbd4;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
}
}

:root[data-theme="dark"] {
  --surface-0: #111411;
  --surface-1: #1a1e1b;
  --surface-2: #232824;
  --line: #333a35;
  --line-strong: #6f786f;
  --ink: #edf0ea;
  --ink-muted: #a6aea6;
  --brand: #7fcca6;
  --on-brand: #0d2419;
  --brand-tint: #1c3529;
  --brand-ink: #9ad9b9;
  --accent: #f0905f;
  --on-accent: #1f1009;
  --status-yes: #6ccbd4;
  --status-yes-tint: #123437;
  --status-no: #f19870;
  --status-no-tint: #3a2117;
  --status-maybe: #e3c25c;
  --status-maybe-tint: #33290d;
  --focus: #6ccbd4;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Typografi */
.bt-display-xl { font-family: var(--font-display); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -0.02em; }
.bt-display-l { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -0.01em; }
.bt-date-numeral { font-family: var(--font-display); font-size: 28px; line-height: 28px; font-weight: 700; }
.bt-title { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.bt-body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.bt-body-strong { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.bt-small { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.bt-label { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 599px) { .bt-display-xl { font-size: 36px; line-height: 40px; } }
