/* Clean theme tokens: light and quiet by default, dark when the reader's
   system asks. Unicode's token names, so its layout carries over. */
:root {
  --bg: #fbfaf7;
  --bg-secondary: #f3f1ec;
  --bg-hover: #ece9e2;
  --fg: #1f2937;
  --fg-strong: #0f172a;
  --fg-muted: #4b5563;
  --fg-dim: #6b7280;
  --mark: #d6d3cc;
  --accent: #2563eb;
  --link: #2563eb;
  --wikilink: #2563eb;
  --wikilink-bracket: transparent;
  --h1-mark: #2563eb;
  --h2: #0f172a;
  --h2-mark: transparent;
  --task: #b45309;
  --pin: #2563eb;
  --k-post: #1d4ed8;
  --k-project: #0e7490;
  --border: #e5e2da;
  --border-soft: #eeebe4;
  --tag-bg: #eef2ff;
  --tag-fg: #1d4ed8;
  --shadow: rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: Georgia, serif;
  --font-mono: var(--font-body);
  --font-serif: var(--font-body);
  --font-sans: var(--font-body);
  --font-code: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-text: var(--font-body);
  --font-ui: var(--font-body);
}

@media not all {
  :root {
    --bg: #111214;
    --bg-secondary: #18191c;
    --bg-hover: #1f2024;
    --fg: #d4d4d8;
    --fg-strong: #f4f4f5;
    --fg-muted: #a1a1aa;
    --fg-dim: #8b8b94;
    --mark: #3f3f46;
    --accent: #60a5fa;
    --link: #60a5fa;
    --wikilink: #60a5fa;
    --h1-mark: #60a5fa;
    --h2: #f4f4f5;
    --task: #fbbf24;
    --pin: #60a5fa;
    --k-post: #60a5fa;
    --k-project: #22d3ee;
    --border: #2a2b30;
    --border-soft: #222327;
    --tag-bg: #1e293b;
    --tag-fg: #93c5fd;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}
:root {
--accent: #2563eb;
--bg: #fbfaf7;
--bg-card-light: #f3f1ec;
--bg-hover: #ece9e2;
--bg-secondary: #f3f1ec;
--border: #e5e2da;
--border-card: #e5e2da;
--border-soft: #eeebe4;
--border-width: 1px;
--code-bg: #f3f1ec;
--deco-1: #2563eb;
--deco-2: #2563eb;
--deco-3: #2563eb;
--deco-4: #2563eb;
--deco-5: #2563eb;
--deco-6: #2563eb;
--deco-7: #2563eb;
--divider: #e5e2da;
--fg: #1f2937;
--fg-dim: #6b7280;
--fg-muted: #4b5563;
--fg-on-light: #1f2937;
--fg-strong: #0f172a;
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-card-display: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, serif;
--font-code: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
--font-heading: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, serif;
--font-mono: var(--font-body);
--font-sans: var(--font-body);
--font-serif: var(--font-body);
--font-text: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-ui: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--h1-mark: #2563eb;
--h2: #0f172a;
--h2-mark: transparent;
--heading-1: #0f172a;
--heading-2: #0f172a;
--heading-3: #0f172a;
--heading-4: #0f172a;
--k-aphorism: #b45309;
--k-essay: #15803d;
--k-photo: #c2410c;
--k-poem: #6d28d9;
--k-post: #1d4ed8;
--k-project: #0e7490;
--k-video: #b91c1c;
--link: #2563eb;
--mark: #d6d3cc;
--pin: #2563eb;
--radius: 10px;
--radius-card: 10px;
--radius-panel: 10px;
--series-1: #1d4ed8;
--series-2: #b45309;
--series-3: #0e7490;
--series-4: #6d28d9;
--series-5: #15803d;
--series-6: #c2410c;
--series-7: #b91c1c;
--shadow: rgba(15, 23, 42, 0.08);
--table-header: #f3f1ec;
--table-row-alt: #f3f1ec;
--tag-bg: #eef2ff;
--tag-fg: #1d4ed8;
--task: #b45309;
--text-scale: 1;
--wikilink: #2563eb;
--wikilink-bracket: transparent;
}
@media not all {
:root {
--accent: #60a5fa;
--bg: #111214;
--bg-card-light: #18191c;
--bg-hover: #1f2024;
--bg-secondary: #18191c;
--border: #2a2b30;
--border-card: #2a2b30;
--border-soft: #222327;
--border-width: 1px;
--code-bg: #18191c;
--deco-1: #60a5fa;
--deco-2: #60a5fa;
--deco-3: #60a5fa;
--deco-4: #60a5fa;
--deco-5: #60a5fa;
--deco-6: #60a5fa;
--deco-7: #60a5fa;
--divider: #2a2b30;
--fg: #d4d4d8;
--fg-dim: #8b8b94;
--fg-muted: #a1a1aa;
--fg-on-light: #d4d4d8;
--fg-strong: #f4f4f5;
--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-card-display: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, serif;
--font-code: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
--font-heading: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, serif;
--font-mono: var(--font-body);
--font-sans: var(--font-body);
--font-serif: var(--font-body);
--font-text: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-ui: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--h1-mark: #60a5fa;
--h2: #f4f4f5;
--h2-mark: transparent;
--heading-1: #f4f4f5;
--heading-2: #f4f4f5;
--heading-3: #f4f4f5;
--heading-4: #f4f4f5;
--k-aphorism: #fbbf24;
--k-essay: #4ade80;
--k-photo: #fb923c;
--k-poem: #a78bfa;
--k-post: #60a5fa;
--k-project: #22d3ee;
--k-video: #f87171;
--link: #60a5fa;
--mark: #3f3f46;
--pin: #60a5fa;
--radius: 10px;
--radius-card: 10px;
--radius-panel: 10px;
--series-1: #60a5fa;
--series-2: #fbbf24;
--series-3: #22d3ee;
--series-4: #a78bfa;
--series-5: #4ade80;
--series-6: #fb923c;
--series-7: #f87171;
--shadow: rgba(0, 0, 0, 0.4);
--table-header: #18191c;
--table-row-alt: #18191c;
--tag-bg: #1e293b;
--tag-fg: #93c5fd;
--task: #fbbf24;
--text-scale: 1;
--wikilink: #60a5fa;
--wikilink-bracket: transparent;
}
}
