/* Home page only (front-matter `css: home`). Mobile-first.
   The hero is the full-height scroll hero (hero.css, scrollscrub.js). */

main { padding: 0; }
main > * { max-width: none; }
main > .notify { margin-left: 0; margin-right: 0; }  /* home <main> has no side padding */
main > .stage.stage--oracle { margin: var(--space-4) 0 0; }   /* nor does the oracle card band */

/* Header floats over the hero: transparent at the top, veiled once scrolled.
   Without JS it scrolls away with the hero (absolute), so it never sits
   unveiled over text further down. */
.site-header { position: absolute; left: 0; right: 0; }
.js .site-header { position: fixed; }
.site-header::before { opacity: var(--home-header-veil); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 -3rem;
  z-index: -2;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 80%, transparent), transparent);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.site-header.is-scrolled::after { opacity: 0; }

/* ---------- Hero ----------
   The immersive scroll hero itself (canvas, smoke, veil, sticky travel and the
   motion toggle) is in hero.css; this is only the home headline's type. */
.hero-content .page-head { text-align: center; }
.hero-kicker {
  margin: 0 0 var(--space-2);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero-kicker::before,
.hero-kicker::after {
  content: "\2726";            /* four-point star */
  display: inline-block;
  margin: 0 0.9em;
  font-size: 0.8em;
  letter-spacing: 0;
  color: var(--plum-bright);
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 5.5vw, 5.25rem);
  line-height: 1.04;
}
.hero-sub {
  max-width: 32rem;
  margin: var(--space-3) auto var(--space-4);
  font-size: var(--step-1);
  font-style: italic;
  color: var(--text);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
}

@media (max-height: 34rem) {
  .hero-kicker { margin-bottom: 0; }
  .hero-content h1 { font-size: clamp(1.75rem, 8vh, 3rem); }
  .hero-sub { margin: var(--space-1) auto var(--space-2); font-size: var(--step-0); }
}


/* ---------- Sections ---------- */
.home-section {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter) 0;
}
.home-wide { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-head { max-width: 40rem; margin: 0 auto var(--space-4); text-align: center; }
.section-head h2 { margin-bottom: var(--space-1); }
.section-lede { margin: 0; color: var(--text-soft); font-style: italic; font-size: var(--step-1); line-height: 1.5; }

/* Intro: the one asymmetric passage on the page. Narrow: heading over text,
   both left-set. Wide: a large heading on the left, the text on the right,
   breaking the centred kicker + heading + lede rhythm of the other sections. */
.intro { padding-top: var(--space-4); }
.intro .ornament { width: min(100%, 16rem); margin: 0 0 var(--space-3); }
.intro .ornament::before { display: none; }
.intro h2 { max-width: 24rem; margin: 0 0 var(--space-3); font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.15; text-wrap: balance; }
.intro p {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.7;
  color: var(--text-soft);
}
.intro p::first-line { color: var(--text); }
@media (min-width: 56rem) {
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
    max-width: calc(66rem + 2 * var(--gutter));
  }
  .intro h2 { margin-bottom: 0; }
  .intro p { padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
}

/* Guide cards: four tall arched windows. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 30rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(4, 1fr); gap: var(--space-3) clamp(1.25rem, 2.2vw, 2.25rem); } }
@media (max-width: 29.99rem) { .cards .card-frame { max-width: 22rem; margin: 0 auto; } }
.card h3 { font-size: 1.3rem; }

/* Shop: a full-bleed band with a plum glow and five arched cards. */
.shop-band {
  position: relative;
  margin-top: var(--space-5);
  padding: var(--space-5) 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 40%, var(--wash-sage), transparent 75%),
    var(--bg-alt);       /* a pale-sage band with a soft wash */
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.shop-band::before,
.shop-band::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(80%, 50rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, var(--hairline-strong), transparent);
}
.shop-band::before { top: 0; }
.shop-band::after { bottom: 0; }
.shop-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-card { flex: 0 1 calc(50% - var(--space-3) / 2); text-align: center; }
@media (min-width: 40rem) { .shop-card { flex-basis: calc((100% - 2 * var(--space-3)) / 3); } }
/* Wide: a five-arch arcade. Cards share subgrid rows so every title and line
   of text sits on the same baselines; the rise lives only in the arches, which
   stand on a common sill and grow taller towards the centre. */
@media (min-width: 64rem) {
  .shop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 0 clamp(1rem, 1.8vw, 1.75rem);
  }
  .shop-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .shop-card .card-frame { align-self: end; }
  .shop-card:nth-child(2) .card-img, .shop-card:nth-child(4) .card-img { aspect-ratio: 4 / 5.5; }
  .shop-card:nth-child(3) .card-img { aspect-ratio: 4 / 6; }
}
.shop-card h3 { margin: var(--space-2) 0 0.35rem; font-size: 1.1rem; line-height: 1.3; }
.shop-card p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--text-soft); }
.shop-note { max-width: 40rem; margin: var(--space-4) auto 0; text-align: center; }

/* Seasonal note: text on the left, a tall arched image on the right. */
.season {
  display: grid;
  gap: var(--space-4);
  align-items: center;
  max-width: calc(66rem + 2 * var(--gutter));
  padding-top: var(--space-4);
}
.season h2 { text-wrap: pretty; }
/* Wide: break after the colon, never inside "the veil grows thin". */
@media (min-width: 64rem) { .season h2 .keep { white-space: nowrap; } }
@media (min-width: 52rem) {
  .season { grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
}
.season-art { border-radius: var(--arch-4x5); }
.season-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 51.99rem) {
  .season-art { order: -1; max-width: 24rem; width: 100%; margin: 0 auto; }
}
.season-text p { color: var(--text-soft); }
.season-text p:last-child { margin: var(--space-3) 0 0; }
.season-date { margin-bottom: var(--space-2); }

/* Sign-up band: full bleed here too. The home <main> has no side padding, so
   the band needs no negative margins (set at the top of this file); its own
   padding keeps the gutters. (A 52rem cap here used to squeeze the copy
   column to about 100px beside the 34rem card at 64rem and wider.) */
main > .notify { max-width: none; width: auto; }
