:root {
  --paper: #eef4f8;
  --ice: #f7fbfd;
  --navy: #1b3f5a;
  --ink: #244056;
  --soft: #5a7a90;
  --sky: #6b9bb8;
  --mist: #c5d8e6;
  --line: #d3e2ec;
  --patch-a: #dceaf2;
  --patch-b: #c8dce8;
  --patch-c: #e8f1f6;
  --patch-d: #bfd4e2;
  --rose: #8a2433;
  --ok: #2d6a4f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Sora, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}

.blob-a {
  top: -8rem;
  right: -4rem;
  width: 28rem;
  height: 28rem;
  background: #c5dcec;
}

.blob-b {
  top: 38%;
  left: -10rem;
  width: 22rem;
  height: 22rem;
  background: #b7d0e0;
}

.blob-c {
  bottom: -6rem;
  right: 12%;
  width: 18rem;
  height: 18rem;
  background: #d4e6f0;
}

.plaid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgb(107 155 184 / 18%) 46px,
      rgb(107 155 184 / 18%) 48px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 46px,
      rgb(27 63 90 / 10%) 46px,
      rgb(27 63 90 / 10%) 48px
    );
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ice);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.masthead,
.hero-band,
.program-wrap,
.photos-wrap,
.register,
footer {
  position: relative;
  z-index: 1;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(68rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.4rem 0 0;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.masthead .kicker {
  margin: 0;
}

.masthead-cta {
  display: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ice);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.masthead-cta:hover {
  background: #16344a;
  transform: translateY(-2px);
}

.hero-band {
  display: grid;
  gap: 1.6rem;
  width: min(68rem, calc(100% - 2.4rem));
  margin: 1.2rem auto 0;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.lead,
.register-note,
footer p {
  color: var(--soft);
}

footer .map-link {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

footer .map-link:hover {
  color: #16344a;
}

.lead {
  margin: 0 0 1.6rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.patch {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-height: 6.4rem;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid rgb(27 63 90 / 8%);
  box-shadow: 0 10px 24px rgb(27 63 90 / 5%);
}

.patch-date {
  background: var(--patch-a);
  border-radius: 1.15rem 0.45rem 1.2rem 0.55rem;
  transform: rotate(-1.1deg);
}

.patch-time {
  background: var(--patch-b);
  border-radius: 0.4rem 1.25rem 0.5rem 1.1rem;
  transform: rotate(1.2deg);
}

.patch-place {
  background: var(--patch-c);
  border-radius: 0.9rem 1.1rem 0.4rem 1.2rem;
  transform: rotate(0.8deg);
}

.patch-price {
  background: var(--patch-d);
  border-radius: 1.2rem 0.5rem 1.15rem 0.45rem;
  transform: rotate(-0.7deg);
}

.fact-label {
  color: var(--sky);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.patch strong {
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.15;
}

.fact-extra {
  color: var(--soft);
  font-size: 0.82rem;
}

.cta {
  display: inline-block;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ice);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cta:hover {
  background: #16344a;
  box-shadow: 0 10px 22px rgb(27 63 90 / 18%);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 8% 6% 18%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgb(255 255 255 / 70%), transparent 68%);
  pointer-events: none;
}

.hero-ground {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5%;
  z-index: 0;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(27 63 90 / 32%) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 26px 16px rgb(27 63 90 / 20%))
    drop-shadow(0 10px 36px rgb(90 140 170 / 28%));
}

.photos-wrap,
.program-wrap {
  width: min(58rem, calc(100% - 2.4rem));
  margin: 3.4rem auto 0;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.photo {
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 16px 36px rgb(27 63 90 / 10%);
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
  border-radius: 1.3rem 0.5rem 1.2rem 0.55rem;
}

.photo-tall {
  grid-row: span 2;
  min-height: 22rem;
  border-radius: 0.5rem 1.25rem 0.55rem 1.15rem;
}

.photos .photo:nth-child(3) {
  aspect-ratio: 4 / 3;
  border-radius: 1.15rem 0.45rem 0.9rem 1.2rem;
}

.photos .photo:nth-child(4) {
  aspect-ratio: 4 / 3;
  border-radius: 0.45rem 1.2rem 1.15rem 0.5rem;
}

.section-title,
.register h2 {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
}

.section-title {
  margin-bottom: 1.4rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.program {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.program li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgb(27 63 90 / 7%);
  background: color-mix(in srgb, var(--ice) 70%, white);
}

.program li:nth-child(odd) {
  border-radius: 1.2rem 0.45rem 1.15rem 0.55rem;
}

.program li:nth-child(even) {
  border-radius: 0.45rem 1.2rem 0.5rem 1.1rem;
}

.program span {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ice);
  font-family: Fraunces, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 650;
}

.program h3 {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 650;
}

.program p {
  margin: 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.register {
  width: min(42rem, calc(100% - 2.4rem));
  margin: 3.6rem auto 0;
  padding: 2.2rem 1.6rem 2.4rem;
  border: 1px solid var(--mist);
  border-radius: 1.7rem;
  background: color-mix(in srgb, var(--ice) 86%, white);
}

.register h2 {
  font-size: clamp(1.7rem, 4vw, 2.1rem);
}

.register-note {
  margin: 0.55rem 0 1.4rem;
}

.form-status {
  min-height: 0;
}

form {
  display: grid;
  gap: 0.95rem;
}

.fields {
  display: grid;
  gap: 0.95rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 500;
}

label em {
  color: var(--soft);
  font-style: normal;
  font-weight: 400;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--mist);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input.is-invalid {
  border-color: #c56b76;
  background: #fff7f7;
}

input.is-invalid:focus-visible {
  outline-color: var(--rose);
}

.contact-field.is-locked input,
.phone-field.is-locked input {
  background: var(--paper);
  color: var(--soft);
  cursor: not-allowed;
  opacity: 0.7;
}

.ways {
  margin: 0;
  padding: 0;
  border: 0;
}

.ways legend {
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 500;
}

.way-pills {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.way-pills label {
  margin: 0;
}

.way-pills input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.way-pills span {
  display: block;
  margin: 0;
  padding: 0.75rem 0.4rem;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.way-pills input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ice);
}

.way-pills input:focus-visible + span {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.way-pills.is-invalid span {
  border-color: #c56b76;
}

.err {
  display: block;
  margin-top: 0.35rem;
  color: var(--rose);
  font-size: 0.84rem;
  font-weight: 500;
}

.err:not(:empty) {
  animation: err-in 0.28s ease;
}

.form-err:not(:empty) {
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: #f8e8ea;
}

button {
  margin-top: 0.15rem;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--ice);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

button:hover:not(:disabled) {
  background: #16344a;
  box-shadow: 0 10px 22px rgb(27 63 90 / 18%);
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.ok {
  margin: 0 0 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
  background: #e4f3ea;
  color: var(--ok);
  font-weight: 500;
}

.ok[hidden] {
  display: none;
}

footer {
  width: min(58rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.6rem 0 5.6rem;
  text-align: center;
  font-size: 0.9rem;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 88%, white);
  border-top: 1px solid var(--mist);
  box-shadow: 0 -10px 24px rgb(27 63 90 / 8%);
  transition: transform 0.28s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.sticky-cta .cta {
  display: block;
  text-align: center;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.reveal {
  animation: rise 0.7s ease both;
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

.reveal-delay-4 {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes err-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 880px) {
  .masthead-cta {
    display: inline-block;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.4rem 3rem;
    padding-top: 1.2rem;
    align-items: center;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 4.6vw, 3.7rem);
    white-space: nowrap;
  }

  .facts {
    max-width: 26rem;
  }

  .hero {
    margin-right: -0.6rem;
  }

  .program {
    grid-template-columns: 1fr 1fr;
  }

  .register {
    width: min(46rem, calc(100% - 2.4rem));
    padding: 2.5rem 2.1rem 2.6rem;
  }

  .fields {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-cta {
    display: none;
  }

  footer {
    padding-bottom: 3rem;
  }
}

.photos-hint,
.photos-dots {
  display: none;
}

@media (max-width: 768px) {
  .photos-wrap {
    width: 100%;
    overflow: hidden;
  }

  .photos-wrap .kicker,
  .photos-wrap .section-title,
  .photos-hint {
    width: calc(100% - 2.4rem);
    margin-left: auto;
    margin-right: auto;
  }

  .photos-slider {
    width: 100%;
  }

  .photos-hint {
    display: block;
    margin-top: -0.85rem;
    margin-bottom: 0.85rem;
    color: var(--soft);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
  }

  .photos-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.15rem 0 0;
  }

  .photos-dots button {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--mist);
    cursor: pointer;
  }

  .photos-dots button.is-active {
    width: 1.35rem;
    background: var(--navy);
  }

  .photos {
    display: flex !important;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 0.7rem;
    width: 100%;
    max-height: 16.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.2rem;
    padding: 0.1rem 1.2rem 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .photos::-webkit-scrollbar {
    display: none;
  }

  .photos > .photo.reveal {
    animation: none;
  }

  .photos > .photo,
  .photos > .photo-wide,
  .photos > .photo-tall,
  .photos > .photo:nth-child(3),
  .photos > .photo:nth-child(4) {
    flex: 0 0 78vw;
    width: 78vw;
    max-width: 20.5rem;
    height: 14.75rem;
    min-height: 14.75rem;
    max-height: 14.75rem;
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .lead br {
    display: none;
  }

  .register {
    padding: 1.7rem 1.1rem 2rem;
  }

  .facts {
    gap: 0.55rem;
  }

  .patch {
    min-height: 5.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .err:not(:empty) {
    animation: none;
  }

  .cta,
  .masthead-cta,
  button {
    transition: none;
  }

  .cta:hover,
  .masthead-cta:hover,
  button:hover:not(:disabled) {
    transform: none;
  }
}
