/* Layout: one centered reading column; the story index is a numbered list because the stories are a real sequence. */
:root {
  --bg: #f6f4f1;
  --fg: #1d1b19;
  --muted: #5e5852;
  --line: #d9d3cb;
  --accent: #8f2d2d;
  --accent-bg: #f3e1df;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412;
    --fg: #ece7e1;
    --muted: #a39b92;
    --line: #38332e;
    --accent: #e08a84;
    --accent-bg: #3a1f1e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161412;
  --fg: #ece7e1;
  --muted: #a39b92;
  --line: #38332e;
  --accent: #e08a84;
  --accent-bg: #3a1f1e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.statement {
  padding: 0.9rem 1.1rem;
  background: var(--accent-bg);
  color: var(--accent);
  border-left: 4px solid var(--accent);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.45;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.intro p { margin: 0; }
.intro strong { color: var(--fg); }

.stories {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: story;
  border-top: 1px solid var(--line);
}

.stories li {
  counter-increment: story;
  border-bottom: 1px solid var(--line);
}

.stories a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  color: var(--fg);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.stories a::before {
  content: counter(story, decimal-leading-zero);
  flex: none;
  min-width: 1.8rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stories a:hover { color: var(--accent); }

.stories a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media print {
  .noprint { display: none; }
}
