:root {
  color-scheme: light;
  --white: #ffffff;
  --black: #000000;
  --red: #cc0104;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--red);
  background: var(--white);
  color: var(--black);
  font: 1rem/1.55 var(--sans);
}
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.shell { width: min(69rem, calc(100% - 5rem)); margin-inline: auto; }
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  grid-template-areas: "brand signup" "intro signup" "about signup";
  grid-template-rows: auto auto 1fr;
  align-items: start;
  column-gap: clamp(2.75rem, 7vw, 6.5rem);
  row-gap: 1.5rem;
  margin-block: auto;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}
.brand { grid-area: brand; justify-self: start; }
.brand-logo { display: block; width: 10rem; height: auto; }
.intro { grid-area: intro; }
.intro h2 {
  margin: 0 0 1.2rem;
  font: 400 clamp(2.45rem, 4.4vw, 4.15rem)/1.03 var(--serif);
  letter-spacing: -.06em;
}
.intro h2 em { display: block; color: var(--red); font-weight: 400; }
.intro p { margin: 0 0 .8rem; }
.home-link {
  grid-area: back;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  color: var(--red);
  font-size: .84rem;
  font-weight: 750;
  text-underline-offset: .24em;
}

.about {
  grid-area: about;
  border-top: 1px solid var(--black);
  font-size: .91rem;
}
.about summary {
  padding-block: .8rem;
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
}
.about-copy p { margin: 0 0 .7rem; }

.panel {
  grid-area: signup;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--black);
  border-top: 3px solid var(--red);
  background: var(--white);
}
.signup-title {
  margin: 0 0 1.2rem;
  font: 400 clamp(1.85rem, 3.05vw, 2.65rem)/1.07 var(--serif);
  letter-spacing: -.045em;
}
.event-page {
  display: grid;
  grid-template-areas: "brand" "signup" "back";
  align-items: start;
  gap: 1rem;
  max-width: 30rem;
  margin-block: auto;
  padding-block: 2rem;
}
.event-page .brand { justify-self: center; }
.event-page .signup-title { text-align: center; }
form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 700; }
.optional { margin-left: .4rem; color: var(--black); font-size: .76rem; font-weight: 400; }
.field input {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid var(--black);
  border-radius: 2px;
  background: var(--white);
  color: var(--black);
  font: inherit;
}
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.05rem;
  margin-top: .2rem;
  padding: .6rem .9rem;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  font: 700 .85rem/1.35 var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .button:disabled { background: var(--white); color: var(--red); }
.button:disabled { cursor: wait; }
.button-arrow { font-size: 1.1rem; }
.form-note { margin: -.1rem 0 0; color: var(--black); font-size: .75rem; line-height: 1.5; }
.form-error { margin: 0; color: var(--red); font-size: .85rem; }
.confirmation { margin: 0; padding: 1rem; border: 1px solid var(--black); color: var(--black); }
.confirmation strong { display: block; margin-bottom: .3rem; color: var(--black); }
.site-footer {
  padding-block: 1.25rem;
  border-top: 1px solid var(--black);
  color: var(--black);
}
.site-footer small { display: block; max-width: 55rem; }

@media (max-width: 780px) {
  .shell { width: min(37rem, calc(100% - 2rem)); }
  .landing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "signup" "intro" "about";
    grid-template-rows: auto;
    margin-block: 0;
    padding-block: 1rem 2rem;
    row-gap: 1rem;
  }
  .brand { justify-self: center; }
  .brand-logo { width: clamp(7rem, 34vw, 10rem); }
  .panel { padding: 1rem; }
  .signup-title {
    margin-bottom: .85rem;
    font-size: clamp(1.6rem, 5.5vw, 2.15rem);
    text-align: center;
  }
  form { gap: .65rem; }
  .field { gap: .25rem; }
  .intro { margin-top: .65rem; }
  .intro h2 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .event-page {
    width: min(30rem, calc(100% - 2rem));
    margin-block: 0;
    padding-block: 1rem 2rem;
  }
}
