:root {
  --ink: #141210;
  --ink-soft: #2a2622;
  --paper: #f2ece2;
  --stone: #e5dccd;
  --sand: #d6c8b0;
  --clay: #9c6644;
  --moss: #5d6b4c;
  --gold: #c4a15a;
  --gold-deep: #9a7b3f;
  --muted: #6e6458;
  --line: rgba(20, 18, 16, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--clay); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.eyebrow { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.eyebrow.gold, .gold-text { color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font: 500 .88rem/1 var(--sans); letter-spacing: .06em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d4b46f; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; padding-block: 1.1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: 14px var(--gutter);
  background: rgba(242, 236, 226, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-eggs { width: 44px; color: var(--gold-deep); }
.brand-word { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.nav { display: flex; gap: 1.8rem; }
.nav a { text-decoration: none; font-size: .86rem; letter-spacing: .06em; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.cart-button {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--ink); background: none; border-radius: 999px;
  padding: .5rem 1rem; font: 500 .85rem var(--sans); cursor: pointer; color: var(--ink);
}
.cart-count { background: var(--ink); color: var(--gold); border-radius: 999px; min-width: 1.5rem; padding: .1rem .4rem; font-size: .75rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-tins { display: flex; justify-content: center; align-items: flex-end; }
.hero-tin { width: 38%; margin: 0 -3%; filter: drop-shadow(0 20px 26px rgba(20, 18, 16, .18)); }
.hero-tin:nth-child(2) { width: 46%; z-index: 1; }
.hero-tin:nth-child(1) { transform: rotate(-4deg); }
.hero-tin:nth-child(3) { transform: rotate(4deg); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.section-head { margin-bottom: 2.5rem; }

/* ---------- products ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.product {
  display: grid; grid-template-columns: 40% 1fr; gap: 1.5rem;
  background: var(--stone); border-radius: 20px; padding: 1.75rem;
}
.product-tin { align-self: center; filter: drop-shadow(0 14px 18px rgba(20, 18, 16, .2)); }
.product-meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.product h3 { margin-bottom: .6rem; }
.notes { list-style: none; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.notes li { font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; background: var(--paper); }
.product-desc { font-size: .92rem; color: var(--ink-soft); }

.pills { border: 0; padding: 0; margin: .9rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pills legend, .field > span, .fulfilment legend {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; padding: 0;
}
.pills label { position: relative; }
.pills input, .plan-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: block; padding: .4rem .85rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .82rem; }
.pills input:checked + span { background: var(--ink); color: var(--gold); }
.pills input:focus-visible + span, .plan-toggle input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; }
select {
  width: 100%; font: inherit; font-size: .9rem; padding: .6rem .8rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
}
.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.price { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.price .muted { font-family: var(--sans); font-size: .78rem; display: block; }

/* ---------- subscription band ---------- */
.band-dark { background: var(--ink); color: var(--paper); }
.sub-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid rgba(196, 161, 90, .3); }
.steps li:last-child { border-bottom: 1px solid rgba(196, 161, 90, .3); }
.steps span { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1; }
.steps h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.steps p { color: #b9afa1; margin: 0; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.story-art {
  background: var(--ink); border-radius: 50%; aspect-ratio: 1; padding: 18%;
  max-width: 380px; width: 100%; justify-self: center;
}
.story p { color: var(--ink-soft); max-width: 56ch; }

/* ---------- roast log ---------- */
.roast-log { padding-top: 0; }
.log { list-style: none; margin: 0; padding: 0; }
.log li {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line); font-size: .95rem;
}
.log li:last-child { border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); }
.log li span:last-child { text-align: right; color: var(--muted); }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.35rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); margin: .8rem 0 0; max-width: 62ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  padding: 3rem var(--gutter);
}
.site-footer .muted { color: #9b9184; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-goose { width: 56px; flex: none; }
.footer-word { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); margin: 0; line-height: 1.1; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--paper); text-decoration: none; font-size: .9rem; border-bottom: 1px solid rgba(196, 161, 90, .5); }
.site-footer > .small { grid-column: 1 / -1; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20, 18, 16, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100%); background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.8rem; margin: 0; }
.icon-btn { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 .3rem; }
.drawer-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

.cart-empty { text-align: center; padding: 3rem 0; }
.cart-empty-art { display: block; width: 90px; margin: 0 auto 1rem; }

.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; background: var(--stone); border-radius: 999px; padding: 4px; margin-bottom: 1rem; }
.plan-toggle label { position: relative; }
.plan-toggle span { display: block; text-align: center; padding: .6rem .5rem; border-radius: 999px; font-size: .82rem; font-weight: 500; }
.plan-toggle input:checked + span { background: var(--ink); color: var(--gold); }

.cart-lines { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.cart-lines li {
  display: grid; grid-template-columns: 1fr auto auto; gap: .3rem 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.line-name { font-weight: 500; margin: 0; }
.cart-lines .small { margin: 0; }
.line-amount { margin: 0; min-width: 4.5rem; text-align: right; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink);
}
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.remove { grid-column: 1; justify-self: start; background: none; border: 0; padding: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; cursor: pointer; }

.fulfilment { border: 0; padding: 0; margin: 0 0 1.2rem; }
.fulfilment label {
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
  padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; font-size: .9rem;
}
.fulfilment label:has(input:checked) { border-color: var(--ink); background: var(--stone); }
.fulfilment input { accent-color: var(--ink); margin: 0; }
.fulfilment .muted { font-size: .8rem; text-align: right; }

.totals { margin: 0 0 1rem; }
.totals div { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .92rem; }
.totals dd { margin: 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; font-family: var(--serif); font-size: 1.4rem; }
.cart-error { color: #a2341f; font-size: .88rem; min-height: 1em; margin-bottom: .6rem; }

/* ---------- thank you ---------- */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem var(--gutter); }
.thanks-goose { width: 120px; margin: 0 auto 2rem; background: var(--ink); border-radius: 50%; padding: 26px; }
.thanks p { color: var(--muted); max-width: 44ch; margin-inline: auto; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr; }
  .sub-grid, .story { grid-template-columns: 1fr; gap: 2rem; }
  .story-art { max-width: 240px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-tins { order: -1; width: 100%; max-width: 360px; margin: 0 auto; }
  .product { grid-template-columns: 1fr; padding: 1.4rem; }
  .product-tin { max-width: 170px; margin: 0 auto; }
  .log li { grid-template-columns: 1fr 1fr; }
  .log li span:last-child { grid-column: 1 / -1; text-align: left; margin-top: -.6rem; font-size: .85rem; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .brand-word { font-size: 1.15rem; }
  .brand-eggs { width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .drawer { transition: none; }
}
