/* Version 3: color bands joined by wavy seams, small logo, popups for quotes and bottle orders. */
:root {
  --periwinkle: #5753E6; --navy: #19198E; --cream: #FBF6E2; --mint: #D4F7E3; --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --serif: "Gelasio", Georgia, serif;
  --r-sm: 8px; --r-lg: 24px; --r-pill: 999px;
  --blob: 58% 42% 47% 53% / 46% 57% 43% 54%;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 400 1.0625rem/1.55 var(--display); overflow-x: clip; }
body.locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-blue :focus-visible { outline-color: var(--cream); }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band--peri { background: var(--periwinkle); color: var(--cream); }
.band--mint { background: var(--mint); color: var(--navy); }
.band--cream { background: var(--cream); color: var(--navy); }
.pad { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 88px); }
.seam { display: block; width: 100%; height: clamp(40px, 6.5vw, 88px); margin-bottom: -1px; }
.seam svg { width: 100%; height: 100%; }
.seam path { fill: currentColor; }
.seam--peri { background: var(--periwinkle); } .seam--mint { background: var(--mint); } .seam--cream { background: var(--cream); }
.to-peri { color: var(--periwinkle); } .to-mint { color: var(--mint); } .to-cream { color: var(--cream); } .to-navy { color: var(--navy); }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.6rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 700; }
.sub { font: italic 600 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.3 var(--serif); }
.prose { max-width: 56ch; }
.head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px; border: 0; border-radius: var(--r-pill); font: 700 1.0625rem/1.2 var(--display); text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn--blue { background: var(--periwinkle); color: var(--cream); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }
.textlink { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; cursor: pointer; font-family: inherit; text-decoration-line: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--periwinkle); color: var(--cream); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--periwinkle); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.home { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--mint); flex: none; }
.home img { width: 30px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav a { font-weight: 600; text-decoration: none; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav a:hover { text-decoration-line: underline; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(24px, 4vw, 48px) clamp(16px, 2vw, 24px); }
.hero__copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero__logo { width: min(100%, 300px); height: auto; }
.hero__photo { position: relative; justify-self: center; width: min(100%, 400px); min-width: 0; }
.hero__photo::before { content: ""; position: absolute; inset: -5% -6%; background: var(--cream); border-radius: var(--blob); transform: rotate(-6deg); }
.hero__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--blob); }

/* ways to book */
.ways__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 44px); }
.ways__head > div { display: grid; gap: 10px; }
.price-tag { display: inline-grid; place-content: center; text-align: center; padding: 18px 26px; background: var(--periwinkle); color: var(--cream); border-radius: var(--blob); transform: rotate(-5deg); }
.price-tag span { font: italic 600 1.05rem/1.2 var(--serif); }
.price-tag strong { font: 800 2.6rem/1 var(--display); letter-spacing: -.02em; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.way { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 28px 26px 26px; background: var(--white); border-radius: var(--r-lg); min-width: 0; }
.way:nth-child(2) { background: var(--periwinkle); color: var(--cream); }
.way img { width: 112px; height: 112px; object-fit: contain; object-position: left bottom; }
.way h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chips li { padding: 5px 13px; border: 2px solid currentColor; border-radius: var(--r-pill); font-weight: 600; font-size: .9375rem; }
.way .btn { justify-self: start; }

/* bottles */
.bottles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.slides { position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; justify-self: center; }
.slide { position: absolute; inset: 0; margin: 0; border-radius: var(--r-lg); overflow: hidden; opacity: 0; transition: opacity .8s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; left: 0; right: 0; bottom: -36px; display: flex; justify-content: center; gap: 4px; }
.dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--periwinkle); opacity: .3; }
.dots button[aria-current="true"]::before { opacity: 1; }
.ph { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; padding: 20px; text-align: center; background: var(--mint); border: 3px dashed var(--periwinkle); border-radius: inherit; color: var(--navy); font-weight: 700; }
.ph img, .gallery .ph img, .story__media .ph img, .slide .ph img { width: 48px; height: auto; object-fit: contain; }
.ph span { font: italic 600 1rem/1.25 var(--serif); }
.bottles__copy { display: grid; gap: 20px; min-width: 0; }
.flavor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.flavor-list li { font-weight: 700; color: var(--periwinkle); font-size: 1.125rem; line-height: 1.3; }
.pricing { display: flex; flex-wrap: wrap; gap: 10px; }
.pricing li { padding: 8px 16px; background: var(--mint); border-radius: var(--r-pill); font-weight: 700; font-variant-numeric: tabular-nums; }

/* story */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.story__copy { display: grid; gap: 24px; min-width: 0; }
.timeline { display: grid; gap: 0; counter-reset: s; }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 64px; counter-increment: s; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--periwinkle); font: 800 1.25rem/1 var(--display); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--cream); opacity: .45; }
.timeline h3 { font-size: 1.25rem; font-weight: 800; }
.story__media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.launch { grid-column: 1 / -1; display: grid; gap: 8px; width: min(100%, 300px); justify-self: center; }
.launch__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border: 6px solid var(--cream); border-radius: var(--r-lg); background: var(--navy); }
.launch video { width: 100%; height: 100%; object-fit: cover; }
.launch__toggle { position: absolute; right: 10px; bottom: 10px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); background: var(--cream); color: var(--navy); font: 700 .9375rem/1.2 var(--display); cursor: pointer; }
.launch figcaption { text-align: center; }
.story__media .tile { aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.story__media .tile > img { width: 100%; height: 100%; object-fit: cover; }
.story__media .ph { background: var(--cream); border-color: var(--cream); outline: 3px dashed var(--periwinkle); outline-offset: -9px; }

.quotes { display: grid; gap: 18px; }
.quote-card { position: relative; display: grid; gap: 14px; margin: 0; padding: 30px 28px 24px; background: var(--cream); color: var(--navy); border-radius: var(--r-lg); }
.quote-card:nth-child(2) { background: var(--mint); }
.quote-card::before { content: "\201C"; position: absolute; top: -18px; left: 22px; font: 800 4.5rem/1 var(--serif); color: var(--periwinkle); }
.quote-card blockquote { margin: 0; font: italic 500 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.45 var(--serif); }
.quote-card figcaption { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.quote-card figcaption strong { font-weight: 800; }
.quote-card figcaption span { padding: 2px 12px; border-radius: var(--r-pill); background: var(--periwinkle); color: var(--cream); font-size: .875rem; font-weight: 600; }
.story__copy .head + .quotes { margin-top: 14px; }
.hint { margin: -4px 0 10px; font-size: .9375rem; }

/* gallery */
.gal-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.gal-layout .launch { width: 100%; grid-column: auto; display: grid; grid-template-rows: 1fr auto; }
.gal-layout .launch__frame { aspect-ratio: auto; height: 100%; border-color: var(--white); }
.gallery .ph { background: var(--cream); }
.gal-box { container-type: inline-size; }
.gallery { --gap: 16px; --cols: 3; display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.25); }
.gallery > * { border-radius: 18px; overflow: hidden; }
.gallery > img { width: 100%; height: 100%; object-fit: cover; }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.ig { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(28px, 4vw, 40px); padding: 22px 26px; background: var(--periwinkle); color: var(--cream); border-radius: var(--r-lg); }
.ig p { font: 800 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--display); }

/* footer */
.foot { background: var(--navy); color: var(--cream); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; padding-block: 36px; }
.foot img { width: min(100%, 240px); height: auto; }
.foot__links { display: grid; gap: 6px; }
.foot__links a { overflow-wrap: anywhere; text-underline-offset: 4px; }
.fine { width: 100%; font-size: .875rem; }

/* popups */
dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--cream); color: var(--navy); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: rgba(25, 25, 142, .55); }
dialog[open] { animation: pop .22s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; background: var(--cream); border-bottom: 2px solid var(--mint); }
.dlg__head h2 { font-size: 1.75rem; line-height: 1.1; }
.dlg__head p { margin-top: 4px; }
.close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--periwinkle); border-radius: 50%; background: var(--white); color: var(--navy); font: 700 1.5rem/1 var(--display); cursor: pointer; }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: 20px 24px 26px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.wide, .form-foot { grid-column: 1 / -1; }
label, legend { font-weight: 700; font-size: 1rem; }
legend { margin-bottom: 8px; }
.opt { font-weight: 400; }
input, select, textarea { width: 100%; min-height: 50px; padding: 11px 14px; border: 2px solid var(--periwinkle); border-radius: var(--r-sm); background: var(--white); color: var(--navy); font: 400 1rem/1.4 var(--display); }
textarea { min-height: 100px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-radius: var(--r-sm); }
.qty { display: grid; gap: 8px; }
.qty label { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; background: var(--white); border-radius: var(--r-sm); font-weight: 600; }
.qty input { min-height: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--white); border: 2px solid var(--mint); border-radius: var(--r-pill); font-weight: 600; cursor: pointer; }
.radios input { width: 20px; height: 20px; min-height: 0; accent-color: var(--periwinkle); }
.radios label:has(input:checked) { border-color: var(--periwinkle); }
.total { font-weight: 700; font-variant-numeric: tabular-nums; }
.err-inline { color: var(--navy); font-weight: 700; }
.trap { position: absolute; left: -9999px; }
.form-foot { display: grid; gap: 14px; justify-items: start; }
.status { font-weight: 600; max-width: 56ch; }
.status:empty { display: none; }
.status--ok, .status--err { padding: 14px 18px; border-radius: var(--r-sm); }
.status--ok { background: var(--navy); color: var(--cream); }
.status--err { background: var(--white); border: 2px solid var(--navy); }

@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto; column-gap: 18px; }
  .way img { grid-row: 1 / span 4; width: 88px; height: 88px; }
  .way > :not(img) { grid-column: 2; }
  .gallery { --cols: 3; }
}
@media (max-width: 760px) {
  .hero .wrap, .bottles, .story { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { width: min(78%, 300px); }
  .slides { max-width: 360px; }
  .gallery { --cols: 2; --gap: 10px; }
  .gal-layout { grid-template-columns: minmax(0, 1fr); }
  .gal-layout .launch { width: min(100%, 280px); justify-self: center; }
  .gal-layout .launch__frame { aspect-ratio: 9 / 16; height: auto; }
}
@media (max-width: 520px) {
  form { grid-template-columns: minmax(0, 1fr); padding-inline: 18px; }
  .dlg__head { padding-inline: 18px; }
  .way { grid-template-columns: minmax(0, 1fr); }
  .way img { grid-row: auto; width: 80px; height: 80px; }
  .way > :not(img) { grid-column: 1; }
  .flavor-list { grid-template-columns: minmax(0, 1fr); }
  .nav .hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .slide, dialog[open] { transition: none; animation: none; }
  .btn:hover { transform: none; }
}
