/* Design tokens (same family as the app: morning = light, night = dark) and reset. */
:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --sunken: #efece6;
  --border: rgba(31, 35, 40, 0.12);
  --text: #1f2328;
  --muted: #5f6672;
  --accent: #c2603f;
  --accent-soft: rgba(217, 119, 87, 0.14);
  --code-bg: #1d2128;
  --code-text: #e8e6e1;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14171c;
    --surface: #1b1f26;
    --sunken: #10131a;
    --border: rgba(255, 255, 255, 0.12);
    --text: #e8e6e1;
    --muted: #9aa3b0;
    --accent: #e58a6a;
    --accent-soft: rgba(229, 138, 106, 0.16);
    --code-bg: #0d1015;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #14171c;
  --surface: #1b1f26;
  --sunken: #10131a;
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8e6e1;
  --muted: #9aa3b0;
  --accent: #e58a6a;
  --accent-soft: rgba(229, 138, 106, 0.16);
  --code-bg: #0d1015;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
