:root {
  --ink: #1c1c1c;
  --red: #c8102e;
  --red-deep: #9b0c22;
  --white: #ffffff;
  --paper: #ffffff;
  --line: #ead6d8;
  --error: #9b0c22;
  --muted: #5c5354;
  --radius: 4px;
  --measure: 40rem;
  --page: 72rem;
  --font-serif: "Newsreader", "Iowan Old Style", Palatino, serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
legend {
  font-family: var(--font-serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 4px 0 var(--red);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--red);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.hero,
.about,
.who,
.offers,
.join,
.faq,
.register,
.close {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.brand-line {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 600;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 4.75rem);
}

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.75rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font: 600 1rem/1.25 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--red-deep);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.about {
  padding: 4.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.about h2,
.who h2,
.offers h2,
.join h2,
.faq h2,
.register-intro h2,
.close h2,
.welcome h2 {
  max-width: 16em;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.about p,
.who p,
.join p,
.close p,
.section-lead {
  max-width: 38rem;
  margin-top: 0.9rem;
}

.who,
.offers,
.join,
.faq {
  padding: 4.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 40rem;
  margin-top: 0.5rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 1rem 0;
  font-weight: 600;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--red);
}

.faq-list details p {
  max-width: 38rem;
  margin: 0 0 1rem;
}

.family {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  max-width: 46rem;
  margin: 1.5rem 0 0.4rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.family li {
  color: var(--red);
}

.offer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
  max-width: 58rem;
  margin: 2.25rem 0 0;
}

.offer-list div {
  padding-top: 0.85rem;
  border-top: 2px solid var(--red);
}

.offer-list dt {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.offer-list dd {
  margin: 0.45rem 0 0;
}

.steps {
  max-width: 38rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 1.75rem 3.25rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
}

.steps h3 {
  margin: 0;
  font-size: 1.55rem;
}

.steps p {
  margin-top: 0.4rem;
}

.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer p + p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.register {
  padding: 4rem 0 3rem;
}

.register-intro p,
.hint,
.optional,
.note {
  color: var(--muted);
}

.alumni-form,
.welcome {
  max-width: 46rem;
  margin-top: 2rem;
}

fieldset {
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 1rem;
  padding: 0;
  font-size: 1.7rem;
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label,
.choice-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.req {
  color: var(--red);
}

.optional {
  font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.3 var(--font-sans);
}

input::placeholder {
  color: #6b6162;
}

.hint,
.field-error {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.field-error {
  color: var(--error);
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: var(--error);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.45rem 0;
  font-weight: 400;
}

.check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--red);
}

.choices {
  display: grid;
  gap: 0.15rem;
}

.choices-inline {
  grid-template-columns: repeat(3, max-content);
  gap: 1.25rem;
}

.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  background: #fff1f2;
  color: var(--error);
}

.form-alert p + p {
  margin-top: 0.35rem;
}

input[name="website"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.welcome p {
  max-width: 38rem;
  margin-top: 0.85rem;
}

.note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 3px solid var(--red);
}

.close {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 840px) {
  html {
    scroll-padding-top: 8.75rem;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0.65rem 1rem 0.45rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
    background: var(--white);
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.15rem 1rem;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .hero,
  .about,
  .who,
  .offers,
  .join,
  .faq,
  .register,
  .close {
    width: min(100% - 2rem, var(--page));
  }

  .hero {
    min-height: auto;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .lede {
    font-size: 1.05rem;
  }

  .about,
  .who,
  .offers,
  .join,
  .faq {
    padding: 2.75rem 0 0.25rem;
  }

  .about h2,
  .who h2,
  .offers h2,
  .join h2,
  .faq h2,
  .register-intro h2,
  .close h2,
  .welcome h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .family {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 1.45rem;
  }

  .offer-list,
  .field-row,
  .choices-inline {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .offer-list dt,
  legend,
  .steps h3 {
    font-size: 1.35rem;
  }

  .steps li {
    padding-left: 2.6rem;
  }

  .register {
    padding: 2.75rem 0 2rem;
  }

  .close {
    padding: 2.75rem 0 3rem;
  }

  .check {
    min-height: 2.75rem;
    align-items: center;
  }

  .check input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
}

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

  .welcome.is-shown {
    animation: none;
  }
}

.welcome.is-shown {
  animation: rise 0.4s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
