:root {
  --cream: #f4f1ea;
  --cream-deep: #e3ebe4;
  --paper: #fffcf7;
  --ink: #1b2a22;
  --ink-soft: #5c6b62;
  --gold: #8d6a32;
  --gold-deep: #1f4d3a;
  --gold-soft: #d5e3d6;
  --line: #ddd6c8;
  --rose: #8c4a32;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(27, 42, 34, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #fbf7f0 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #f6efe4 0%, transparent 50%),
    var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); margin: 0.2rem 0 0.6rem; }
h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0.15rem 0 0.4rem; }
p { margin: 0.4rem 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 42px; height: 42px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 0.9;
  display: block;
}
.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.main-nav { display: flex; gap: 1.15rem; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.main-nav a.is-active { color: var(--ink); border-bottom: 1px solid var(--gold); }
.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  min-width: 180px;
  flex: 1 1 180px;
  max-width: 280px;
}
.header-search svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 auto; }
.header-search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
}
.cart-link {
  position: relative;
  color: var(--ink);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.cart-link svg { width: 24px; height: 24px; }
.cart-badge, .nav-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fffaf3;
  font-size: 0.68rem;
  display: grid;
  place-items: center;
}
.nav-count { top: 0.15rem; right: 0.7rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}
.btn-gold {
  background: linear-gradient(#2f6a4e, #1c4634);
  color: #f7f3ea;
  box-shadow: 0 8px 18px rgba(28, 70, 52, 0.18);
}
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nav-order { white-space: nowrap; }

.hero, .story-band, .band, .evening, .page {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3.2rem;
  padding-bottom: 2rem;
  min-height: 620px;
}
.floral { position: absolute; width: 170px; pointer-events: none; opacity: 0.9; }
.floral-tl { top: 0; left: 0; }
.floral-br { right: 0; bottom: 0; transform: rotate(180deg); }
.floral-tr { top: 8px; right: 8px; transform: scaleX(-1); width: 120px; }
.hero-copy { position: relative; z-index: 1; max-width: 540px; }
.eyebrow {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-deep);
}
.lede { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.ornament {
  width: 92px;
  height: 14px;
  margin: 0.8rem 0 1rem;
  background:
    linear-gradient(var(--gold), var(--gold)) center/54px 1px no-repeat,
    linear-gradient(45deg, transparent 46%, var(--gold) 46% 54%, transparent 54%) center/10px 10px no-repeat;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; }
.hero-stage { position: relative; min-height: 460px; }
.hero-arch {
  width: min(100%, 460px);
  margin-left: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 230px 230px 28px 28px;
  border: 10px solid #f7f1e6;
  box-shadow: var(--shadow);
  background: #2a2118;
}
.hero-arch .photo-slot { width: 100%; height: 100%; border-radius: inherit; }
.hero-float {
  position: absolute;
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid #f7f1e6;
  left: 0;
  bottom: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-float.photo-slot { min-height: 0; }

.story-band, .story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.story-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 180px 180px 24px 24px;
  border: 8px solid #f7f1e6;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.story-photo .photo-slot { width: 100%; height: 100%; min-height: 280px; border-radius: inherit; }
.story-points { padding-left: 1.1rem; color: var(--ink-soft); }
.story-points li { margin: 0.35rem 0; }

.band { padding-top: 1.5rem; padding-bottom: 1rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-head.center { justify-content: center; text-align: center; }
.section-head a { text-decoration: none; font-size: 0.92rem; }

.crave-row, .signature-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.8rem;
}
.signature-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.crave-card, .signature-card, .gallery-card, .product-card, .info-card, .cart-summary, .order-card, .admin-card, .map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.crave-card {
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  text-align: center;
}
.crave-card .photo-slot { height: 110px; min-height: 0; }
.crave-card span { display: block; padding: 0.55rem 0.3rem 0.7rem; font-size: 0.82rem; }
.signature-card { overflow: hidden; text-align: center; padding-bottom: 1rem; }
.signature-card .photo-slot { height: 180px; min-height: 0; }
.signature-card h3 { margin: 0.7rem 0.6rem 0.2rem; font-size: 1.45rem; }
.signature-card p { color: var(--ink-soft); font-size: 0.88rem; padding: 0 0.8rem; min-height: 2.6em; }
.signature-card strong { display: block; color: var(--gold-deep); margin: 0.35rem 0 0.6rem; font-family: var(--serif); font-size: 1.35rem; }

.evening { padding: 2.5rem 1.25rem 5.5rem; }
.evening-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.4rem;
  background:
    radial-gradient(circle at 50% 0%, #fffaf3, #f6f0e6 70%);
  border: 1px solid var(--line);
  border-radius: 180px 180px 28px 28px;
  box-shadow: var(--shadow);
}
.evening-card p { color: var(--ink-soft); max-width: 46ch; margin-left: auto; margin-right: auto; }
.evening-card .ornament { margin-left: auto; margin-right: auto; }

.page { padding-top: 1.6rem; padding-bottom: 6.5rem; }
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; margin: 0.4rem 0 1rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.chip.is-active { background: var(--ink); color: #fffaf3; border-color: var(--ink); }
.product-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.product-card figure, .gallery-card { margin: 0; position: relative; }
.product-card figure { height: 168px; overflow: hidden; border-radius: 18px 18px 0 0; }
.product-card figure .photo-slot { height: 100%; min-height: 0; border-radius: 18px 18px 0 0; }
.gallery-card .photo-slot { height: 180px; min-height: 0; border-radius: 18px 18px 0 0; }
.signature-card a { display: block; height: 180px; overflow: hidden; }
.photo-slot {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 120px;
  background:
    linear-gradient(165deg, #f7f4ee 0%, #e5efe7 52%, #efe6d6 100%);
  color: var(--gold-deep);
  position: relative;
}
.photo-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(31, 77, 58, 0.28);
  border-radius: 12px;
  pointer-events: none;
}
.photo-slot-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31, 77, 58, 0.35);
  background: rgba(255, 252, 247, 0.72);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.photo-slot-caption {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.demo-strip {
  margin: 0;
  text-align: center;
  background: #1c4634;
  color: #f4efe4;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1rem;
}
.product-body, .gallery-card span { padding: 0.8rem 0.9rem 1rem; }
.gallery-card { text-decoration: none; color: var(--ink); overflow: hidden; }
.gallery-card span { display: block; font-family: var(--serif); font-size: 1.25rem; }
.product-body h3 { margin: 0; font-size: 1.45rem; }
.product-note { color: var(--ink-soft); font-size: 0.9rem; min-height: 2.6em; }
.price-fixed { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-deep); margin: 0.2rem 0; }
.price-fixed span { font-family: var(--sans, "Source Sans 3", sans-serif); font-size: 0.85rem; color: var(--ink-soft); }
.size-pick { display: block; margin: 0.35rem 0 0.55rem; }
.size-pick select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf3;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.product-row { display: flex; align-items: center; gap: 0.55rem; }
.product-row strong { margin-left: auto; font-family: var(--serif); font-size: 1.15rem; }
.diet {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 250, 243, 0.94);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
}
.diet::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border: 1.5px solid currentColor;
  background: currentColor;
  border-radius: 1px;
}
.diet { color: #8a3030; }
.diet.veg { color: #2f6b45; }
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.stepper span { min-width: 1.2rem; text-align: center; }
.plus-btn { padding: 0.45rem 0.85rem; background: var(--ink); color: #fffaf3; }

.cart-layout, .checkout-grid, .find-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.2rem;
  align-items: start;
}
.find-grid { grid-template-columns: repeat(3, 1fr); }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.cart-line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.7rem;
}
.cart-line .photo-slot { width: 92px; height: 92px; min-height: 0; border-radius: 12px; }
.cart-line .photo-slot::before { inset: 8px; }
.cart-line .photo-slot-mark { width: 2rem; height: 2rem; font-size: 1rem; }
.cart-line h3 { margin: 0; font-size: 1.35rem; }
.cart-line-side { text-align: right; }
.text-btn { border: 0; background: none; color: var(--rose); cursor: pointer; padding: 0; }
.cart-summary, .order-card, .info-card, .map-card { padding: 1.1rem 1.15rem 1.2rem; }
.cart-summary h2 { font-size: 2rem; }
.cart-summary ul, .order-card ul, .admin-card ul { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.cart-summary li, .order-card li, .admin-card li, .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0;
}
.cart-summary .btn, .empty-cart .btn { width: 100%; margin-top: 0.7rem; }
.hint { color: var(--ink-soft); font-size: 0.9rem; }
.error-text { color: #8a3030; }
.empty-cart, .order-wrap { max-width: 640px; }
.empty-cart {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
}
.checkout-form, .privacy-copy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
}
.checkout-form label, .checkout-form fieldset { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.checkout-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 0.7rem 0.9rem; }
.checkout-form input:not([type="radio"]), .checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.checkout-form label.radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
.checkout-form label.radio input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--gold-deep);
}
.map-card { margin-top: 1rem; text-align: center; }
.privacy-copy h2 { font-size: 2rem; margin-top: 1.2rem; }

.admin-list { display: grid; gap: 0.9rem; }
.admin-card { padding: 1rem 1.1rem; }
.admin-card.is-fresh { box-shadow: 0 0 0 2px var(--gold-soft); }
.admin-top { display: flex; justify-content: space-between; gap: 1rem; }
.status {
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.82rem;
  height: fit-content;
}
.status-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.status-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.status-actions button.is-current { background: var(--ink); color: #fffaf3; border-color: var(--ink); }
.order-alerts { display: grid; gap: 0.5rem; margin-bottom: 0.8rem; }
.order-alert {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #fff7e8;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}
.sound-gate {
  position: fixed;
  inset: 0;
  background: rgba(58, 38, 24, 0.45);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 1rem;
}
.sound-gate[hidden], [hidden] { display: none !important; }
.sound-gate-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 1.4rem;
  max-width: 420px;
}
.toast {
  position: fixed;
  left: 50%;
  top: 5.4rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fffaf3;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  z-index: 50;
}
.site-footer { padding: 1rem 1.25rem 6rem; }
.site-footer-card {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  color: var(--ink-soft);
}
.site-footer-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0;
}
.search-empty { color: var(--ink-soft); }
.bottom-nav { display: none; }

@media (max-width: 980px) {
  main { padding-bottom: 5.5rem; }
  .page { padding-bottom: 1.2rem; }
  .hero, .story-band, .story-grid, .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 1.6rem; padding-bottom: 1rem; }
  .hero-stage { min-height: 0; }
  .hero-arch { width: min(70%, 260px); aspect-ratio: 1 / 1; margin: 1.4rem auto 0; border-radius: 130px 130px 22px 22px; }
  .hero-float, .floral-tl, .floral-br { display: none; }
  .toast { top: auto; bottom: 5.2rem; }
  .main-nav, .nav-order { display: none; }
  .crave-row { grid-template-columns: repeat(4, minmax(120px, 1fr)); overflow-x: auto; }
  .signature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .find-grid { grid-template-columns: 1fr; }
  .header-search { max-width: none; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line);
    z-index: 25;
    padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    position: relative;
    text-decoration: none;
    color: var(--ink-soft);
    display: grid;
    justify-items: center;
    gap: 0.1rem;
    font-size: 0.72rem;
  }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav a.is-active { color: var(--gold-deep); }
}

@media (max-width: 640px) {
  .nav-bar { flex-wrap: wrap; }
  .header-search { order: 5; flex-basis: 100%; }
  .signature-row, .crave-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line-side { grid-column: 2; text-align: left; }
}
