:root, .theme-light {
  color-scheme: light;
  --bg: white;
  --fg: #1a1a1a;
  --muted: #666;
  --muted-2: #aaa;
  --border: #e5e5e5;
  --accent: #c63;
  --visited: #6e4da1;
}
.theme-dark {
  color-scheme: dark;
  --bg: #111;
  --fg: #e5e5e5;
  --muted: #888;
  --muted-2: #555;
  --border: #2a2a2a;
  --accent: #f80;
  --visited: #6e4da1;
}
@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    color-scheme: dark;
    --bg: #111;
    --fg: #e5e5e5;
    --muted: #888;
    --muted-2: #555;
    --border: #2a2a2a;
    --accent: #f80;
    --visited: #6e4da1;
  }
}
.font-sans body { font-family: system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
body {
  max-width: 40rem;
  margin: 1.5rem auto;
  padding: 0 1rem;
  font: 1rem/1.55 'New York', 'Iowan Old Style', Charter, Cambria, Constantia, Georgia, serif;
  font-size-adjust: 0.52;
  background: var(--bg);
  color: var(--fg);
}
h1, h2, h3,
.topnav, .meta, .byline, .story-source, .article-blocked, footer {
  font-family: system-ui, -apple-system, sans-serif;
}
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.8125rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.25rem; margin-top: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 0.875rem; }
.description { margin: 0.5rem 0; }
.tagline { font-size: 1.125rem; color: var(--fg); margin: 0.25rem 0 0.75rem; }
.story { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.story:last-of-type { border-bottom: 0; }
.story h2 { margin: 0.25rem 0 0; font-size: 1.125rem; line-height: 1.25; }
.story h2 + .description { margin-top: 0.25rem; }
.story p { margin: 0.25rem 0; }
.story-source { color: var(--muted); font-size: 0.875rem; font-weight: normal; }
.article-blocked { color: var(--muted); font-style: italic; }
.summary, .comment-summary { margin: 0.75rem 0; }
.story-page header { margin-bottom: 1.5rem; }
.story-page .description { font-size: 1.125rem; font-weight: 600; }
.byline { color: var(--muted); font-size: 0.875rem; margin: 0.25rem 0 0.5rem; }
.comments { font-size: 1rem; margin: 1.75rem 0 0.75rem; }
.comments-heading { font-size: 1.125rem; margin: 0.5rem 0; font-weight: 600; }
.comments ul { margin: 0; padding-left: 1.25rem; }
.comments li { margin: 0.25rem 0; }
.about h1 { margin-bottom: 0; }
.about h1 + p { margin-top: 0.25rem; }
.about h2 { margin: 2rem 0 0; font-size: 1.25rem; }
.about h2 + p { margin-top: 0.25rem; }
.about p { margin: 0.5rem 0; }
.about code, .prompt-text { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.about code { font-size: 0.9em; }
.prompt-text {
  white-space: pre-wrap;
  font-size: 0.875rem;
  padding: 1rem;
  background: var(--border);
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
  line-height: 1.5;
}
.generation-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-family: system-ui, -apple-system, sans-serif;
}
.generation-note p { margin: 0; }
.nav-arrows a { margin-right: 1rem; }
.nav-arrows a:last-child { margin-right: 0; }
.topnav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
@media print { .topnav { display: none; } }
footer { margin-top: 0; padding-top: 0.75rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.pref-cycle {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0.25rem 0;
}
.pref-cycle:hover { text-decoration: underline; }
a:visited { color: var(--accent); }
.story h2 a:visited { color: #6e4da1; }
