:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #66645e;
  --line: #e4e1d8;
  --accent: #0f7b5f;
  --accent-ink: #ffffff;
  --warn-bg: #fff4dc;
  --warn-ink: #7a5300;
  --strong-bg: #e2f4ec;
  --strong-ink: #0b5c47;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --card: #1f1f1d;
    --ink: #f2f0ea;
    --muted: #a8a59c;
    --line: #34332f;
    --accent: #3fbf96;
    --accent-ink: #0c1f19;
    --warn-bg: #3a2e12;
    --warn-ink: #f3d48d;
    --strong-bg: #15392e;
    --strong-ink: #9fe3c9;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
header.site .logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; }
header.site .tag { color: var(--muted); font-size: .9rem; }

footer.site { margin-top: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; }
footer.site nav a { margin-right: 14px; }

h1 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); line-height: 1.2; margin: 28px 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }

/* index grid */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card .name { font-weight: 600; line-height: 1.3; }
.card .prices { color: var(--muted); font-size: .9rem; }
.card .prices b { color: var(--ink); }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.save { background: var(--accent); color: var(--accent-ink); }
.conf-strong { background: var(--strong-bg); color: var(--strong-ink); }
.conf-close { background: var(--warn-bg); color: var(--warn-ink); }

/* product page */
.compare { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.panel .big { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.panel .sub { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.panel.match { border: 2px solid var(--accent); }
.panel img { border-radius: 10px; margin: 12px 0; aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }

table.math { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: .95rem; }
table.math td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.math td:last-child { text-align: right; white-space: nowrap; }
table.math tr.total td { font-weight: 700; border-bottom: 0; }

.cta { display: block; text-align: center; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 14px 16px; border-radius: 12px; margin-top: 14px; font-size: 1.05rem; }
.cta:hover { filter: brightness(1.05); }
.storelink { display: inline-block; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.note { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-top: 12px; }
.facts { color: var(--muted); font-size: .88rem; margin-top: 20px; }
.facts li { margin: 4px 0; }
.prose { max-width: 680px; }
.prose h2 { font-size: 1.2rem; margin-top: 28px; }

/* ---------- product page designs under test (one shows per visit) ---------- */
/* Anton (SIL Open Font License), served from this site so no third party sees visitors. */
@font-face { font-family: "Anton"; src: url("anton.woff2") format("woff2"); font-display: swap; }
.product { max-width: 560px; margin: 0 auto; padding-top: 16px; }
.variant img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.small { color: var(--muted); font-size: .88rem; margin: 6px 0; }

/* hero: big percentage first */
.v-hero .hero-band { background: var(--accent); color: var(--accent-ink); padding: 20px 18px 16px; border-radius: 14px 14px 0 0; }
.v-hero .hero-big { font: 400 clamp(3.4rem, 17vw, 5.4rem)/.92 "Anton", Impact, "Arial Narrow Bold", sans-serif; text-transform: uppercase; }
.v-hero .hero-sub { margin-top: 6px; font-size: 1rem; }
.v-hero .hero-sub s { opacity: .75; }
.v-hero img { border-radius: 0 0 14px 14px; aspect-ratio: 16 / 11; }
.v-hero .lead { margin: 14px 0 0; }

/* card: one photo, one price, one button */
.v-card .deal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.v-card .deal-img { position: relative; }
.v-card .deal-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--bg); font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.v-card .deal-body { padding: 16px; }
.v-card h1 { margin: 0 0 6px; font-size: 1.4rem; }
.v-card .deal-price { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.v-card .deal-price b { font-size: 2.2rem; line-height: 1.1; }
.v-card .deal-price s { color: var(--muted); }

/* video: looks like the clip people just watched */
.v-video .vid { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.v-video .vid img { aspect-ratio: 9 / 12; }
.v-video .cap { position: absolute; left: 14px; right: 14px; color: #fff; text-transform: uppercase; font: 400 clamp(1.9rem, 9vw, 2.6rem)/1.02 "Anton", Impact, "Arial Narrow Bold", sans-serif; text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, .7); }
.v-video .cap-top { top: 14px; }
.v-video .cap-top s { color: #ffb4a6; text-decoration-thickness: 4px; }
.v-video .cap-bottom { bottom: 16px; color: #7ff0c3; }
.v-video .vid-body { padding-top: 6px; }

/* shared details under every design */
.details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.details .checked { font-size: .9rem; margin: 0 0 8px; }
.details .both-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.details .both-links .storelink { margin-top: 0; }
.details summary { cursor: pointer; margin-top: 14px; font-weight: 600; }
