
:root {
  --navy: #17233C;
  --navy-soft: #253451;
  --burgundy: #6F2538;
  --gold: #B18A45;
  --cream: #F4F0E8;
  --paper: #FCFAF6;
  --ink: #172033;
  --muted: #6C7180;
  --line: #D9D3C9;
  --white: #FFFFFF;
  --shadow: 0 14px 36px rgba(23, 35, 60, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
  background: rgba(252, 250, 246, .94);
  border-bottom: 1px solid rgba(217, 211, 201, .85);
  backdrop-filter: blur(16px);
}

.brand-wordmark {
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 13px;
}
.subbrand {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
.icon-button {
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 25px;
  cursor: pointer;
}

.screen { display: none; padding: 18px 18px 28px; }
.screen.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  border-radius: 28px;
  padding: 32px 26px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(177,138,69,.28), transparent 25%),
    linear-gradient(145deg, var(--navy), #101827 72%);
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 10vw, 68px);
  line-height: .92;
  margin: 14px 0 18px;
  letter-spacing: -.04em;
}
.hero p {
  max-width: 420px;
  color: rgba(255,255,255,.79);
  line-height: 1.55;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 850;
  color: var(--gold);
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.price-row strong { font-size: 22px; }
.price-row span { color: rgba(255,255,255,.58); text-decoration: line-through; }

.hero-art {
  position: relative;
  height: 260px;
  min-width: 130px;
}
.cask-ring {
  position: absolute;
  border: 2px solid rgba(177, 138, 69, .58);
  border-radius: 50%;
  aspect-ratio: 1;
}
.ring-one { width: 210px; top: 24px; left: 0; }
.ring-two { width: 158px; top: 50px; left: 26px; }
.ring-three { width: 104px; top: 77px; left: 53px; }
.cask-number {
  position: absolute;
  top: 92px;
  left: 74px;
  font-family: Georgia, serif;
  font-size: 52px;
  color: var(--cream);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.button.primary { background: var(--gold); color: #111827; }
.button.secondary { background: var(--navy); color: var(--white); }
.button.ghost { background: transparent; color: inherit; border-color: var(--line); }
.hero .button.primary { background: var(--cream); color: var(--navy); }
.button.wide { width: 100%; }

.section-heading { margin: 34px 4px 16px; }
.section-heading h2, .page-title h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.section-heading h2 { margin: 6px 0 0; font-size: 30px; }
.page-title { padding: 10px 4px 18px; }
.page-title h1 { margin: 8px 0; font-size: 38px; line-height: 1.03; }
.page-title p { color: var(--muted); line-height: 1.55; max-width: 560px; }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 18px;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 156px;
  cursor: pointer;
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  margin-bottom: auto;
  font-size: 18px;
}
.quick-card strong { margin: 16px 0 5px; font-size: 16px; }
.quick-card span:last-child { font-size: 12px; color: var(--muted); line-height: 1.4; }

.story-card {
  overflow: hidden;
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}
.story-card img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}
.story-card > div { padding: 22px; }
.story-card h2 { font-family: Georgia, serif; margin: 7px 0; font-size: 28px; }
.story-card p { color: var(--muted); line-height: 1.55; }
.text-link { color: var(--burgundy); font-weight: 800; }

.bottle-list { display: grid; gap: 18px; }
.bottle-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.bottle-image-wrap {
  background: #EEEDE9;
  min-height: 300px;
}
.bottle-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bottle-visual {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-align: center;
  padding: 14px;
}
.bottle-visual.burgundy {
  background:
    radial-gradient(circle at center, rgba(177,138,69,.22), transparent 35%),
    linear-gradient(155deg, #8A344A, #431521);
}
.bottle-visual span { letter-spacing: .16em; font-size: 11px; color: #E5C88E; }
.bottle-visual strong { font-family: Georgia, serif; letter-spacing: .05em; font-size: 22px; }
.bottle-visual small { letter-spacing: .12em; }
.bottle-copy { padding: 24px; align-self: center; }
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
}
.bottle-copy h2 { font-family: Georgia, serif; font-size: 30px; margin: 12px 0 8px; }
.bottle-copy p { color: var(--muted); line-height: 1.55; }
.bottle-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.bottle-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.journal-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
}
label { display: block; margin: 14px 0 7px; font-weight: 800; font-size: 13px; }
select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; line-height: 1.5; }
select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(177,138,69,.15); }
.rating-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating-row button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  min-height: 44px;
  font-weight: 850;
  cursor: pointer;
}
.rating-row button.selected { background: var(--navy); color: white; border-color: var(--navy); }
.save-message { min-height: 24px; padding-top: 9px; color: var(--burgundy); font-weight: 700; font-size: 13px; }

.event-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
}
.event-date {
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  display: grid;
  place-content: center;
  text-align: center;
}
.event-date strong { font-size: 22px; }
.event-date span { font-size: 10px; letter-spacing: .15em; color: rgba(255,255,255,.65); }
.event-card h2 { font-family: Georgia, serif; margin: 8px 0 6px; }
.event-card p { color: rgba(255,255,255,.7); line-height: 1.45; margin: 0; }

.empty-state {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 46px 24px;
  background: var(--white);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 30px;
}
.empty-state h2 { font-family: Georgia, serif; }
.empty-state p { color: var(--muted); max-width: 400px; margin: 0 auto 20px; line-height: 1.5; }
.collection-list { display: grid; gap: 12px; }
.collection-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
}
.collection-swatch {
  width: 58px;
  height: 76px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--burgundy), var(--navy));
  flex: 0 0 auto;
}
.collection-item h3 { margin: 0 0 5px; font-family: Georgia, serif; }
.collection-item p { margin: 0; color: var(--muted); font-size: 12px; }
.collection-item .remove { margin-left: auto; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(177,138,69,.35), transparent 38%),
    var(--navy);
}
.shop-card.large { grid-column: 1 / -1; min-height: 280px; background: linear-gradient(140deg, var(--burgundy), var(--navy)); }
.shop-card span { color: rgba(255,255,255,.72); }
.shop-card strong { margin-top: 8px; font-size: 20px; }
.responsibility { text-align: center; color: var(--muted); font-size: 12px; padding: 22px; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 9px calc(7px + env(safe-area-inset-bottom));
  background: rgba(252,250,246,.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  min-height: 58px;
  border-radius: 14px;
  cursor: pointer;
}
.nav-item span { display: block; font-size: 21px; margin-bottom: 4px; }
.nav-item.active { color: var(--navy); background: var(--cream); }


.age-gate[hidden] {
  display: none !important;
}

.age-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(11,16,28,.88);
  backdrop-filter: blur(10px);
}
.age-card {
  width: min(100%, 430px);
  padding: 30px;
  border-radius: 26px;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.age-card h1 { font-family: Georgia, serif; font-size: 40px; margin: 10px 0; }
.age-card h2 { font-size: 20px; margin-top: 24px; }
.age-card p { color: var(--muted); line-height: 1.5; }
.age-card .button { margin-top: 9px; }
.age-card small { display: block; margin-top: 18px; color: var(--muted); }

dialog {
  width: min(calc(100% - 30px), 520px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: transparent;
}
dialog::backdrop { background: rgba(10, 16, 30, .72); backdrop-filter: blur(8px); }
.dialog-card { position: relative; background: var(--paper); border-radius: 24px; padding: 26px; }
.dialog-card h2 { font-family: Georgia, serif; font-size: 30px; margin: 8px 0 14px; }
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; min-height: 520px; padding: 28px 22px; }
  .hero-art { position: absolute; right: -40px; bottom: -26px; opacity: .72; }
  .hero-copy { max-width: 85%; }
  .hero h1 { font-size: 48px; }
  .bottle-card { grid-template-columns: 112px 1fr; }
  .bottle-image-wrap, .bottle-visual { min-height: 330px; }
  .bottle-visual strong { font-size: 14px; writing-mode: vertical-rl; transform: rotate(180deg); }
  .bottle-visual span, .bottle-visual small { display: none; }
  .bottle-copy { padding: 18px; }
  .bottle-copy h2 { font-size: 25px; }
  .event-card { grid-template-columns: 82px 1fr; padding: 16px; }
}

@media (max-width: 390px) {
  .screen { padding-inline: 12px; }
  .topbar { padding-inline: 15px; }
  .brand-wordmark { font-size: 11px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 126px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card.large { grid-column: auto; }
  .bottle-card { grid-template-columns: 96px 1fr; }
  .button { padding-inline: 13px; }
}
