@font-face {
  font-family: Bricolage;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/font/bricolage-400.woff2) format('woff2');
}
@font-face {
  font-family: Bricolage;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/font/bricolage-700.woff2) format('woff2');
}

/* Cateroskop. The subject is measurement, not food — every competitor styles itself
   as a lifestyle brand, and we explicitly do not judge taste. So: instrument, not
   menu. Paper with a cool graph-paper cast, ink with a green undertone, and colour
   doing exactly one job — saying how certain a number is. */

:root {
  --paper: #f7f9f7;
  --wash: #edf2ee;
  --ink: #101614;
  --ink-soft: #59645f;
  --rule: #d7dfda;
  --measure: #1b6b5a;
  --uncertain: #b8752c;
  --uncertain-ink: #8a551b;
  --rule-strong: #101614;

  --display: Bricolage, ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* One measure for everything. Text, tables, hero and footer share both edges;
     nothing on this site gets its own width. */
  --shell: 64rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1211;
    --wash: #19211f;
    --ink: #e7ece9;
    --ink-soft: #96a29d;
    --rule: #29332f;
    --measure: #5fc4ab;
    --uncertain: #e0a75f;
    --uncertain-ink: #e0a75f;
    --rule-strong: #5a6b64;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--body);
  font-synthesis-weight: none;
  /* A single long token — a URL, a brand slug — must break rather than widen the page. */
  overflow-wrap: anywhere;
}

.wrap { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }


/* ---- masthead ---------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0 0.85rem;
  border-bottom: 1.5px solid var(--rule-strong);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark svg { width: 1.35rem; height: 1.35rem; color: var(--ink); flex: none; }

.masthead nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.92rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--measure); text-decoration: underline; text-underline-offset: 3px; }

/* ---- type -------------------------------------------------------------- */

h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 2.7rem);
     letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 0.9rem; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.012em;
     margin: 2.75rem 0 0.7rem; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 1.75rem 0 0.5rem; }

p { margin: 0 0 0.9rem; }
.lead { font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
a { color: var(--measure); text-underline-offset: 2px; }
.muted { color: var(--ink-soft); }

/* ---- readout ----------------------------------------------------------- */

/* An instrument states its conditions before its result. A row of big stat tiles
   would say the same thing louder and mean less. */
.readout {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
  padding: 0.55rem 0;
  border-block: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.readout b { color: var(--ink); font-weight: 600; }

/* ---- score display ----------------------------------------------------- */

/* The sector reads scores out of five and shows stars; a site that invents its
   own scale makes the reader do conversion work for nothing. */

.stars {
  position: relative; display: inline-block; white-space: nowrap;
  color: color-mix(in srgb, var(--ink-soft) 45%, var(--paper));
  letter-spacing: 0.02em; margin-right: 0.4rem; font-size: 0.95em;
}
.stars-on {
  position: absolute; inset-block: 0; left: 0; overflow: hidden;
  color: var(--measure); white-space: nowrap;
}
.score b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pts b { font-weight: 600; font-size: 1.02em; font-variant-numeric: tabular-nums; }
.score { white-space: nowrap; }

.hero {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.1rem 0; border-block: 1px solid var(--rule); margin-bottom: 1.5rem;
}

.hero-score { display: flex; align-items: baseline; gap: 0.15rem; font-family: var(--display); }
.hero-score b { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.hero-score span { font-size: 1.1rem; color: var(--ink-soft); }
.hero-meta { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
.hero-meta b { color: var(--ink); }

.dims th, .facts th { font-weight: 400; color: var(--ink-soft); width: 45%; }
.facts td { color: var(--ink); }
.small { font-size: 0.85rem; }

/* ---- tables ------------------------------------------------------------ */

table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.55rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td, th, .hero-score b { font-variant-numeric: tabular-nums; }

thead th {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft);
  border-bottom: 1.5px solid var(--rule-strong); padding-bottom: 0.35rem;
}

/* Right-aligned, not unbreakable: some of these cells hold a sentence. The number
   itself still stays whole, because the page-wide anywhere-break would split it. */
.num { text-align: right; overflow-wrap: normal; }
.rank { font-family: var(--mono); color: var(--ink-soft); width: 2.4rem; }
.brand a { color: var(--ink); text-decoration: none; font-weight: 500; }
.brand a:hover { color: var(--measure); text-decoration: underline; text-underline-offset: 3px; }
tbody tr:hover { background: color-mix(in srgb, var(--measure) 17%, var(--paper)); }
.ranking tbody tr:nth-child(5n) td { border-bottom-color: var(--ink-soft); }

.profile th { font-weight: 400; color: var(--ink-soft); }

.delta[data-sign="pos"] { color: var(--measure); }
.delta[data-sign="neg"] { color: var(--uncertain-ink); }

/* ---- notes ------------------------------------------------------------- */

.flag {
  border-block: 1px solid var(--uncertain);
  padding: 0.7rem 0;
  font-size: 0.95rem;
  margin: 1.5rem 0;
}

/* ---- footer ------------------------------------------------------------ */

footer {
  margin-top: 4rem; padding: 1.4rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.87rem; line-height: 1.5; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer strong { color: var(--ink); }

/* ---- floor ------------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--measure); outline-offset: 2px; border-radius: 2px; }

/* Columns drop one at a time, each above the width where its own content stops
   fitting, because the page must never scroll sideways. Widest goes first. */

@media (max-width: 62rem) { .col-span { display: none; } }
@media (max-width: 46rem) { .col-reviews { display: none; } }
@media (max-width: 30rem) { .col-price { display: none; } }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  th, td { padding: 0.5rem 0.3rem; }
  .hero-score b { font-size: 2rem; }
  .masthead nav { order: 3; width: 100%; }
}

/* ---- rank range -------------------------------------------------------- */

/* The one figure no competing ranking publishes: a place is a range, not a point.
   Ochre is the spread, teal is the measured place — the same two colours the rest
   of the site uses for exactly that distinction. */

.rankspan {
  position: relative; height: 0.625rem; border-radius: 0.3125rem;
  background: color-mix(in srgb, var(--ink-soft) 16%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--ink-soft) 70%, var(--paper));
  margin: 0.7rem 0 0.4rem;
}
.rankspan-fill {
  position: absolute; inset-block: 0; border-radius: 0.3125rem;
  background: var(--uncertain); opacity: 0.4;
}
.rankspan-dot {
  position: absolute; top: -0.25rem; width: 1rem; height: 1rem; margin-left: -0.5rem;
  border-radius: 50%; background: var(--measure); border: 2px solid var(--paper);
}

.span-cell { width: 7.5rem; padding-block: 0.5rem; }
.span-cell .rankspan {
  height: 0.375rem; margin: 0; border-radius: 0.1875rem;
}
.span-cell .rankspan-fill { border-radius: 0.1875rem; opacity: 0.55; }
.span-cell .rankspan-dot {
  top: -0.1875rem; width: 0.75rem; height: 0.75rem; margin-left: -0.375rem; border-width: 1.5px;
}
.span-cell .span-label {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-soft); margin-top: 0.3rem; letter-spacing: 0.02em;
}

/* ---- section rhythm ---------------------------------------------------- */

/* Sections read as panels on an instrument: a rule, then a label in the same
   mono voice as the table headers, then the heading. */
main h2 {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  margin-top: 3rem;
}
main h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
  margin: 1.6rem 0 0.35rem;
}
h3 + p { margin-top: 0; }

.linkfarm { columns: 2; column-gap: 2rem; }
.linkfarm a { break-inside: avoid; }

.row-detail { display: none; font-size: 0.8rem; color: var(--ink-soft); }

@media (max-width: 46rem) {
  .row-detail { display: block; margin-top: 0.2rem; }
  .linkfarm { columns: 1; }
}

.spans th { font-weight: 500; color: var(--ink); width: 30%; }
.spans td { vertical-align: middle; }
.spans .rankspan { margin: 0; }
