@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f7f2ea;
  --ivory: #fff5e7;
  --ink: #281a19;
  --red: #6e181f;
  --wine: #350e12;
  --muted: #645452;
  --rule: #d9c9c1;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --inset: clamp(24px, 5.15vw, 86px);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
p { text-wrap: pretty; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.shell { width: min(calc(100% - 2 * var(--inset)), 1450px); margin-inline: auto; }

.skip {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 5;
  padding: 12px 18px;
  transform: translateY(-140%);
  background: var(--ivory);
  color: var(--ink);
}
.skip:focus { transform: none; }

.header { border-bottom: 1px solid #52121912; }
.navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-size: 13px;
  font-weight: 600;
}
.nav-link:hover, .footer-top:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font: 500 clamp(24px, 3vw, 37px) / 1 var(--serif);
  letter-spacing: -.065em;
  white-space: nowrap;
}

.eyebrow {
  font-size: 10px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero {
  position: relative;
  isolation: isolate;
  background: #220609;
  color: var(--ivory);
}
.hero-art, .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: 53% 54%; }
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #200406a3, #20040626 55%, transparent 78%),
    linear-gradient(0deg, #1b0406a6, transparent 29%);
  content: "";
}
.hero-inner {
  min-height: clamp(635px, 52vw, 810px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 34px;
  padding-bottom: 23px;
}
.hero-content {
  width: fit-content;
  align-self: center;
  max-width: min(670px, 65vw);
  padding-block: 28px 49px;
}
.hero-kicker { display: flex; align-items: center; gap: 12px; color: #f3d3c8; }
.hero-kicker span { width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  margin-block: 17px 22px;
  font-size: clamp(80px, 9vw, 150px);
  line-height: .9;
  letter-spacing: -.067em;
}
.hero h1 em { display: block; color: #f8ddcb; }
.hero-description { color: #f7e3d9; font-size: clamp(15px, 1.6vw, 20px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 52px;
  padding: 12px 17px 12px 19px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.button-ivory { margin-top: 28px; background: var(--ivory); color: var(--wine); }
.button-ivory:hover { background: #f1d4c3; }
.button-ivory:focus-visible { outline-color: var(--ivory); }
.button span { font-size: 17px; font-weight: 500; }
.hero-index, .section-meta, .footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hero-index { padding-top: 13px; border-top: 1px solid #fff5e761; color: #f0d6cc; }

.collection { padding-block: 44px clamp(70px, 8vw, 128px); }
.section-meta { color: var(--muted); padding-block: 13px; border-block: 1px solid var(--rule); }
.collection-title { text-align: center; padding-block: clamp(44px, 6vw, 90px) clamp(34px, 4vw, 60px); }
.collection-title h2, .story h2 {
  font-size: clamp(53px, 6.6vw, 106px);
  line-height: .99;
  letter-spacing: -.065em;
}
.collection-title h2 em, .story h2 em { color: var(--red); }
.collection-title p {
  max-width: 31ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.story { background: #ebded4; }
.story-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); align-items: center; }
.story-image { position: relative; align-self: stretch; min-height: 450px; overflow: hidden; }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.story-image span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 7px 10px;
  color: var(--wine);
  background: var(--ivory);
}
.story-copy { padding: clamp(35px, 8vw, 130px) 0 clamp(35px, 8vw, 130px) clamp(30px, 7vw, 110px); }
.story-copy .eyebrow { color: var(--red); margin-bottom: 16px; }
.story-copy h2 em { display: block; }
.story-copy > p:not(.eyebrow) { max-width: 36ch; margin-top: 23px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.text-link {
  display: inline-flex;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}
.footer { background: var(--wine); color: var(--ivory); }
.footer-inner { padding-block: 45px 22px; }
.footer-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 25px; }
.footer-wordmark { color: var(--ivory); font-size: clamp(42px, 7vw, 110px); line-height: 1.03; }
.footer-top { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; white-space: nowrap; }
.footer-meta { padding-top: 15px; border-top: 1px solid #fff5e74d; color: #e6c7be; }

@media (max-width: 680px) {
  .navigation { gap: 9px; min-height: 63px; }
  .nav-link { font-size: 11px; gap: 3px; }
  .wordmark { gap: 5px; }
  .wordmark img { width: 20px; height: 20px; }
  .hero { background: #260608; }
  .hero-art { inset-block-start: auto; height: 61%; mask-image: linear-gradient(transparent, #000 19%); }
  .hero-art img { object-position: center 55%; }
  .hero::after { background: linear-gradient(0deg, #1c0405bf, transparent 25%); }
  .hero-inner { min-height: clamp(680px, 167vw, 790px); padding-top: 29px; padding-bottom: 18px; }
  .hero-content { padding-block: 20px 0; align-self: start; max-width: 100%; }
  .hero h1 { margin-block: 13px 16px; font-size: clamp(65px, 17vw, 95px); }
  .hero-kicker { font-size: 9px; }
  .hero-kicker span { width: 18px; }
  .button-ivory { margin-top: 19px; }
  .hero-index span:last-child { display: none; }
  .collection { padding-top: 27px; }
  .story-inner { grid-template-columns: minmax(0, 1fr); }
  .story-image { min-height: 0; aspect-ratio: 4 / 4.3; }
  .story-copy { padding: 34px 0 48px; }
  .story-copy > p:not(.eyebrow) { margin-top: 16px; }
  .footer-inner { padding-top: 31px; }
  .footer-main { align-items: center; gap: 12px; padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { cursor: pointer; }
.bag-toggle { justify-self: end; padding: 0; border: 0; background: none; color: var(--red); }
.bag-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid #cbb0a7;
  border-radius: 50%;
  font-size: 11px;
}
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3.3vw, 56px); }
.product-card { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.card-image {
  width: 100%;
  display: grid;
  position: relative;
  aspect-ratio: 1.18;
  place-items: center;
  padding: 42px 18px 18px;
  border: 1px solid var(--rule);
  background: #fff;
  overflow: hidden;
  color: var(--red);
}
.card-image img { width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; transition: transform .35s ease; }
.card-image:hover img { transform: scale(1.035); }
.card-index { position: absolute; inset: 16px auto auto 16px; }
.card-meta { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 20px; }
.card-meta .eyebrow { color: var(--red); }
.card-meta h3 { margin-top: 6px; font-size: clamp(26px, 3.35vw, 48px); line-height: 1.04; letter-spacing: -.055em; }
.card-price { font-size: 15px; white-space: nowrap; padding-top: 3px; }
.product-card > p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
button.text-link { padding: 0; background: none; border: 0; }
.product-card .text-link { margin-top: 5px; }
.story-copy .wrap-colors { display: flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 12px; flex-wrap: wrap; }
.swatch { width: 15px; height: 15px; border: 1px solid #926962; border-radius: 50%; }
.swatch.oxblood { background: var(--red); }
.swatch.ivory { background: var(--ivory); margin-left: 10px; }

.shop-dialog {
  --pad: clamp(22px, 4vw, 46px);
  width: min(1040px, calc(100% - 30px));
  max-height: calc(100dvh - 32px);
  padding: var(--pad);
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
.shop-dialog::backdrop { background: #281015a8; }
body:has(.shop-dialog[open]) { overflow: hidden; }
.dialog-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
}
.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--red);
  font-size: 27px;
  line-height: 1;
}
.icon-button:hover { background: #ebded4; }
.shop-dialog h2 {
  margin: 8px 0 14px;
  font-size: clamp(44px, 5.2vw, 73px);
  line-height: .98;
  letter-spacing: -.058em;
}
.shop-dialog p { line-height: 1.55; }
.shop-dialog .eyebrow { color: var(--red); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(23px, 4vw, 50px); align-items: start; }
.gallery-stage {
  display: grid;
  width: 100%;
  aspect-ratio: 1.18;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #fff;
}
.gallery-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gallery-thumbnails button {
  padding: 8px 9px;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}
.gallery-thumbnails button[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: #efe1d9; }
.detail-copy { padding-top: 11px; }
.detail-copy .detail-price { color: var(--red); font-size: 21px; margin-bottom: 10px; }
.detail-copy > p:not(.eyebrow):not(.detail-price) { color: var(--muted); }
.media-credit, .small-print { margin-top: 10px; font-size: 12px; color: var(--muted); }
.add-form { display: grid; gap: 14px; margin-top: 21px; }
.shop-dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.shop-dialog select, .shop-dialog input, .shop-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bfa8a1;
  border-radius: 0;
  background: #fffaf4;
  color: var(--ink);
  font-size: 14px;
}
.shop-dialog textarea { resize: vertical; }
.button-wine { background: var(--wine); color: var(--ivory); }
.button-wine:hover { background: var(--red); }
.full-button { width: 100%; }
.detail-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 18px; margin-top: 28px; }
.detail-notes section { padding-top: 14px; border-top: 1px solid var(--rule); }
.detail-notes h3, .checkout-layout h3 { margin-bottom: 5px; font-size: 26px; letter-spacing: -.04em; }
.detail-notes p { color: var(--muted); font-size: 14px; }
.detail-notes .text-link { margin-top: 0; font-size: 13px; }

.bag-dialog {
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 500px);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
}
.bag-empty { margin: 18px 0; color: var(--muted); }
.bag-lines { margin-top: 18px; border-top: 1px solid var(--rule); }
.bag-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.bag-line img { width: 100%; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--rule); }
.bag-line h3 { font-size: 22px; letter-spacing: -.035em; }
.bag-line p { font-size: 13px; color: var(--muted); }
.bag-line .line-price { color: var(--ink); margin-top: 5px; }
.line-actions { display: flex; gap: 14px; align-items: center; margin-top: 7px; }
.line-actions label { display: flex; align-items: center; gap: 6px; }
.line-actions select { width: 67px; }
.plain-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bag-line .wrap-label, .bag-line .note-label { margin-top: 10px; }
.note-label span { font-weight: 400; }
.shop-totals { margin: 17px 0 14px; font-size: 14px; }
.shop-totals > div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; }
.shop-totals dd { margin: 0; white-space: nowrap; }
.shop-totals .total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); font-weight: 700; }
.checkout-notice { margin-bottom: 18px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .87fr); gap: clamp(18px, 4vw, 40px); }
.checkout-form { display: grid; gap: 10px; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.order-summary { align-self: start; padding: 18px; background: #efe4dc; border: 1px solid var(--rule); }
.order-summary ul { margin: 12px 0 0; padding: 0; list-style: none; }
.order-summary li { display: flex; justify-content: space-between; gap: 11px; font-size: 13px; border-bottom: 1px solid var(--rule); padding-block: 8px; }
.order-summary li div span { display: block; margin-top: 3px; color: var(--muted); }
.order-summary li > span { white-space: nowrap; }
.confirmation { padding-block: clamp(30px, 6vw, 80px); text-align: center; }
.confirmation img { margin: 0 auto 12px; }
.confirmation .button { margin-top: 18px; }

@media (max-width: 680px) {
  .bag-toggle { gap: 4px; }
  .bag-toggle > span:first-of-type { display: none; }
  .product-grid, .detail-layout, .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .product-grid { gap: 28px; }
  .product-dialog { padding-top: 58px; }
  .detail-copy { padding-top: 0; }
  .card-image { aspect-ratio: 1.15; }
}
@media (prefers-reduced-motion: reduce) {
  .card-image img { transition: none; }
  .card-image:hover img { transform: none; }
}
