/* winepicker.co.uk */
:root {
  --wine: #5e1a2e; --wine-dark: #45111f; --wine-bright: #8c2c47;
  --ink: #241a1d; --ink-soft: #5a4a4e; --paper: #faf7f5; --card: #ffffff;
  --line: #e7dcdd; --amber: #b3690a; --green: #2f7a4a; --gold: #a8842e;
  --radius: 14px; --shadow: 0 1px 3px rgba(36, 26, 29, .08), 0 8px 24px rgba(36, 26, 29, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --wine: #d9718c; --wine-dark: #c4506d; --wine-bright: #e8a0b3;
    --ink: #f0e6e8; --ink-soft: #b9a9ad; --paper: #17100f; --card: #221818;
    --line: #362627; --amber: #e0964a; --green: #4fbf7f; --gold: #d4b25a;
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --wine: #d9718c; --wine-dark: #c4506d; --wine-bright: #e8a0b3;
  --ink: #f0e6e8; --ink-soft: #b9a9ad; --paper: #17100f; --card: #221818;
  --line: #362627; --amber: #e0964a; --green: #4fbf7f; --gold: #d4b25a;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
:root[data-theme="light"] {
  --wine: #5e1a2e; --wine-dark: #45111f; --wine-bright: #8c2c47;
  --ink: #241a1d; --ink-soft: #5a4a4e; --paper: #faf7f5; --card: #ffffff;
  --line: #e7dcdd; --amber: #b3690a; --green: #2f7a4a; --gold: #a8842e;
  --shadow: 0 1px 3px rgba(36, 26, 29, .08), 0 8px 24px rgba(36, 26, 29, .06);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--wine-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, .logo, .offer-price, .card .price, .merchant-count strong, .stat strong { font-family: "Fraunces", Georgia, serif; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em; margin: .3em 0 .3em; font-weight: 600; }
h2 { font-size: 1.55rem; margin: 1.6em 0 .6em; letter-spacing: -.005em; font-weight: 600; }
.eyebrow + h2 { margin-top: .9em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; border-radius: 4px; }
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 68ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.prose p { max-width: 68ch; }

/* header */
.site-head { background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head nav { display: flex; align-items: center; gap: 18px; padding: 12px 20px; flex-wrap: wrap; max-width: 1080px; margin: 0 auto; }
.theme-toggle { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; width: 34px; height: 34px;
  cursor: pointer; font-size: .95rem; line-height: 1; display: grid; place-items: center; transition: transform .2s ease; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--wine-dark); letter-spacing: -.02em; }
.logo span { color: var(--ink-soft); font-weight: 500; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--wine-dark); }
.nav-search { margin-left: auto; }
.nav-search input { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .9rem; width: 170px; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 44px;
  /* literal colours, not theme vars — the hero stays deep burgundy in dark mode too */
  background: linear-gradient(160deg, #45111f, #5e1a2e 55%, #8c2c47);
  background-size: 180% 180%; }
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: heroShift 18s ease-in-out infinite alternate; }
  @keyframes heroShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
}
.hero-decor { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.10) 0, transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.14) 0, transparent 38%),
    radial-gradient(circle at 92% 85%, rgba(255,255,255,.08) 0, transparent 40%);
}
.hero-decor::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-decor::before {
  content: ""; position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(8deg);
  width: 190px; height: 300px; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Cpath d='M22 8 h56 c0 40 -11 54 -24 57 v72 h20 v6 H26 v-6 h20 v-72 C33 62 22 48 22 8 z' fill='none' stroke='white' stroke-width='2.5' stroke-linejoin='round'/%3E%3Cpath d='M24 30 c8 6 44 6 52 0' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 900px) { .hero-decor::before { display: none; } }
.hero-inner { position: relative; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.92); font-size: 1.15rem; }
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 22px 0 14px; }
.hero-search input { flex: 1; border: 0; border-radius: var(--radius); padding: 15px 18px; font-size: 1.05rem; box-shadow: var(--shadow); color: var(--ink); background: #fff; font-family: inherit; }
.hero-search button { border: 0; border-radius: var(--radius); padding: 15px 26px; font-size: 1.05rem; font-weight: 700; background: var(--ink); color: #fff; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.hero-search button:hover { background: #000; transform: translateY(-1px); }
.hero-links a { color: rgba(255,255,255,.85); text-decoration: none; margin-right: 14px; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 1px; }
.hero-links a:hover { color: #fff; border-color: #fff; }

.stat-strip { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.stat strong { display: block; font-size: 1.9rem; line-height: 1; font-weight: 600; }
.stat span { display: block; font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 4px; }

/* crumbs */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin: 18px 0 6px; }
.crumbs a { color: var(--ink-soft); }

/* cards / grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { border-color: var(--wine); transform: translateY(-3px); box-shadow: 0 4px 10px rgba(36,26,29,.1), 0 16px 32px rgba(36,26,29,.1); }
.card-media { position: relative; display: flex; align-items: center; justify-content: center; height: 150px;
  background: linear-gradient(180deg, var(--paper), var(--line)); padding: 10px; }
.card-media img { max-height: 130px; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18));
  transition: transform .25s ease; }
.card:hover .card-media img { transform: scale(1.06) rotate(-1deg); }
.card-media-placeholder { font-size: 2.5rem; opacity: .35; }
.card-flag { position: absolute; top: 8px; right: 8px; background: var(--wine-dark); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; letter-spacing: .01em; }
.card-body { padding: 14px 16px 16px; flex: 1; }
.card h3 { font-size: 1rem; margin: 8px 0 4px; line-height: 1.3; font-family: inherit; font-weight: 600; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card .price { font-weight: 700; color: var(--wine-dark); font-size: 1.05rem; }

/* badges */
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.badge.c-red { background: #f7dede; color: #7a2020; }
.badge.c-white { background: #f5f0d8; color: #7a6a1a; }
.badge.c-rose { background: #fbe2ea; color: #9a2e57; }
.badge.c-sparkling { background: #e2eef7; color: #1c5f8f; }
.badge.c-fortified { background: #eadcf5; color: #5b2d8f; }
.badge.c-dessert { background: #fde7cf; color: #8a4c0a; }
.badge.c-orange { background: #fbe4c9; color: #8a5a0a; }
.badge.c-other { background: var(--line); color: var(--ink-soft); }

/* value flag + critic scores */
.value-flag { display: inline-block; background: color-mix(in srgb, var(--green) 16%, var(--card)); color: var(--green); font-weight: 600; font-size: .9rem; padding: 2px 10px; border-radius: 999px; margin-left: 4px; }
.oos-flag { display: inline-block; background: color-mix(in srgb, var(--amber) 16%, var(--card)); color: var(--amber); font-weight: 700; font-size: .82rem; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .02em; }
.critic-scores { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.critic-score { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; text-align: center; min-width: 90px; }
.critic-score strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.15rem; color: var(--wine-dark); }
.critic-score span { display: block; font-size: .75rem; color: var(--ink-soft); margin-top: 2px; }

/* grape profile block on /grape/ hub pages */
.grape-profile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0 8px; }
.grape-profile .grape-trait { display: inline-block; margin-right: 28px; margin-bottom: 8px; }
.grape-profile .grape-trait span { display: block; font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.grape-profile .grape-trait strong { font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; }
.grape-profile .grape-style, .grape-profile .grape-pairing { margin: 6px 0; color: var(--ink-soft); }
.grape-profile .grape-style strong, .grape-profile .grape-pairing strong { color: var(--ink); }

/* wine page hero */
.wine-hero { display: grid; grid-template-columns: 180px 1fr; gap: 32px; margin: 18px 0 28px; }
.wine-hero .wine-img { width: 100%; border-radius: 10px; filter: drop-shadow(0 10px 16px rgba(36,26,29,.18)); background: linear-gradient(180deg, var(--card), var(--paper)); padding: 12px; }
.wine-img-placeholder { display: flex; align-items: center; justify-content: center; height: 220px; font-size: 3.5rem; opacity: .3;
  background: linear-gradient(180deg, var(--card), var(--paper)); border-radius: 10px; }
@media (max-width: 640px) { .wine-hero { grid-template-columns: 1fr; } .wine-img, .wine-img-placeholder { max-width: 180px; } }
.spec { border-collapse: collapse; margin: 12px 0; }
.spec th { text-align: left; color: var(--ink-soft); font-weight: 500; padding: 5px 16px 5px 0; vertical-align: top; white-space: nowrap; }
.spec td { padding: 5px 0; }

/* offers */
.offer { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease; }
.offer:hover { box-shadow: var(--shadow); }
.offer-best { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.best-flag { position: absolute; top: -10px; left: 16px; background: var(--wine-dark); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.offer-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-merchant { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.offer-buy { text-align: right; }
.offer-price { font-size: 1.3rem; font-weight: 700; color: var(--wine-dark); }
.stock-in { color: var(--green); }
.stock-out { color: var(--amber); }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
  transition: background .15s ease, transform .15s ease; }
.btn.buy { background: var(--wine-dark); color: #fff; border-color: var(--wine-dark); margin-top: 6px; }
.btn.buy:hover { background: var(--wine); transform: translateY(-1px); }

/* compare */
.cmp-scroll { overflow-x: auto; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 480px; }
table.cmp th, table.cmp td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.cmp th:first-child { color: var(--ink-soft); font-weight: 500; white-space: nowrap; }
table.cmp tr:first-child th, table.cmp tr:first-child td { font-size: 1.05rem; }
.cmp-offers { list-style: none; margin: 0; padding: 0; }
.cmp-offers li { margin-bottom: 4px; }
.cmp-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
@media (max-width: 640px) { .cmp-notes { grid-template-columns: 1fr; } }

/* merchants */
.merchant-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.merchant-row:hover { border-color: var(--wine); }
.merchant-row h2 { margin: 0 0 4px; font-size: 1.1rem; }
.merchant-count { font-size: 1.5rem; font-weight: 800; color: var(--wine-dark); text-align: center; white-space: nowrap; }
.merchant-count span { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-soft); }

/* facet lists */
.facet-list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; }
.facet-list li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 760px) { .facet-list { columns: 2; } }
@media (max-width: 480px) { .facet-list { columns: 1; } }
.link-list { padding-left: 18px; }

/* pager */
.pager { display: flex; gap: 10px; margin: 20px 0 40px; }

/* filter bar */
.filter-bar { display: flex; gap: 20px; flex-wrap: wrap; align-items: end; margin: 14px 0 6px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.filter-bar select { font-family: inherit; font-size: .95rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-transform: none; letter-spacing: normal; font-weight: 500; }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 32px 0; background: var(--card); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-cols a { display: block; color: var(--ink-soft); text-decoration: none; font-size: .9rem; margin-bottom: 6px; }
.foot-cols a:hover { color: var(--wine-dark); }
.foot-small { color: var(--ink-soft); font-size: .8rem; margin-top: 24px; max-width: 80ch; }

section.wrap { padding: 12px 20px 40px; }

/* search autocomplete */
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 30; }
.nav-search .suggest-box { min-width: 320px; left: auto; }
.suggest-box a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.suggest-box a:hover, .suggest-box a.is-active { background: color-mix(in srgb, var(--wine) 8%, var(--card)); }
.suggest-box img { height: 40px; width: 22px; object-fit: contain; }
.suggest-ph { width: 22px; text-align: center; opacity: .4; }
.suggest-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-name em { font-style: normal; color: var(--ink-soft); }
.suggest-price { font-weight: 700; color: var(--wine-dark); }
.suggest-all { justify-content: center; font-weight: 600; border-top: 1px solid var(--line); color: var(--wine-dark) !important; }

/* compare tray */
#compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.tray-inner { pointer-events: auto; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 30px rgba(0,0,0,.25); padding: 10px 20px; }
.tray-slot { font-weight: 600; font-size: .9rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-vs { color: var(--ink-soft); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.tray-x { border: 0; background: none; color: var(--ink-soft); font-size: 1rem; cursor: pointer; padding: 0 2px; }
.tray-x:hover { color: var(--wine-dark); }
.tray-go { background: var(--wine-dark); color: #fff; border-color: var(--wine-dark); }

/* wine page action row */
.wine-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.wine-actions .btn { cursor: pointer; font-family: inherit; font-size: .9rem; background: var(--card); }
.wine-actions .btn.buy { background: var(--wine-dark); color: #fff; margin-top: 0; }
.cmp-add.is-added { border-color: var(--green); color: var(--green); font-weight: 700; }

/* deals */
.deal-note { background: color-mix(in srgb, var(--amber) 16%, var(--card)); color: var(--amber); font-weight: 700; font-size: .78rem;
  padding: 4px 12px; text-align: center; }

/* pairing pages */
.pairing-grapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.pairing-grape { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.pairing-grape:hover { border-color: var(--wine); transform: translateY(-2px); }
.pairing-grape strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.05rem; color: var(--wine-dark); margin-bottom: 2px; }
.pairing-grape span { font-size: .85rem; color: var(--ink-soft); }

/* homepage pairing quick links */
.pairing-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pairing-links .btn { text-transform: capitalize; }

/* section eyebrows */
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin: 0 0 -14px; }

/* style tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 20px 22px; text-decoration: none; color: #fff;
  min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% 12%, rgba(255,255,255,.22) 0, transparent 45%); }
.tile:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tile strong { font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 600; position: relative; z-index: 1; }
.tile span { font-size: .85rem; opacity: .85; position: relative; z-index: 1; margin-top: 2px; }
.tile-red { background: linear-gradient(150deg, #4a1220, #7c2338); }
.tile-white { background: linear-gradient(150deg, #8a6d1f, #c2a53c); }
.tile-rose { background: linear-gradient(150deg, #a13a60, #d4728f); }
.tile-sparkling { background: linear-gradient(150deg, #1c4f74, #3f7fa8); }
.tile-fortified { background: linear-gradient(150deg, #46265e, #6f4692); }
.tile-dessert { background: linear-gradient(150deg, #8a4c0a, #c07b2e); }
.tile-find { background: linear-gradient(150deg, #2c2325, #4a3d40); border: 1px dashed rgba(255,255,255,.35); }

/* score badge on cards */
.score-note { background: color-mix(in srgb, var(--gold) 18%, var(--card)); color: var(--gold); font-weight: 600; font-size: .78rem;
  padding: 4px 12px; text-align: center; }
.score-note strong { font-family: "Fraunces", Georgia, serif; font-size: .9rem; }

/* newsletter */
.nl-band { margin: 48px 0 8px; padding: 44px 0; color: #fff;
  background: linear-gradient(150deg, #45111f, #5e1a2e 60%, #7c2338); }
.nl-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .nl-inner { grid-template-columns: 1fr; } }
.nl-band .eyebrow { color: rgba(255,255,255,.75); margin: 0 0 4px; }
.nl-band h2 { margin: 0 0 8px; color: #fff; }
.nl-band p { color: rgba(255,255,255,.88); max-width: 46ch; }
.nl-form { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.nl-form input[type="email"] { flex: 1; min-width: 220px; border: 0; border-radius: 999px; padding: 13px 20px; font-size: 1rem;
  font-family: inherit; color: var(--ink); background: #fff; }
.nl-form button { border: 0; border-radius: 999px; padding: 13px 24px; font-size: 1rem; font-weight: 700; cursor: pointer;
  background: var(--gold); color: #2c1a05; transition: transform .15s ease, filter .15s ease; }
.nl-form button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.nl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-done { font-weight: 600; }
.nl-error { color: #ffb4b4; }
.nl-compact { max-width: 480px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.nl-compact .nl-form input[type="email"] { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.nl-compact .nl-done { color: var(--green); }
.nl-compact .nl-error { color: var(--amber); }

/* wine finder */
.find-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; }
.find-group h2 { margin: 0 0 12px; }
.find-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .92rem; background: var(--paper); transition: all .15s ease; }
.chip:hover { border-color: var(--wine); color: var(--wine-dark); transform: translateY(-1px); }
.chip-soft { background: none; border-style: dashed; color: var(--ink-soft); font-weight: 500; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* 2026 interface pass: accessibility, responsive navigation and stock states */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-width: 280px; }
img { max-width: 100%; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; }
section.wrap, article.wrap { padding-top: 18px; padding-bottom: 44px; }

.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 100; transform: translateY(-150%);
  background: var(--card); color: var(--ink); border: 2px solid var(--wine); border-radius: 8px;
  padding: 9px 14px; font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}
.skip-link:focus { transform: translateY(0); }

/* header/navigation */
.site-head nav { max-width: 1180px; flex-wrap: nowrap; min-height: 62px; }
.nav-panel { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.nav-links { align-items: center; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 2px;
  background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .16s ease;
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--wine-dark); font-weight: 700; }
.nav-search { margin-left: auto; min-width: 150px; }
.nav-search input { width: min(210px, 18vw); min-height: 38px; }
.nav-toggle { display: none; }
.theme-toggle { flex: 0 0 auto; }
.theme-toggle:disabled { cursor: wait; }

/* hero */
.hero { padding-top: clamp(56px, 8vw, 92px); padding-bottom: clamp(38px, 6vw, 62px); }
.hero-inner { max-width: 1180px; }
.hero-kicker {
  margin: 0 0 8px; color: rgba(255,255,255,.78); text-transform: uppercase;
  letter-spacing: .14em; font-size: .75rem; font-weight: 700;
}
.hero h1 { max-width: 760px; font-size: clamp(2.25rem, 6vw, 4.35rem); letter-spacing: -.035em; }
.hero .lede { max-width: 760px; }
.hero-search { width: min(100%, 680px); }
.stat-strip { gap: clamp(20px, 5vw, 52px); }
.stat { min-width: 105px; }

/* cards */
.grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.card { min-width: 0; }
.card-body { display: flex; flex-direction: column; }
.card h3 { margin-bottom: 5px; }
.card-meta { margin: 0 0 12px; font-size: .84rem; line-height: 1.4; }
.card-stock { margin: auto 0 0; padding-top: 4px; color: var(--ink-soft); font-size: .78rem; font-weight: 600; }
.card-stock:not(.stock-out)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.card-unavailable { box-shadow: none; }
.card-unavailable .card-media img { filter: grayscale(.7) opacity(.72); }
.card-unavailable:hover .card-media img { transform: none; }
.card-flag-muted { background: color-mix(in srgb, var(--ink-soft) 88%, transparent); }
.price-muted { color: var(--ink-soft) !important; font-family: inherit !important; font-size: .88rem !important; }
.score-note, .deal-note { min-height: 29px; }

/* buttons, filters and result states */
.btn { background: var(--card); cursor: pointer; }
.btn:hover { border-color: var(--wine); color: var(--wine-dark); transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .7; transform: none; }
.result-count { margin: 12px 0 4px; color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.empty-state {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; margin: 18px 0 28px; max-width: 760px;
}
.empty-state.compact { padding: 16px 18px; }
.empty-state h2 { margin-top: 0; }
.filter-bar { gap: 14px; padding: 14px 16px; }
.filter-bar label { flex: 1 1 145px; }
.filter-bar select { width: 100%; min-height: 40px; }
.filter-submit { align-self: flex-end; min-height: 40px; }
.js .filter-submit { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 26px 0 40px;
}
.pager > :last-child { justify-self: end; }
.pager-status { color: var(--ink-soft); font-size: .85rem; font-weight: 600; text-align: center; }

/* wine details and offers */
.wine-page > section { max-width: 900px; }
.wine-hero { grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); align-items: start; }
.wine-hero .wine-img { max-height: 390px; object-fit: contain; }
.spec th, .spec td { border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.offer { padding: 17px 20px; }
.offer-copy { flex: 1 1 320px; min-width: 0; }
.offer-copy p { margin: 5px 0 0; }
.offer-buy { flex: 0 1 260px; }
.offer-price .small { display: block; margin-top: 2px; font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 500; }
.offer-seen { margin: 5px 0 0; color: var(--ink-soft); font-size: .75rem; }
.offer-archived { background: color-mix(in srgb, var(--card) 75%, var(--paper)); box-shadow: none; }
.offer-archived .offer-price { color: var(--ink-soft); }
.archived-offers { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.archived-offers > summary { cursor: pointer; color: var(--wine-dark); font-weight: 700; padding: 8px 0; }
.archived-offers[open] > summary { margin-bottom: 8px; }

/* comparison */
.cmp-scroll { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.cmp th, table.cmp td { min-width: 200px; }
table.cmp th:first-child { min-width: 145px; background: color-mix(in srgb, var(--paper) 78%, var(--card)); }
.cmp-product { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 70px; }
.cmp-product img { width: 58px; height: 96px; object-fit: contain; filter: drop-shadow(0 5px 6px rgba(0,0,0,.14)); }
.cmp-product a { font-weight: 700; }
.cmp-offers li + li { margin-top: 8px; }

/* autocomplete */
.suggest-box { max-height: min(480px, 70vh); overflow-y: auto; text-align: left; }
.nav-search .suggest-box { width: min(410px, calc(100vw - 40px)); }
.suggest-box a { min-height: 58px; }
.suggest-box a[aria-selected="true"] { background: color-mix(in srgb, var(--wine) 10%, var(--card)); }
.suggest-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.suggest-name { display: block; font-weight: 600; }
.suggest-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: .75rem; }
.suggest-price { flex: 0 0 auto; text-align: right; font-size: .82rem; }
.suggest-price.is-muted { color: var(--ink-soft); font-weight: 500; }
.suggest-all { min-height: 44px !important; }

/* comparison tray */
.tray-slot { display: inline-flex; align-items: center; gap: 6px; max-width: 250px; }
.tray-slot > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-x { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; }
.tray-x:hover { background: color-mix(in srgb, var(--wine) 10%, transparent); }

/* newsletter */
.nl-form[aria-busy="true"] { opacity: .82; }
.nl-form button:disabled { cursor: wait; filter: none; transform: none; }
.nl-done { margin: 8px 0 0; flex-basis: 100%; }

/* merchant/facet polish */
.merchant-row { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.merchant-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.merchant-row p { margin: 4px 0; }
.facet-list a { text-underline-offset: 2px; }

@media (max-width: 900px) {
  .site-head nav { position: relative; min-height: 60px; gap: 12px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 38px;
    padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
    color: var(--ink); cursor: pointer; font-size: .88rem; font-weight: 600;
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
    display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -5px; }
  .nav-toggle-icon::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-panel {
    flex-basis: 100%; order: 4; display: flex; align-items: stretch; flex-direction: column; gap: 12px;
    padding: 10px 0 4px; border-top: 1px solid var(--line);
  }
  .js .nav-panel { display: none; }
  .js .nav-panel.is-open { display: flex; }
  .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 16px; }
  .nav-links a { padding: 8px 0; }
  .nav-search { margin-left: 0; width: 100%; }
  .nav-search input { width: 100%; }
  .nav-search .suggest-box { left: 0; right: auto; width: 100%; min-width: 0; }
  .theme-toggle { order: 3; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  section.wrap, article.wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .hero-search { flex-direction: column; }
  .hero-search input, .hero-search button { width: 100%; }
  .hero-links { line-height: 2; }
  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat strong { font-size: 1.55rem; }
  .wine-hero { grid-template-columns: 1fr; gap: 18px; }
  .wine-img, .wine-img-placeholder { max-width: 150px !important; }
  .offer-main { align-items: flex-start; }
  .offer-buy { flex: 1 1 100%; text-align: left; }
  .offer-buy .btn { text-align: center; width: 100%; }
  .spec { width: 100%; }
  .spec th { width: 38%; white-space: normal; }
  .merchant-row { align-items: flex-start; flex-direction: column; }
  .merchant-count { text-align: left; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-status { grid-column: 1 / -1; grid-row: 1; }
  .pager > :first-child { grid-column: 1; }
  .pager > :last-child { grid-column: 2; }
  .foot-cols { grid-template-columns: 1fr; }
  .tray-inner { border-radius: 18px; gap: 8px; padding: 10px 12px; }
  .tray-slot { max-width: calc(50vw - 44px); }
  .tray-go { width: 100%; text-align: center; }
}

@media (max-width: 520px) {
  .nav-links { grid-template-columns: 1fr 1fr; }
  .nav-toggle span:last-child { display: none; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; min-height: 154px; }
  .card-media { flex: 0 0 116px; height: auto; min-height: 152px; }
  .card-media img { max-height: 126px; }
  .card-body { padding: 12px 13px; }
  .card-top { align-items: flex-start; gap: 7px; }
  .card .price { text-align: right; font-size: .96rem; }
  .card h3 { margin-top: 7px; }
  .card-flag { left: 7px; right: auto; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-bar label { min-width: 0; }
  .filter-submit { grid-column: 1 / -1; width: 100%; text-align: center; }
  .js .filter-submit { position: absolute; }
  .nl-form { display: grid; grid-template-columns: 1fr; }
  .nl-form input[type="email"] { min-width: 0; width: 100%; }
  .nl-form button { width: 100%; }
  .facet-list { columns: 1; }
}

@media print {
  .site-head, .site-foot, #compare-tray, .wine-actions, .nav-search, .nl-band, .nl-compact { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  .card, .offer, .cmp-scroll { box-shadow: none; break-inside: avoid; }
}

/* country picker */
.country-select { padding: 48px 20px 60px; }
.country-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; max-width: 480px; }
.country-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.country-list a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.country-list a:hover { color: var(--wine-dark); }
.country-list li:has(a):hover { border-color: var(--wine); box-shadow: var(--shadow); }
.country-list li:not(:has(a)) { color: var(--ink-soft); }
.country-list .flag { font-size: 1.35rem; line-height: 1; }
.tag-live, .tag-soon { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag-live { background: #e2f3e8; color: var(--green); }
.tag-soon { background: var(--line); color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .tag-live { background: #1c3b28; } }
:root[data-theme="dark"] .tag-live { background: #1c3b28; }
