:root {
  --bg: #f4f1eb;
  --ink: #1c1917;
  --muted: #57534e;
  --accent: #1e3a5f;
  --card: #fffcf7;
  --border: #d6d3d1;
  --chip: #eef2f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.site-header, .site-footer, main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.brand { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.01em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.site-header nav a { margin-left: 0; text-decoration: none; font-size: 0.95rem; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; margin-top: 2.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 0.75rem; }
.site-footer nav a { text-decoration: none; }
.affiliate-disclosure {
  background: #fff8e8;
  border: 1px solid #e6d4a8;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.method-chip {
  display: inline-block;
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
.method-chip a { font-weight: 600; text-decoration: none; }
.prose :is(h1,h2,h3) { line-height: 1.25; letter-spacing: -0.015em; }
.prose h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
.prose h2 { font-size: 1.35rem; margin: 2rem 0 0.85rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--accent); }
.prose h3 { font-size: 1.05rem; margin: 0; }
.prose > p { max-width: 42rem; }
.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.85rem;
  margin: 0 0 0.5rem;
}
.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 7.5rem;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.04);
}
.hub-card-title { margin: 0; font-size: 1.02rem; }
.hub-card-title a { text-decoration: none; color: var(--ink); font-weight: 700; }
.hub-card-title a:hover { color: var(--accent); text-decoration: underline; }
.hub-card-blurb { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.card-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 0.85rem; }
.card-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin: 0;
}
.card-list a { font-weight: 700; text-decoration: none; color: var(--ink); }
.card-list p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.92rem; }
.lede { color: var(--muted); max-width: 40rem; }
.home-hero {
  margin: 0 0 1.75rem;
}
.home-hero h1 { margin-bottom: 0.5rem; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }
.related-links { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.related-links ul { padding-left: 1.25rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
.prose th { background: #f0ebe3; }
img, .prose img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.prose figure { margin: 1.25rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 640px) {
  .hub-card-grid, .card-list { grid-template-columns: 1fr; }
}

/* Spec status tables — Published / Gap / Conflict (append-only) */
.spec-status-figure { margin: 1.25rem 0 1.75rem; }
.spec-status-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.spec-status-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
  background: var(--card);
}
.spec-status-table th,
.spec-status-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.spec-status-table th {
  background: #e8eef5;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.spec-status-table tr[data-status="gap"] td:last-child,
.spec-status-table tr[data-status="conflict"] td:last-child {
  font-weight: 600;
}
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--ink);
  white-space: nowrap;
}
.status-pill.status-published { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.status-pill.status-gap { background: #fff8e1; border-color: #ffe082; color: #6d4c00; }
.status-pill.status-conflict { background: #fdecea; border-color: #ef9a9a; color: #b71c1c; }
.shortlist-stop {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
}
.shortlist-stop h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }
.shortlist-stop ol { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.affiliate-ctas {
  background: #f7faf5;
  border: 1px solid var(--border, #d5ddd0);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1.75rem 0 0.5rem;
  font-size: 0.95rem;
}
.affiliate-ctas ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.affiliate-ctas li { margin: 0.35rem 0; }
.affiliate-ctas a { font-weight: 600; }
