@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("./fonts/dm-sans.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("./fonts/instrument-serif-italic.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f9f7f1;
  --warm: #ede8dd;
  --ink: #282921;
  --muted: #5a5b4f;
  --olive: #343b2d;
  --line: #dad6ca;
  --gold: #a47a4d;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", 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; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
h1, h2, h3 { margin: 0; font: 400 1em/.99 var(--serif); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid #8d5932; outline-offset: 4px; }
.wrap { width: min(100% - 8.8vw, 1440px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; padding: .7rem 1rem; background: white; transform: translateY(-120%); }
.skip-link:focus { transform: translateY(0); }

.notice { background: var(--olive); color: var(--paper); text-align: center; font-size: .8125rem; padding: .47rem 1rem; letter-spacing: .045em; }
.site-header { background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1.5rem; min-height: 76px; }
.wordmark { justify-self: start; font: 400 2.33rem/.9 var(--serif); letter-spacing: .095em; white-space: nowrap; }
.wordmark span { color: #936b48; margin-left: .035em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.1vw, 3rem); font-size: .9375rem; font-weight: 600; }
.site-nav a, .footer-inner nav a { text-underline-offset: .3em; }
.site-nav a:hover, .footer-inner nav a:hover { text-decoration: underline; }
.bag-button { justify-self: end; display: inline-flex; gap: .55rem; align-items: center; border: 0; background: transparent; font-size: .875rem; font-weight: 700; padding: .45rem .15rem .45rem .5rem; }
.bag-button svg { height: 23px; width: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bag-count { min-width: 23px; height: 23px; display: inline-grid; place-content: center; border-radius: 50%; background: var(--warm); font-size: .75rem; padding: 0 .23rem; }

.hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-height: clamp(430px, 42vw, 690px); background: var(--warm); }
.hero-copy { display: flex; align-items: center; padding: 4.2rem 1.8rem 4.4rem max(4.4vw, (100vw - 1440px) / 2); }
.hero-copy-inner { width: 100%; }
.eyebrow { display: flex; gap: .63rem; align-items: center; text-transform: uppercase; letter-spacing: .16em; font-size: .875rem; font-weight: 700; }
.eyebrow span { display: inline-block; width: 1.45rem; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(4rem, 6.82vw, 8rem); letter-spacing: -.025em; margin: 1.05rem 0 1.35rem; }
.hero h1 em { font-weight: inherit; color: #67654c; }
.hero-description { max-width: 24rem; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 3.1rem; padding: .76rem 1.25rem; border: 1px solid transparent; font-size: .9375rem; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.button-dark { color: white; background: var(--olive); border-color: var(--olive); }
.button-dark:hover:not(:disabled) { background: #4d5743; border-color: #4d5743; }
.button-light { background: var(--paper); color: var(--olive); }
.button-light:hover { background: #ded8cb; }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--warm); }
.hero-action { margin-top: 1.7rem; }
.hero-photo { position: relative; min-width: 0; min-height: 0; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero-photo figcaption { position: absolute; bottom: 1.35rem; right: 1.4rem; }
.photo-label { background: #24241be7; color: white; border: 1px solid #ffffff30; padding: .53rem .8rem; font-size: .875rem; text-underline-offset: .25em; }
.photo-label:hover { text-decoration: underline; }

.collection { padding-top: clamp(3.4rem, 6.25vw, 6.3rem); }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.65rem; }
.collection-head h2, .material-copy h2 { margin-top: .55rem; font-size: clamp(3.15rem, 5.2vw, 5.7rem); letter-spacing: -.024em; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter { min-height: 2.55rem; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .875rem; white-space: nowrap; font-weight: 600; }
.filter:hover { border-color: var(--olive); }
.filter[aria-pressed="true"] { background: var(--olive); color: white; border-color: var(--olive); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem clamp(.65rem, 1.5vw, 1.4rem); }
.product-image { display: block; width: 100%; background: #c9b8a5; border: 0; padding: 0; overflow: hidden; }
.product-image img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .34s ease; }
.product-image:hover img { transform: scale(1.045); }
.product-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding-top: .92rem; }
.product-info h3 { font-size: clamp(1.45rem, 2.05vw, 2.15rem); line-height: 1.08; }
.product-name { padding: 0; border: 0; background: none; text-align: left; }
.product-name:hover { text-decoration: underline; text-underline-offset: .17em; text-decoration-thickness: 1px; }
.product-info .finish { color: var(--muted); font-size: .875rem; margin-top: .3rem; }
.product-info .price { font-size: .9375rem; margin-top: .35rem; font-weight: 700; }
.quick-add { align-self: start; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 2.55rem; height: 2.55rem; background: transparent; font-size: 1.25rem; line-height: 1; }
.quick-add:hover { color: white; background: var(--olive); border-color: var(--olive); }

.material { display: grid; grid-template-columns: 1fr 1fr; margin-block: clamp(3.6rem, 7.4vw, 7.2rem); background: var(--olive); color: var(--paper); }
.material > img { width: 100%; height: 100%; min-height: 340px; max-height: 510px; object-fit: cover; }
.material-copy { display: flex; flex-direction: column; justify-content: center; align-items: start; padding: clamp(1.7rem, 5vw, 5.2rem); }
.material-copy .eyebrow span { background: #c9a977; }
.material-copy > p:not(.eyebrow) { max-width: 24rem; margin-top: 1.1rem; color: #e6e2d7; }
.material-copy .button { margin-top: 1.5rem; }
.site-footer { padding: 2.4rem 0 1.15rem; border-top: 1px solid var(--line); background: #f0ede4; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; }
.footer-company { font-size: 1.18rem; }
.footer-inner p a { text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.footer-inner p { margin-top: .8rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; font-weight: 600; font-size: .9375rem; }
.footer-bottom { margin-top: 1.9rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #201a16a6; }
dialog.details { width: min(860px, 100% - 2rem); max-height: calc(100dvh - 2rem); max-width: none; overflow: auto; }
dialog.drawer { inset: 0 0 0 auto; margin: 0; width: min(100%, 32rem); max-width: none; height: 100%; height: 100dvh; max-height: none; overflow: auto; }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.dialog-bar h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.close-button { width: 2.55rem; height: 2.55rem; flex-shrink: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.close-button:hover { background: var(--warm); }
.details-body { display: grid; grid-template-columns: 1fr 1fr; }
.details-body img { width: 100%; height: 100%; object-fit: cover; }
.details-copy { padding: clamp(1.2rem, 3vw, 2.35rem); }
.details-price { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.details-copy dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; padding-block: .95rem; border-block: 1px solid var(--line); }
.details-copy dt { font-weight: 700; }
.details-copy dd { margin: 0; }
.details-copy .button, .drawer .button:not(.small-button) { width: 100%; }
.drawer-content { padding: 1.3rem; }
.drawer-content > p + .button { margin-top: 1rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: start; gap: .72rem; padding-block: .92rem; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.line-name { display: block; font-weight: 700; }
.line-finish { color: var(--muted); font-size: .875rem; }
.line-price { white-space: nowrap; }
.line-controls { display: flex; gap: .35rem; align-items: center; margin-top: .35rem; flex-wrap: wrap; }
.stepper { display: inline-grid; grid-template-columns: 2rem minmax(1.35rem, auto) 2rem; align-items: center; text-align: center; border: 1px solid var(--line); }
.stepper button { display: grid; place-items: center; min-height: 2rem; padding: 0; border: 0; background: transparent; }
.stepper button:hover:not(:disabled) { background: var(--warm); }
.text-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; font-size: .875rem; padding: .35rem .2rem; }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .85rem; margin: 1.18rem 0; }
.summary dd { margin: 0; text-align: right; }
.summary-total { font-weight: 700; padding-top: .55rem; border-top: 1px solid var(--line); }
.disclosure { padding: .75rem .85rem; background: var(--warm); color: #494837; font-size: .9375rem; }
.disclosure + .button { margin-top: 1rem; }
.checkout-top { margin-bottom: .8rem; }
.checkout-form { margin-top: 1rem; }
.checkout-form h3 { font-size: 2rem; margin-bottom: .9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fields label { min-width: 0; font-size: .875rem; font-weight: 700; }
.fields .wide { grid-column: 1 / -1; }
.fields input { display: block; width: 100%; min-width: 0; margin-top: .25rem; padding: .55rem .65rem; background: white; border: 1px solid #a49f91; border-radius: 0; }
.checkout-review { padding-top: 1rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.checkout-item { display: flex; justify-content: space-between; gap: .85rem; font-size: .9375rem; }
.toast { z-index: 3; position: fixed; bottom: 1.2rem; right: 1.2rem; padding: .65rem .95rem; background: var(--olive); color: white; opacity: 0; pointer-events: none; transform: translateY(.4rem); transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(3.8rem, 7.35vw, 6rem); }
  .hero { min-height: clamp(385px, 45vw, 520px); }
  .hero-copy { padding-block: 3.25rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 62px; gap: .65rem; }
  .wordmark { font-size: 1.85rem; letter-spacing: .07em; }
  .site-nav { gap: .85rem; font-size: .875rem; }
  .bag-button > span:first-of-type { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.65rem 1rem 2.8rem; }
  .hero h1 { font-size: clamp(3.85rem, 12vw, 5.8rem); margin-bottom: 1rem; }
  .hero-photo { aspect-ratio: 4 / 3; max-height: 500px; }
  .hero-photo figcaption { bottom: .65rem; right: .65rem; }
  .collection-head { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material { grid-template-columns: 1fr; }
  .material > img { max-height: 340px; min-height: 0; aspect-ratio: 5 / 3; }
  .material-copy { padding: 2rem 1.25rem 2.2rem; }
}
@media (max-width: 440px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; min-height: 38px; border-top: 1px solid var(--line); }
  .header-inner > .wordmark { padding-block: .85rem .45rem; }
  .footer-inner { flex-direction: column; }
  .details-body { grid-template-columns: 1fr; }
  .details-body img { height: auto; max-height: 290px; object-fit: contain; background: #bbad9b; }
  .quick-add { width: 2rem; height: 2rem; }
  .toast { inset-inline: 1rem; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
