:root {
  color-scheme: light dark;
  --bg: #fff6e8;
  --surface: #f4e5c9;
  --fg: #2a1f12;
  --muted: #6e5733;
  --faint: #a78b5c;
  --accent: #d86a4a;
  --accent-soft: #f2c4b4;
  --accent-deep: #a84a2e;
  --rule: #eee3d0;
  --link: #a84a2e;
  --display-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--body-font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b150a;
    --surface: #2a2113;
    --fg: #f0e2c5;
    --muted: #c9b58a;
    --faint: #8e7a50;
    --accent: #d86a4a;
    --accent-soft: #7a3a28;
    --accent-deep: #f2c4b4;
    --rule: #3a2d1a;
    --link: #f2c4b4;
  }
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  padding: 48px 24px 96px;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  font-size: 17px;
  font-family: var(--body-font);
  font-feature-settings: "ss01", "cv11";
}

main {
  max-width: 680px;
  margin: 0 auto;
}

a {
  color: var(--link);
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3 {
  font-family: var(--display-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 8px; }

p, li { margin: 10px 0; }
ul { padding-left: 22px; }

hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

.meta {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

nav.top {
  display: flex;
  gap: 20px;
  font-size: 14px;
  margin-bottom: 32px;
  color: var(--muted);
  text-transform: lowercase;
}
nav.top a { text-decoration: none; color: var(--muted); }
nav.top a:hover { color: var(--accent); }

::selection { background: var(--accent-soft); color: var(--accent-deep); }
