:root {
  --paper: #f4efe6;
  --panel: #e9e2d4;
  --ink: #151515;
  --muted: #6d675d;
  --rule: #d6cfc0;
  --accent: #5a1f2a;
  --serif: 'Bodoni Moda', Didot, 'Bodoni 72', serif;
  --sans: 'Jost', 'Futura', 'Helvetica Neue', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.label, .cuts a, .bag-link, .btn, .chip, .eyebrow, .fine, .price-note {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

/* ── masthead ───────────────────────────────────────── */
.notice {
  background: var(--ink); color: var(--paper);
  text-align: center; padding: 8px var(--gutter);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
}
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter) 18px;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.cuts { display: flex; gap: 22px; }
.cuts a, .bag-link { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.cuts a[aria-current="true"] { border-bottom-color: var(--ink); }
.bag-link { justify-self: end; }
.wordmark {
  font-size: clamp(34px, 6vw, 56px); font-weight: 500; letter-spacing: 0.03em;
  text-decoration: none; line-height: 1;
}

/* ── collection ─────────────────────────────────────── */
.hero { padding: clamp(48px, 9vw, 120px) var(--gutter) clamp(32px, 5vw, 64px); text-align: center; }
.eyebrow { color: var(--muted); margin: 0 0 18px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 104px); font-weight: 400; font-style: italic;
  line-height: 1.02; margin: 0 auto; max-width: 14ch; letter-spacing: -0.01em;
}
.hero p.lede { color: var(--muted); max-width: 40ch; margin: 24px auto 0; font-size: 19px; }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--gutter); margin: 24px 0 14px;
}
.section-head h2 { font-weight: 400; font-size: 26px; margin: 0; }

.grid {
  display: grid; gap: clamp(14px, 2.4vw, 32px) clamp(12px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 var(--gutter) clamp(48px, 8vw, 96px);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { text-decoration: none; display: block; }
.card .art { background: var(--panel); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 10% 8%; transition: background .3s; }
.card:hover .art { background: #e2dacb; }
.card .art svg { width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .art svg { transform: scale(1.03); }
/* Campaign photo first; the flat drawing crossfades in on hover. */
.card .art { position: relative; overflow: hidden; }
.card .art .flat { width: 100%; height: 100%; }
.card .art .look { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .card:hover .art .look { opacity: 0; transform: scale(1.02); }
}

.card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card h3 { font-size: 18px; font-weight: 500; margin: 0; }
.card .tag { color: var(--muted); font-style: italic; font-size: 15px; margin: 2px 0 0; }
.card .price { white-space: nowrap; font-size: 16px; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches i { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }

/* ── product ────────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 4vw, 56px) var(--gutter) 80px; }
.product .art { background: var(--panel); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 8%; position: sticky; top: 110px; }
.product .art svg { width: 100%; height: 100%; }
.crumb { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 24px; }
.product h1 { font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; margin: 0; }
.product .tagline { font-style: italic; color: var(--muted); font-size: 20px; margin: 12px 0 20px; }
.product .price { font-size: 22px; margin: 0 0 4px; }
.price-note { color: var(--muted); margin: 0 0 28px; }
.option { margin: 0 0 22px; border: 0; padding: 0; }
.option legend { margin-bottom: 10px; padding: 0; }
.option legend .chosen { color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 15px; font-style: italic; margin-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 48px; padding: 11px 14px; background: transparent; border: 1px solid var(--rule); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); cursor: pointer; padding: 0; outline-offset: 3px; }
.dot[aria-pressed="true"] { outline: 1px solid var(--ink); }

.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  width: 100%; padding: 18px 24px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .5; cursor: wait; }
.added { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 1.4em; }
.added a { color: var(--ink); }

.story { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 24px; }
.story p { margin: 0 0 18px; }
.look-figure { margin: 0 0 28px; max-width: 394px; }
.look-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: pointer; }
.look-btn:disabled { cursor: default; }
.look-btn img { width: 100%; height: auto; aspect-ratio: 394 / 442; object-fit: cover; }
.look-figure figcaption { color: var(--muted); margin-top: 10px; }
.look-figure .select { color: var(--ink); border-bottom: 1px solid currentColor; }
.look-btn:not(:disabled):hover + figcaption .select { border-bottom-color: transparent; }
.story ul { padding: 0; margin: 0; list-style: none; }
.story li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }

/* ── bag ────────────────────────────────────────────── */
.bag { max-width: 860px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 96px; }
.bag h1, .merci h1 { font-weight: 400; font-size: clamp(36px, 5vw, 56px); margin: 0 0 28px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.line .thumb { background: var(--panel); aspect-ratio: 4 / 5; padding: 8px; }
.line h3 { margin: 0; font-weight: 500; font-size: 18px; }
.line .opts { color: var(--muted); font-style: italic; font-size: 15px; }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-family: var(--sans); }
.qty button { width: 30px; height: 30px; border: 1px solid var(--rule); background: transparent; cursor: pointer; }
.qty span { min-width: 30px; text-align: center; }
.qty .remove { width: auto; height: auto; background: none; border: 0; padding: 0 0 0 12px; color: var(--muted); text-decoration: underline; cursor: pointer; font-family: var(--sans); font-size: 12px; }
.totals { display: flex; justify-content: space-between; padding: 22px 0; font-size: 20px; }
.totals small { display: block; color: var(--muted); font-size: 14px; font-style: italic; }
.error { color: var(--accent); font-family: var(--sans); font-size: 14px; min-height: 1.4em; }
.empty { color: var(--muted); font-style: italic; font-size: 20px; }

/* ── merci ──────────────────────────────────────────── */
.merci { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) 110px; text-align: center; }
.merci .status { font-style: italic; font-size: 21px; color: var(--muted); margin: 0 auto 32px; max-width: 34ch; }
.merci .line { text-align: left; }

/* ── colophon ───────────────────────────────────────── */
.colophon { border-top: 1px solid var(--rule); text-align: center; padding: 56px var(--gutter) 64px; color: var(--muted); font-size: 15px; }
.colophon p { margin: 0 0 10px; }
.colophon-mark { font-size: 40px; color: var(--ink); margin-bottom: 18px !important; }

/* ── le concierge (the chatbot, lower left) ──────────── */
.concierge-btn {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 20;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
  padding: 14px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); transition: background .2s, color .2s;
}
.concierge-btn:hover, .concierge-btn[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.concierge {
  position: fixed; left: var(--gutter); bottom: 72px; z-index: 20;
  width: min(380px, calc(100vw - 2 * var(--gutter))); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.concierge[hidden] { display: none; }
.concierge header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
}
.concierge-close { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.concierge iframe { flex: 1; width: 100%; border: 0; }

@media (max-width: 720px) {
  .masthead { grid-template-columns: 1fr auto; grid-template-areas: "mark bag" "cuts cuts"; row-gap: 10px; padding-top: 16px; }
  .wordmark { grid-area: mark; justify-self: start; }
  .bag-link { grid-area: bag; }
  .cuts { grid-area: cuts; }
  .product { grid-template-columns: 1fr; }
  .product .art { position: static; }
  .line { grid-template-columns: 72px 1fr; }
  .line .line-price { grid-column: 2; }
  .card .meta { flex-direction: column; gap: 2px; }
  .card .price { order: -1; font-size: 15px; color: var(--muted); }
}
