:root {
  --petal: #f2c230;
  --petal-deep: #d9a81a;
  --stem: #2e5233;
  --stem-dark: #1f3a23;
  --ink: #1d211c;
  --muted: #5b6157;
  --sage: #e3eadb;
  --paper: #ffffff;
  --line: #d6dccf;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--stem); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; align-items: center; font-family: var(--display); font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bag-btn { font: 600 1rem var(--display); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.bag-btn:hover { background: var(--stem); }
@media (max-width: 720px) { .nav a.collection-link { display: none; } }

/* Hero */
.hero { background: var(--petal); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: stretch; padding-top: 56px; padding-bottom: 0; }
.hero-copy { align-self: center; padding: 24px 0 56px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7.6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  font-variation-settings: "wdth" 85;
}
.hero p { font-size: 1.2rem; max-width: 34ch; margin: 0 0 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; font: 600 1.05rem var(--display); text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); cursor: pointer; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--stem); border-color: var(--stem); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(255,255,255,.35); }
.hero-photo { align-self: stretch; display: flex; align-items: flex-end; }
.hero-photo img { width: 100%; max-height: 620px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px 0 0; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; gap: 0; }
  .hero-copy { padding: 0 0 40px; }
  .hero-photo img { aspect-ratio: 1 / 1; border-radius: 160px 160px 0 0; }
}

/* Collections strip */
.lanes { border-bottom: 1px solid var(--line); }
.lanes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.lanes li + li { border-left: 1px solid var(--line); }
.lanes .wrap { padding: 0; }
.lanes a { display: block; padding: 36px 28px; text-decoration: none; }
.lanes li:first-child a { padding-left: 24px; }
.lanes a:hover { background: var(--sage); }
.lanes strong { display: block; font: 700 1.9rem/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.lanes span { color: var(--muted); }
@media (max-width: 720px) {
  .lanes ul { grid-template-columns: 1fr; }
  .lanes li + li { border-left: 0; border-top: 1px solid var(--line); }
  .lanes a { padding: 22px 24px; }
}

/* Sections */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2, .page-title {
  font: 800 clamp(2rem, 4vw, 3rem)/1 var(--display);
  letter-spacing: -0.03em;
  margin: 0;
}
.section-head p { margin: 0; color: var(--muted); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; } }
.card { text-decoration: none; display: block; }
.card .ph { background: var(--sage); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover img { transform: scale(1.03); }
.card h3 { font: 600 1.15rem/1.3 var(--display); margin: 14px 0 2px; }
.card .price { color: var(--muted); }
.soldout-tag { display: inline-block; margin-left: 8px; font: 600 .8rem var(--display); background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }

/* Story band */
.story { background: var(--stem); color: #fff; }
.story .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
.story h2 { font: 800 clamp(2rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -0.035em; margin: 0; color: var(--petal); }
.story p { margin: 0 0 16px; max-width: 46ch; }
@media (max-width: 820px) { .story .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 56px; padding-bottom: 56px; } }

/* Product page */
.crumbs { font: 500 .95rem var(--display); color: var(--muted); padding: 24px 0 0; }
.crumbs a { color: var(--muted); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 28px 0 80px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery .main { background: var(--sage); border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; width: 76px; height: 76px; cursor: pointer; background: var(--sage); }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font: 800 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--display); letter-spacing: -0.035em; margin: 0 0 12px; }
.pdp .price { font: 600 1.5rem var(--display); margin: 0 0 22px; }
.pdp .desc { margin: 0 0 28px; max-width: 52ch; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font: 600 1rem var(--display); margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-block; padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; font: 500 1rem var(--display); background: #fff; }
.pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pills input:focus-visible + span { outline: 3px solid var(--stem); outline-offset: 2px; }
.pills input:disabled + span { opacity: .4; text-decoration: line-through; }
.field label { display: block; font: 600 1rem var(--display); margin-bottom: 8px; }
.field input[type="text"] { width: 100%; max-width: 360px; font: 1rem var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.field .hint { color: var(--muted); font-size: .92rem; margin: 6px 0 22px; max-width: 46ch; }
.qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 44px; height: 48px; background: #fff; border: 0; font: 600 1.2rem var(--display); cursor: pointer; }
.qty output { min-width: 34px; display: grid; place-items: center; font: 600 1.05rem var(--display); }
.add-btn { flex: 1; min-width: 200px; }
.ship-note { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* Bag drawer */
.scrim { position: fixed; inset: 0; background: rgba(29,33,28,.45); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 50; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
body.bag-open .scrim { opacity: 1; pointer-events: auto; }
body.bag-open .drawer { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer h2 { font: 800 1.6rem var(--display); margin: 0; letter-spacing: -0.02em; }
.close-btn { background: none; border: 0; font: 600 1rem var(--display); cursor: pointer; text-decoration: underline; }
.bag-items { flex: 1; overflow: auto; padding: 8px 24px; }
.bag-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--sage); }
.bag-item h3 { font: 600 1rem/1.3 var(--display); margin: 0; }
.bag-item .meta { color: var(--muted); font-size: .9rem; }
.bag-item .line-qty { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-family: var(--display); }
.bag-item .line-qty button { width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.bag-item .remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; padding: 0; margin-left: 6px; }
.bag-empty { padding: 32px 0; }
.drawer footer { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; font: 600 1.15rem var(--display); margin-bottom: 4px; }
.free-ship { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.checkout-btn { width: 100%; }
.checkout-err { color: #a12d1f; font-size: .95rem; margin: 10px 0 0; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; font: 600 1rem var(--display); padding: 12px 22px; border-radius: 999px; z-index: 60; transition: transform .25s ease; }
.toast.show { transform: translate(-50%, 0); }

/* Simple pages */
.page { padding: 64px 0 96px; max-width: 680px; }
.page h1 { margin-bottom: 20px; }
.page p { margin: 0 0 16px; }

/* Footer */
.site-foot { background: var(--ink); color: #e9ece5; padding: 56px 0 40px; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot h2 { font: 800 1.6rem var(--display); margin: 0 0 8px; color: var(--petal); letter-spacing: -0.02em; }
.site-foot h3 { font: 600 1rem var(--display); margin: 0 0 10px; color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #e9ece5; }
.site-foot .fine { grid-column: 1 / -1; color: #a9b0a3; font-size: .9rem; border-top: 1px solid #3a4036; padding-top: 20px; margin-top: 8px; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr; } }

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