@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/fonts/nunito-400.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("assets/fonts/nunito-700.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("assets/fonts/nunito-800.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("assets/fonts/nunito-900.ttf") format("truetype");
}

@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("assets/fonts/patrick-hand-400.ttf") format("truetype");
}

:root {
  --ink: #082b52;
  --body: #151927;
  --paper: #fffaf2;
  --paper-strong: #ffffff;
  --blue-soft: #eaf6ff;
  --pink: #ff5d72;
  --red: #ef4c61;
  --yellow: #f5c94a;
  --green: #65af55;
  --sky: #54a6d8;
  --orange: #f28d4b;
  --shadow: 0 18px 45px rgba(8, 43, 82, 0.14);
  --font-body: "Nunito", "Trebuchet MS", Arial, sans-serif;
  --font-display: "Patrick Hand", "Comic Sans MS", "Bradley Hand", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background:
    radial-gradient(circle at top left, rgba(245, 201, 74, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(84, 166, 216, 0.13), transparent 30rem),
    var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(8, 43, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 43, 82, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 242, 0.9);
  border-bottom: 1px solid rgba(8, 43, 82, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 22px rgba(8, 43, 82, 0.05);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.brand-name,
h1,
.section-heading h2,
.step-card h3,
.about h2,
blockquote {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.brand-name {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.brand-classroom {
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.7vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-classroom span:nth-child(1),
.rainbow-word span:nth-child(1),
.brand-classroom span:nth-child(6),
.rainbow-word span:nth-child(6) {
  color: var(--pink);
}

.brand-classroom span:nth-child(2),
.rainbow-word span:nth-child(2),
.brand-classroom span:nth-child(7),
.rainbow-word span:nth-child(7) {
  color: #248bd1;
}

.brand-classroom span:nth-child(3),
.rainbow-word span:nth-child(3) {
  color: var(--green);
}

.brand-classroom span:nth-child(4),
.rainbow-word span:nth-child(4),
.brand-classroom span:nth-child(5),
.rainbow-word span:nth-child(5) {
  color: var(--yellow);
}

.brand-classroom span:nth-child(8),
.rainbow-word span:nth-child(8) {
  color: #70bdd1;
}

.brand-classroom span:nth-child(9),
.rainbow-word span:nth-child(9) {
  color: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.25rem);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 10%;
  bottom: -0.45rem;
  left: 10%;
  height: 2px;
  content: "";
  background: var(--pink);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--red));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(239, 76, 97, 0.23);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(239, 76, 97, 0.28);
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 1.25rem clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.heart-mark {
  margin: 0;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
}

h1 {
  display: grid;
  gap: 0.2rem;
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.8rem, 12vw, 7.2rem);
  line-height: 0.94;
}

.rainbow-word {
  font-family: var(--font-body);
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.scribble {
  width: min(290px, 58vw);
  height: 10px;
  margin: 2rem 0 1.35rem;
  border-top: 4px solid rgba(84, 166, 216, 0.9);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.hero-kicker {
  max-width: 640px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
}

.hero-kicker span {
  display: block;
}

.hero-copy {
  max-width: 610px;
  margin: 1.4rem 0 2.3rem;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.primary-cta {
  min-width: min(100%, 320px);
  font-size: 1rem;
}

.campaign-message {
  position: relative;
  display: grid;
  gap: 0.45rem;
  width: min(100%, 520px);
  max-width: 520px;
  margin-top: 0.25rem;
  padding: 1.7rem 1.5rem 1.35rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 38%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(8, 43, 82, 0.06) 32px),
    #fff0a3;
  border: 2px solid rgba(245, 201, 74, 0.92);
  border-radius: 6px;
  box-shadow: 0 22px 34px rgba(8, 43, 82, 0.16), 0 2px 0 rgba(255, 255, 255, 0.72) inset;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.45;
  text-align: center;
  transform: rotate(-1deg);
}

.campaign-message::before {
  content: "";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 116px;
  height: 30px;
  background: rgba(84, 166, 216, 0.46);
  border: 1px solid rgba(84, 166, 216, 0.34);
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(8, 43, 82, 0.1);
  transform: translateX(-50%) rotate(2deg);
}

.campaign-message::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 14px;
  height: 14px;
  background: var(--pink);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 4px 9px rgba(239, 76, 97, 0.28);
}

.campaign-message strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.campaign-message p {
  max-width: 440px;
  margin: 0;
  justify-self: center;
  font-weight: 800;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 43, 82, 0.58);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-height: min(94vh, 700px);
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.45rem);
  background: var(--paper-strong);
  border: 3px solid rgba(8, 43, 82, 0.09);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(8, 43, 82, 0.32);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--blue-soft);
  border: 0;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.modal-panel h2 {
  margin: 0 2.5rem 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.45rem);
  line-height: 1.05;
  text-align: center;
}

.modal-panel p {
  margin: 0 0 0.9rem;
}

.modal-panel form {
  display: grid;
  gap: 0.48rem;
  text-align: left;
}

.modal-panel form[hidden] {
  display: none;
}

.modal-panel label {
  color: var(--ink);
  font-weight: 900;
}

.modal-panel input,
.modal-panel textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  color: var(--body);
  background: #fffdf8;
  border: 2px solid rgba(8, 43, 82, 0.18);
  border-radius: 8px;
  outline: none;
}

.modal-panel textarea {
  resize: vertical;
  min-height: 92px;
}

.modal-panel input:focus,
.modal-panel textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(84, 166, 216, 0.16);
}

.modal-panel .field-note {
  margin: -0.2rem 0 0.25rem;
  color: rgba(8, 43, 82, 0.76);
  font-size: 0.88rem;
  line-height: 1.35;
}

.form-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.form-success[hidden] {
  display: none;
}

.form-success {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 1.25rem 0 0.35rem;
}

.success-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(101, 175, 85, 0.24);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
}

.form-success h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
}

.form-success p {
  max-width: 390px;
  margin: 0;
  font-size: 1.08rem;
}

.steps {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.62);
  border-top: 1px dashed rgba(8, 43, 82, 0.16);
  border-bottom: 1px dashed rgba(8, 43, 82, 0.16);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: var(--green);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.section-heading span {
  color: var(--green);
  font-size: 2.5rem;
  font-weight: 900;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 920px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 260px;
  padding: 0.4rem;
  text-align: center;
}

.step-card:not(:last-child)::after {
  position: absolute;
  top: 48px;
  right: -22%;
  width: 44%;
  color: var(--sky);
  content: "---->";
  font-weight: 900;
  letter-spacing: 0.15em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  margin-bottom: 0.85rem;
  color: var(--ink);
  background: #fff;
  border: 4px solid currentColor;
  border-radius: 18px;
  box-shadow: 8px 8px 0 rgba(245, 201, 74, 0.35);
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}

.step-card:nth-child(2) .step-icon {
  color: var(--pink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(101, 175, 85, 0.28);
}

.step-card:nth-child(3) .step-icon {
  color: #d9972b;
  box-shadow: 8px 8px 0 rgba(84, 166, 216, 0.25);
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #b9dc9f;
  border-radius: 999px;
  font-weight: 900;
}

.step-card h3 {
  margin: 0.7rem 0 0.35rem;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1.15;
}

.step-card p {
  max-width: 220px;
  margin: 0;
  font-size: 0.98rem;
}

.wish-lists {
  display: grid;
  gap: clamp(2rem, 5vw, 3.25rem);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 7vw, 7rem);
  background: var(--paper-strong);
  text-align: center;
}

.wish-list-copy {
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-list-copy h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

.wish-list-copy p:last-child {
  max-width: 570px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.list-picker {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.secondary-cta,
.picked-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(8, 43, 82, 0.16);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.secondary-cta:hover,
.secondary-cta:focus-visible,
.picked-link:hover,
.picked-link:focus-visible {
  box-shadow: 0 16px 28px rgba(8, 43, 82, 0.22);
  transform: translateY(-2px);
}

.picked-list[hidden] {
  display: none;
}

.picked-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem;
  background: var(--blue-soft);
  border: 2px dashed rgba(8, 43, 82, 0.18);
  border-radius: 8px;
}

.picked-list p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.picked-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.picked-link {
  min-height: 40px;
  background: var(--green);
  font-size: 0.78rem;
}

.wish-list-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.wish-list-card {
  display: grid;
  align-content: center;
  min-height: 132px;
  padding: 1.1rem;
  color: var(--ink);
  background: var(--blue-soft);
  border: 2px dashed rgba(8, 43, 82, 0.18);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.wish-list-card:nth-child(6n + 2) {
  background: #fff4c8;
}

.wish-list-card:nth-child(6n + 3) {
  background: #eaf6e4;
}

.wish-list-card:nth-child(6n + 4) {
  background: #ffe8d6;
}

.wish-list-card:nth-child(6n + 5) {
  background: #e4efff;
}

.wish-list-card:nth-child(6n) {
  background: #f0e8ff;
}

.wish-list-card:hover,
.wish-list-card:focus-visible,
.wish-list-card.is-picked {
  border-color: var(--pink);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.wish-list-card.is-picked {
  outline: 4px solid rgba(255, 93, 114, 0.22);
  outline-offset: 3px;
}

.wish-list-card span {
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wish-list-card strong {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.45vw, 1.35rem);
  line-height: 1.1;
}

.wish-list-card em {
  display: inline-flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-size: clamp(0.72rem, 0.9vw, 0.82rem);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.1fr) minmax(240px, 0.9fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 7vw, 7rem);
  background: linear-gradient(90deg, rgba(234, 246, 255, 0.95), rgba(255, 255, 255, 0.68));
}

.photo-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 290px);
  padding: 0.65rem;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.photo-wrap::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 96px;
  height: 28px;
  content: "";
  background: rgba(245, 201, 74, 0.9);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 3px 8px rgba(8, 43, 82, 0.08);
}

.photo-wrap::after {
  position: absolute;
  bottom: -18px;
  left: -14px;
  color: var(--pink);
  content: "♡";
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.photo-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-copy h2 {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  border-bottom: 4px solid var(--pink);
}

.about-copy p {
  max-width: 560px;
  margin: 0;
}

blockquote {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.35;
}

blockquote::before {
  display: block;
  color: #1683c4;
  content: "“";
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.5;
}

blockquote p {
  margin: 0;
}

.site-footer {
  padding: 1.25rem;
  color: rgba(8, 43, 82, 0.72);
  background: #fff;
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
  }

  .nav {
    width: 100%;
    justify-content: center;
  }

  .step-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .step-card:not(:last-child)::after {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wish-lists {
    text-align: center;
  }

  .wish-list-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wish-list-copy p:last-child {
    margin-right: auto;
    margin-left: auto;
  }

  .about-copy p,
  blockquote {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    min-height: 0;
    padding: 0.8rem 0.85rem;
  }

  .nav {
    display: flex;
    gap: 0.45rem 0.85rem;
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .hero {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .rainbow-word {
    font-size: 0.52em;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wish-list-links {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .photo-wrap {
    width: min(82vw, 280px);
  }
}
