:root {
  color-scheme: light;
  --bg: #f1f1ee;
  --paper: #fbfbf6;
  --paper-2: #ffffff;
  --ink: #121212;
  --muted: #5f5f58;
  --line: #171717;
  --soft-line: #d7d7cf;
  --oat: #e9e7dc;
  --oat-dark: #d9d5c7;
  --top: #d8f7b4;
  --good: #e1f0ff;
  --mid: #fff1ad;
  --normal: #ededE6;
  --uncertain: #ffe0d7;
  --danger: #8c2d18;
  --shadow-hard: 7px 7px 0 var(--ink);
  --shadow-soft: 0 18px 42px rgba(18, 18, 18, .08);
  --radius: 18px;
  --max-width: 1120px;
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(18,18,18,.035) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(225deg, rgba(18,18,18,.035) 25%, transparent 25%) 0 0 / 12px 12px,
    var(--bg);
}

a { color: inherit; }
button, select { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .7rem 1rem;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.page-shell {
  width: min(var(--max-width), calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-2);
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--ink);
}
.brand strong, .brand small { display: block; }
.brand strong { font-weight: 1000; }
.brand small { color: var(--muted); margin-top: 1px; font-size: .76rem; }

.status-pill, .score, .button, .source, select {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
}
.status-pill {
  padding: 9px 13px;
  color: var(--muted);
  font-size: .88rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero { padding: 6px 0 12px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(350px, 430px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 360px;
  padding: clamp(22px, 4vw, 42px);
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.eyebrow, .section-label, .card-kicker, .metric-label {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 1000;
}

h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 680px;
  margin: 12px 0 14px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button, .source {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 1000;
  transition: transform .14s ease, box-shadow .14s ease;
}
.button:hover, .source:hover { transform: translateY(-2px); }
.button:focus-visible, .source:focus-visible, select:focus-visible { outline: 3px solid rgba(18,18,18,.22); outline-offset: 3px; }
.button.primary { background: var(--ink); color: var(--paper-2); }
.button.ghost { background: var(--oat); }

.best-card, .metric-card, .deal-card, .info-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
}
.best-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  padding: clamp(22px, 4vw, 32px);
  overflow: hidden;
}
.oatly-pack {
  position: absolute;
  z-index: 1;
  right: 24px;
  top: 70px;
  width: min(34%, 150px);
  transform: rotate(7deg);
  filter: drop-shadow(6px 8px 0 rgba(18,18,18,.18));
  pointer-events: none;
}
.best-card > *:not(.oatly-pack) { position: relative; z-index: 2; }
.best-card::before {
  content: "WOW NO COW";
  position: absolute;
  right: -44px;
  top: 24px;
  width: 210px;
  transform: rotate(16deg);
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--oat);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-align: center;
  letter-spacing: .04em;
}
.best-card h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.best-store-lockup, .store-lockup {
  display: flex;
  align-items: center;
  min-height: 54px;
}
.store-logo {
  display: block;
  width: auto;
  max-width: 122px;
  height: 42px;
  object-fit: contain;
}
.store-logo-large {
  max-width: 150px;
  height: 56px;
  margin-top: 12px;
}

.price-line { margin-top: auto; padding-top: 24px; }
.price-line span {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.2rem, 12vw, 7rem);
  line-height: .86;
  letter-spacing: .01em;
}
.price-line small { color: var(--muted); font-weight: 1000; }
.best-facts, .deal-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}
.best-facts div, .deal-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 2px dotted var(--soft-line);
}
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 1000; }
.best-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.score {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  font-size: .78rem;
  font-weight: 1000;
  white-space: nowrap;
}
.score-topdeal { background: var(--top); }
.score-goed { background: var(--good); }
.score-matig { background: var(--mid); }
.score-normaal { background: var(--normal); color: var(--muted); }
.score-uncertain { background: var(--uncertain); color: var(--danger); }

.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 24px;
}
.metric-card {
  padding: 18px;
  background: var(--paper);
}
.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 38px 0 16px;
}
.toolbar h2 {
  margin: 4px 0 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
select {
  min-height: 42px;
  padding: 0 34px 0 14px;
  color: var(--ink);
  font-weight: 900;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.deal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  transition: transform .14s ease;
}
.deal-card:hover { transform: translateY(-3px); }
.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.store { color: var(--muted); font-weight: 1000; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.deal-card h3 { margin: 4px 0 0; font-size: 1.16rem; line-height: 1.08; }
.deal-price strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.45rem;
  line-height: .9;
}
.no-price .deal-price strong {
  max-width: 12rem;
  font-size: 2rem;
  line-height: 1;
}
.deal-price span { color: var(--muted); font-weight: 1000; }
.source { margin-top: auto; background: var(--oat); width: fit-content; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 42px;
}
.info-card {
  padding: 22px;
  background: var(--paper);
}
.info-card h2 { margin: 0 0 12px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; font-size: 2rem; letter-spacing: .02em; }
.info-card p, .info-card li { color: var(--muted); line-height: 1.55; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
  border: 2px dashed var(--ink);
  color: var(--muted);
  background: var(--paper-2);
}

@media (max-width: 880px) {
  .hero-grid, .info-grid { grid-template-columns: 1fr; }
  .best-card { order: -1; min-height: 320px; }
  .hero-copy { min-height: 0; }
  .summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 18px, var(--max-width)); padding-top: 10px; }
  .topbar { align-items: center; flex-direction: row; padding-bottom: 10px; }
  .status-pill { margin-left: auto; align-self: center; }
  .hero-grid { gap: 14px; grid-template-columns: minmax(0, 1fr); }
  .best-card, .hero-copy { width: 100%; max-width: 100%; }
  .best-card { min-height: auto; padding: 18px; }
  .best-card::before { right: -62px; top: 14px; transform: rotate(18deg) scale(.82); }
  .oatly-pack { width: 108px; right: 16px; top: 62px; transform: rotate(8deg); }
  .store-logo-large { max-width: 130px; height: 50px; margin-top: 8px; }
  .price-line { padding-top: 14px; }
  .price-line span { font-size: clamp(4.6rem, 28vw, 6.4rem); }
  .best-facts { margin-top: 12px; }
  .hero-copy { padding: 18px; box-shadow: 5px 5px 0 var(--ink); }
  h1 { font-size: clamp(2.25rem, 13vw, 3.4rem); }
  .hero-subtitle { font-size: .98rem; }
  .hero-actions { margin-top: 16px; }
  .summary, .deal-grid { grid-template-columns: 1fr; }
  .summary { margin-top: 16px; }
  .toolbar, .best-footer { align-items: stretch; flex-direction: column; }
  .controls, .controls label, select { width: 100%; }
  .source { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
