:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --ink: #28211d;
  --wine: #4a211d;
  --aqua: #bce1d8;
  --line: #d7cfc2;
  --serif: "Baskerville", "Baskervville", "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2 { margin: 0; }
h1, h2, .product-name { font-family: var(--serif); font-weight: 400; color: var(--wine); }
h1, h2 { line-height: .95; letter-spacing: -.055em; }
h1 { font-size: clamp(5rem, 8.2vw, 10rem); }
h2 { font-size: clamp(3.25rem, 5.1vw, 6rem); }
h1 em, h2 em { font-weight: 400; }
.skip { position: fixed; top: 0; left: 1rem; padding: 1rem; background: white; transform: translateY(-110%); z-index: 3; }
.skip:focus { transform: none; }
.topline { background: var(--aqua); text-align: center; padding: .45rem 1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.header { height: 5.45rem; padding: 0 4.2%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.65rem; border-bottom: 1px solid var(--line); }
.brand { width: max-content; }
.brand img { width: 112px; height: auto; }
.header .brand img { width: 144px; }
.header nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 3.25rem); font-size: .88rem; }
.header-actions { justify-self: end; gap: clamp(.7rem, 2.2vw, 1.75rem); }
.header a:hover, footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header button, .filters button { background: none; border: 0; padding: .35rem 0; white-space: nowrap; }
#bag-count { display: inline-grid; place-items: center; margin-inline-start: .22rem; min-width: 1.42rem; height: 1.42rem; border: 1px solid var(--line); border-radius: 50%; font-size: .78rem; }
.hero { display: grid; grid-template-columns: 43% 57%; min-height: min(670px, 72svh); border-bottom: 1px solid var(--line); }
.hero-copy { align-self: center; padding: clamp(3.75rem, 7vw, 8rem) 7% clamp(3.75rem, 7vw, 8rem) 11%; }
.eyebrow { display: block; font-size: .77rem; font-weight: 600; letter-spacing: .155em; line-height: 1.45; text-transform: uppercase; }
.hero h1 { margin: 1.4rem 0 1.6rem; }
.intro { max-width: 29ch; }
.button { display: inline-block; padding: .92rem 1.27rem; border: 1px solid var(--wine); font-size: .88rem; transition: background .2s ease, color .2s ease; }
.primary { color: var(--paper); background: var(--wine); }
.primary:hover { background: #67352e; }
.hero .button, .subscription .button { margin-top: 1.65rem; }
.outline { background: transparent; color: var(--wine); }
.outline:hover { background: var(--wine); color: var(--paper); }
.hero-image, .subscription figure { position: relative; overflow: hidden; min-height: 100%; background: #796254; }
.hero-image img, .subscription figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-image img { object-position: 56% 51%; }
.wrap { width: min(91.6%, 1500px); margin-inline: auto; }
.collection { padding-block: clamp(3.6rem, 7.5vw, 8rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head h2, .subscription h2, .atelier h2 { margin-top: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 1.15rem; font-size: .88rem; }
.filters button[aria-pressed=true] { border-bottom: 1px solid var(--wine); color: var(--wine); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.7vw, 3rem); }
.product-link { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.product-image { display: block; overflow: hidden; background: #e6ddd0; aspect-ratio: 1.25; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-link:hover img { transform: scale(1.035); }
.product-info { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.product-name { display: block; margin-top: .22rem; font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -.035em; line-height: 1.02; }
.product-open { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; font-size: 1.28rem; }
.collection-note { margin-top: .8rem; color: #65584e; font-size: .82rem; }
.subscription { display: grid; grid-template-columns: 52% 48%; background: #dfebe4; min-height: 510px; }
.subscription-copy { padding: clamp(3rem, 6.4vw, 7rem) 11%; align-self: center; }
.subscription-copy > p:not(.eyebrow) { max-width: 36ch; margin-top: 1.4rem; }
.atelier { text-align: center; padding-block: clamp(4rem, 8.5vw, 9rem); }
.atelier > p:not(.eyebrow) { width: min(100%, 59ch); margin: 1.5rem auto; }
.text-link { text-decoration: underline; text-underline-offset: .25em; }
footer { display: flex; gap: 1.25rem; justify-content: space-between; align-items: center; background: var(--aqua); padding: 2.3rem 4.2%; font-size: .88rem; }
dialog { max-width: min(90vw, 560px); max-height: 90svh; width: 100%; padding: 0; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(33 22 18 / .57); }
.dialog-inner { position: relative; padding: clamp(1.5rem, 5vw, 3rem); }
.dialog-close { position: absolute; z-index: 1; right: .6rem; top: .55rem; border: 1px solid var(--line); border-radius: 50%; width: 2.35rem; aspect-ratio: 1; background: var(--paper); font-size: 1.45rem; line-height: 1; }
dialog h2 { font-size: clamp(2.65rem, 7vw, 4.15rem); margin: .7rem 0 1rem; }
dialog img { width: 100%; max-height: 31svh; object-fit: cover; margin-bottom: 1.1rem; }
dialog .button { margin-top: 1rem; }
dialog label { display: grid; gap: .25rem; margin-top: .8rem; }
dialog select { width: 100%; padding: .6rem; border: 1px solid var(--line); background: var(--paper); }
.bag-list { list-style: none; padding: 0; }
.bag-list li { display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: .6rem 0; }
.bag-list button { background: none; border: 0; padding: .35rem 0; text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 45% 55%; min-height: 550px; }
  h1 { font-size: clamp(4.15rem, 9vw, 7rem); }
}
@media (max-width: 680px) {
  .header { height: auto; grid-template-columns: 1fr 1fr; gap: 0; padding-top: .85rem; }
  .brand img { width: 93px; }
  .header .brand img { width: 120px; }
  .header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 1.7rem; padding: .7rem 0; margin-top: .65rem; border-top: 1px solid var(--line); }
  .hero, .subscription { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 2.7rem 6% 2.65rem; }
  .hero h1 { margin: 1rem 0; }
  .hero-image { min-height: 0; aspect-ratio: 1.2; }
  .subscription figure { min-height: 0; aspect-ratio: 1.36; }
  .subscription-copy { padding: 2.8rem 6% 3rem; }
  .section-head { align-items: start; flex-direction: column; gap: .85rem; margin-bottom: 1.15rem; }
  .product-image { aspect-ratio: .94; }
  .product-info .eyebrow { font-size: .68rem; }
  .product-name { font-size: clamp(1.52rem, 5.7vw, 2.15rem); }
  .product-open { flex-basis: 1.85rem; height: 1.85rem; }
  footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.subscription-choices { margin: 1.2rem 0 .25rem; border-top: 1px solid var(--line); }
.subscription-choice { display: flex; justify-content: space-between; align-items: center; padding: .95rem .65rem; border-bottom: 1px solid var(--line); color: var(--wine); }
.subscription-choice:hover, .subscription-choice:focus-visible { background: var(--aqua); }
.shop-card-price { display:block; margin-top:.38rem; font: .98rem/1.5 var(--sans); color:var(--wine); }
.shop-page { padding-block:clamp(2rem,5vw,5rem); min-height:64vh; }
.shop-page h1 { font-size:clamp(3rem,5vw,6rem); margin:.6rem 0 1.3rem; }
.shop-page h2 { font-size:clamp(1.85rem,3vw,2.7rem); margin:0 0 1.1rem; }
.shop-page .back { display:inline-block; margin-bottom:2rem; font-size:.87rem; text-decoration:underline; text-underline-offset:.3em; }
.shop-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(2rem,5vw,6rem); align-items:start; }
.shop-photo { width:100%; aspect-ratio:1.12; object-fit:cover; }
.shop-page label { display:grid; gap:.35rem; margin:.8rem 0; }
.shop-page :is(input, select, textarea) { width:100%; min-width:0; border:1px solid var(--line); padding:.7rem; background:var(--paper); color:var(--ink); font:inherit; border-radius:0; }
.shop-page fieldset { display:flex; flex-wrap:wrap; gap:.45rem; margin:1.25rem 0; border:0; padding:0; }
.shop-page legend { margin-bottom:.45rem; }
.shop-page .size { position:relative; padding:.6rem 1rem; border:1px solid var(--line); margin:0; cursor:pointer; }
.size:has(input:checked) { color:var(--paper); background:var(--wine); }
.size:focus-within { outline:2px solid var(--ink); outline-offset:2px; }
.shop-page .size input { position:absolute; opacity:0; width:1px; height:1px; }
.shop-page .qty { max-width:6rem; }
.shop-page .actions { display:flex; align-items:end; gap:1rem; margin:1rem 0; }
.shop-page .actions label { margin:0; }
.shop-page .price { font:1.7rem var(--serif); color:var(--wine); margin-top:1rem; }
.shop-page details { padding:.85rem 0; border-top:1px solid var(--line); }
.shop-page summary { cursor:pointer; }
.shop-page details p { padding-top:.5rem; }
.shop-line { display:flex; gap:1rem; align-items:center; justify-content:space-between; padding:.9rem 0; border-bottom:1px solid var(--line); }
.shop-line img { width:65px; height:75px; object-fit:cover; }
.shop-line .item { flex:1; }
.shop-line small { display:block; }
.shop-line button { background:transparent; border:0; padding:.35rem; text-decoration:underline; }
.shop-summary { padding:clamp(1.2rem,3vw,3rem); background:#ecece1; }
.shop-total { display:flex; justify-content:space-between; margin:1rem 0; gap:1rem; }
.shop-pair { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.shop-page [role=status] { margin:.6rem 0; }
@media(max-width:720px) { .shop-grid {grid-template-columns:1fr;} .shop-pair {grid-template-columns:1fr;gap:0;} .shop-page .actions {flex-wrap:wrap;} }
#delivery-details { white-space:pre-line; overflow-wrap:anywhere; }
.shop-page .payment-title { margin-top:2rem; }
