:root {
  --paper: #fbf8f4; --ink: #17130f; --muted: #6d635a; --line: #e7ded3;
  --gold: #9a7a45; --well: #efe8de; --btn-bg: #17130f; --btn-fg: #fbf8f4;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Jost", "Futura", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14110e; --ink: #f3ede5; --muted: #a89d91; --line: #2e2822;
    --gold: #c9a56a; --well: #201b16; --btn-bg: #f3ede5; --btn-fg: #14110e; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 300; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 24px; }
.wordmark { font-family: var(--display); letter-spacing: 0.32em; font-size: clamp(14px, 2.2vw, 19px); text-decoration: none; }
.season { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
h1 { font-family: var(--display); font-weight: 400; text-wrap: balance; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin: 14px 0 18px; }

/* product page */
.product .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(28px, 5vw, 64px) 88px; align-items: start; }
.gallery, .details { min-width: 0; }
.main-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--well); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { border: 1px solid transparent; padding: 0; background: var(--well); cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.details { position: sticky; top: 32px; }
.price { margin: 0 0 18px; font-size: 26px; font-weight: 400; }
.price span { font-size: 14px; color: var(--muted); margin-left: 4px; letter-spacing: .06em; }
.lede { margin: 0 0 30px; font-size: 17px; max-width: 32ch; }
.buy { display: block; text-align: center; text-decoration: none; background: var(--btn-bg); color: var(--btn-fg); font-size: 17px; font-weight: 400; letter-spacing: .04em; padding: 18px 24px; border-radius: 999px; transition: transform .15s, opacity .2s; }
.buy:hover { opacity: .9; transform: translateY(-1px); }
.buy:focus-visible, .thumbs button:focus-visible, .card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 34px; font-size: 14px; color: var(--muted); }
.terms li + li::before { content: "\00B7"; margin-right: 10px; color: var(--gold); }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }

/* shop index */
.intro .wrap { padding-block: clamp(32px, 6vw, 72px) 24px; }
.intro p { max-width: 56ch; font-size: 17px; margin: 0; }
.cards .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; padding-block: 24px 88px; }
.card { display: block; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--well); }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 14px 0 2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer .wrap { text-align: center; padding-block: 0 48px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
@media (max-width: 820px) { .product .wrap { grid-template-columns: 1fr; } .details { position: static; } }
@media (max-width: 480px) { .season { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
