:root {
  --bg: #f5f1e8;
  --bg-elev: #fffcf6;
  --ink: #171512;
  --muted: #5c564c;
  --line: #ddd6c8;
  --accent: #0b5c4d;
  --accent-ink: #083f35;
  --accent-soft: #dceee8;
  --warn: #7a4a12;
  --focus: #0b5c4d;
  --max: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; height: auto; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  min-height: 44px;
}
.brand svg { display: block; }
.brand span { font-size: 1.05rem; }
nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
nav.primary a:hover, nav.primary a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}
main { padding: 1.75rem 0 3.5rem; }
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 0.6rem; }
h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.05rem; margin: 1.3rem 0 0.4rem; }
.lede { font-size: 1.12rem; max-width: 44rem; color: var(--muted); margin: 0 0 1.2rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
.stamp { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; }
.notice, .card, .prose, table.tracker, .filters, .signup {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.notice, .card, .signup, .filters, .prose { padding: 1.1rem 1.2rem; }
.notice { margin: 1rem 0 1.4rem; }
.grid { display: grid; gap: 1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card h3 { margin-top: 0; }
.card p { margin: 0.35rem 0; }
.card .maker { color: var(--muted); font-size: 0.9rem; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: end;
  margin: 1rem 0;
}
.filters label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.filters input, .filters select {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  min-width: 11rem;
}
.filters input { min-width: 16rem; flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
table.tracker { width: 100%; border-collapse: collapse; border: 0; border-radius: 0; }
table.tracker th, table.tracker td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
table.tracker th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f3eee4;
  position: sticky;
  top: 0;
}
table.tracker th button {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
table.tracker th button:hover { color: var(--accent-ink); }
table.tracker tr:last-child td { border-bottom: 0; }
table.tracker a.name { font-weight: 650; color: var(--ink); text-decoration: none; }
table.tracker a.name:hover { color: var(--accent); text-decoration: underline; }
.price { font-size: 0.92rem; }
.empty { padding: 1.2rem; color: var(--muted); }
.prose { margin: 1rem 0; max-width: 46rem; padding: 1.3rem 1.4rem; }
.prose.wide { max-width: 52rem; }
.prose p { margin: 0 0 0.9rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.signup { margin: 2rem 0 0; }
.signup form, .signup-fields { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; }
.signup label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.signup input {
  font: inherit; font-weight: 400;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  min-width: 14rem;
  background: #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1rem;
  background: var(--accent); color: #fff; text-decoration: none;
  border: 0; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.disclaimer-inline { font-size: 0.88rem; color: var(--muted); margin: 0.8rem 0 0; }
dl.facts { display: grid; grid-template-columns: 10rem 1fr; gap: 0.55rem 1rem; margin: 1rem 0; }
dl.facts dt { color: var(--muted); font-weight: 650; }
dl.facts dd { margin: 0; }
.claim { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0.8rem 0; }
footer.site {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .row { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; align-items: center; }
footer.site a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.5rem 0.8rem;
}
.skip:focus { left: 0.5rem; z-index: 40; }
@media (max-width: 720px) {
  table.tracker thead { display: none; }
  table.tracker, table.tracker tbody, table.tracker tr, table.tracker td { display: block; width: 100%; }
  table.tracker tr { padding: 0.85rem 0.7rem; border-bottom: 1px solid var(--line); }
  table.tracker td { border: 0; padding: 0.2rem 0; }
  table.tracker td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 650;
  }
  dl.facts { grid-template-columns: 1fr; }
  .filters input, .filters select, .signup input { min-width: 100%; width: 100%; }
}
