:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --ink: #211e1c;
  --muted: #665c55;
  --wine: #692b3c;
  --deep-wine: #49202c;
  --line: #dcd4c9;
  --side: clamp(18px, 4vw, 72px);
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
img { display: block; max-width: 100%; }
button, a { color: inherit; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(calc(100% - var(--side) * 2), 1420px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-150%); background: var(--paper); padding: 12px; }
.skip-link:focus { transform: none; }

.announcement {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px;
  padding: 6px 16px; background: var(--deep-wine); color: #fff7ee;
  font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; text-align: center;
}
.site-header { border-bottom: 1px solid var(--line); }
.navigation { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.navigation-links, .footer nav { display: flex; gap: clamp(14px, 2.4vw, 36px); align-items: center; }
.navigation-links a, .bag-toggle { font-size: .88rem; font-weight: 650; white-space: nowrap; }
.navigation-links a, .footer nav a { padding-block: 12px; }
.navigation-links a:hover, .footer a:hover { color: var(--wine); }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 5px; }
.brand img, .footer-brand { filter: grayscale(1) brightness(1.13); mix-blend-mode: multiply; }
.brand-mark { width: 28px; height: auto; }
.brand-name { width: 91px; height: auto; }
.bag-toggle {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0; border: 0; background: transparent;
}
.bag-icon { width: 15px; height: 14px; position: relative; border: 1.3px solid currentColor; border-radius: 1px; margin-right: 1px; }
.bag-icon::before {
  content: ""; position: absolute; inset: -6px 3px auto; height: 6px;
  border: 1.3px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0;
}
.bag-count { display: grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 4px; background: #ece4db; border-radius: 50%; font-size: .76rem; }

.hero {
  min-height: clamp(490px, 42.7vw, 640px); display: grid; grid-template-columns: 43.5% 56.5%; margin-top: 19px;
  background: #efe7db;
}
.hero-copy { align-self: center; padding: clamp(30px, 5vw, 82px); padding-right: clamp(22px, 3vw, 50px); }
.eyebrow { color: var(--wine); font-weight: 700; font-size: .83rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(4rem, 6.95vw, 8rem); font-weight: 700; line-height: .91; letter-spacing: -.078em;
  white-space: nowrap;
}
.hero h1 em { display: block; color: var(--wine); font: italic 400 1.02em/.96 var(--serif); letter-spacing: -.092em; }
.hero-description { max-width: 320px; margin-top: 25px; color: #57504a; line-height: 1.55; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 21px;
  border: 1px solid transparent; font-size: .9rem; font-weight: 700; text-align: center; transition: background-color .2s, color .2s;
}
.button-primary { background: var(--wine); color: #fffaf4; }
.button-primary:hover { background: var(--deep-wine); }
.hero .button { margin-top: 25px; }
.hero-photo { position: relative; min-width: 0; overflow: hidden; background: #b69975; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 11%; }
.hero-photo figcaption {
  position: absolute; bottom: 14px; right: 16px; margin-left: 16px;
  padding: 5px 9px; color: #fff8ee; background: #251a1699; font-size: .76rem;
}
.collection { padding-block: clamp(52px, 6vw, 92px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2, .story h2 { font-size: clamp(2.35rem, 4.25vw, 4.3rem); line-height: .97; letter-spacing: -.071em; font-weight: 700; }
.section-heading p { margin-top: 10px; color: var(--muted); }
.text-button {
  background: transparent; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline;
  text-underline-offset: 4px; text-align: start; font-size: .875rem; font-weight: 650; white-space: nowrap;
}
.text-button:hover { color: var(--wine); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.9vw, 29px); }
.product-card { min-width: 0; }
.product-image {
  display: block; position: relative; width: 100%; padding: 0; overflow: hidden;
  background: #e6e1d8; border: 0; aspect-ratio: 1;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .36s ease; }
@media (hover: hover) { .product-image:hover img { transform: scale(1.045); } }
.product-open {
  position: absolute; right: 11px; bottom: 11px; display: grid; place-items: center;
  width: 39px; height: 39px; background: #fcf9f2; font-size: 1.45rem; line-height: 1;
}
.product-image:hover .product-open { background: var(--wine); color: #fff8ed; }
.product-meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 6px; padding-top: 13px; }
.product-meta h3 { font-size: 1rem; font-weight: 700; }
.product-meta h3 button { background: none; border: 0; padding: 0; text-align: left; font-weight: inherit; }
.product-meta h3 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.price { font-size: .91rem; white-space: nowrap; }
.color-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 3px; font-size: .875rem; }
.swatch { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #74645766; }
.swatch-ink { background: #282525; }
.swatch-bone { background: #e5dbca; }
.swatch-oxblood { background: #521e2b; }

.story { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 350px; margin-bottom: clamp(54px, 7vw, 100px); background: var(--deep-wine); color: #fcf4e9; }
.story > img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { align-self: center; padding: clamp(30px, 5vw, 76px); }
.story-copy p { margin-top: 17px; max-width: 380px; color: #f3e0dc; }
.story-copy .button { margin-top: 23px; }
.button-inverse { border-color: #ad8b93; color: #fff7ef; background: transparent; }
.button-inverse:hover { color: var(--deep-wine); background: #fff7ef; }
.button-inverse:focus-visible { outline-color: #fff7ef; }
.footer { background: #eee7dc; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; justify-items: start; align-items: center; row-gap: 12px; column-gap: clamp(24px, 6vw, 85px); padding-block: 36px; }
.footer-brand { width: 121px; height: auto; }
.footer nav { font-size: .875rem; font-weight: 650; flex-wrap: wrap; }
.footer nav .text-button { text-decoration: none; }
.footer-inner > p { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }

.dialog {
  border: 1px solid var(--line); color: var(--ink); background: var(--paper);
  padding: 0; max-width: calc(100% - 26px); max-height: calc(100% - 26px); overflow: auto;
}
.dialog::backdrop { background: #19121680; }
.close-button {
  display: grid; place-items: center; width: 44px; height: 44px; z-index: 1;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 1.5rem/1 var(--sans);
}
.close-button:hover { color: var(--wine); border-color: var(--wine); }
.product-dialog, .sizes-dialog { position: fixed; }
.product-dialog { width: min(860px, calc(100% - 26px)); }
.product-dialog > .close-button, .sizes-dialog > .close-button { position: absolute; top: 12px; right: 12px; }
.product-dialog-inner { display: grid; grid-template-columns: 1fr 1fr; }
.product-dialog-inner > img { width: 100%; height: 100%; object-fit: cover; background: #e6e1d8; }
.product-details { padding: 44px 28px 28px; }
.product-details h2, .dialog h2 { line-height: 1.1; letter-spacing: -.045em; font-size: 2rem; }
.product-details p { margin-block: 9px; }
.product-price { color: var(--wine); font-weight: 700; }
.variant-label { display: flex; align-items: center; gap: 8px; padding-block: 9px 5px; }
.variant-label strong { margin-right: 5px; }
.product-details fieldset { padding: 0; margin: 0; border: 0; }
.product-details legend { font-size: .92rem; font-weight: 700; margin-bottom: 8px; padding: 0; }
.size-options { display: flex; flex-wrap: wrap; gap: 7px; }
.size-options label { position: relative; cursor: pointer; }
.size-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.size-options span { display: grid; place-items: center; min-width: 47px; min-height: 44px; border: 1px solid var(--line); pointer-events: none; }
.size-options input:checked + span { background: var(--wine); color: #fff7ef; border-color: var(--wine); }
.size-options input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.inline-size { margin-block: 8px 12px; }
.inline-size summary { cursor: pointer; width: fit-content; padding-block: 6px; font-size: .89rem; }
.inline-size .size-note, .size-note { color: var(--muted); font-size: .88rem; }
.sizes-dialog { width: 470px; padding: 33px 25px 26px; }
.sizes-dialog .size-note { margin-top: 12px; }
.sizes-table { border-collapse: collapse; width: 100%; margin-top: 9px; font-size: .88rem; }
.sizes-table th, .sizes-table td { text-align: left; padding: 5px 3px; border-bottom: 1px solid var(--line); }
.full-width { width: 100%; }
.bag-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: 465px; max-width: 100%; max-height: 100%; }
.bag-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.bag-header, .bag-footer, .bag-content { padding: 19px 22px; }
.bag-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.bag-content { overflow-y: auto; }
.bag-content > div > .button { margin-top: 14px; }
.bag-items { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bag-line img { width: 80px; height: 80px; }
.bag-line-heading { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; font-size: .95rem; }
.bag-line-variant { font-size: .88rem; color: var(--muted); margin-top: 2px; }
.bag-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.bag-actions .stepper { min-width: 42px; min-height: 38px; border: 1px solid var(--line); background: transparent; }
.bag-actions .stepper:disabled { opacity: .45; cursor: default; }
.bag-actions .text-button { margin-left: auto; }
.bag-footer { border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.checkout-message:not(:empty) { margin-top: 10px; color: var(--muted); font-size: .9rem; }

@media (max-width: 950px) {
  .hero { min-height: 470px; }
  .hero-copy { padding-left: clamp(27px, 4vw, 53px); }
  .hero h1 { font-size: clamp(3.6rem, 7.8vw, 5rem); }
}

@media (max-width: 720px) {
  .navigation { min-height: 64px; gap: 7px; }
  .navigation-links { gap: 9px; }
  .navigation-links a, .bag-toggle { font-size: .82rem; }
  .navigation-links a:nth-child(2) { display: none; }
  .brand-mark { width: 23px; }
  .brand-name { width: 76px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 11px; }
  .hero-copy { padding: 36px 24px 28px; }
  .hero h1 { font-size: clamp(3.5rem, 12.45vw, 5.9rem); }
  .hero-description { margin-top: 15px; }
  .hero .button { margin-top: 18px; }
  .hero-photo { aspect-ratio: 1.08; }
  .hero-photo img { object-position: 50% 10%; }
  .eyebrow { margin-bottom: 12px; }
  .section-heading { margin-bottom: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 25px; }
  .story { grid-template-columns: 1fr; }
  .story > img { aspect-ratio: 4 / 3; }
  .footer-inner { grid-template-columns: 1fr; row-gap: 8px; padding-block: 27px; }
  .footer nav { gap: 16px; }
  .product-dialog-inner { grid-template-columns: 1fr; }
  .product-dialog-inner > img { height: auto; max-height: 32vh; object-fit: contain; background: #e2ded6; }
  .product-details { padding: 17px 19px 22px; }
}

@media (max-width: 390px) {
  .bag-icon { display: none; }
  .price, .product-meta h3 { font-size: .84rem; }
  .product-meta { column-gap: 4px; }
  .product-open { width: 31px; height: 31px; right: 7px; bottom: 7px; }
  .section-heading { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
