:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --text: #2a211b;
  --muted: #6b5d52;
  --line: #eadfd2;
  --accent: #b4531d;
  --accent-soft: #f6e6d8;
  --max: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f;
    --surface: #211a15;
    --text: #f1e8df;
    --muted: #b3a597;
    --line: #3a2f27;
    --accent: #e8935a;
    --accent-soft: #33241a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: .01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
nav.top { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 56px; }
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.25; font-weight: 600; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 12px; }
h2 { font-size: 1.4rem; margin: 2.2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.meta { color: var(--muted); font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 18px 0; }
.card h3 { margin-top: 0; }
.tag { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
@media (max-width: 600px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; border: 0; padding: 2px 0; }
  table.stack td:first-child { font-weight: 600; margin-bottom: 4px; }
  table.stack td:nth-child(2)::before { content: "When: "; color: var(--muted); }
  table.stack td:nth-child(3)::before { content: "Why: "; color: var(--muted); }
}

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 8px; } }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
footer.site nav a { color: var(--muted); }
footer.site p { margin: 0 0 4px; }
