:root {
  color-scheme: light;
  --paper: #f4efe4;
  --ink: #1b1914;
  --muted: #5c564b;
  --rule: #d4cbb8;
  --card: #fffdf7;
  --accent: #1f4d4a;
  --accent-2: #8a4b1f;
  --accent-3: #3d5a27;
  --warn: #7a2e12;
  --band: rgba(31, 77, 74, 0.14);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  background: var(--card);
  padding: 0.35rem 0.6rem;
  z-index: 10;
}
.preview-banner, .status-banner {
  padding: 0.45rem 0.85rem;
  text-align: center;
  font-size: 0.92rem;
}
.preview-banner {
  background: #7a2e12;
  color: #fffdf7;
}
.status-banner {
  background: #efe6d6;
  color: var(--warn);
  border-bottom: 1px solid var(--rule);
}
.site-header, .site-footer, .page {
  width: 100%;
  max-width: 736px;
  margin: 0 auto;
  padding: 1rem 0.85rem;
}
.site-header {
  padding-bottom: 0.35rem;
}
.brand a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}
.product-label {
  margin: 0.15rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.4rem;
}
.site-nav a {
  color: var(--accent);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink);
}
.page {
  padding-top: 0.35rem;
  padding-bottom: 3rem;
}
header h1, .page h1 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.lede, .note, .muted, .hint { color: var(--muted); }
.lede { margin: 0 0 1rem; }
.freshness, .card, .callout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  min-width: 0;
}
.freshness { margin: 0 0 1rem; }
.freshness dl {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.2rem 0.6rem;
  margin: 0;
}
.freshness dt { color: var(--muted); font-size: 0.82rem; }
.freshness dd { margin: 0; overflow-wrap: anywhere; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}
.card .label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.card .value { font-size: 1.35rem; font-weight: 650; overflow-wrap: anywhere; }
.card .hint { font-size: 0.78rem; color: var(--muted); }
section { margin: 1.4rem 0; }
h2 { font-size: 1.15rem; margin: 0 0 0.45rem; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.swatch { display: inline-block; width: 1.1rem; height: 0.18rem; margin-right: 0.3rem; vertical-align: middle; }
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td, .issue-id {
  text-align: left;
  padding: 0.38rem 0.3rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge, .unavailable-pill {
  display: inline-block;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
}
.unavailable, .warn { color: var(--warn); }
.unavailable-card { background: #efe6d6; }
ul { padding-left: 1.15rem; }
.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.story-tabs button {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
}
.story-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
textarea, button.action {
  width: 100%;
  font: inherit;
}
textarea {
  min-height: 4.5rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
}
button.action {
  margin-top: 0.45rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}
details { margin: 0.6rem 0; }
summary { cursor: pointer; font-weight: 600; }
.page a { color: var(--accent); }
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  padding: 0;
}
.prose p { margin: 0.55rem 0; }
.callout { margin: 0.8rem 0; }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  header h1, .page h1 { font-size: 1.9rem; }
}
@media (max-width: 360px) {
  .site-header, .site-footer, .page { padding-left: 0.65rem; padding-right: 0.65rem; }
  .card .value { font-size: 1.15rem; }
  .freshness dl { grid-template-columns: 1fr; }
}
