/* Homepage sections only. Loads after styles.css, which holds tokens, type, buttons, nav and footer. */

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- HERO (live structure kept; type, color, card finish restyled) ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: stretch; overflow: hidden; background: var(--cocoa); }
.hero-bg-video {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 72%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.7) 36%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.7) 36%, #000 52%);
}
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    #1F0D08 0%, #1F0D08 26%,
    rgba(31, 13, 8, 0.9) 38%,
    rgba(31, 13, 8, 0.6) 50%,
    rgba(31, 13, 8, 0.3) 62%,
    rgba(31, 13, 8, 0.1) 74%,
    rgba(31, 13, 8, 0) 86%);
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: center;
  flex: 1;
  min-height: calc(100vh - 9.5rem);
}
.hero-left { display: flex; flex-direction: column; max-width: 640px; }
.hero-content { max-width: 700px; color: var(--cream-2); margin-bottom: 5%; animation: hero-rise 0.8s ease-out both; }
.hero-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 10px;
  text-shadow: 0 2px 24px rgba(31, 13, 8, 0.35);
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(31, 13, 8, 0.45);
}
.hero-tagline-weekly, .hero-tagline-drop { color: var(--gold-light); }
.hero-content .body-lg { font-size: 1.1875rem; line-height: 1.6; color: rgba(254, 247, 231, 0.92); max-width: 36em; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }

.preorder-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  background: var(--cream-2);
  border-radius: 0;
  box-shadow: 0 28px 60px rgba(31, 13, 8, 0.35);
  padding: 22px 30px 24px;
  color: var(--cocoa);
  animation: hero-rise 0.9s 0.12s ease-out both;
}
.preorder-strip::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.preorder-window { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.preorder-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
}
.preorder-days {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--cocoa);
}
.preorder-sub { font-size: 0.875rem; font-style: italic; color: var(--ink-soft); }
.preorder-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.preorder-fact { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.preorder-fact .preorder-label { color: var(--brown); }
.preorder-pickups {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 121, 81, 0.35);
}
.preorder-fact.preorder-fact-inline { flex-direction: column; gap: 1px; }
.preorder-fact.preorder-fact-inline .preorder-place { font-size: 1.0625rem; }
.preorder-fact.preorder-fact-inline .preorder-detail { font-size: 0.875rem; }
.preorder-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.1;
  color: var(--wine);
}
.preorder-place { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: var(--cocoa); line-height: 1.2; }
.preorder-detail { font-size: 0.875rem; line-height: 1.35; color: var(--ink-soft); }
.preorder-cta { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex-shrink: 0; }
.preorder-cta .btn { white-space: nowrap; width: 100%; font-size: 1.0625rem; padding: 0.7rem 1.35rem; }
.preorder-cta .preorder-sub { text-align: center; }
.preorder-cta-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--cocoa);
  margin: 0;
  text-align: center;
}
.preorder-countdown {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--wine);
  min-height: 1.1em;
}
.preorder-strip[data-preorder-state="loading"] .preorder-cta { opacity: 0.72; }
.preorder-strip[data-preorder-state="closed"] .preorder-days { color: var(--wine); }
.preorder-strip[data-preorder-state="closed"] .preorder-cta .btn { white-space: normal; text-align: center; line-height: 1.25; }
.preorder-strip[data-preorder-state="closed"] #preorder-order-btn,
.preorder-strip[data-preorder-state="closed"] #preorder-cta-sub,
.preorder-strip[data-preorder-state="open"] #preorder-notify-btn,
.preorder-strip[data-preorder-state="open"] #preorder-cta-headline,
.preorder-strip[data-preorder-state="open"] #preorder-countdown { display: none !important; }
.preorder-strip[data-preorder-state="closed"] #preorder-notify-btn,
.preorder-strip[data-preorder-state="closed"] #preorder-cta-headline,
.preorder-strip[data-preorder-state="closed"] #preorder-countdown { display: block; }
.preorder-strip[data-preorder-state="closed"] #preorder-notify-btn { display: inline-flex !important; }

.notify-dialog {
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0;
  max-width: min(420px, calc(100vw - 2rem));
  width: 100%;
  margin: auto;
  background: var(--cream-2);
  color: var(--cocoa);
  box-shadow: 0 28px 60px rgba(31, 13, 8, 0.3);
}
.notify-dialog::backdrop { background: rgba(31, 13, 8, 0.6); }
.notify-dialog-inner { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.notify-dialog-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.notify-dialog-lead { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }
.notify-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; font-weight: 500; }
.notify-field em { font-weight: 400; color: var(--ink-soft); }
.notify-field input { font-family: var(--font-body); font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--rule); border-radius: 0; background: var(--cream); color: var(--cocoa); }
.notify-status { font-size: 0.9375rem; color: var(--brown); }
.notify-status.is-error { color: var(--wine-hi); }
.notify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notify-actions .btn { flex: 1 1 auto; }

@media (max-width: 900px) {
  .hero-bg-video { width: 100%; left: 0; right: 0; opacity: 0.9; -webkit-mask-image: none; mask-image: none; }
  .hero-fade { background: linear-gradient(180deg, rgba(31, 13, 8, 0.66) 0%, rgba(31, 13, 8, 0.45) 42%, rgba(31, 13, 8, 0.6) 100%); }
  .hero-brand, .hero-tagline { text-shadow: 0 2px 22px rgba(31, 13, 8, 0.8), 0 1px 6px rgba(31, 13, 8, 0.6); }
  .hero-content .body-lg { text-shadow: 0 1px 14px rgba(31, 13, 8, 0.75); }
  .preorder-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 20px 32px; min-height: auto; }
  .hero-left { max-width: none; }
  .preorder-strip { padding: 20px 22px 22px; }
  .preorder-facts, .preorder-pickups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content, .preorder-strip { animation: none; }
}


/* ---------- Band 1: What we bake (asymmetric merchandising grid) ---------- */
.bakes { padding: clamp(72px, 8vw, 120px) 0 clamp(64px, 7vw, 104px); }
.bakes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 24px;
}
.bake { display: grid; grid-row: span 2; grid-template-rows: subgrid; text-align: center; }
.bake--wide { grid-column: span 2; }
.bake-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--parchment); }
.bake--wide .bake-media { aspect-ratio: auto; }
.bake-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.bake:hover .bake-media img { transform: scale(1.03); }
.bake--presets .bake-media img { object-position: 50% 30%; }
.bake-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--cocoa);
}
.bake-body { padding: 20px 8px 0; display: grid; gap: 2px; align-content: start; }
.bake-name { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.2; color: var(--cocoa); }
.bake-price { font-size: 1.0625rem; color: var(--wine); }
.bake-detail { font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); margin-top: 4px; }
.bakes-more { margin-top: clamp(40px, 4vw, 56px); text-align: center; }

/* ---------- Band 2: Manifesto ---------- */
.manifesto { background: var(--parchment); padding: clamp(72px, 9vw, 128px) 0; text-align: center; }
.manifesto-text {
  max-width: 980px;
  margin: 26px auto 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.22;
  color: var(--cocoa);
}
.manifesto-text em { font-style: italic; font-weight: 500; color: var(--wine); }

/* ---------- Band 3: Gallery (4-up with hairline caption boxes) ---------- */
.gallery { padding: clamp(72px, 8vw, 120px) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gallery-item { display: grid; gap: 18px; }
.gallery-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--parchment); }
.gallery-media img, .gallery-media video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption {
  border: 1px solid var(--rule);
  padding: 11px 12px;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--cocoa);
  min-height: 50px;
  display: grid;
  place-items: center;
}
.gallery-more { margin-top: clamp(40px, 4vw, 56px); text-align: center; }

/* ---------- Band 4: About (image / centered text split) ---------- */
.about { padding: 0 0 clamp(72px, 8vw, 120px); }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.about-media { position: relative; min-height: 640px; overflow: hidden; background: var(--parchment); }
.about-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about-text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px clamp(24px, 5vw, 80px); }
.about-text .title { margin-top: 22px; }
.thread { width: 1px; height: 104px; margin: 30px auto; background-image: linear-gradient(var(--gold) 55%, transparent 0); background-size: 1px 6px; }
.about-copy { max-width: 30em; color: var(--ink-soft); margin-bottom: 36px; }

/* ---------- Band 5: Closing CTA ---------- */
.closing { background: var(--parchment); }
.closing-inner { padding: clamp(72px, 8vw, 112px) var(--gutter); display: grid; justify-items: center; gap: 22px; text-align: center; }
.closing .title { font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
.closing-copy { max-width: 34em; color: var(--ink-soft); }
.closing .btn { margin-top: 10px; min-width: 240px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bakes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .bake { display: block; grid-row: auto; }
  .bake--wide { grid-column: 1 / -1; order: -1; }
  .bake--wide .bake-media { aspect-ratio: 16 / 10; }
  .bake--presets { grid-column: 1 / -1; }
  .bake--presets .bake-media { aspect-ratio: 16 / 10; }
  .bake--presets .bake-media img { object-position: 50% 58%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .about-media { min-height: 0; aspect-ratio: 4 / 5; }
  .about-text { padding: 48px 4px 0; }
}
@media (max-width: 560px) {
  .bakes-grid { column-gap: 14px; }
  .bake-body { padding: 14px 2px 0; }
  .bake-name { font-size: 1.25rem; }
  .bake-detail { font-size: 0.9375rem; }
  .gallery-grid { gap: 14px; row-gap: 28px; }
  .gallery-item { gap: 12px; }
  .gallery-item figcaption { font-size: 0.9375rem; padding: 9px 8px; min-height: 64px; }
  .closing .btn { min-width: 0; width: 100%; max-width: 340px; }
  .thread { height: 72px; margin: 22px auto; }
}
