:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f9fa;
  background: #657783;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 18rem;
  background: #657783;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lock-screen {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 1.5rem 1rem;
}

.lock-screen__content {
  width: min(100%, 58rem);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  display: grid;
  gap: 0.25rem;
}

.countdown__value {
  letter-spacing: 0.08em;
}

.countdown__label {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.countdown--subtle {
  width: min(100%, 24rem);
  margin: 0 auto 1.25rem;
  color: #7d8d97;
  font-size: 0.76rem;
}

.passcode fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.passcode__fields {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  max-width: 31rem;
  margin-inline: auto;
}

.passcode__input {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1.08;
  padding: 0;
  color: #27343c;
  caret-color: #657783;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem 0.75rem rgb(34 49 58 / 10%);
  text-align: center;
  font-size: clamp(1.2rem, 5vw, 1.75rem);
  line-height: 1;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.passcode__input:focus-visible {
  border-color: #c8d2d8;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 22%);
}

.main-page {
  min-height: 100svh;
  color: #142f49;
  background: #f8f3eb;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(34rem, 70svh, 46rem);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3.5rem 1.25rem 7rem;
  text-align: center;
  color: #0b3555;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(170deg, transparent 25%, rgb(246 183 165 / 45%) 25.5%, transparent 27%),
    linear-gradient(174deg, transparent 34%, rgb(255 209 178 / 48%) 34.5%, transparent 36.5%),
    radial-gradient(ellipse at 64% 47%, #ffe5c2 0%, #f4c3b1 23%, transparent 48%),
    linear-gradient(180deg, #3d70a2 0%, #94a8cc 29%, #efb8b3 54%, #ffe0bb 72%, #d6a69b 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 56rem);
  transform: translateY(-1.25rem);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 11vw, 7.6rem);
  font-weight: 400;
  letter-spacing: clamp(0.05em, 1.4vw, 0.17em);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgb(255 255 255 / 25%);
}

.hero__subtitle {
  margin: 1.3rem 0 0;
  font-size: clamp(0.8rem, 2.1vw, 1.45rem);
  font-weight: 500;
  letter-spacing: clamp(0.18em, 1.1vw, 0.38em);
  text-transform: uppercase;
}

.hero__ornament {
  display: block;
  width: min(12rem, 45vw);
  height: 1px;
  margin: 1.5rem auto 3rem;
  background: linear-gradient(90deg, #31587a 0 42%, transparent 42% 58%, #31587a 58%);
}

.hero__ornament::after {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.25rem auto 0;
  border: 1px solid #31587a;
  content: "";
  transform: rotate(45deg);
}

.mountains {
  position: absolute;
  z-index: -2;
  inset: 33% -8% 0;
  pointer-events: none;
}

.mountain,
.forest {
  position: absolute;
  inset: auto 0 0;
}

.mountain--distant {
  height: 62%;
  background: linear-gradient(150deg, #7295bc, #4b78aa);
  clip-path: polygon(0 47%, 12% 37%, 23% 46%, 36% 24%, 49% 48%, 61% 32%, 73% 46%, 86% 31%, 100% 43%, 100% 100%, 0 100%);
  opacity: 0.82;
}

.mountain--middle {
  height: 51%;
  background: linear-gradient(155deg, #3d70a5, #174f83);
  clip-path: polygon(0 32%, 13% 19%, 24% 30%, 36% 11%, 49% 49%, 61% 33%, 74% 58%, 88% 38%, 100% 48%, 100% 100%, 0 100%);
}

.mountain--near {
  height: 36%;
  background: linear-gradient(170deg, #1e5787, #07385f);
  clip-path: polygon(0 23%, 15% 39%, 29% 20%, 43% 49%, 57% 31%, 72% 52%, 86% 33%, 100% 49%, 100% 100%, 0 100%);
}

.forest {
  height: 24%;
  background:
    linear-gradient(163deg, transparent 0 42%, #062f4f 43% 100%),
    repeating-linear-gradient(78deg, transparent 0 2.2%, #082f4c 2.4% 3.3%, transparent 3.5% 5.5%),
    #0b3a5d;
  clip-path: polygon(0 39%, 3% 25%, 5% 46%, 8% 20%, 11% 52%, 14% 31%, 17% 48%, 21% 27%, 24% 55%, 28% 35%, 32% 53%, 36% 29%, 40% 58%, 45% 38%, 49% 55%, 54% 34%, 59% 60%, 64% 39%, 69% 57%, 74% 31%, 78% 54%, 82% 24%, 86% 50%, 90% 17%, 94% 43%, 97% 22%, 100% 39%, 100% 100%, 0 100%);
}

.countdown--prominent {
  width: min(100%, 38rem);
  margin-inline: auto;
  color: #fff4df;
  text-shadow: 0 1px 1px rgb(4 37 62 / 20%);
}

.countdown--prominent .countdown__value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 5vw, 3rem);
  font-weight: 400;
}

.countdown--prominent .countdown__label {
  color: #f5e3cd;
  font-size: clamp(0.48rem, 1.3vw, 0.67rem);
}

.countdown--prominent .countdown__unit + .countdown__unit {
  border-left: 1px solid rgb(255 241 218 / 58%);
}

.main-content {
  position: relative;
  z-index: 1;
  background: #f8f3eb;
}

.main-content::before {
  position: absolute;
  inset: -2rem 0 auto;
  height: 2.1rem;
  background: #f8f3eb;
  clip-path: polygon(0 70%, 15% 55%, 33% 76%, 51% 42%, 70% 68%, 86% 48%, 100% 64%, 100% 100%, 0 100%);
  content: "";
}

.section-entrances {
  display: grid;
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
  padding-block: 3.25rem 4.5rem;
}

.section-card {
  display: block;
  padding: 2rem 1.4rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  outline-offset: 0.35rem;
}

.section-card + .section-card {
  border-top: 1px solid #d8d0c5;
}

.section-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.15rem;
  fill: none;
  stroke: #557493;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-card h2 {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-card p {
  max-width: 19rem;
  margin: 0 auto;
  color: #4b5965;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.65;
}

.section-card__link {
  display: inline-block;
  margin-top: 1.15rem;
  color: #557493;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 150ms ease, transform 150ms ease;
}

.section-card:hover .section-card__link,
.section-card:focus-visible .section-card__link {
  color: #173e5d;
  transform: translateY(0.15rem);
}

.content-section,
.registration {
  scroll-margin-top: 2rem;
}

.content-section {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
  padding-block: clamp(4.75rem, 9vw, 8rem);
  border-top: 1px solid #d8d0c5;
}

.section-heading {
  max-width: 37rem;
}

.section-heading--centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.9rem;
  color: #66809a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-heading h2,
.registration h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.section-heading > p:last-child {
  margin: 1.25rem 0 0;
  color: #55636e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about__layout {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2.75rem, 6vw, 5rem);
}

.about__lead {
  max-width: 37rem;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.5;
}

.facts {
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.7fr) 1.5fr;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid #d8d0c5;
}

.fact:last-child {
  border-bottom: 1px solid #d8d0c5;
}

.fact dt {
  color: #66809a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: #314657;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.practical-note {
  max-width: 50rem;
  margin: clamp(2.75rem, 6vw, 4.5rem) 0 0;
  padding-left: 1.25rem;
  color: #55636e;
  border-left: 2px solid #91a5b7;
  line-height: 1.75;
}

.woven-interlude {
  position: relative;
  display: grid;
  min-height: clamp(12rem, 18vw, 13.5rem);
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  overflow: hidden;
  padding: 3rem max(1.25rem, calc((100% - 70rem) / 2));
  color: #f3eadc;
  background-color: #244a65;
  isolation: isolate;
}

.woven-interlude::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 47%, rgb(226 205 178 / 8%) 48% 52%, transparent 53%) 0 0 / 2.5rem 2.5rem,
    linear-gradient(-45deg, transparent 47%, rgb(226 205 178 / 8%) 48% 52%, transparent 53%) 0 0 / 2.5rem 2.5rem;
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 37%, transparent 63%, #000);
}

.woven-interlude p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.8rem);
  font-style: italic;
  letter-spacing: 0.015em;
  text-align: center;
}

.woven-interlude__line {
  height: 1.15rem;
  background:
    linear-gradient(135deg, transparent 0 38%, #b8a58e 39% 46%, transparent 47% 53%, #b8a58e 54% 61%, transparent 62%) center / 2.4rem 100% repeat-x;
  opacity: 0.68;
}

.woven-interlude__line--reversed {
  transform: scaleX(-1);
}

.schedule-section {
  width: 100%;
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - 70rem) / 2));
  background: #eee8df;
}

.schedule {
  display: grid;
  gap: 3.25rem;
  width: min(100%, 70rem);
  margin: clamp(3.25rem, 7vw, 5.5rem) auto 0;
}

.schedule-day h3 {
  margin: 0 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
}

.schedule-day ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.schedule-day li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0 0 1.65rem 1.4rem;
  border-left: 1px solid #a9b6c1;
}

.schedule-day li::before {
  position: absolute;
  top: 0.35rem;
  left: -0.27rem;
  width: 0.45rem;
  height: 0.45rem;
  background: #eee8df;
  border: 1px solid #557493;
  border-radius: 50%;
  content: "";
}

.schedule-day li:last-child {
  padding-bottom: 0;
}

.schedule-day time {
  color: #66809a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.schedule-day li span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.5;
}

.registration {
  padding: clamp(5rem, 11vw, 9rem) 1.25rem;
  color: #f8f3eb;
  background: #173f5e;
  text-align: center;
}

.registration__inner {
  width: min(100%, 42rem);
  margin-inline: auto;
}

.registration .section-kicker {
  color: #b6c4ce;
}

.registration__inner > p:not(.section-kicker, .registration__deadline) {
  max-width: 35rem;
  margin: 1.5rem auto 0;
  color: #dde5e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

.registration__deadline {
  margin: 1.75rem 0 0;
  color: #c7d2d9;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.registration__deadline strong {
  color: inherit;
  font-weight: 600;
}

.registration button {
  min-width: 15rem;
  margin-top: 2.25rem;
  padding: 0.95rem 1.4rem;
  color: #173f5e;
  background: #f3eadc;
  border: 1px solid #f3eadc;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.registration button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.registration button span {
  font-weight: 500;
}

.site-footer {
  padding: 1.6rem 1.25rem;
  color: #aebdc7;
  background: #10344f;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

@media (min-width: 37.5rem) {
  .passcode__fields {
    grid-template-columns: repeat(12, 1fr);
    gap: 0.6rem;
    max-width: 52rem;
  }

  .passcode__input {
    aspect-ratio: 0.78 / 1;
  }

  .section-entrances {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-card {
    padding: 2rem clamp(1.5rem, 4vw, 3.5rem);
  }

  .section-card + .section-card {
    border-top: 0;
    border-left: 1px solid #d8d0c5;
  }

  .about__layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
    align-items: start;
  }

  .schedule {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

@media (max-width: 25rem) {
  .hero {
    min-height: 39rem;
    padding: 5rem 0.75rem 10rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 11.5vw, 3.1rem);
    letter-spacing: 0.06em;
  }

  .hero__subtitle {
    letter-spacing: 0.16em;
  }

  .countdown--prominent {
    width: 100%;
  }

  .countdown--prominent .countdown__value {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
