/* The Shelf in the Veso Design System (Mist, and Night in dark mode). Tokens are in tokens.css. No accent colour:
   emphasis comes from size and weight. No framework and no scripts; motion is CSS only and off under reduced motion. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 16px/1.5 var(--font-text); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--space-4); }

.draft-banner { background: var(--ink); color: var(--on-ink); text-align: center; padding: var(--space-2) var(--space-4);
  font: 400 12px/1.4 var(--font-data); letter-spacing: .04em; }

/* Header */
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { margin: 0; display: flex; align-items: baseline; }
.brand a { font: 800 24px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand .by { display: inline-flex; align-items: center; min-height: 44px; margin-left: var(--space-2);
  font: 400 12px/1 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.brand .by:hover { color: var(--ink); text-decoration: underline; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); margin-right: calc(-1 * var(--space-3));
  font: 400 12px/1 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }

/* Type */
h1, h2 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(44px, 12vw, 64px); line-height: .9; letter-spacing: -.04em; margin: 0 0 var(--space-3); }
h2 { font-size: 28px; line-height: 1; letter-spacing: -.03em; margin: 0 0 var(--space-3); }
.label, .need, .crumb { font: 400 12px/1.3 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.lead { font: 500 17px/1.4 var(--font-text); color: var(--ink); margin: 0 0 var(--space-3); max-width: 34em; }
.hero-note, .subtitle { font: 400 14.5px/1.45 var(--font-text); color: var(--ink-muted); margin: 0; }
.subtitle { font-weight: 600; color: var(--ink); margin: 0 0 var(--space-2); }

/* The big numeral (the count on the home page, 404 on the error page) */
.numeral { display: block; margin: 10px 0 0 -6px; font: 800 166px/.8 var(--font-display); letter-spacing: -.07em; }
.title { margin: 0; font: 800 28px/1 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }

/* Home */
.hero { padding: var(--space-4) 0 var(--space-4); }
.hero h1.label { margin: 0; font-weight: 400; }
.hero .title { margin: 14px 0 var(--space-3); max-width: 16em; }
.hero-note { max-width: 30em; }

/* The key to the chips: grade A solid, B outlined, C dashed, Tested solid */
.key { margin: var(--space-8) 0 0; border-top: 1.5px solid var(--ink); padding-top: 6px; }
.key .label { margin: 0 0 14px; }
.key dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px var(--space-3); align-items: center; }
.key dt { justify-self: start; }
.key dd { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-muted); }
.chip.grade { min-width: 28px; text-align: center; }
.aisles { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-3) 0 var(--space-2); }
.aisle-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); text-decoration: none; font: 600 15px/1 var(--font-text); }
.aisle { margin: 48px 0; }
.aisle-head { border-top: 1.5px solid var(--ink); padding-top: 6px; }
.aisle-head .label { margin: 0 0 var(--space-3); }
.aisle-head h2 a { color: var(--ink); text-decoration: none; }
.aisle-head p { color: var(--ink-muted); margin: 0 0 var(--space-4); font-size: 14.5px; line-height: 1.45; }

/* Product cards: metric-tile ground, a data label, the name and one line */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 150px; padding: 14px var(--space-4) var(--space-4);
  background: var(--mist-raised); border-radius: var(--radius-tile); color: var(--ink); text-decoration: none; }
.card .need { margin: 0; }
.card-title { font: 800 24px/1 var(--font-display); letter-spacing: -.03em; }
.card-line { color: var(--ink-muted); font-size: 14.5px; line-height: 1.45; }
.card-meta { margin-top: auto; padding-top: var(--space-2); display: flex; gap: 6px; flex-wrap: wrap; }

/* Chips: solid for the strongest state, outlined for the middle one, faint for the weakest */
.chip { display: inline-block; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); white-space: nowrap; vertical-align: middle;
  font: 400 11.5px/27px var(--font-data); letter-spacing: .04em; text-transform: uppercase; }
.grade-A, .compat-verified { background: var(--ink); color: var(--on-ink); }
.grade-B, .compat-expected { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.grade-C, .compat-unsupported { border: 1.5px dashed var(--ink-muted); line-height: 24px; color: var(--ink-muted); }
.chip.draft { border: 1.5px dashed var(--ink); line-height: 24px; color: var(--ink); }
h2 .chip { margin-left: var(--space-2); vertical-align: 6px; }

/* Product page */
.crumb { margin: var(--space-4) 0 0; }
.crumb a { color: var(--ink-muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: var(--space-4) 0 var(--space-6); }
.page-head .need { margin: 0 0 var(--space-3); }
.badges { margin: var(--space-3) 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hero-img { display: block; width: 100%; height: auto; border-radius: var(--radius-photo); margin: 0 0 var(--space-6); background: var(--mist-raised); }
.block { padding: 14px 0 var(--space-6); border-top: 1.5px solid var(--ink); }
.block ul { padding-left: 1.2em; margin: 0; }
.block li { margin: 6px 0; }
.block li::marker { color: var(--ink-muted); }
.block p { margin: 0 0 10px; }
.cautions, .callout { border-top: 0; border-radius: var(--radius-tile); padding: var(--space-4) var(--space-4) 14px; margin: 0 0 var(--space-6); background: var(--mist-raised); }
.cautions { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cautions h2, .callout h2 { font-size: 22px; }
.cautions h2::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 10px;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--on-ink); font: 800 15px/1 var(--font-display); vertical-align: 3px; }
.grade-meaning { color: var(--ink-muted); }
.citations { font-size: 14.5px; line-height: 1.45; }
.reviewed { font: 400 12px/1.4 var(--font-data); letter-spacing: .02em; color: var(--ink-muted); margin-top: var(--space-3); }

/* Specs: readout rows, the label on the left and the value right-aligned in the data face */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 9px 0 10px; border-top: 1px solid var(--hairline); vertical-align: top; text-align: left; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 1px solid var(--hairline); }
.specs th { width: 40%; padding-right: var(--space-3); font: 400 12px/1.5 var(--font-data); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.specs td { font-size: 15px; line-height: 1.45; }

/* Where to buy: the dark "Our pick" panel. The label row names the retailer; the commission line sits directly above
   the buttons. */
.offers { margin: 40px calc(-1 * var(--space-2)) var(--space-4); padding: 22px var(--space-5) var(--space-6); background: var(--panel); color: var(--on-panel); border-radius: var(--radius-panel); }
.offer-group { display: flex; flex-direction: column; gap: 14px; }
.offer-group + .offer-group { margin-top: var(--space-6); padding-top: 18px; border-top: 1px solid var(--panel-raised); }
.offer-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.offer-label, .offer-where { margin: 0; font: 400 12px/1.3 var(--font-data); letter-spacing: .06em; text-transform: uppercase; }
.offer-where { color: var(--on-panel-muted); text-align: right; }
.offer-name { margin: 0; font: 800 32px/.95 var(--font-display); letter-spacing: -.04em; text-wrap: balance; }
.offer-name strong { font-weight: 800; }
.offer-note { margin: 0; color: var(--on-panel-sub); font-size: 14.5px; line-height: 1.45; }
.offers .disclosure { margin: 0; font: 400 12.5px/1.45 var(--font-text); color: var(--on-panel-sub); }
.offers .button { margin-top: 0; }
.offers .button + .button, .offers .button + .disabled { margin-top: -4px; }
.button { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 22px; margin-top: var(--space-3); border-radius: var(--radius-button);
  font: 600 16px/1 var(--font-text); text-decoration: none; text-align: center; }
.button svg { flex: 0 0 18px; }
.button.primary { background: var(--panel-action); color: var(--on-panel-action); }
.button.secondary { background: var(--panel-raised); color: var(--on-panel); }
.button.disabled { box-shadow: inset 0 0 0 1.5px var(--panel-raised); color: var(--on-panel-sub); }
.offers :focus-visible { outline-color: var(--on-panel); }
.fda { font: 400 12px/1.45 var(--font-data); letter-spacing: .02em; color: var(--ink-muted); margin: var(--space-4) 0; }

/* The 404: a big numeral, the way back, and every section */
.lost { padding: var(--space-4) 0 0; }
.lost .label { margin: 0; }
.lost .numeral { font-size: 150px; }
.lost .title { margin: 18px 0 10px; }
.lost p:not(.label) { max-width: 22em; margin: 0; }
.lost p.row { margin-top: var(--space-5); }
.lost .button { display: inline-flex; margin: 0; background: var(--ink); color: var(--on-ink); }
.go { list-style: none; margin: 28px 0 0; padding: 0; }
.go li { border-bottom: 1px solid var(--hairline); }
.go li:first-child { border-top: 1px solid var(--hairline); }
.go a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 56px; padding: 10px 0; text-decoration: none; }
.go b { display: block; font: 600 16px/1.25 var(--font-text); }
.go b + span { display: block; font: 400 12px/1.3 var(--font-data); letter-spacing: .02em; color: var(--ink-muted); }
.go a:hover b { text-decoration: underline; }

/* Footer: the dark panel with the disclosures and a link to every section */
.site-foot { max-width: 752px; margin: 48px auto 0; }
.foot-panel { background: var(--panel); color: var(--on-panel); border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  padding: 22px var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: 14px; }
.foot-panel .disc { display: flex; flex-direction: column; gap: var(--space-2); font: 400 12.5px/1.45 var(--font-text); color: var(--on-panel-sub); }
.foot-panel p { margin: 0; max-width: 60em; }
.foot-links { margin-top: 4px; padding-top: var(--space-4); border-top: 1px solid var(--panel-raised);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); }
.foot-links a { display: flex; align-items: center; min-height: 44px; font-size: 14.5px; line-height: 1.2; color: var(--on-panel); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-panel .fine { font: 400 12px/1.4 var(--font-data); letter-spacing: .02em; color: var(--on-panel-sub); }
.foot-panel :focus-visible { outline-color: var(--on-panel); }

/* Motion: presses give, pages cross-fade, cards rise into view. Without support or with reduced motion, nothing moves. */
@media (prefers-reduced-motion: no-preference) {
  .numeral { animation: settle var(--dur-settle) var(--ease-settle) backwards; }
  .card, .button, .aisle-chip { transition: transform var(--dur-press) var(--ease-settle), background-color var(--dur-fade) var(--ease-settle); }
  .card:active, .button:active, .aisle-chip:active { transform: scale(.98); }
  @supports (animation-timeline: view()) {
    .cards li, .block, .offers { animation: rise linear backwards; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
  .top { view-transition-name: top; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-page); animation-timing-function: var(--ease-settle); }
}
@keyframes settle { from { transform: translateY(12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@media (hover: hover) {
  .card:hover { background: color-mix(in srgb, var(--mist-raised) 70%, var(--mist)); }
  .button.primary:hover { background: color-mix(in srgb, var(--panel-action) 88%, var(--panel)); }
  .button.secondary:hover { background: color-mix(in srgb, var(--panel-raised) 80%, var(--on-panel)); }
}
