:root {
  --bg: #f4f0e8;
  --bg-2: #fffdf8;
  --ink: #1a1814;
  --muted: #5c574e;
  --line: #d9d3c7;
  --accent: #0d5c45;
  --accent-2: #0a4736;
  --warn: #8a3b12;
  --chip: #ece7db;
  --shadow: 0 1px 0 rgba(26, 24, 20, 0.06);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); }
a:hover { color: var(--accent); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0 0.9rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.checked {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: #e4f0ea;
  border: 1px solid #c6ddd3;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero { padding: 2.6rem 0 1.8rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 1.5rem;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  padding: 0;
  margin: 0 0 1.6rem;
  list-style: none;
}
.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.stats span { color: var(--muted); font-size: 0.92rem; }

.caveat {
  background: #f8eadc;
  border: 1px solid #e6c9a8;
  color: #4a2f16;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

nav.toc { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; font-size: 0.95rem; }
nav.toc a { text-decoration: none; border-bottom: 1px solid var(--line); }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(10px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filter, select, input[type="search"] {
  font: inherit;
  font-size: 0.92rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.filter[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #f6fff9;
}
input[type="search"] { min-width: min(100%, 16rem); border-radius: 8px; }
.count-line { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 0; }

.table-wrap { overflow-x: auto; margin: 1.2rem 0 2.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tr.hidden { display: none; }
.card-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--chip);
}
.card-pill.no { background: #e4f0ea; color: var(--accent-2); }
.card-pill.yes { background: #f8eadc; color: var(--warn); }
.name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.name a:hover { color: var(--accent); }

.cards { display: grid; gap: 1rem; margin: 0 0 3rem; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}
.card.hidden { display: none; }
.card-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; }
.card h2 { font-size: 1.2rem; margin: 0 0 0.15rem; font-family: var(--serif); font-weight: 600; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem 1rem;
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}
.specs dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.specs dd { margin: 0.1rem 0 0; }
.catch, .note { margin: 0.35rem 0; font-size: 0.95rem; }
.catch strong, .note strong { font-weight: 650; }
.official { font-size: 0.92rem; margin-top: 0.7rem; }

.howto { display: grid; gap: 1rem; margin: 0 0 3rem; }
.step-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.2rem; }
.step-card h3 { font-family: var(--serif); margin: 0 0 0.5rem; font-size: 1.25rem; }
.step-card ol { margin: 0.4rem 0 0.8rem; padding-left: 1.2rem; }
.step-card li { margin: 0.35rem 0; }

section h2 {
  font-family: var(--serif);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.section-lead { color: var(--muted); margin: 0 0 1rem; max-width: 42rem; }

.dropped { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; margin-bottom: 3rem; }
.dropped details { border-top: 1px solid var(--line); padding: 0.7rem 0; }
.dropped details:first-of-type { border-top: 0; }
.dropped summary { cursor: pointer; font-weight: 650; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
code { font-family: var(--mono); font-size: 0.88em; }

@media (max-width: 700px) {
  .hide-sm { display: none; }
  .hero { padding-top: 1.6rem; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
