@font-face {
  font-family: "Crunchi Inter";
  src: url("assets/fonts/crunchi_inter.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Crunchi Inter";
  src: url("assets/fonts/crunchi_inter_italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Crunchi DM Sans";
  src: url("assets/fonts/crunchi_dm_sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Crunchi DM Sans";
  src: url("assets/fonts/crunchi_dm_sans_italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-sky: #20c5f5;
  --sky-blue: #00b3fa;
  --sky-mid: #8cb4f1;
  --sky-pale: #e8f3fb;
  --ink: #2a3a44;
  --muted: #6b7b8a;
  --title-white: #f0f8ff;
  --frost: rgba(255, 255, 255, 0.85);
  --line: rgba(255, 255, 255, 0.35);
  --shadow: rgba(69, 115, 165, 0.14);
  --action-yellow: #ffd040;
  --paper: #fbfeff;
  --focus: #2a8aa8;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Crunchi Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      var(--brand-sky) 0%,
      #2abbf2 10%,
      #4a8aeb 22%,
      #6b9fee 38%,
      var(--sky-mid) 54%,
      #a8c7f3 68%,
      #c0d8f5 80%,
      #d5e7f8 92%,
      var(--sky-pale) 100%
    );
}

button,
input {
  font: inherit;
}

a {
  color: var(--ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--focus);
}

.home-shell,
.page-shell {
  display: grid;
  min-height: 100vh;
  padding: 1.75rem;
}

.home-shell {
  place-items: center;
}

.page-shell {
  align-items: center;
  justify-items: center;
}

.home-card {
  width: min(100%, 42rem);
  text-align: center;
}

.rainbow-logo {
  display: block;
  width: min(58vw, 17rem);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 1.25rem 2rem var(--shadow));
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family:
    "Crunchi Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.55rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  width: min(100%, 22.5rem);
  margin: 2.25rem auto 0;
}

.waitlist-form input {
  min-width: 0;
  height: 3.55rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--frost);
  color: var(--ink);
  padding: 0 1.1rem;
  outline: none;
  box-shadow: 0 0.5rem 1rem rgba(69, 115, 165, 0.08);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.waitlist-form input::placeholder {
  color: rgba(42, 58, 68, 0.55);
}

.waitlist-form input:focus {
  border-color: rgba(255, 255, 255, 0.75);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(255, 208, 64, 0.24),
    0 0.8rem 1.4rem rgba(69, 115, 165, 0.12);
}

.waitlist-form button {
  min-height: 3.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--action-yellow);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 18px 1.35rem;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.waitlist-form button:hover {
  background: #ffe06f;
  box-shadow: 0 0.9rem 1.8rem rgba(69, 115, 165, 0.16);
  transform: translateY(-1px);
}

.waitlist-form button:focus-visible,
.back-link:focus-visible,
.home-nav a:focus-visible {
  outline: 3px solid rgba(32, 197, 245, 0.46);
  outline-offset: 4px;
}

.home-nav {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.content-page {
  width: min(100%, 45rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--frost);
  box-shadow: 0 0.9rem 1.75rem var(--shadow);
}

.content-page--centered {
  text-align: center;
}

.content-page h1 {
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  line-height: 1;
}

.content-page p {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.22rem);
  font-weight: 500;
  line-height: 1.62;
}

.content-page--centered p {
  margin-right: auto;
  margin-left: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.content-page--centered .back-link {
  margin: 2.4rem 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 38rem) {
  .home-shell,
  .page-shell {
    padding: 1.75rem;
  }

  .rainbow-logo {
    width: min(76vw, 15rem);
    margin-bottom: 2rem;
  }

  .waitlist-form {
    margin-top: 2rem;
  }

  .waitlist-form button {
    width: 100%;
  }
}
