/* Design language taken from the producer's 2026 price list:
   warm cream paper, Cormorant Garamond for titles, a quiet geometric sans for text,
   letter-spaced olive small caps, burgundy for prices and italics, hairline black rules. */

@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'); }
@font-face { font-family: 'Kumbh Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/kumbh-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kumbh Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/kumbh-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kumbh Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/kumbh-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Kumbh Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/kumbh-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --cream: #f4eee1;
  --cream-deep: #ece4d2;
  --ink: #2a2622;
  --burgundy: #6e1f33;
  --burgundy-dark: #561526;
  --olive: #5d6240;
  --muted: #7b7566;
  --hair: #cfc8b5;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Kumbh Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.page { max-width: 900px; margin: 0 auto; padding: 36px var(--gutter) 120px; }

/* ---- small recurring pieces ------------------------------------------------------------- */
.eyebrow {
  margin: 0;
  font: 600 10.5px/1.6 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow.muted { color: var(--muted); font-weight: 500; }
.script { margin: 0; font: italic 400 30px/1.1 var(--serif); color: var(--burgundy); }
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.rule.heavy { border-top-width: 2px; }
.rule.hair { border-top-color: var(--hair); }

/* ---- masthead --------------------------------------------------------------------------- */
.masthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; }
.logo img { width: 112px; height: auto; mix-blend-mode: multiply; }
.masthead-meta { text-align: right; display: grid; gap: 4px; padding-top: 6px; }

/* ---- hero ------------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 22px 0 34px; align-items: start; }
.hero h1 { margin: 12px 0 18px; font: 500 clamp(44px, 8vw, 68px)/.98 var(--serif); letter-spacing: -.005em; }
.lede { margin: 0; font: italic 400 clamp(19px, 2.4vw, 22px)/1.45 var(--serif); color: var(--burgundy); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--ink); }
.hero-photo figcaption { margin-top: 8px; font-size: 9.5px; color: var(--muted); letter-spacing: .26em; }
.prose { padding-bottom: 30px; max-width: 70ch; }
.prose p { margin: 0 0 14px; }
.how { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how li { padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 1.6; }
.how b { display: block; margin-bottom: 2px; font: 500 21px/1.2 var(--serif); color: var(--burgundy); }

.closed {
  margin: 0 0 26px; padding: 16px 20px; border: 1px solid var(--burgundy);
  font: italic 500 21px/1.35 var(--serif); color: var(--burgundy); background: rgba(110, 31, 51, .05);
}

/* ---- list ------------------------------------------------------------------------------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 30px 0 18px; }
.list-head h2 { margin: 6px 0 0; font: 500 clamp(36px, 6vw, 48px)/1 var(--serif); }
.list-head .price-key { text-align: right; }
.price-key .k { color: var(--burgundy); font-weight: 700; }

.section-title { display: flex; align-items: baseline; gap: 18px; margin: 34px 0 6px; }
.section-title h3 { margin: 0; font: italic 400 34px/1 var(--serif); color: var(--burgundy); }
.section-title .line { flex: 1; border-top: 1px solid var(--muted); transform: translateY(-6px); }
.section-title .eyebrow { color: var(--muted); font-weight: 500; font-size: 10px; }

.wine {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 0 22px;
  padding: 20px 14px; margin: 0 -14px; border-bottom: 1px solid var(--hair);
  transition: background .2s, box-shadow .2s;
}
.wine.has-qty { background: rgba(110, 31, 51, .045); box-shadow: inset 3px 0 0 var(--burgundy); }
.wine-thumb { grid-row: 1 / span 1; }
.wine-thumb img { width: 128px; height: 128px; object-fit: contain; background: #fff; border: 1px solid var(--hair); padding: 3px; }
.wine-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wine-name .n { font: 500 25px/1.15 var(--serif); }
.wine-name .y { font: 400 18px/1 var(--serif); color: var(--muted); }
.wine-name .tag { font: 600 9.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }
.wine-blurb { margin: 4px 0 0; font: italic 400 18.5px/1.4 var(--serif); }
.wine details { margin-top: 8px; }
.wine summary {
  cursor: pointer; list-style: none; display: inline-block;
  font: 600 9.5px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
}
.wine summary::-webkit-details-marker { display: none; }
.wine summary::after { content: ' +'; }
.wine details[open] summary::after { content: ' –'; }
.wine summary:hover { color: var(--burgundy); }
.facts { margin: 6px 0 0; font-size: 12.5px; line-height: 1.65; display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; }
.facts dt { font: 600 9.5px/2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }
.facts dd { margin: 0; }

.wine-buy { grid-column: 3; grid-row: 1 / span 1; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 128px; }
.price { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.price s { color: var(--muted); font-size: 13px; }
.price b { font: 700 21px/1 var(--sans); color: var(--burgundy); }
.line-total { margin: -4px 0 0; min-height: 1.2em; font: 500 12px/1.2 var(--sans); color: var(--muted); letter-spacing: .04em; }

/* quantity stepper */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: rgba(255, 255, 255, .35); }
.stepper button {
  width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer;
  font: 400 22px/1 var(--sans); color: var(--ink); display: grid; place-items: center; padding: 0;
}
@media (hover: hover) { .stepper button:hover:not(:disabled) { background: var(--ink); color: var(--cream); } }
.stepper button:active:not(:disabled) { background: var(--ink); color: var(--cream); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper input {
  width: 46px; border: 0; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair);
  text-align: center; background: transparent; font: 600 16px/1 var(--sans); -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:disabled { color: var(--muted); }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }

/* ---- order form ------------------------------------------------------------------------- */
.order { padding-top: 38px; scroll-margin-top: 20px; }
.order-eyebrow { margin-top: 34px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.order h2 { margin: 6px 0 0; font: 500 clamp(36px, 6vw, 48px)/1 var(--serif); }
.summary { margin: 22px 0 0; padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.summary .nm { font: 500 21px/1.25 var(--serif); }
.summary .nm span { font: 400 15px var(--sans); color: var(--muted); margin-right: 6px; }
.summary .amt { font: 500 14.5px/1.9 var(--sans); white-space: nowrap; }
.summary .empty { color: var(--muted); font: italic 400 20px/1.4 var(--serif); border-bottom: 0; padding-left: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; border-top: 1px solid var(--ink); margin-top: -1px; }
.total .big { font: 700 28px/1 var(--sans); color: var(--burgundy); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 600 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--olive); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0;
  background: rgba(255, 255, 255, .5); font-size: 16px; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #a39d8c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; border: 1px solid var(--burgundy); background: var(--burgundy); color: var(--cream);
  padding: 15px 30px; cursor: pointer; text-decoration: none;
  font: 600 11.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  transition: background .15s;
}
.btn:hover:not(:disabled) { background: var(--burgundy-dark); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--burgundy); }
.btn.ghost:hover:not(:disabled) { background: var(--burgundy); color: var(--cream); }
.btn.small { padding: 10px 16px; font-size: 10px; }
.actions { margin-top: 26px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fineprint { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 46ch; line-height: 1.55; }
.error { margin: 16px 0 0; color: var(--burgundy); font-weight: 600; font-size: 14px; }

/* ---- thank you -------------------------------------------------------------------------- */
.done { padding-top: 38px; }
.done h2 { margin: 0 0 6px; font: italic 500 clamp(40px, 7vw, 58px)/1 var(--serif); color: var(--burgundy); }
.done p { max-width: 56ch; }

/* ---- sticky bar ------------------------------------------------------------------------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(244, 238, 225, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--ink); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
}
.bar-inner { max-width: calc(900px - 2 * var(--gutter)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar .count { font: 600 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--olive); }
.bar .sum { font: 700 24px/1.1 var(--sans); color: var(--burgundy); margin-top: 4px; }

/* ---- footer ----------------------------------------------------------------------------- */
.foot { margin-top: 60px; padding-top: 18px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .eyebrow { color: var(--muted); font-weight: 500; font-size: 9.5px; letter-spacing: .24em; }

/* ---- small screens ---------------------------------------------------------------------- */
@media (max-width: 700px) {
  .page { padding-top: 24px; }
  .logo img { width: 84px; }
  .script { font-size: 25px; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .how { grid-template-columns: 1fr; gap: 14px; }
  .list-head { flex-direction: column; align-items: flex-start; }
  .list-head .price-key { text-align: left; }
  .wine { grid-template-columns: 104px minmax(0, 1fr); gap: 0 16px; }
  .wine-thumb img { width: 104px; height: 104px; }
  .wine-buy { grid-column: 1 / -1; grid-row: auto; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 14px; }
  .line-total { display: none; }
  .fields { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
  .bar .btn { padding: 13px 18px; }
}
@media print { .bar, .stepper button { display: none; } }
