:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #242c27;
  --muted: #62685f;
  --green: #365e47;
  --line: #dcded3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1b211d;
    --ink: #e5e8df;
    --muted: #adb7a9;
    --green: #9bc9aa;
    --line: #384239;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1b211d;
  --ink: #e5e8df;
  --muted: #adb7a9;
  --green: #9bc9aa;
  --line: #384239;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
h1, h2, p { margin: 0; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
.shell { max-width: 836px; margin: 0 auto; padding: 0 28px 48px; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--line);
}
.masthead h1 { font: bold 28px/1.2 Georgia, serif; }
.masthead a { color: var(--ink); }
.masthead a:hover { text-decoration: none; }
.theme-control { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--muted); }
.theme-control[hidden] { display: none; }
.theme-control:hover { color: var(--ink); }
.theme-control:has(select:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-control select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.theme-control svg { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
:root[data-theme="system"] .theme-system,
:root[data-theme="light"] .theme-light,
:root[data-theme="dark"] .theme-dark { display: block; }

.section-title { margin-top: 24px; font: 400 22px/1.3 Georgia, serif; }
.empty-state { padding: 32px 0; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; font-size: 14px; }

.story { padding: 26px 0; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
.story h2 { font: 400 27px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.4px; text-wrap: pretty; }
.story p { margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  .shell { padding: 0 20px 28px; }
  .masthead { padding: 24px 0 18px; flex-wrap: wrap; gap: 8px 16px; }
  .story { padding: 23px 0; }
  .story h2 { font-size: 25px; }
  .story p { font-size: 17px; }
}
