:root {
  --ink: #20201d;
  --paper: #f7f4ed;
  --line: #c9c2b5;
  --accent: #7a3024;
  --muted: #625d53;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink: #e9e4da;
    --paper: #1d1d1b;
    --line: #565149;
    --accent: #e6a496;
    --muted: #c0b7a9;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #e9e4da;
  --paper: #1d1d1b;
  --line: #565149;
  --accent: #e6a496;
  --muted: #c0b7a9;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
}

.site-header, main, footer {
  margin: 0 auto;
  max-width: 46rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.wordmark, a { color: var(--accent); }
.wordmark { font-size: 0.9rem; font-weight: bold; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.author, .eyebrow, footer { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 0.25rem; color: var(--ink); cursor: pointer; font: inherit; font-size: 0.8rem; padding: 0.3rem 0.6rem; white-space: nowrap; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { min-height: calc(100vh - 9rem); padding-bottom: 4rem; padding-top: 5rem; }
.intro { border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); font-weight: normal; letter-spacing: -0.04em; line-height: 1; margin: 0 0 1.5rem; }
h2 { font-size: 1.2rem; font-weight: normal; margin: 3.5rem 0 1.25rem; }
.eyebrow { margin: 0 0 1rem; }
.hero-image { margin: 2rem 0 0; }
.hero-image img { display: block; height: auto; width: 100%; }
.story-list { display: block; margin-top: 2rem; }
.story-list a { border-bottom: 1px solid var(--line); color: var(--ink); display: block; padding: 1rem 0; text-decoration: none; }
.story-list a:hover { color: var(--accent); }
.story-list span { color: var(--accent); display: inline-block; font-size: 0.8rem; margin-right: 0.8rem; width: 1.5rem; }
.story h1 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 3rem; }
.story h2 { border-top: 1px solid var(--line); padding-top: 1rem; }
.story p { margin: 0 0 1.3rem; }
.back { border-top: 1px solid var(--line); margin-top: 4rem !important; padding-top: 1rem; }
footer { border-top: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; padding-bottom: 2rem; padding-top: 1rem; }

@media (max-width: 34rem) {
  body { font-size: 17px; }
  main { padding-top: 3rem; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
}
