:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #232820;
  --muted: #55564a;
  --accent: #87442e;
  --rule: #d9d2c3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', 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; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; font: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #a44d32; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
h2 { font-size: clamp(2.7rem, 5vw, 5.25rem); }
.wrap { width: min(100% - 7vw, 1350px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; left: 1rem; top: 1rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; flex: none; background: currentColor; vertical-align: middle; }
.announcement { min-height: 33px; padding: .4rem .85rem; display: flex; gap: .7rem; align-items: center; justify-content: center; background: #30382a; color: #fbf5e7; font-size: .78rem; letter-spacing: .06em; }
.header { min-height: 79px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: center; }
.wordmark { justify-self: start; display: inline-block; font-family: var(--serif); font-size: clamp(1.04rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.wordmark i { color: var(--accent); font-weight: 500; }
.header nav { display: flex; gap: clamp(.75rem, 3vw, 2.5rem); }
.header nav a { font-size: .95rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cart-button { justify-self: end; display: flex; align-items: center; gap: .5rem; padding: .35rem .1rem .35rem .5rem; border: 0; background: none; font-weight: 700; white-space: nowrap; }
.cart-button span { display: grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding-inline: .25rem; border-radius: 50px; background: var(--ink); color: var(--paper); font-size: .78rem; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: clamp(450px, 38vw, 640px); background: #22271f; color: #faf1dc; }
.hero-content { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; gap: 1.45rem; padding: clamp(2.6rem, 6vw, 6rem) clamp(1.5rem, 4vw, 5rem) clamp(2.6rem, 6vw, 6rem) max(3.5vw, calc((100vw - 1350px) / 2)); }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .84rem; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: #e2cba4; }
.hero .eyebrow .dot { margin-inline: .15rem; }
.hero h1 { font-size: clamp(4.2rem, 8.7vw, 9.1rem); }
.hero p { max-width: 26ch; color: #eee8d5; font-size: clamp(1rem, 1.6vw, 1.27rem); }
.hero-media { position: relative; min-height: 100%; background: #514337; }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #22271f40, transparent 26%); }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 61% 50%; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.2rem; border: 1px solid transparent; text-decoration: none; font-weight: 800; }
.button-light { background: #f5e9cd; color: var(--ink); }
.button-light:hover { background: #fff6df; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #3b4632; }

.shop { padding-block: clamp(3.3rem, 7vw, 7rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.4rem; margin-bottom: 2rem; }
.accent { color: var(--accent); }
.section-heading h2, .story-content h2 { margin-top: .6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { border: 1px solid var(--rule); padding: .55rem .8rem; background: transparent; font-size: .9rem; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed='true'] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 3rem) clamp(.75rem, 2.1vw, 1.85rem); }
.product-card, .product-link { min-width: 0; }
.product-link { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.product-image { position: relative; aspect-ratio: 1.13; overflow: hidden; background: #e9e4da; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-image.archived img { object-fit: contain; mix-blend-mode: multiply; padding: clamp(.3rem, 1.2vw, 1rem); }
.product-link:hover img { transform: scale(1.035); }
.image-tag { position: absolute; top: .6rem; left: .6rem; padding: .24rem .5rem; color: var(--ink); background: #faf7ef; font-size: .73rem; font-weight: 800; }
.product-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .5rem; align-items: baseline; margin: .7rem 0 .1rem; }
.product-info h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 1.95vw, 1.48rem); line-height: 1.15; }
.product-info span { font-size: .97rem; white-space: nowrap; }
.product-link p { color: var(--muted); font-size: .85rem; }

.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #ebe3d3; }
.story-media { position: relative; min-height: 390px; background: #565048; }
.story-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.story-media figcaption { position: absolute; bottom: 0; left: 0; padding: .5rem .75rem; background: #22271f; color: var(--paper); font-size: .8rem; }
.story-media figcaption .dot { margin-inline: .25rem; }
.story-content { align-self: center; padding: clamp(2rem, 5vw, 5rem); }
.story-content h2 { max-width: 13ch; font-size: clamp(2.55rem, 5vw, 5rem); }
.story-content p { max-width: 53ch; margin-top: 1rem; }
.story-links { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; margin-top: 1.5rem; font-weight: 700; text-underline-offset: 4px; }
.shipping { padding-block: 3rem; }
.shipping h2 { font-size: clamp(2.1rem, 3.2vw, 3.45rem); }
.shipping dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 0; }
.shipping dl div { padding-top: .85rem; border-top: 1px solid var(--rule); }
.shipping dt { font-weight: 800; }
.shipping dd { margin: .2rem 0 0; color: var(--muted); }
footer { background: #22271f; color: var(--paper); }
.footer-content { min-height: 94px; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; justify-content: space-between; padding-block: 1rem; font-size: .9rem; }
footer .wordmark i { color: #d9b98a; }

dialog { border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 14px 55px #0004; }
dialog::backdrop { background: #1a1d1799; }
.product-dialog { width: min(850px, 100% - 2rem); max-height: calc(100dvh - 2rem); }
.product-dialog[open] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-preview { display: grid; place-items: center; background: #e9e4da; }
.product-preview img { width: 100%; height: 100%; object-fit: cover; }
.product-preview.archived img { object-fit: contain; mix-blend-mode: multiply; padding: .9rem; }
.product-detail { padding: 2.55rem 1.55rem 1.6rem; }
.product-detail h2 { margin: .35rem 0 .6rem; font-size: clamp(2rem, 4vw, 3.35rem); }
.price { display: block; margin: .55rem 0 .85rem; font-weight: 800; }
.product-color { margin-top: .75rem; color: var(--muted); font-size: .9rem; }
.close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--rule); border-radius: 50%; padding: 0; background: var(--paper); font: 1.9rem/1 Arial, sans-serif; }
.close:hover { border-color: var(--ink); }
.product-close { position: absolute; z-index: 1; top: .65rem; right: .65rem; }
fieldset { padding: 0; margin: .8rem 0; border: 0; }
legend { margin-bottom: .3rem; font-weight: 800; }
.size-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.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; min-width: 42px; height: 40px; place-items: center; border: 1px solid var(--rule); font-weight: 700; }
.size-options input:checked + span { background: var(--ink); color: var(--paper); }
.size-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-detail .button { width: 100%; }
.fulfillment-note, .archive-link { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
.archive-link { display: inline-block; text-underline-offset: 3px; }
.cart-dialog { position: fixed; inset: 0 0 0 auto; width: min(100%, 485px); height: 100dvh; max-height: none; max-width: none; margin: 0; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; border-bottom: 1px solid var(--rule); }
.drawer-heading h2 { font-size: 2.65rem; }
#cart-body { padding: 1.2rem; }
.shipment { margin-bottom: 1rem; }
.shipment h3 { font-size: .9rem; padding: .5rem .6rem; background: #eae4d5; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: start; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: .91rem; }
.cart-item img { aspect-ratio: 1; width: 70px; height: auto; object-fit: contain; }
.cart-size { color: var(--muted); }
.quantity { display: inline-flex; align-items: center; gap: .65rem; margin-top: .35rem; border: 1px solid var(--rule); }
.quantity button { border: 0; width: 34px; height: 34px; background: transparent; }
.cart-summary div { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.cart-summary .button { width: 100%; }
.cart-summary p, .empty p { margin: .6rem 0; }
.cart-summary p { font-size: .85rem; }
.empty h3 { font-family: var(--serif); font-size: 2rem; }
.empty .button { margin-top: .7rem; }

@media (max-width: 720px) {
  .header { min-height: 67px; gap: .5rem; }
  .header nav { gap: .65rem; }
  .header nav a, .cart-button { font-size: .83rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { gap: 1rem; padding-inline: 5vw; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6.7rem); }
  .hero-media { min-height: 0; aspect-ratio: 1.42; }
  .hero-media::after { background: linear-gradient(180deg, #22271f28, transparent 35%); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .story-media { min-height: 0; aspect-ratio: 1.5; }
  .story-content { padding-inline: 5vw; }
}

@media (max-width: 420px) {
  .header { width: 94%; }
  .header nav a { font-size: .78rem; }
  .cart-button { gap: .3rem; }
  .eyebrow { letter-spacing: .09em; }
  .filters button { font-size: .83rem; padding-inline: .58rem; }
  .image-tag { top: .3rem; left: .3rem; padding: .2rem .38rem; }
  .product-dialog[open] { grid-template-columns: 1fr; }
  .product-preview { aspect-ratio: 1.6; overflow: hidden; }
  .product-preview img { min-height: 0; }
  .product-detail { padding-top: 1.1rem; }
}

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