:root {
  color: #171717;
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171717;
  --paper: #ffffff;
  --butter: #ffdf73;
  --coral: #ef9baf;
  --sky: #91c6d2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: clip;
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  padding: 24px clamp(24px, 5vw, 72px) 0;
}

.wordmark {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
  text-decoration: none;
}

main {
  width: 100%;
}

.home-view,
.invite-view {
  width: min(100%, 1280px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 112px) clamp(24px, 5vw, 72px) 72px;
}

.home-view {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 9.2vw, 8.75rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.intro {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.35;
}

.availability {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.app-mark,
.invite-mark {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  transform: rotate(2deg);
}

.facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  padding-top: clamp(56px, 10vh, 120px);
  border-bottom: 4px solid var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 800;
}

.facts p {
  margin-bottom: 14px;
}

.privacy-copy {
  grid-column: 1 / -1;
  max-width: 700px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
}

.invite-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
  grid-template-areas:
    "copy mark"
    "action action"
    "privacy privacy";
  column-gap: clamp(32px, 8vw, 112px);
  align-content: center;
}

.invite-copy {
  grid-area: copy;
}

.invite-view h1 {
  max-width: 780px;
  font-size: clamp(3.3rem, 8vw, 7.7rem);
}

.invite-mark {
  grid-area: mark;
  align-self: center;
}

.invite-action,
.invite-error {
  grid-area: action;
  margin-top: clamp(48px, 7vh, 80px);
}

.open-button {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  background: var(--coral);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, background-color 120ms ease;
}

.open-button:hover {
  background: var(--butter);
}

.open-button:active {
  transform: translateY(4px);
}

.open-button:focus-visible,
.wordmark:focus-visible {
  outline: 4px solid var(--sky);
  outline-offset: 4px;
}

.help-text,
.privacy-note,
.invite-error p {
  font-size: 1rem;
  line-height: 1.5;
}

.help-text {
  max-width: 620px;
  margin: 16px 0 0;
}

.invite-error {
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--butter);
}

.invite-error h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.invite-error p {
  margin-bottom: 0;
}

.privacy-note {
  grid-area: privacy;
  max-width: 680px;
  margin: 36px 0 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

footer {
  padding: 22px clamp(24px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
}

footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  .home-view,
  .invite-view {
    min-height: auto;
    padding-top: 64px;
  }

  .home-view {
    grid-template-columns: 1fr;
  }

  .app-mark {
    width: min(52vw, 220px);
    margin: 64px 0 0 auto;
  }

  .facts {
    display: block;
    padding-top: 72px;
  }

  .invite-view {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "mark"
      "action"
      "privacy";
  }

  .invite-mark {
    width: min(44vw, 176px);
    margin: 48px 0 0 auto;
  }

  .invite-action,
  .invite-error {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
