:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #2a1d14;
  --muted: #6e5d50;
  --line: #eadfce;
  --saffron: #c8261b;
  --saffron-dark: #9e1c13;
  --gold: #e8a317;
  --crocus: #8457ad;
  --crocus-soft: #f3ecfa;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 30, 10, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
a { color: var(--saffron); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: Fraunces, serif; font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-mark { color: var(--crocus); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--saffron); }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 999px;
  font: 600 1rem Inter, sans-serif; text-decoration: none; text-align: center;
  transition: background .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); }
.btn-primary:disabled { background: #cbb8a8; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--crocus); }
.btn-block { width: 100%; }
.cart-btn {
  border: 2px solid var(--text); background: transparent; border-radius: 999px;
  padding: 6px 14px; font: 600 .95rem Inter, sans-serif; cursor: pointer; color: var(--text);
}
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  margin-left: 4px; border-radius: 999px; background: var(--saffron); color: #fff; font-size: .8rem;
}
.icon-btn { border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(160deg, #fff3df 0%, var(--crocus-soft) 100%); padding: 64px 0; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--crocus); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: .95rem; }
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: 100%; max-width: 380px; height: 460px; margin: 0 auto;
  object-fit: cover; border-radius: 24px; box-shadow: 0 18px 40px rgba(80, 40, 110, .25);
}

/* Trust bar */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -28px; position: relative;
}
.trust > div {
  background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.trust span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 72px 16px; }
.section.preorder, .section.shop, .section.contact { padding-left: 0; padding-right: 0; }
.section-lead { color: var(--muted); max-width: 46em; margin-bottom: 32px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.product { display: flex; flex-direction: column; }
.product-tag { font-size: .78rem; font-weight: 600; color: var(--crocus); text-transform: uppercase; letter-spacing: .06em; }
.product p { color: var(--muted); font-size: .95rem; flex: 1; }
.product p.yield { flex: 0; margin: -6px 0 14px; font-size: .88rem; color: var(--crocus); font-weight: 500; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; border: 0; padding: 0; }
.sizes legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.size {
  position: relative;
}
.size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size span {
  display: block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 500; background: var(--bg);
}
.size input:checked + span { border-color: var(--saffron); background: #fde9e6; color: var(--saffron-dark); }
.size input:focus-visible + span { outline: 2px solid var(--crocus); outline-offset: 2px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.price { font-family: Fraunces, serif; font-size: 1.7rem; font-weight: 700; }
.per-unit { font-size: .85rem; color: var(--muted); }
.save { font-size: .78rem; font-weight: 600; color: #2f7a35; background: #e6f4e6; border-radius: 999px; padding: 2px 8px; }
.buy-row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { border: 0; background: none; width: 34px; height: 42px; font-size: 1.1rem; cursor: pointer; color: var(--text); }
.qty input { width: 34px; border: 0; text-align: center; font: 600 1rem Inter, sans-serif; background: transparent; color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { flex: 1; padding: 10px 14px; }

/* Story */
.timeline {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.timeline li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; background: var(--surface); border-radius: var(--radius);
  border-top: 4px solid var(--saffron); box-shadow: var(--shadow);
}
.timeline .when { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--crocus); }
.timeline strong { font-family: Fraunces, serif; font-size: 1.15rem; }
.timeline span:last-child { color: var(--muted); font-size: .92rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px;
  color: #fff; font-size: .85rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

/* Shop */
.shop { background: #fff3df; }
.shop-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; margin-bottom: 28px; }
.shop-video { margin: 0; }
.shop-video video {
  display: block; width: 100%; max-height: 520px; object-fit: cover;
  border-radius: var(--radius); background: #2a1d14;
}
.shop-video figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.shop-feature .products { grid-template-columns: 1fr; }

/* Price table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: #fbf3e6; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .group td { background: var(--bg); font-weight: 600; font-family: Fraunces, serif; font-size: 1.05rem; }
.price-table td.num { font-variant-numeric: tabular-nums; }

/* Recipes */
.bloom-tip {
  max-width: 46em; margin: -12px 0 24px; padding: 14px 18px; border-radius: var(--radius);
  background: #fff3df; color: var(--muted); font-size: .95rem;
}
.bloom-tip strong { color: var(--text); }
.recipe-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font: 600 .9rem Inter, sans-serif; color: var(--text); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.chip:focus-visible, .recipe-card:focus-visible { outline: 2px solid var(--crocus); outline-offset: 2px; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.recipe-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer; overflow: hidden;
  padding: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  border-top: 5px solid var(--cat, var(--saffron)); font: inherit; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.recipe-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.rc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recipe-card[data-cat="sweet"], .recipe-dialog[data-cat="sweet"] { --cat: var(--gold); }
.recipe-card[data-cat="savory"], .recipe-dialog[data-cat="savory"] { --cat: var(--saffron); }
.recipe-card[data-cat="drink"], .recipe-dialog[data-cat="drink"] { --cat: var(--crocus); }
.recipe-cat { margin: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.recipe-card h3 { margin: 0; font-size: 1.25rem; }
.recipe-card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; font-size: .85rem; }
.recipe-meta div { display: flex; gap: 4px; }
.recipe-meta dt { color: var(--muted); }
.recipe-meta dd { margin: 0; font-weight: 600; }
.recipe-pack { font-size: .82rem; font-weight: 500; color: var(--crocus); }
.recipe-open { font-weight: 600; font-size: .9rem; color: var(--saffron); }

.recipe-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  border: 0; border-top: 6px solid var(--cat, var(--saffron)); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.recipe-dialog::backdrop { background: rgba(20, 10, 5, .5); }
.rd-inner { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.rd-inner h2 { margin: 0; padding-right: 36px; }
.rd-photo:not([hidden]) + .rd-close + .rd-inner h2 { padding-right: 0; }
.rd-close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.rd-photo { margin: 0; }
.rd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rd-credit { padding: 6px 28px 0; font-size: .75rem; color: var(--muted); }
.rd-credit a { color: var(--muted); }
.rd-blurb { margin: 0; color: var(--muted); }
.rd-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; margin-top: 8px; }
.rd-cols h3 { margin-bottom: 8px; }
.rd-cols ul, .rd-cols ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rd-cols li { font-size: .95rem; }
.rd-cols li::marker { color: var(--cat, var(--saffron)); font-weight: 700; }
.rd-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--bg); font-size: .9rem; color: var(--muted); }
#rdBuy { align-self: flex-start; }
@media (max-width: 640px) {
  .rd-cols { grid-template-columns: 1fr; gap: 16px; }
  .rd-inner { padding: 22px 18px; }
  .rd-credit { padding: 6px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .recipe-card, .gallery img, .cart, .toast { transition: none; }
}

/* Pre-order + contact */
.preorder { background: var(--crocus-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.split-text .section-lead { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--crocus); font-weight: 700; }
.ticks strong { color: var(--text); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h3 { margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 1rem Inter, sans-serif; color: var(--text); background: var(--bg);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--crocus); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--saffron); }
.form-error { margin: 0; color: var(--saffron-dark); font-size: .9rem; font-weight: 500; }
.form-result { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); }
.form-result p { margin: 0; }
.form-result.ok { border-style: solid; border-color: #9fd3a3; background: #eef8ee; }
.form-result textarea { width: 100%; resize: vertical; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: .85rem/1.5 ui-monospace, Menlo, monospace; color: var(--text); background: var(--surface); }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--crocus); }
.contact-list dd { margin: 0; color: var(--muted); }
.select-all { user-select: all; color: var(--text); font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; margin-left: 6px; color: var(--saffron); font: 600 .85rem Inter, sans-serif; text-decoration: underline; cursor: pointer; }
.soldout-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--crocus-soft); color: var(--text); font-size: .92rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(20, 10, 5, .4); z-index: 40; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(400px, 100%); background: var(--surface); overflow-y: auto;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.cart.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.4rem; margin: 0; }
.cart-items { list-style: none; margin: 0; padding: 8px 20px; flex: 1 0 auto; }
.cart-items .empty { color: var(--muted); padding: 24px 0; text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .name { font-weight: 600; }
.cart-item .meta { color: var(--muted); font-size: .88rem; }
.cart-item .line-total { font-weight: 600; text-align: right; }
.cart-item .controls { display: flex; align-items: center; gap: 10px; }
.cart-item .qty button { height: 32px; width: 30px; }
.remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.cart-foot .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.cart-foot .total { font-weight: 700; font-size: 1.15rem; margin: 10px 0 16px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
  background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px;
  z-index: 60; transition: transform .25s ease; font-weight: 500; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo img { height: 320px; max-width: 100%; }
  .trust, .timeline { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .shop-feature { grid-template-columns: 1fr; }
  .shop-video video { max-height: 360px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .timeline, .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 16px; }
  .section.shop, .section.preorder, .section.contact { padding-left: 0; padding-right: 0; }
}

/* Checkout form inside the cart */
.checkout-form { margin-bottom: 4px; }
.checkout-form .link-btn { align-self: center; margin: 0; }
@media (max-width: 360px) {
  .logo { font-size: 1.05rem; }
  .cart-btn { padding: 6px 10px; }
}
