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

:root {
  --grey: #aba9b4;
  --white: #fffdf9;
  --red: #ff1717;
  --yellow: #fff000;
  --cyan: #00fff0;
  --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(--yellow);
}

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

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

.home-title .red,
.wordmark .red,
.join-panel > h1 .red {
  color: var(--red);
}

.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-light-1600.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(2rem, 3.6vw, 3.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(--yellow);
  content: "[";
}

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

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

.menu-button {
  display: inline-block;
  position: relative;
  z-index: 12;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.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;
}

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

.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.2rem, 2.1vw, 2.5rem);
  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(0.9rem, 1.2vw, 1.2rem);
  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(3.3rem, 7vw, 7.2rem);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: 0.015em;
}

.home-kicker {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 2.1rem);
  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(0.95rem, 1.1vw, 1.1rem);
  text-transform: uppercase;
}

.signup-note {
  margin: 0 0 14px;
  color: var(--yellow);
  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(--cyan);
  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(1rem, 1.35vw, 1.5rem);
  line-height: 1.31;
  letter-spacing: 0.055em;
}

.content-stack {
  width: min(1500px, 100%);
}

.content-stack .prose {
  width: 100%;
}

.page-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(24px, 4vh, 52px);
}

.previous-page-link,
.next-page-link {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  color: var(--cyan);
  font-size: clamp(0.9rem, 1.1vw, 1.08rem);
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.previous-page-link {
  justify-content: flex-start;
}

.next-page-link {
  justify-content: flex-end;
  margin-left: auto;
}

.previous-page-link span,
.next-page-link span {
  display: inline-flex;
  align-items: center;
  color: var(--yellow);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.25em;
  line-height: 1;
}

.page-heading {
  margin: 0 0 0.65em;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.flow-heading {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
}

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

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

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

.prose .signature {
  color: var(--cyan);
  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(0.95rem, 1.25vw, 1.4rem);
  line-height: 1.18;
}

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

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

.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(1.8rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.participate-intro {
  max-width: 64em;
  margin: 0 0 1.6em;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.4;
}

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

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

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

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

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

.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(--white);
  text-transform: none;
}

.venmo-options {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.venmo-web-fallback {
  color: var(--cyan);
  font-size: 0.76em;
}

.venmo-qr {
  width: min(210px, 100%);
  margin: 0.65em 0 0;
}

.venmo-qr img {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px;
  background: #fff;
}

.venmo-qr figcaption {
  margin-top: 0.55em;
  color: var(--white);
  font-size: 0.7em;
  line-height: 1.35;
}

.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);
  gap: 10px 14px;
  max-width: 620px;
  margin-top: 1em;
}

.join-form .alternate-donation {
  grid-column: 1 / -1;
  margin: 0 0 6px;
}

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

.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: 1;
}

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

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

.optional {
  color: var(--yellow);
  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;
}

.contribute-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 0.5em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contribute-links a {
  color: var(--cyan);
  text-decoration: none;
}

.contribute-links a::before,
.contribute-links a::after {
  color: var(--yellow);
}

.contribute-links a::before {
  content: "[";
}

.contribute-links a::after {
  content: "]";
}

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

.confirmation-panel {
  width: min(900px, 100%);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  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 (min-width: 641px) {
  .join-panel > h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  }
}

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

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

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

  .wordmark {
    font-size: 2.1rem;
  }

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

  .home-title {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .home-kicker {
    max-width: 11em;
    font-size: clamp(1rem, 4.8vw, 1.4rem);
    line-height: 1.28;
  }

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

  .signup button {
    width: 100%;
  }

  .event-footer {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }

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

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

  .prose {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    line-height: 1.36;
  }

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

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

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

  .join-panel > h1,
  .confirmation-panel h1,
  .flow-heading {
    font-size: 2rem;
  }

  .join-steps {
    padding-left: 2.15em;
    font-size: 0.9rem;
  }

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

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

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

  .venmo-qr {
    display: none;
  }
}

@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;
  }
}
