:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #07183d;
  color: #fff3e8;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.event {
  --side: clamp(24px, 6vw, 100px);
  min-height: 100svh;
  position: relative;
  isolation: isolate;
}

.scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #051331a6 0%, #05133142 44%, transparent 76%),
    url("/night.jpg") right bottom / cover no-repeat;
}

.layout {
  width: min(100%, 1600px);
  min-height: inherit;
  margin: 0 auto;
  padding: 0 var(--side) clamp(72px, 12vh, 132px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 385px);
  column-gap: clamp(36px, 6vw, 110px);
  align-content: start;
  align-items: center;
}

.masthead {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  border-bottom: 1px solid #ffe4a82e;
}

.event-name {
  display: inline-flex;
  gap: .64em;
  align-items: center;
  color: #fff0d6;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.event-name span {
  color: #ffce75;
  font-size: 1.24em;
  text-shadow: 0 0 14px #ffc358a8;
}

.event-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff0d6;
  font-size: .9rem;
  text-underline-offset: .28em;
  text-decoration-color: #eabe77a8;
}

.intro, .registration { margin-top: clamp(54px, 13vh, 145px); }
.eyebrow {
  margin: 0 0 17px;
  color: #ffe4aa;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.055em;
}

.title-light, .title-rest { display: block; }
.title-light {
  font-size: clamp(92px, 12.35vw, 188px);
  line-height: .80;
  color: #ffcf69;
  background: linear-gradient(175deg, #fff1bd 3%, #ffd774 47%, #f8a927 92%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
  padding: .07em .12em .13em 0;
  filter: drop-shadow(0 5px 1px #a95f22b0) drop-shadow(0 11px 22px #030e26a8);
}

.title-rest {
  font-size: clamp(52px, 6.5vw, 100px);
  line-height: .91;
  text-shadow: 0 4px 20px #021133;
}

.details {
  width: fit-content;
  margin-top: clamp(26px, 4.5vh, 44px);
  border-top: 1px solid #ffd78b79;
  padding-top: 17px;
  text-shadow: 0 2px 9px #020e2e;
}

.details time { color: #ffe3a2; font-size: clamp(1.16rem, 2.2vw, 1.62rem); font-weight: 750; }
.details time span { margin-inline: .20em; }
.details p { margin: 7px 0 0; font-size: 1.03rem; line-height: 1.42; }

.registration {
  color-scheme: light;
  position: relative;
  padding: clamp(23px, 3.3vw, 40px);
  color: #282034;
  background: radial-gradient(ellipse at 18% 0%, #fff8e9, #ffecd7);
  border: 1px solid #fdd393;
  border-radius: 27px;
  box-shadow: inset 0 0 0 4px #a86e3625, 0 18px 56px #020d2c7a, 0 0 34px #ffbb4624;
}

.registration h2 {
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 2.55vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-size: .92rem; font-weight: 650; }
input, button { width: 100%; min-height: 49px; border-radius: 11px; font: inherit; }
input {
  padding: 10px 12px;
  background: #fffaf3;
  border: 1px solid #9a7c61;
  color: #282034;
}

button {
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid #a6661e;
  background: linear-gradient(#ffd994, #ffbe5a);
  box-shadow: 0 2px 0 #9e5719;
  color: #332014;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: #ffdc9a; }
button:active { box-shadow: none; transform: translateY(2px); }
button:disabled { cursor: wait; opacity: .75; }
:focus-visible { outline: 3px solid #e7a63c; outline-offset: 3px; }
.registration :focus-visible { outline-color: #205292; }
.status { margin: 17px 0 0; font-size: 1rem; line-height: 1.45; }
.status:empty { margin: 0; }
.registration[data-state="success"] form { display: none; }
.registration[data-state="success"] .status { margin-top: 0; }

@media (max-width: 750px) {
  .event { --side: clamp(17px, 5vw, 35px); }
  .scene {
    background: linear-gradient(#07183d, #0b2555 60%, #103672);
  }
  .scene::before, .scene::after {
    content: "";
    position: absolute;
    inset-inline: 0;
  }
  .scene::before {
    top: 0;
    height: 375px;
    background:
      linear-gradient(90deg, #07183dc9, #07183d63 56%, transparent 81%),
      url("/night.jpg") right top 42px / auto 460px no-repeat;
    mask-image: linear-gradient(#000 55%, transparent);
  }
  .scene::after {
    bottom: 0;
    height: clamp(135px, 42vw, 260px);
    background: url("/night.jpg") right bottom / auto clamp(385px, 112vw, 575px) no-repeat;
    mask-image: linear-gradient(transparent, #000 26%);
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: clamp(118px, 36vw, 240px);
  }
  .masthead { min-height: 63px; }
  .intro { margin-top: 32px; }
  .eyebrow { font-size: .79rem; line-height: 1.45; margin-bottom: 12px; }
  .title-light { font-size: clamp(71px, 17vw, 122px); }
  .title-rest { font-size: clamp(44px, 10.1vw, 76px); }
  .details { margin-top: 22px; padding-top: 12px; }
  .details p { font-size: .96rem; }
  .registration { margin-top: 26px; width: min(100%, 430px); padding: 23px; }
  .registration h2 { margin-bottom: 16px; }
  form { gap: 12px; }
  input, button { min-height: 44px; }
}

@media (forced-colors: active) {
  .title-light { -webkit-text-fill-color: CanvasText; background: none; }
}
