/* ==========================================================================
   Home page (index.html)
   Hero, the Samhain facts list, workshops, venues and map, contact.
   ========================================================================== */

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: min(92svh, 860px);
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem));
  padding-bottom: clamp(7rem, 16vh, 10rem);
  text-align: center;
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-size: var(--step-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 48, "WONK" 1, "opsz" 144;
  margin: 0;
}

/* The title is the banner image. The peach glow runs from the top of the
   viewport down to the bottom of the banner (::before), then fades to white
   below it (::after). */
.hero__title--banner { position: relative; }

.hero__title--banner::before,
.hero__title--banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__title--banner::before {
  top: -100vh;
  bottom: 0;
  background: linear-gradient(to bottom,
    var(--peach) 0,
    var(--peach) calc(100vh + 0.37 * (100% - 100vh)),
    #fae0ce calc(100vh + 0.50 * (100% - 100vh)),
    #fae4d5 calc(100vh + 0.60 * (100% - 100vh)),
    #fbe9db calc(100vh + 0.70 * (100% - 100vh)),
    #fcebe1 calc(100vh + 0.80 * (100% - 100vh)),
    #fdf0e7 calc(100vh + 0.90 * (100% - 100vh)),
    var(--peach-pale) 100%);
}

.hero__title--banner::after {
  top: 100%;
  height: max(40%, 8rem);
  background: linear-gradient(to bottom, var(--peach-pale), rgba(253, 242, 236, 0));
}

.hero__banner {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin: 0 auto;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 3%),
    linear-gradient(to top, transparent, #000 10%),
    linear-gradient(to right, transparent 32%, #000 36%);
  -webkit-mask-composite: source-in, source-over;
          mask-image:
    linear-gradient(to bottom, transparent, #000 3%),
    linear-gradient(to top, transparent, #000 10%),
    linear-gradient(to right, transparent 32%, #000 36%);
          mask-composite: intersect, add;
}

.hero__sub {
  max-width: 40ch;
  margin: clamp(1.4rem, 4vw, 2.1rem) auto 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.6;
  font-variation-settings: "SOFT" 30, "WONK" 1, "opsz" 36;
  color: var(--ink-mid);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.79rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__meta span + span::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ember);
  margin-right: 0.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.8rem, 5vw, 2.6rem);
}

.hero__field {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: auto;
  color: rgba(20, 20, 20, 0.42);
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 3.5vh, 2.2rem);
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.hero__cue:hover { color: var(--ink); }
.hero__cue svg { animation: bob 2.6s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

@media (max-width: 420px) {
  .hero__meta { flex-direction: column; gap: 0.35rem; }
  .hero__meta span + span::before { display: none; }
}

/* ------------------------------------------------------- samhain facts --- */

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.69rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 0.3em;
}

.facts dd { margin: 0; font-size: 0.97rem; }
.facts dd small { display: block; color: var(--ink-dim); font-size: 0.82rem; }

.facts__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 1.2rem;
}

@media (max-width: 660px) {
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ----------------------------------------------------------- workshops --- */

.workshops { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

.workshops__head {
  max-width: 62ch;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.6rem);
}

.workshops__head .card__text { margin-top: 0.6rem; }

.workshops__day {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0.9rem;
  font-family: var(--body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-text);
}

.workshops__head + .workshops__day { margin-top: 0; }

/* --------------------------------------------------------------- where --- */

.where {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.venues { display: flex; flex-direction: column; gap: 1rem; }

.venue {
  position: relative;
  padding: 1.35rem 1.45rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.venue.is-active { border-left-color: var(--ember); background: var(--paper); }

.venue__label {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember-text);
  margin-bottom: 0.5rem;
}

.venue__name {
  font-size: 1.2rem;
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 30;
  margin-bottom: 0.35rem;
}

.venue__addr { font-style: normal; color: var(--ink-mid); font-size: 0.92rem; line-height: 1.55; }

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.95rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.venue__note {
  font-size: 0.86rem;
  color: var(--ink-dim);
  display: flex;
  gap: 0.6rem;
  padding: 0 0.3rem;
}

.venue__note svg { flex: none; margin-top: 0.25em; color: var(--moss); }

/* ----------------------------------------------------------------- map --- */

.map {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
}

.map__frame {
  width: 100%;
  height: clamp(340px, 52vh, 500px);
  border: 0;
  filter: saturate(0.72) contrast(0.98) sepia(0.1);
}

.map__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.map__caption strong { font-weight: 400; color: var(--ink); }

@media (max-width: 1000px) {
  .where { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 660px) {
  .map__frame { height: 320px; }
}

/* ------------------------------------------------------------- contact --- */

.contact { text-align: center; }
.contact__title { font-size: var(--step-h2); margin-bottom: 1.1rem; }
.contact__lead { max-width: 48ch; margin-inline: auto; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-variation-settings: "SOFT" 24, "WONK" 1, "opsz" 30;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.3rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__link:hover { color: var(--ember-text); border-bottom-color: var(--ember); }
.contact__link svg { flex: none; color: var(--ember-text); }
