:root {
  color-scheme: light;
  --paper: #fcfaf6;
  --cream: #f3ebe0;
  --sand: #eee3d3;
  --ink: #32261f;
  --muted: #6f5c50;
  --amber: #875b38;
  --line: #ddd1c3;
  --body: "DM Sans", Arial, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1; }
h2 { font-size: clamp(2.55rem, 4.9vw, 4.15rem); letter-spacing: -.035em; }
.wrap { width: min(100% - 6rem, 1250px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 4; background: white; padding: .65rem 1rem; }
.quiet { color: var(--muted); font-size: .875rem; }
.eyebrow {
  font: 600 .875rem/1.4 var(--body); letter-spacing: .15em; text-transform: uppercase;
  color: var(--amber);
}
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.icon-button {
  display: inline-grid; place-items: center; position: relative; min-width: 44px; min-height: 44px;
  border: 0; background: transparent; color: inherit; border-radius: 50%; padding: 0;
}
.icon-button:hover { background: rgb(127 87 56 / 9%); }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .7rem 1.55rem; border: 1px solid var(--ink); background: var(--ink);
  color: var(--paper); font: 600 .9375rem/1.3 var(--body);
  transition: background-color .18s, color .18s, border-color .18s;
}
.button:hover { background: #594034; border-color: #594034; }
.button:disabled { color: #57483e; background: #e7dbcf; border-color: #e7dbcf; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: var(--cream); color: var(--ink); border-color: var(--amber); }
.full-width { display: flex; width: 100%; }
.text-link, .text-button { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.text-button { padding: 0; border: 0; background: transparent; font-size: .9rem; text-align: left; }
.text-link:hover, .text-button:hover { color: var(--amber); }
.announcement {
  padding: .38rem 1rem; text-align: center; color: #544234; background: #ede2d5;
  font-size: .8125rem; letter-spacing: .045em;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  margin-inline: auto; width: min(100% - 6rem, 1290px); min-height: 76px; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.main-nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.4rem); }
.main-nav a { font-size: .875rem; font-weight: 500; padding-block: .8rem; }
.main-nav a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.header-actions { justify-self: end; gap: .28rem; }
.cart-trigger { min-width: 62px; display: flex; justify-content: center; gap: .35rem; border-radius: 2px; }
.bag-count {
  color: var(--ink); background: var(--cream); border-radius: 50%; width: 20px; height: 20px;
  display: inline-grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.wordmark { display: inline-grid; justify-items: center; width: max-content; line-height: .91; font: 600 2.05rem/.94 var(--display); }
.wordmark-number {
  color: var(--amber); display: flex; align-items: center; gap: .4rem; margin-top: .37rem;
  font: 700 .7rem/1 var(--body); letter-spacing: .24em;
}
.wordmark-number::before, .wordmark-number::after { content: ""; width: 19px; height: 1px; background: currentColor; opacity: .55; }
.menu-trigger { display: none; }

.hero {
  background: var(--cream); display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 57%);
  min-height: clamp(440px, 39vw, 610px); max-width: 1920px; margin-inline: auto;
}
.hero-content {
  align-self: center; padding: 3rem 2rem 3.35rem max(3rem, 8.3vw);
}
.hero-kicker { display: flex; align-items: center; gap: .65rem; margin-bottom: .95rem; }
.hero-kicker::before { content: ""; width: 20px; flex: 0 0 20px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4rem, 6.25vw, 6.9rem); line-height: .88; letter-spacing: -.05em; }
.hero h1 em { font-weight: 500; color: var(--amber); }
.hero-intro { color: var(--muted); max-width: 21rem; margin: 1.5rem 0 1.6rem; }
.hero-photo { position: relative; min-height: 100%; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 52%; }

.collection { padding-block: 3.5rem 5.5rem; scroll-margin-top: 1.25rem; }
.collection-heading { text-align: center; }
.collection-heading .quiet { margin-top: .55rem; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin: 1.55rem auto 1.8rem; }
.filters button {
  background: transparent; border: 1px solid var(--line); padding: .42rem 1rem; min-height: 39px;
  font-size: .875rem; white-space: nowrap; border-radius: 2px;
}
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.filters button[aria-pressed="false"]:hover { background: var(--cream); border-color: var(--amber); }
.catalog-message { margin: 1.5rem 0; color: var(--muted); text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.4rem; }
.product-card > button { padding: 0; border: 0; background: transparent; width: 100%; text-align: left; }
.product-photo { display: block; position: relative; background: var(--sand); overflow: hidden; aspect-ratio: 1 / 1.04; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card > button:hover img { transform: scale(1.035); }
.product-plus {
  position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center;
  background: var(--paper); min-width: 38px; height: 38px; border-radius: 50%;
  transition: color .18s, background .18s;
}
.product-plus .icon { width: 18px; height: 18px; }
.product-card > button:hover .product-plus { background: var(--ink); color: var(--paper); }
.product-text { display: grid; gap: .12rem; padding-top: .85rem; }
.product-title { font: 600 clamp(1.45rem, 2.1vw, 1.9rem)/1.07 var(--display); }
.product-price { font-weight: 600; font-size: .9375rem; }
.product-missing { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .875rem; }

.about {
  background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
  max-width: 1920px; margin-inline: auto;
}
.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-content { display: grid; align-content: center; justify-items: start; padding: 3.6rem clamp(2rem, 8.3vw, 9.5rem); }
.about-content h2 { margin: .65rem 0 1rem; }
.about-content > p:not(.eyebrow) { color: var(--muted); max-width: 27rem; }
.social-link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.45rem; padding-block: .25rem; font-size: .9rem; }
.social-link img { border-radius: 50%; }
.social-link > span { display: grid; }
.social-link > span span { color: var(--muted); }
.social-link:hover strong { text-decoration: underline; text-underline-offset: .25em; }
.site-footer { background: var(--ink); color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; min-height: 124px; padding-block: 1.4rem; }
.site-footer .wordmark-number { color: #dbc6a8; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; font-size: .875rem; }
.footer-credit {
  border-top: 1px solid rgb(221 209 195 / 28%); text-align: center; padding: .65rem 1rem; font-size: .8125rem;
}
.footer-credit a:hover { text-decoration: underline; text-underline-offset: .25em; }
.transaction-page .footer-credit, .admin-page .footer-credit { border-color: var(--line); color: var(--muted); }
.footer-social { justify-self: end; }

dialog { padding: 0; border: none; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(38 29 23 / 52%); }
.modal { width: min(100% - 2rem, 500px); max-height: min(90dvh, 720px); box-shadow: 0 16px 64px rgb(48 34 21 / 17%); }
.dialog-header {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1rem 1.5rem;
}
.dialog-header h2 { font-size: 2.5rem; }
.menu-links { display: grid; gap: .8rem; padding: 1.4rem 1.5rem; }
.search-content { padding: 1.25rem 1.5rem 1.5rem; }
.search-results { margin-top: .8rem; }
.search-results button {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 1rem; text-align: left; align-items: center;
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .5rem 0;
}
.search-results button:hover { background: var(--cream); }
.search-results img { width: 54px; height: 54px; object-fit: cover; background: var(--sand); }
.search-results strong { display: block; }
.detail-modal { width: min(100% - 2rem, 790px); }
.detail-close { position: absolute; z-index: 1; right: .65rem; top: .65rem; background: var(--paper); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-photo { display: grid; min-height: 350px; background: var(--sand); overflow: hidden; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { display: grid; align-content: center; gap: .95rem; padding: 3.5rem 1.7rem 2rem; }
.detail-content h2 { font-size: clamp(2.4rem, 3vw, 3.35rem); }
.detail-content .product-price { font-size: 1.125rem; }
.detail-description { color: var(--muted); }
.detail-content select { margin-top: .35rem; }
.detail-content .field-status:empty { display: none; }
.drawer { width: min(100%, 460px); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.drawer-content { display: flex; flex-direction: column; height: 100%; }
.bag-items { flex: 1; overflow-y: auto; padding: .3rem 1.5rem; }
.bag-empty { padding: 1.4rem 0; color: var(--muted); }
.bag-item, .checkout-item { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.bag-item img, .checkout-item img { width: 78px; height: 78px; object-fit: cover; background: var(--sand); }
.bag-item strong, .checkout-item strong { font-size: .9rem; }
.line-title { display: block; font-weight: 700; }
.quantity-control { margin-top: .4rem; width: max-content; display: flex; align-items: center; border: 1px solid var(--line); }
.quantity-control button { background: transparent; border: 0; width: 38px; height: 36px; display: grid; place-items: center; }
.quantity-control button:disabled { opacity: .35; }
.quantity-control .icon { width: 17px; height: 17px; }
.quantity-control span { min-width: 1.2rem; text-align: center; font-size: .875rem; }
.bag-summary { padding: 1.15rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.bag-summary .quiet { margin: .3rem 0 .9rem; }
.total-line { display: flex; justify-content: space-between; gap: .6rem; font-weight: 700; }
.notice { background: #f2e8d9; color: #563e2c; padding: .75rem .9rem; font-size: .9375rem; }

.transaction-page { background: #f6f0e8; min-height: 100dvh; }
.transaction-header { display: grid; place-items: center; min-height: 80px; background: var(--paper); border-bottom: 1px solid var(--line); }
.checkout { max-width: 1110px; padding-block: 2rem 5rem; }
.checkout > h1, .order-card h1 { font-size: clamp(3.1rem, 5.7vw, 4.55rem); letter-spacing: -.04em; margin: .65rem 0 1.35rem; }
.checkout > .notice { margin-bottom: 1.1rem; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, 1fr); gap: 1.2rem; align-items: start; }
.checkout-sections { display: grid; gap: 1rem; }
.checkout-section { background: var(--paper); padding: clamp(1.15rem, 3.2vw, 1.85rem); border: 1px solid var(--line); }
.checkout-section h2 { font-size: 2.15rem; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.form-grid label, .cep-row label, .detail-content label { font-size: .875rem; font-weight: 600; }
.form-grid label .quiet { font-weight: 400; }
input:not([type="radio"]), select {
  display: block; width: 100%; min-height: 46px; padding: .56rem .65rem; color: var(--ink);
  background: var(--paper); border: 1px solid #cbbcac; border-radius: 0; font-size: 1rem;
}
.form-grid input, .form-grid select, .cep-row input { margin-top: .24rem; }
select {
  appearance: none; padding-right: 2rem; background-image:
  linear-gradient(45deg, transparent 50%, #6f5c50 50%), linear-gradient(135deg, #6f5c50 50%, transparent 50%);
  background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.cep-row { display: grid; grid-template-columns: minmax(110px, 155px) auto; justify-content: start; gap: .6rem; align-items: end; }
.cep-row .button { min-height: 46px; padding-inline: 1rem; }
.address-fields { margin-top: 1rem; }
.street { grid-column: span 2; }
.shipping-options { border: 0; padding: 0; margin: .5rem 0 1rem; }
.shipping-options legend { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; padding: 0; }
.shipping-rate {
  display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; gap: .55rem;
  align-items: center; background: var(--paper); border: 1px solid var(--line);
  padding: .65rem .7rem; margin-bottom: .4rem; cursor: pointer; font-size: .875rem;
}
.shipping-rate:has(input:checked) { border-color: var(--amber); background: var(--cream); }
.shipping-rate input { accent-color: var(--amber); margin: 0; }
.shipping-rate span > span { display: block; }
.field-status { font-size: .875rem; color: #814125; margin-top: .45rem; }
.field-status:empty { margin-top: 0; }
.demo-fill { margin-bottom: .8rem; }
.order-summary { position: sticky; top: 1rem; }
.checkout-item { grid-template-columns: 57px minmax(0, 1fr) auto; gap: .6rem; }
.checkout-item img { width: 57px; height: 57px; }
.checkout-item:first-child { padding-top: 0; }
.summary-lines { margin: .95rem 0; }
.summary-lines > div { display: flex; justify-content: space-between; gap: .5rem; margin-block: .35rem; }
.summary-lines .total-line { border-top: 1px solid var(--line); padding-top: .55rem; }
#checkout-method { margin-bottom: .8rem; }
.order-page { display: grid; place-items: start center; padding-block: clamp(2rem, 8vw, 6rem); }
.order-card { background: var(--paper); width: min(100%, 540px); padding: clamp(1.35rem, 4vw, 2.8rem); border: 1px solid var(--line); }
.order-card h1 { margin-bottom: .8rem; }
.order-card > p:not(.eyebrow) { color: var(--muted); }
.order-card #order-details { border-block: 1px solid var(--line); padding: .8rem 0; margin-top: 1rem; }
.order-card .full-width, .order-card .text-link { margin-top: 1rem; }
.order-card .text-link { display: inline-block; }

@media (min-width: 1700px) {
  .hero-content { padding-left: 9.5rem; }
}
@media (max-width: 1050px) {
  .hero-content { padding-inline: 3rem 1.1rem; }
  .hero h1 { font-size: clamp(3.8rem, 7.4vw, 5.8rem); }
  .hero-kicker { font-size: .8125rem; letter-spacing: .1em; }
  .hero-kicker::before { width: 13px; flex-basis: 13px; }
  .product-grid { gap: 1.6rem .9rem; }
  .checkout-grid { grid-template-columns: minmax(0, 1.25fr) minmax(285px, 1fr); }
}
@media (max-width: 760px) {
  .wrap, .header-inner { width: calc(100% - 2rem); }
  .header-inner { min-height: 66px; gap: .5rem; }
  .announcement { font-size: .75rem; }
  .main-nav { display: none; }
  .menu-trigger { display: inline-grid; justify-self: start; }
  .wordmark { font-size: 1.8rem; }
  .header-actions { gap: 0; }
  .cart-trigger { min-width: 51px; gap: .15rem; }
  .bag-count { width: 18px; height: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 2.65rem 1.25rem 2.75rem; text-align: center; }
  .hero-kicker { justify-content: center; margin-bottom: .85rem; }
  .hero h1 { font-size: clamp(3.75rem, 11vw, 5rem); }
  .hero-intro { margin: 1.1rem auto 1.35rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.43; }
  .hero-photo img { object-position: 62% 49%; }
  .collection { padding-block: 2.7rem 3.25rem; }
  .filters { gap: .35rem; margin-top: 1.15rem; margin-bottom: 1.2rem; }
  .filters button { padding-inline: .72rem; min-height: 42px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem .85rem; }
  .product-plus { right: .45rem; bottom: .45rem; width: 34px; min-width: 34px; height: 34px; }
  .product-text { padding-top: .58rem; }
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about-photo { aspect-ratio: 1.55; }
  .about-content { padding: 2.25rem 1.5rem 2.6rem; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .site-footer nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; }
  .footer-social { grid-column: 2; grid-row: 1; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
}
@media (max-width: 520px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-photo { min-height: 0; aspect-ratio: 1.35; }
  .detail-content { padding: 1.2rem; gap: .65rem; }
  .checkout > h1 { margin-bottom: 1rem; }
  .checkout-section { padding: 1rem; }
  .bag-item { grid-template-columns: 66px minmax(0, 1fr) auto; gap: .6rem; }
  .bag-item img { width: 66px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
