:root {
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --ink: #2b1d1a;
  --muted: #7a6a62;
  --line: #e6dccf;
  --wine: #6e1f2c;
  --wine-soft: #f3e3e3;
  --straw: #c9a54a;
  --straw-soft: #f6eed3;
  --rose: #c25b6e;
  --rose-soft: #f8e4e8;
  --fizz: #8a8f6a;
  --fizz-soft: #eef0e2;
  --amber: #c06d22;
  --amber-soft: #f8e7d6;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 241, 232, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); font: 600 1.35rem var(--serif); }
.brand em { color: var(--wine); font-weight: 500; }
.brand-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.topbar nav a { margin-left: 1.5rem; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.topbar nav a:hover { color: var(--wine); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 18, 14, .78) 0%, rgba(30, 18, 14, .45) 40%, rgba(30, 18, 14, 0) 65%); }
.hero-text { position: relative; z-index: 1; max-width: 42rem; padding: 3rem clamp(1.25rem, 6vw, 5rem); color: #fff; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero h1 em { color: #f0c9a8; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; margin: 0 0 1rem; opacity: .85; }
.lede { font-size: 1.15rem; margin: 1.25rem 0 2rem; opacity: .95; }
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; background: var(--wine); color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .15s, background .15s; }
.btn:hover { background: #561722; transform: translateY(-1px); }

/* Wine list */
.wines { max-width: 1200px; margin: 0 auto; padding: 4.5rem clamp(1rem, 4vw, 2rem); }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); margin: .4rem 0 0; }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.25rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.chip, .filters select, .filters input {
  font: 500 .9rem var(--sans); color: var(--ink);
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: .55rem 1.1rem;
}
.chip { cursor: pointer; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-red.active { background: var(--wine); border-color: var(--wine); }
.chip-white.active { background: var(--straw); border-color: var(--straw); }
.chip-rosé.active { background: var(--rose); border-color: var(--rose); }
.chip-sparkling.active { background: var(--fizz); border-color: var(--fizz); }
.chip-orange.active { background: var(--amber); border-color: var(--amber); }
.filters input { min-width: 16rem; }
.filters select:focus, .filters input:focus, .chip:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 1.4rem 1.4rem 1.2rem 1.6rem; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.card-red::before { background: var(--wine); }
.card-white::before { background: var(--straw); }
.card-rosé::before { background: var(--rose); }
.card-sparkling::before { background: var(--fizz); }
.card-orange::before { background: var(--amber); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43, 29, 26, .1); }
.card h3 { font-size: 1.45rem; margin: .45rem 0 .2rem; }
.card .winery { font-weight: 600; margin: 0; }
.card .meta { color: var(--muted); font-size: .88rem; margin: .15rem 0 .8rem; }
.card .grapes { font-size: .85rem; margin: auto 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); }
.card-tag { align-self: flex-start; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .6rem; border-radius: 999px; }
.card-red .card-tag, .detail-red .card-tag { background: var(--wine-soft); color: var(--wine); }
.card-white .card-tag, .detail-white .card-tag { background: var(--straw-soft); color: #7d6420; }
.card-rosé .card-tag, .detail-rosé .card-tag { background: var(--rose-soft); color: #9a3a4d; }
.card-sparkling .card-tag, .detail-sparkling .card-tag { background: var(--fizz-soft); color: #5a5e40; }
.card-orange .card-tag, .detail-orange .card-tag { background: var(--amber-soft); color: #8a4a12; }
.pick { position: absolute; top: 1.2rem; right: 1.2rem; margin: 0; font: italic 500 .95rem var(--serif); color: var(--wine); }
.empty { text-align: center; color: var(--muted); padding: 2rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 1100px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2rem) 5rem; }
.about-img img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; box-shadow: 0 20px 50px rgba(43, 29, 26, .18); }
.about .eyebrow { color: var(--wine); opacity: 1; }
.about h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 1rem; }
.about p { font-size: 1.05rem; }

/* Wine detail */
.detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); max-width: 1050px; margin: 0 auto; padding: 3.5rem clamp(1rem, 4vw, 2rem) 5rem; align-items: start; }
.detail-img img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.detail-bottle img { object-fit: contain; object-position: center; background: #fff; border: 1px solid var(--line); padding: 1.5rem 0; }
.detail-text h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: .8rem 0 .3rem; }
.detail-text .winery { font-size: 1.2rem; font-weight: 600; margin: 0 0 1.75rem; }
.detail-text .lead { font: 500 1.3rem/1.5 var(--serif); margin: -.75rem 0 1.75rem; }
.back { display: block; width: fit-content; margin-bottom: 1.5rem; font-size: .9rem; text-decoration: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0 0 2rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .15rem; }
.facts dd { margin: 0; }
.note { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--paper); border-left: 4px solid var(--wine); border-radius: 0 12px 12px 0; font: italic 500 1.3rem/1.45 var(--serif); }
.note cite { display: block; margin-top: .6rem; font: normal 600 .85rem var(--sans); color: var(--wine); }
.note-soon { color: var(--muted); font-style: italic; }
.more a { font-weight: 500; }
.source { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); }
.source a { color: inherit; }

.footer { text-align: center; padding: 2.5rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer p { margin: .2rem 0; }

@media (max-width: 760px) {
  .hero::after { background: linear-gradient(0deg, rgba(30, 18, 14, .85) 0%, rgba(30, 18, 14, .35) 60%, rgba(30, 18, 14, .1) 100%); }
  .hero { align-items: flex-end; }
  .hero-bg img { object-position: 62% 30%; }
  .about, .detail { grid-template-columns: 1fr; }
  .detail-img img { aspect-ratio: 1; max-width: 280px; }
  .filters input { min-width: 0; flex: 1 1 100%; }
  .topbar nav a { margin-left: 1rem; }
}
