@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
  --grey: #918a87;
  --white: #fffdf9;
  --red: #ff1717;
  --yellow: #ffe100;
  --ink: #171515;
  --pad: clamp(20px, 3.6vw, 62px);
  --mono: "Share Tech Mono", "OCR A Std", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--grey);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: var(--grey);
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.055em;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.yellow {
  color: var(--yellow);
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--grey) url("/assets/reunion-bg.webp") center / cover no-repeat;
  content: "";
}

.site-shell::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(80, 77, 75, 0.05);
  content: "";
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 2.7vw, 44px) var(--pad) 0;
}

.wordmark {
  display: inline-block;
  font-size: clamp(2.7rem, 6.8vw, 6.8rem);
  line-height: 0.82;
  letter-spacing: 0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  max-width: 680px;
  font-size: clamp(0.82rem, 1.15vw, 1.08rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  opacity: 0.92;
}

.site-nav a::before {
  color: var(--red);
  content: "[";
}

.site-nav a::after {
  color: var(--red);
  content: "]";
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
  outline: none;
}

.menu-button {
  display: none;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.menu-button::before,
.menu-button::after {
  color: var(--red);
}

.menu-button::before {
  content: "[";
}

.menu-button::after {
  content: "]";
}

.event-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  color: var(--white);
  font-size: clamp(1.55rem, 4vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.event-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: clamp(8px, 1vw, 15px);
}

.event-date {
  white-space: nowrap;
}

.event-footer .location {
  font-size: clamp(1.05rem, 1.8vw, 1.95rem);
  line-height: 1.2;
  white-space: nowrap;
}

/* Home */

.home-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.home-main {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(28px, 5vh, 58px);
  width: min(1120px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  padding: clamp(28px, 6vh, 88px) 0;
  text-align: center;
}

.home-title {
  margin: 0;
  font-size: clamp(4rem, 11.5vw, 11.7rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.015em;
}

.home-kicker {
  margin: 0;
  font-size: clamp(1.25rem, 3.15vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.signup {
  width: min(780px, 100%);
}

.signup-label {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.02rem, 1.8vw, 1.5rem);
  text-transform: uppercase;
}

.signup-note {
  margin: 0 0 14px;
  color: var(--red);
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.signup input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 0;
  color: var(--white);
  background: rgba(29, 27, 26, 0.28);
  outline: none;
}

.signup input::placeholder {
  color: var(--yellow);
  opacity: 1;
}

.signup input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.signup button {
  min-width: 128px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 0;
  color: var(--white);
  background: rgba(255, 23, 23, 0.88);
  cursor: pointer;
  text-transform: uppercase;
}

.signup button:hover,
.signup button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  outline: none;
}

.signup button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.signup-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--white);
  font-size: clamp(0.8rem, 1.1vw, 0.96rem);
}

.home-footer {
  padding: 0 var(--pad) clamp(22px, 3vw, 48px);
}

/* Text pages */

.content-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
}

.content-main {
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(42px, 6vh, 86px) var(--pad);
}

.prose {
  width: min(1500px, 100%);
  margin: 0;
  font-size: clamp(1.2rem, 2.65vw, 2.85rem);
  line-height: 1.31;
  letter-spacing: 0.055em;
}

.prose p {
  margin: 0 0 0.9em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .signature {
  color: var(--yellow);
  font-size: 0.82em;
}

.lineup {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.06em 0.72em;
  width: min(1500px, 100%);
  margin: 0;
  font-size: clamp(1.05rem, 2.35vw, 2.7rem);
  line-height: 1.18;
}

.lineup dt,
.lineup dd {
  margin: 0;
}

.lineup dt {
  color: var(--red);
}

.content-footer {
  padding: 0 var(--pad) clamp(22px, 3vw, 48px);
}

/* Join */

.join-main {
  align-items: flex-start;
  justify-content: center;
}

.join-panel {
  width: min(980px, 100%);
}

.join-panel > h1,
.confirmation-panel h1 {
  margin: 0 0 0.55em;
  font-size: clamp(2.4rem, 5.6vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.join-steps {
  margin: 0;
  padding-left: 1.6em;
  font-size: clamp(1.02rem, 1.55vw, 1.42rem);
  line-height: 1.4;
}

.join-steps > li {
  margin: 0 0 1.8em;
  padding-left: 0.5em;
}

.join-steps > li::marker {
  color: var(--red);
  font-size: 1.35em;
}

.join-steps h2 {
  display: inline;
  margin: 0;
  color: var(--red);
  font-size: 1.22em;
  font-weight: 400;
  text-transform: uppercase;
}

.join-steps h2::before,
.join-steps h2::after {
  color: var(--red);
}

.join-steps h2::before {
  content: "[";
}

.join-steps h2::after {
  content: "]";
}

.join-steps p {
  margin: 0.55em 0 0.85em;
}

.venmo-button,
.join-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--red);
  color: var(--white);
  background: rgba(255, 23, 23, 0.88);
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.venmo-button span {
  margin-left: 0.65em;
  color: var(--yellow);
  text-transform: none;
}

.venmo-button:hover,
.venmo-button:focus-visible,
.join-form button:hover,
.join-form button:focus-visible {
  border-color: var(--yellow);
  color: var(--ink);
  background: var(--yellow);
  outline: none;
}

.venmo-button:hover span,
.venmo-button:focus-visible span {
  color: var(--red);
}

.join-detail {
  font-size: 0.78em;
  opacity: 0.86;
}

.join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 1em;
}

.join-form label:not(.confirmation-check) {
  margin-bottom: -4px;
  font-size: 0.78em;
  text-transform: uppercase;
}

.join-form label:nth-of-type(1) {
  grid-column: 1;
}

.join-form label:nth-of-type(2) {
  grid-column: 2;
}

.join-form input[type="email"],
.join-form input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 0;
  color: var(--white);
  background: rgba(29, 27, 26, 0.28);
  outline: none;
}

.join-form input[type="email"] {
  grid-column: 1;
}

.join-form input[type="text"] {
  grid-column: 2;
}

.join-form input::placeholder {
  color: var(--yellow);
  opacity: 0.8;
}

.join-form input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.optional {
  color: var(--red);
  font-size: 0.86em;
}

.confirmation-check {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 2px;
  cursor: pointer;
}

.confirmation-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.join-form button {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 150px;
  font: inherit;
}

.join-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.join-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: 0;
  font-size: 0.78em;
}

.confirmation-main {
  justify-content: center;
}

.confirmation-panel {
  width: min(900px, 100%);
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1.4;
}

.confirmation-panel p {
  margin: 0 0 0.8em;
}

.confirmation-panel .confirmation-mark {
  margin-bottom: 0.35em;
  font-size: 0.82em;
  text-transform: uppercase;
}

.text-link {
  display: inline-block;
  margin-top: 0.6em;
  color: var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-block;
    position: relative;
    z-index: 12;
    font-size: 0.92rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--pad);
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(73, 69, 67, 0.94);
  }

  .site-nav.is-open {
    display: flex;
  }

  .event-details {
    align-items: flex-end;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }

  .wordmark {
    font-size: 2.55rem;
  }

  .home-main {
    align-content: space-evenly;
    gap: 26px;
    padding: 24px 0 30px;
  }

  .home-title {
    font-size: clamp(3.7rem, 20vw, 6.5rem);
  }

  .home-kicker {
    max-width: 11em;
    font-size: clamp(1.12rem, 6vw, 1.8rem);
    line-height: 1.28;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .signup button {
    width: 100%;
  }

  .event-footer {
    font-size: clamp(1.48rem, 8vw, 2.7rem);
  }

  .event-footer .location {
    font-size: 1rem;
  }

  .content-main {
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .prose {
    font-size: clamp(1rem, 4.8vw, 1.38rem);
    line-height: 1.36;
  }

  .lineup {
    gap: 0.2em 0.65em;
    font-size: clamp(0.88rem, 4.15vw, 1.18rem);
    line-height: 1.25;
    letter-spacing: 0.025em;
  }

  .content-footer {
    padding-top: 12px;
  }

  .join-main {
    padding-top: 42px;
  }

  .join-panel > h1,
  .confirmation-panel h1 {
    font-size: 2.65rem;
  }

  .join-steps {
    padding-left: 1.35em;
    font-size: 1rem;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .join-form label:nth-of-type(1),
  .join-form label:nth-of-type(2),
  .join-form input[type="email"],
  .join-form input[type="text"] {
    grid-column: 1;
  }

  .join-form label:nth-of-type(2) {
    margin-top: 4px;
  }

  .venmo-button,
  .join-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a,
  .signup button,
  .venmo-button,
  .join-form button {
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
  }
}
