/* =========================================================================
   Home page — "Candy Row" — page-specific rules only.
   Shared vocabulary (bands, wrap, split, headings, cards, icon-circles,
   polaroids, photo-slots, scallops, stickers, dashed lists) lives in
   /assets/css/styles.css. This file styles what's genuinely unique to /.
   ========================================================================= */

/* ---------- Hero ---------- */

.hero-home { position: relative; padding: 0; overflow: hidden; }

.hero-photo {
  position: absolute; inset: 0;
  background-color: var(--grape-light);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2228%22%3E%3Crect%20width%3D%2228%22%20height%3D%2228%22%20fill%3D%22%235C2C76%22%2F%3E%3Cpath%20d%3D%22M-7%207%20L7%20-7%20M0%2028%20L28%200%20M21%2035%20L35%2021%22%20stroke%3D%22%234B1E63%22%20stroke-width%3D%229%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: repeat; background-size: 28px 28px;
}
.hero-scrim { position: absolute; inset: 0; background: rgba(42, 20, 52, .72); }

.hero-inner { position: relative; z-index: 1; padding: 80px 40px 56px; align-items: center; }

.hero-h1 { margin: 20px 0 0; }
.hero-h1 .accent { color: var(--orange-light); }
.hero-lede { max-width: 540px; margin: 22px 0 0; }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 34px 0 0; }

.countdown-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-card); padding: 26px 30px;
  box-shadow: var(--shadow-float); width: 100%;
}
.countdown-title {
  margin: 0 0 16px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--grape);
}
.cd-grid { display: flex; gap: 10px; }
.cd-unit {
  flex: 1; background: var(--grape); border-radius: 16px; padding: 14px 6px; text-align: center;
}
.cd-num {
  display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800;
  color: var(--cream); line-height: 1;
}
.cd-label {
  display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--lilac-muted);
}
.cd-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.countdown-facts { margin-top: 20px; padding-top: 18px; border-top: 2px dashed var(--cream-border); }
.countdown-facts .dashed-row { padding: 8px 0; }
.fact { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.fact-icon { color: var(--orange); display: inline-flex; }
/* The card is cream inside the dark hero, so undo .on-dark's light link. */
.on-dark .countdown-card a { color: var(--orange-text); }
.cd-live { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-align: center; }

@media (min-width: 901px) {
  .countdown-card { max-width: 360px; margin-left: auto; }
}

/* ---------- Availability band ---------- */

.availability-band.band { padding: 20px 0; }
.availability-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.availability-text {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 21px;
}

/* ---------- How it works ---------- */

.how-lede { max-width: 480px; margin: 12px 0 34px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.how-step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; }
.how-step h3 { margin: 0 0 3px; }

.how-photos { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 8px; }
.how-photo-tall { height: 400px; }
.how-photos-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.how-photo-small { height: 170px; }
.how-sticker { position: absolute; top: -14px; right: -10px; }

/* ---------- Three ways in ---------- */

.three-ways-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.three-ways-head .lede { margin-top: 12px; }
.three-ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.three-way-card {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 26px;
  background: var(--cream); color: var(--ink); text-decoration: none;
}
.three-way-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-row); }
.three-way-heading h3 { margin: 0 0 2px; }
.three-way-meta { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--grape); }
.three-way-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--orange-text);
}

/* ---------- Gallery strip ---------- */

.gallery-strip-section { padding-bottom: 76px; }
.gallery-head {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; margin-bottom: 26px;
}
.gallery-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-strip-photo { height: 240px; }

.gallery-preview-grid .gallery-item {
  display: flex; flex-direction: column; box-sizing: border-box; height: 240px;
  background: #FFFFFF; padding: 9px 9px 30px; border-radius: var(--r-polaroid);
  box-shadow: var(--shadow-polaroid); margin: 0;
}
.gallery-preview-grid .gallery-item img {
  flex: 1; min-height: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; display: block;
}
.gallery-preview-grid .gallery-item:nth-child(4n+1) { transform: rotate(-1.3deg); }
.gallery-preview-grid .gallery-item:nth-child(4n+2) { transform: rotate(1.1deg); }
.gallery-preview-grid .gallery-item:nth-child(4n+3) { transform: rotate(-.8deg); }
.gallery-preview-grid .gallery-item:nth-child(4n+4) { transform: rotate(1.7deg); }

/* ---------- Sponsors ---------- */
/* Hidden by default (see the `hidden` attribute in index.njk); main.js
   reveals this band only once /api/sponsors returns at least one confirmed
   sponsor, so an unsponsored year never shows an empty "our sponsors" band. */

.sponsors-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.sponsors-head .lede { margin-top: 10px; }

.sponsor-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  list-style: none; margin: 0 0 30px; padding: 0;
}
.sponsor-grid li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFFFFF; border-radius: var(--r-pill); padding: 12px 22px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
}
.sponsor-level {
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  color: var(--grape);
}

.sponsors-foot { text-align: center; margin: 0; }
.sponsors-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--orange-text);
}

/* ---------- Closing CTA ---------- */

.closing-h2 { margin: 18px 0 0; }
.closing-cta-row { margin-top: 30px; }
.closing-detail { background: var(--ink-panel); border-radius: var(--r-card); padding: 8px 26px; }
.detail-label { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--lilac-muted); }
a.detail-value, span.detail-value { color: var(--cream); font-size: 16.5px; text-align: right; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  .hero-inner { padding: 56px 20px 40px; }
  .countdown-card { max-width: none; }
  .three-ways-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .availability-text { font-size: 18px; }
  .how-photo-tall { height: 300px; }
  .how-photo-small { height: 140px; }
  .cd-num { font-size: 32px; }
  .gallery-preview-grid { grid-template-columns: 1fr 1fr; }
  .gallery-head { align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-preview-grid { grid-template-columns: 1fr; }
  .cd-grid { gap: 6px; }
  .three-way-card, .how-step { padding-left: 18px; padding-right: 18px; }
}

/* Keep the icon tight against the sentence it introduces. */
.availability-text { display: flex; align-items: center; gap: 10px; }
.availability-count { display: inline; }
