/* Narrow Counter — stylesheet. No webfonts, no frameworks, no external requests. */

:root {
  --ink: #1c1512;
  --espresso: #2e211a;
  --crema: #e9dcc7;
  --paper: #faf6ee;
  --terracotta: #b4502f;
  --steel: #6e655c;
  --line: #d9cdba;
  --white: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--terracotta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--espresso); }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
}

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--espresso); color: var(--paper);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 40;
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px; padding-top: 12px; padding-bottom: 12px;
}
.wordmark { text-decoration: none; color: var(--ink); display: block; line-height: 1; }
.wordmark .l1 {
  display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.wordmark .l2 {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--steel); margin-top: 5px;
  border-top: 1px solid var(--ink); padding-top: 4px;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }
.shortlist-link {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--ink); padding: 7px 12px !important; border-bottom: 1px solid var(--ink) !important;
}
.shortlist-count {
  font-family: var(--mono); font-size: 10px; background: var(--terracotta); color: var(--white);
  min-width: 16px; height: 16px; border-radius: 8px; display: inline-grid; place-items: center; padding: 0 4px;
}
.shortlist-count[data-empty="true"] { background: var(--crema); color: var(--steel); }

/* ---------- layout blocks ---------- */
main { display: block; }
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section.tight { padding: 40px 0; }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 18px;
}
h1.display { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.025em; }
h2.section-title { font-size: clamp(26px, 3vw, 36px); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: #3a2f28; max-width: 62ch; margin: 22px 0 0; }
.small { font-size: 14px; color: var(--steel); }
.rule { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

.grid { display: grid; gap: 28px; }
/* Grid items default to their min-content width, which lets a wide table push a
   whole column past the viewport. Each item may shrink so inner tables scroll. */
.grid > *, .split > *, .product-head > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero .kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); display: flex; gap: 14px; align-items: center; margin-bottom: 26px;
}
.hero .kicker::before { content: ""; width: 42px; height: 1px; background: var(--ink); display: inline-block; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.btn {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; padding: 14px 22px;
  border: 1px solid var(--espresso); background: var(--espresso); color: var(--paper);
  transition: background 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 10px 16px; }

/* ---------- footprint drawings ---------- */
.fp { background: var(--white); border: 1px solid var(--line); padding: 14px; }
.fp svg { width: 100%; height: auto; max-height: 230px; }
.fp-caption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--steel); margin-top: 8px; display: flex; justify-content: space-between; gap: 8px;
}
.compare-strip { background: var(--white); border: 1px solid var(--line); padding: 24px; overflow-x: auto; }
/* Keep the drawing legible on small screens: it scrolls inside its own frame
   rather than shrinking labels to nothing or widening the page. */
.compare-strip > svg { min-width: 600px; max-width: none; }
.compare-strip.compare-strip-wide > svg { min-width: 1150px; }

/* ---------- product cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); padding: 20px;
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.card:hover { border-color: #c3b39c; }
.card .fp { border: 1px solid var(--line); padding: 10px; background: #fbf7ef; display: flex; justify-content: center; align-items: flex-end; }
.card .fp svg { height: 190px; width: auto; max-height: 190px; }
.buybox .fp svg { max-height: 260px; width: auto; margin: 0 auto; }
.card h3 { font-size: 22px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--terracotta); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 3px 7px; color: var(--steel);
}
.card .verdict-line { font-size: 14.5px; color: #3a2f28; margin: 0; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.price em { font-style: normal; color: var(--steel); font-size: 10px; display: block; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel); background: #f3ece0; font-weight: 400; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
tbody tr:hover { background: #fdfaf4; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 30px; margin: 44px 0 14px; }
.prose h3 { font-size: 22px; margin: 32px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose table { font-size: 14px; margin: 24px 0; border-top: 1px solid var(--line); }
/* Guide tables are three columns and sit in a 68ch measure; the 640px data-table
   minimum would make them scroll on a desktop, so they get their own floor. */
.prose .table-scroll table { min-width: 520px; }
.prose blockquote {
  margin: 26px 0; padding: 18px 22px; border-left: 2px solid var(--terracotta);
  background: var(--white); font-size: 18px;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: #f1e8da; padding: 2px 5px; }

.note {
  background: var(--white); border: 1px solid var(--line); border-left: 2px solid var(--terracotta);
  padding: 18px 22px; margin: 28px 0; font-size: 15px;
}
.note strong { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--terracotta); }
.note p:last-child { margin-bottom: 0; }

.meta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0 36px; }

/* ---------- product page ---------- */
.product-head { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.buybox { background: var(--white); border: 1px solid var(--line); padding: 24px; position: sticky; top: 96px; }
.buybox .fp { border: 0; padding: 0; background: transparent; margin-bottom: 18px; }
.buybox .price { font-size: 15px; margin: 0 0 4px; }
.buybox .btn { width: 100%; text-align: center; margin-top: 16px; }
.buybox ul { margin: 16px 0 0; padding-left: 18px; font-size: 14px; }
.buybox li { margin-bottom: 6px; }
.disclosure-inline { font-size: 12.5px; color: var(--steel); margin-top: 14px; line-height: 1.4; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.pc { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.pc h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; color: var(--steel); }
.pc ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.pc li { margin-bottom: 7px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 34px; }
.chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 8px 12px; cursor: pointer;
}
.chip:hover { border-color: var(--steel); }
.chip[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--paper); }
.filter-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-group > .mono { margin-right: 4px; }
.search-box {
  font-family: var(--serif); font-size: 15px; padding: 9px 12px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); min-width: 210px;
}
.result-count { font-family: var(--mono); font-size: 11px; color: var(--steel); margin-left: auto; }

/* ---------- shortlist ---------- */
.empty-state { border: 1px dashed var(--line); padding: 48px 24px; text-align: center; background: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: #e7dccd; padding: 56px 0 32px; margin-top: 0; }
.site-footer a { color: #f0e5d5; text-decoration: none; border-bottom: 1px solid rgba(240,229,213,0.3); }
.site-footer a:hover { color: var(--white); border-bottom-color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .wordmark .l1, .site-footer .wordmark .l2 { color: #f3ead9; }
.site-footer .wordmark .l2 { border-top-color: rgba(243,234,217,0.5); color: #c9bda9; }
.footer-grid h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #b7a892; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-grid li { margin-bottom: 9px; }
.footer-base {
  border-top: 1px solid rgba(233,220,199,0.22); margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: #b7a892;
}

/* ---------- misc ---------- */
.breadcrumbs { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); padding: 18px 0; }
.breadcrumbs a { color: var(--steel); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta); }
.breadcrumbs span { margin: 0 7px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.kpi { padding: 22px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .n { font-size: 30px; display: block; margin-bottom: 4px; }
.kpi .mono { display: block; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; align-items: baseline; }
.list-plain li:first-child { border-top: 1px solid var(--line); }
.list-plain a { color: var(--ink); text-decoration: none; font-size: 19px; }
.list-plain a:hover { color: var(--terracotta); }

@media (max-width: 980px) {
  .split, .product-head { grid-template-columns: 1fr; gap: 36px; }
  .buybox { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .grid-2, .grid-3, .grid-4, .proscons, .kpi-row { grid-template-columns: 1fr; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .nav { gap: 14px; width: 100%; margin-left: 0; }
  /* Two rows of navigation make a sticky header eat a fifth of a phone screen. */
  .site-header { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 34px; }
}
