@import url("https://fonts.googleapis.com/css2?family=Chewy&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #183d4c;
  --muted: #52707a;
  --paper: #fffdf8;
  --blue: #1688dc;
  --blue-soft: #e4f5ff;
  --green: #65b729;
  --green-soft: #eff9dc;
  --pink: #e9408a;
  --pink-soft: #fff0f7;
  --orange: #f08b18;
  --orange-soft: #fff2d9;
  --purple: #7453b8;
  --purple-soft: #f1edfb;
  --red: #e83732;
  --shadow: 0 14px 36px rgba(38, 90, 76, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  color: var(--ink);
  font-family: "Nunito", ui-rounded, "Arial Rounded MT Bold", sans-serif;
  background:
    radial-gradient(circle at 12% 7%, rgba(94, 183, 234, 0.2), transparent 25rem),
    radial-gradient(circle at 88% 42%, rgba(255, 205, 71, 0.18), transparent 22rem),
    #eaf6f2;
  -webkit-font-smoothing: antialiased;
  transition: background 450ms ease;
}

body.is-stormy {
  background:
    radial-gradient(circle at 18% 8%, rgba(122, 146, 158, 0.35), transparent 24rem),
    radial-gradient(circle at 85% 35%, rgba(80, 99, 112, 0.45), transparent 28rem),
    #263845;
}

.storm-effect {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(31, 47, 60, 0.34), rgba(51, 68, 80, 0.2) 48%, rgba(21, 38, 50, 0.3));
  backdrop-filter: brightness(0.83) saturate(0.72) contrast(0.94);
  transition: opacity 380ms ease, visibility 0s linear 380ms;
}

.rain-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}

body.is-stormy .storm-effect {
  visibility: visible;
  opacity: 1;
  transition: opacity 380ms ease;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    var(--paper);
  box-shadow: 0 0 50px rgba(28, 70, 61, 0.13);
}

.hero {
  position: relative;
  background: #dff2ff;
}

.hero__image {
  width: 100%;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 54px;
  background: var(--paper);
  content: "";
  clip-path: polygon(0 70%, 10% 47%, 20% 66%, 32% 42%, 44% 66%, 55% 38%, 68% 62%, 80% 41%, 91% 63%, 100% 39%, 100% 100%, 0 100%);
}

.hero__intro {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  padding: 6px 28px 38px;
  text-align: center;
  background: var(--paper);
}

.eyebrow,
.section-kicker {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.event-card h2,
.stop h3,
.info-card h3 {
  margin: 0;
  text-wrap: balance;
}

.hero h1 {
  margin-top: 8px;
  color: var(--ink);
  font-family: "Chewy", "Arial Rounded MT Bold", cursive;
  font-size: clamp(2rem, 9vw, 2.55rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero h1 span {
  color: var(--blue);
}

.hero__intro > p {
  max-width: 330px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.event-card {
  position: relative;
  margin: 0 20px 58px;
  padding: 27px 24px 25px;
  overflow: hidden;
  text-align: center;
  border: 2px solid rgba(22, 136, 220, 0.15);
  border-radius: 28px 10px 30px 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(250, 191, 27, 0.22), transparent 38%),
    #f5fbff;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.event-card::before,
.event-card::after {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  content: "";
  opacity: 0.75;
}

.event-card::before {
  width: 8px;
  height: 8px;
  right: 27px;
  top: 53px;
}

.event-card::after {
  width: 5px;
  height: 5px;
  right: 42px;
  top: 70px;
}

.event-card__sun {
  position: absolute;
  top: 10px;
  left: 17px;
  color: #f4ad16;
  font-size: 1.5rem;
  transform: rotate(-12deg);
}

.event-card .section-kicker,
.info-card .section-kicker,
.section-heading .section-kicker {
  margin: 0 0 7px;
}

.event-card h2 {
  color: var(--blue);
  font-family: "Chewy", "Arial Rounded MT Bold", cursive;
  font-size: 2rem;
  font-weight: 400;
}

.event-card__time {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 3px 12px;
  color: #fff;
  font-size: 0.93rem;
  font-weight: 900;
  border-radius: 99px;
  background: var(--green);
}

.event-card__address {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: 15px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button--primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 7px 0 #08649f;
}

.button--soft {
  min-height: 42px;
  margin-top: 13px;
  color: var(--blue);
  background: var(--blue-soft);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 9px 0 #08649f;
}

.section-heading {
  position: relative;
  margin: 0 24px 27px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: "Chewy", "Arial Rounded MT Bold", cursive;
  font-size: 2.35rem;
  font-weight: 400;
}

.paint-stroke {
  display: block;
  width: 145px;
  height: 10px;
  margin: -3px auto 0;
  border-radius: 40% 55% 42% 52%;
  background: rgba(101, 183, 41, 0.32);
  transform: rotate(-2deg);
}

.paint-stroke--orange {
  width: 170px;
  background: rgba(240, 139, 24, 0.27);
}

.program {
  padding-bottom: 55px;
}

.weather-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -6px 20px 31px;
  padding: 5px;
  gap: 5px;
  border: 1px solid rgba(24, 61, 76, 0.08);
  border-radius: 17px;
  background: #edf4f1;
  box-shadow: inset 0 2px 5px rgba(24, 61, 76, 0.05);
}

.weather-toggle__button {
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.weather-toggle__button span {
  font-size: 1.08rem;
  line-height: 1;
}

.weather-toggle__button:hover {
  color: var(--ink);
}

.weather-toggle__button.is-active {
  color: #3f8120;
  background: #fff;
  box-shadow: 0 4px 12px rgba(38, 90, 76, 0.12);
}

.weather-toggle__button:last-child.is-active {
  color: var(--blue);
}

.weather-toggle__button:active {
  transform: translateY(1px);
}

.timeline {
  position: relative;
  padding: 0 20px;
}

.timeline[hidden] {
  display: none;
}

.timeline::before {
  position: absolute;
  top: 21px;
  bottom: 17px;
  left: 47px;
  width: 3px;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(22, 136, 220, 0.38) 0 9px, transparent 9px 15px);
  content: "";
}

.stop {
  position: relative;
  margin-bottom: 29px;
}

.stop:last-child {
  margin-bottom: 0;
}

.timeline--bad-weather .stop__label {
  color: var(--blue);
}

.stop__time {
  position: relative;
  z-index: 3;
  display: flex;
  width: 58px;
  height: 33px;
  margin: 0 0 -15px 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  border: 3px solid var(--paper);
  border-radius: 50% 44% 48% 46%;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(22, 136, 220, 0.25);
  transform: rotate(-2deg);
}

.stop__content {
  position: relative;
  z-index: 1;
  margin-left: 28px;
  overflow: hidden;
  border: 1px solid rgba(24, 61, 76, 0.07);
  border-radius: 0 12px 27px 0;
  background: #fff;
  box-shadow: 0 9px 24px rgba(40, 78, 67, 0.09);
}

.stop--image .stop__content {
  padding-top: 0;
}

.stop--image img,
.stop__placeholder-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

.stop__copy {
  padding: 20px 21px 22px;
}

.stop__label {
  margin: 0 0 3px;
  color: var(--pink);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stop h3,
.info-card h3 {
  font-family: "Chewy", "Arial Rounded MT Bold", cursive;
  font-size: 1.67rem;
  font-weight: 400;
  line-height: 1.1;
}

.stop__copy > p:not(.stop__label, .stop__note, .callout),
.info-card p:not(.section-kicker) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.stop--green .stop__time { background: var(--green); box-shadow: 0 4px 10px rgba(101, 183, 41, 0.25); }
.stop--blue .stop__time { background: var(--blue); }
.stop--purple .stop__time { background: var(--purple); box-shadow: 0 4px 10px rgba(116, 83, 184, 0.25); }
.stop--pink .stop__time { background: var(--pink); box-shadow: 0 4px 10px rgba(233, 64, 138, 0.25); }
.stop--orange .stop__time { background: var(--orange); box-shadow: 0 4px 10px rgba(240, 139, 24, 0.25); }

.facts {
  display: flex;
  margin: 14px 0 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.facts li {
  flex: 1;
  padding: 6px 3px;
  color: #3f8120;
  font-size: 0.69rem;
  font-weight: 900;
  text-align: center;
  border-radius: 8px;
  background: var(--green-soft);
}

.stop__note {
  margin: 11px 0 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
  border-left: 3px solid var(--green);
  border-radius: 0 7px 7px 0;
  background: #f7fbf1;
}

.callout {
  display: inline-block;
  margin: 13px 0 0;
  padding: 6px 10px;
  color: #b82c67;
  font-size: 0.76rem;
  font-weight: 900;
  border-radius: 7px 12px 7px 10px;
  background: var(--pink-soft);
  transform: rotate(-1deg);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 900;
  text-underline-offset: 3px;
}

.arrival {
  position: relative;
  padding: 51px 20px 58px;
  background:
    radial-gradient(circle at 8% 42%, rgba(255, 214, 64, 0.18), transparent 10rem),
    #fff9ec;
}

.arrival::before {
  position: absolute;
  top: -25px;
  right: 0;
  left: 0;
  height: 28px;
  background: #fff9ec;
  content: "";
  clip-path: polygon(0 80%, 12% 35%, 25% 72%, 39% 26%, 53% 70%, 68% 35%, 81% 68%, 94% 26%, 100% 48%, 100% 100%, 0 100%);
}

.arrival .section-heading {
  margin-right: 0;
  margin-left: 0;
}

.arrival__grid {
  display: grid;
  gap: 16px;
}

.info-card {
  position: relative;
  padding: 23px 20px 22px;
  border: 1px solid rgba(240, 139, 24, 0.13);
  border-radius: 15px 28px 14px 25px;
  background: rgba(255, 255, 255, 0.87);
  box-shadow: 0 8px 24px rgba(82, 70, 38, 0.08);
}

.info-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50% 42% 50% 44%;
  transform: rotate(-3deg);
}

.info-card__icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.info-card__icon--blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.info-card__icon--green {
  color: #4d9f22;
  background: var(--green-soft);
}

.info-card strong {
  color: var(--ink);
}

.info-card:nth-child(2) .button--soft {
  color: #3f8120;
  background: var(--green-soft);
}

.footer {
  position: relative;
  padding: 50px 24px 62px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(101, 183, 41, 0.2), transparent 8rem),
    radial-gradient(circle at 90% 80%, rgba(22, 136, 220, 0.19), transparent 10rem),
    #f5fbff;
}

.footer img {
  width: 235px;
  margin: 0 auto 22px;
  mix-blend-mode: multiply;
}

.footer p {
  margin: 0;
  color: var(--blue);
  font-family: "Chewy", "Arial Rounded MT Bold", cursive;
  font-size: 2rem;
}

.footer span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid rgba(233, 64, 138, 0.6);
  outline-offset: 3px;
}

@media (max-width: 350px) {
  .hero__intro,
  .event-card {
    margin-right: 14px;
    margin-left: 14px;
  }

  .hero__intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .timeline,
  .arrival {
    padding-right: 14px;
    padding-left: 14px;
  }

  .weather-toggle {
    margin-right: 14px;
    margin-left: 14px;
  }

  .timeline::before {
    left: 41px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}
