@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: "Instrument Serif";
  src: url("/assets/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fcfaf6;
  --milk: #f6f2e9;
  --sand: #eee5d8;
  --ink: #28271f;
  --muted: #61574d;
  --wine: #521f30;
  --olive: #353f2c;
  --line: #ded6ca;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 4.17vw, 78px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); }
body.panel-open { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
svg { flex: none; }
p, h1, h2, h3 { margin: 0; }
em { font-weight: 400; }
h1, .section-title { font-family: var(--serif); font-weight: 400; line-height: .98; }
h1 { font-size: clamp(57px, 7.1vw, 112px); letter-spacing: -.032em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.wrap { max-width: 1600px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; }
.loading { min-height: 50vh; padding: 70px var(--gutter); }

.announcement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 35px;
  padding: 6px 16px;
  background: var(--wine);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .065em;
}
.announcement:hover svg { transform: translateX(3px); }
.announcement:focus-visible { outline-color: var(--paper); outline-offset: -4px; }
.site-header { background: var(--paper); border-bottom: 1px solid #ded6ca7a; }
.navigation {
  height: 73px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark {
  display: inline-block;
  width: max-content;
  font: 400 36px/.9 var(--serif);
  letter-spacing: -.04em;
  white-space: nowrap;
}
.wordmark span { color: var(--wine); }
.desktop-nav, .nav-actions { display: flex; align-items: center; }
.desktop-nav { gap: clamp(18px, 2.5vw, 43px); font-size: 13px; font-weight: 600; }
.desktop-nav a, .footer-grid a { text-underline-offset: 5px; }
.desktop-nav a:hover, .footer-grid a:hover, .plain-button:hover { text-decoration: underline; }
.nav-actions { justify-self: end; gap: 13px; }
.icon-button {
  border: 0;
  background: transparent;
  min-width: 38px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 50%;
}
.icon-button:hover { background: #c7b4a32b; }
.bag-trigger { gap: 5px; border-radius: 8px; }
.bag-count { font-size: 12px; font-weight: 600; }
.mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: 43% 57%; min-height: min(540px, 46vw); background: var(--sand); }
.hero-copy {
  align-self: center;
  padding: clamp(45px, 4vw, 82px) clamp(30px, 4vw, 73px) clamp(46px, 4vw, 85px) max(var(--gutter), calc((100vw - 1480px) / 2));
}
.eyebrow { color: var(--wine); font-size: 11px; font-weight: 700; letter-spacing: .155em; text-transform: uppercase; }
.hero h1 { margin: 19px 0 19px; }
.hero h1 em, .about-page h1 em { color: var(--wine); }
.hero-intro { max-width: 280px; margin-bottom: 31px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 52% 52%; }
.hero-cave .hero-image { background: #eee0cd; }
.hero-cave .hero-image img { object-position: center; }
.hero-cave .hero-image:focus-visible { outline-offset: -4px; }
.hero-cave .hero-intro { max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; }
.hero-price { color: var(--wine); font-size: 13px; font-weight: 650; }
.button {
  width: fit-content;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 12px 19px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button svg, .text-link svg, .announcement svg, .routine-links svg { transition: transform .18s; }
.button:hover svg, .text-link:hover svg { transform: translateX(3px); }
.button.primary { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.button.primary:hover { background: #6f3145; border-color: #6f3145; }
.button.outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.button.outline:hover { background: var(--wine); color: var(--paper); }
.button.full { width: 100%; justify-content: space-between; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }

.featured-section { padding-top: 68px; padding-bottom: 76px; }
.feature-header { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 26px; }
.section-title { font-size: clamp(49px, 5.1vw, 75px); letter-spacing: -.025em; }
.feature-header p { color: var(--muted); margin-top: 11px; font-size: 14px; }
.featured-filters, .category-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.filter-button:is(:hover, [aria-pressed="true"], [aria-current="page"]) { border-color: var(--wine); color: var(--wine); }
.filter-button:is([aria-pressed="true"], [aria-current="page"]) { background: var(--wine); color: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 33px 18px; }
.tile-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--milk); }
.tile-image a { display: block; height: 100%; }
.tile-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .32s ease; }
.tile-image:hover img { transform: scale(1.035); }
.tile-image a:focus-visible { outline-offset: -3px; }
.tile-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid #e1d9cb;
  transition: background-color .18s, color .18s;
}
.tile-add:hover { color: var(--paper); background: var(--wine); border-color: var(--wine); }
.illustration-label { position: absolute; top: 10px; left: 10px; padding: 4px 8px; background: var(--paper); color: var(--wine); font-size: 10px; }
.tile-info { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 650; }
.tile-info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tile-info span { white-space: nowrap; font-weight: 500; }
.tile-department { color: var(--muted); margin-top: 3px; font-size: 12px; }
.section-action { display: flex; justify-content: center; margin-top: 36px; }
.image-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; color: var(--muted); }

.story-band { display: grid; grid-template-columns: 51% 49%; background: var(--olive); color: var(--milk); }
.story-band img { height: 100%; min-height: 450px; max-height: 570px; object-fit: cover; object-position: 54% center; }
.story-copy { align-self: center; padding: 58px clamp(25px, 7.5vw, 125px); }
.story-copy .eyebrow { color: #e4dfce; }
.story-copy h2 { margin: 16px 0; font: 400 clamp(54px, 6vw, 94px)/.91 var(--serif); letter-spacing: -.025em; }
.story-copy p:not(.eyebrow) { margin: 0 0 26px; color: #eee8db; max-width: 315px; }
.story-copy :focus-visible { outline-color: var(--milk); }
.routine-section { padding-top: 70px; padding-bottom: 76px; }
.routine-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-top: 24px; }
.routine-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 4px 17px 0;
  border-top: 1px solid var(--line);
  font: 400 31px/1 var(--serif);
}
.routine-links a:hover { color: var(--wine); }
.routine-links a:hover svg { transform: translateX(4px); }

.catalogue-intro { padding: 51px 0 46px; background: var(--sand); }
.catalogue-intro h1 { font-size: clamp(63px, 8vw, 110px); }
.catalogue-intro p { color: var(--muted); margin-top: 10px; font-size: 16px; overflow-wrap: anywhere; }
.catalogue { padding-top: 24px; padding-bottom: 80px; min-height: 54vh; }
.category-nav { padding-block: 2px 12px; }
.collection-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0 17px; color: var(--muted); font-size: 13px; }
.collection-tools select { margin-left: 7px; padding: 7px 4px 7px 6px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.product-page { padding-bottom: 76px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 24px 0; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 104px); }
.main-image { background: var(--milk); aspect-ratio: 1; }
.main-image img { height: 100%; object-fit: contain; }
.thumbnails { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.thumbnails button { min-width: 0; border: 1px solid var(--line); padding: 0; background: var(--milk); }
.thumbnails button:is(:hover, [aria-pressed="true"]) { border-color: var(--wine); }
.product-copy { padding-top: clamp(12px, 3vw, 42px); max-width: 460px; }
.product-copy h1 { margin: 11px 0 12px; font-size: clamp(52px, 5.9vw, 88px); }
.product-price { font-size: 22px; font-weight: 550; }
.product-price span { font-size: 12px; color: var(--muted); }
.product-description { margin: 23px 0 26px; color: var(--muted); line-height: 1.7; }
.variant-list { border: 0; padding: 0; margin: 0 0 22px; }
.variant-list legend { padding: 0 0 10px; font-size: 13px; font-weight: 650; }
.variant-list div { display: flex; flex-wrap: wrap; gap: 7px; }
.variant-list button { padding: 8px 12px; border: 1px solid var(--line); background: transparent; font-size: 13px; }
.variant-list button:is(:hover, [aria-pressed="true"]) { border-color: var(--wine); color: var(--wine); }
.variant-list button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--wine); background: #f5eee6; }
.colour-picker div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.colour-picker button { min-width: 0; padding: 3px 3px 6px; font-size: 11px; line-height: 1.25; }
.colour-picker img { margin-bottom: 4px; background: var(--milk); }
.single-style { margin: 0 0 21px; font-size: 13px; }
.single-style strong { margin-left: 7px; }
.availability { margin-top: 12px; color: var(--muted); font-size: 12px; }
.product-details { margin-top: 24px; border-top: 1px solid var(--line); }
.product-details details { border-bottom: 1px solid var(--line); }
.product-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; list-style: none; font-size: 13px; font-weight: 650; cursor: pointer; }
.product-details summary::-webkit-details-marker { display: none; }
.product-details details[open] svg { transform: rotate(180deg); }
.product-details p { padding-bottom: 13px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.related { margin-top: 66px; }
.related h2 { margin-bottom: 23px; }
.about-page { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding-top: 70px; padding-bottom: 80px; }
.about-page h1 { margin: 16px 0 20px; }
.about-page p:not(.eyebrow) { max-width: 390px; color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.about-page img { height: 530px; object-fit: cover; object-position: 55%; }

.empty-state { display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; padding-block: 75px; }
.empty-state h2 { font: 400 49px/1 var(--serif); }
.checkout-page { padding-top: 50px; padding-bottom: 80px; min-height: 53vh; }
.checkout-page h1 { margin: 13px 0 29px; font-size: clamp(58px, 7.3vw, 95px); }
.checkout-page.empty-state h1 { margin-bottom: 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(26px, 5vw, 80px); align-items: start; }
.checkout-note, .order-summary { padding: 23px; border: 1px solid var(--line); }
.checkout-note { background: var(--sand); }
.checkout-layout h2 { font: 400 41px/1 var(--serif); margin-bottom: 12px; }
.checkout-note p { margin: 0 0 18px; max-width: 42ch; }
.checkout-note p:empty { display: none; }
.checkout-note [role="alert"] { margin-top: 15px; color: var(--wine); }

.site-footer { padding: 57px 0 22px; background: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 28px; margin-bottom: 42px; }
.footer-grid p { color: var(--muted); margin-top: 12px; }
.footer-grid h2 { font-size: 13px; margin-bottom: 9px; font-weight: 700; }
.footer-grid > div:not(:first-child) a, .plain-button { display: block; width: fit-content; margin: 6px 0; font-size: 13px; }
.plain-button { border: 0; padding: 0; background: transparent; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; color: var(--muted); }

#panel {
  color: var(--ink);
  background: var(--paper);
  padding: 0;
  margin: 0 0 0 auto;
  border: 0;
  height: 100dvh;
  max-height: none;
  width: min(465px, 100vw);
  max-width: none;
}
#panel[open] { display: flex; flex-direction: column; }
#panel::backdrop { background: #2f241f67; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 { font: 400 43px/1 var(--serif); }
.panel-body { padding: 22px 24px; overflow: auto; }
.panel-bottom { margin-top: auto; padding: 16px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.panel-bottom .availability { text-align: center; }
.panel-body.empty-state { min-height: 290px; }
.bag-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.bag-line img { background: var(--milk); width: 78px; height: 78px; object-fit: contain; }
.bag-info > a { font-weight: 650; }
.bag-info > a:hover { text-decoration: underline; }
.bag-info p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bag-line-end { display: flex; flex-direction: column; justify-content: space-between; align-items: end; padding-block: 1px 3px; }
.quantity { display: flex; align-items: center; gap: 6px; width: fit-content; height: 30px; margin-top: 7px; border: 1px solid var(--line); }
.quantity button, .remove { border: 0; background: transparent; }
.quantity button { display: grid; place-items: center; width: 26px; height: 28px; padding: 0; }
.quantity button:hover { background: var(--sand); }
.remove { padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; color: var(--muted); }
.subtotal, .shipping-total { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.subtotal { margin: 10px 0 15px; }
.order-summary .subtotal { margin: 14px 0 0; }
.shipping-total { margin-top: 10px; }
.search-form { display: flex; align-items: center; border: 1px solid var(--line); margin-bottom: 18px; padding: 3px; }
.search-form input { width: 100%; border: 0; padding: 10px 7px; background: transparent; color: var(--ink); }
.search-form:focus-within { outline: 1px solid var(--wine); }
.search-form input:focus { outline: 0; }
.search-result { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 11px; align-items: center; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.search-result img { background: var(--milk); }
.search-result:hover { color: var(--wine); }
.panel-empty { color: var(--muted); padding: 10px 0; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 31px/1.2 var(--serif); }
.toast {
  opacity: 0;
  position: fixed;
  bottom: 18px;
  left: 18px;
  max-width: calc(100vw - 36px);
  z-index: 5;
  pointer-events: none;
  transform: translateY(8px);
  background: var(--olive);
  color: var(--milk);
  padding: 10px 14px;
  font-size: 13px;
  transition: opacity .18s, transform .18s;
}
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .desktop-nav { gap: 16px; }
  .wordmark { font-size: 31px; }
  .nav-actions { gap: 5px; }
  .hero { min-height: 440px; grid-template-columns: 45% 55%; }
  .hero h1 { font-size: clamp(58px, 8.7vw, 90px); }
  .product-grid { gap: 25px 12px; }
  .tile-info { font-size: 13px; }
}

@media (max-width: 680px) {
  .navigation { height: 60px; grid-template-columns: 1fr auto 1fr; gap: 2px; }
  .navigation .wordmark { font-size: 30px; }
  .mobile-menu { display: inline-flex; justify-self: start; padding-left: 0; }
  .desktop-nav { display: none; }
  .nav-actions { gap: 0; margin-right: -5px; }
  .nav-actions .icon-button { min-width: 33px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { align-self: stretch; padding: 37px var(--gutter) 34px; }
  .hero h1 { font-size: clamp(64px, 13.2vw, 92px); margin: 12px 0 13px; }
  .hero-intro { margin-bottom: 21px; font-size: 14px; }
  .hero-image { min-height: 276px; height: 70vw; max-height: 390px; }
  .hero-image img { object-position: 50% 53%; }
  .featured-section { padding-top: 48px; padding-bottom: 49px; }
  .feature-header { display: grid; gap: 16px; margin-bottom: 17px; }
  .feature-header p { margin-top: 7px; }
  .filter-button { min-height: 36px; padding-inline: 11px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 10px; }
  .tile-info { font-size: 12.5px; line-height: 1.35; gap: 5px; }
  .tile-add { right: 6px; bottom: 6px; width: 34px; height: 34px; }
  .illustration-label { top: 5px; left: 5px; font-size: 9px; }
  .section-action { margin-top: 26px; }
  .story-band { grid-template-columns: 1fr; }
  .story-band img { min-height: 0; height: 70vw; max-height: 390px; }
  .story-copy { padding: 31px var(--gutter) 40px; }
  .routine-section { padding-top: 49px; padding-bottom: 47px; }
  .routine-links { gap: 0 16px; margin-top: 18px; }
  .routine-links a { font-size: 27px; }
  .routine-links a svg { width: 17px; }
  .catalogue-intro { padding-block: 36px; }
  .catalogue { padding-top: 16px; padding-bottom: 55px; }
  .category-nav { gap: 5px; }
  .collection-tools { padding-top: 7px; }
  .product-layout { grid-template-columns: 1fr; gap: 15px; }
  .product-copy { padding-top: 9px; }
  .related { margin-top: 47px; }
  .product-page { padding-bottom: 47px; }
  .breadcrumbs { padding: 17px 0; }
  .thumbnails { gap: 4px; }
  .about-page { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 53px; }
  .about-page img { height: auto; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-page { padding-top: 36px; padding-bottom: 47px; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-bottom: 30px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
