@font-face {
  font-family: Comfortaa;
  src: url("/assets/comfortaa-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  src: url("/assets/montserrat-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: only light;
  font: 600 100%/1.5 Montserrat, "Avenir Next", Avenir, sans-serif;
  letter-spacing: .01em;
  --navy: #022866;
  --blue: #3263c9;
  --yellow: #faca2b;
  --pink: #ffa0b2;
  --paper: #ffffff;
  --edge: #d7e6f8;
  --heading: Comfortaa, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  color: var(--navy);
  background-color: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background-color: #fff; }
.cheerspace-page {
  min-height: 100vh;
  background-color: #fff;
  color: #022866;
  color-scheme: only light;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.wrap { width: min(1140px, calc(100% - 80px)); margin-inline: auto; }

.site-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 25px;
  min-height: 81px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font: 700 1.65rem/1.15 var(--heading);
  letter-spacing: .015em;
}
.wordmark img { width: 42px; height: 42px; }
.pals-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
}
.pals-link span { color: var(--blue); font-size: 1.28rem; line-height: 1; }
.pals-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 28px;
  box-shadow: 0 5px 0 #edf4ff;
  background: var(--paper);
}
.hero-copy {
  position: relative;
  padding: clamp(31px, 4.25vw, 63px) clamp(27px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hello {
  color: var(--navy);
  background: var(--yellow);
  border-radius: 100vmax;
  padding: 6px 12px;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .035em;
  margin-bottom: 16px;
}
.hello span { margin-right: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--heading); letter-spacing: .01em; }
h1 {
  font-size: clamp(2.65rem, 5.15vw, 4.85rem);
  line-height: 1.12;
  font-weight: 700;
}
h1 em { color: var(--blue); font: inherit; white-space: nowrap; }
.hero-copy p {
  font-size: 1.025rem;
  line-height: 1.55;
  max-width: 21em;
  margin-top: 20px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 10px 19px;
  border: 1px solid var(--navy);
  border-radius: 100vmax;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, transform .18s;
}
.primary span { font-size: 1.3rem; line-height: 1; color: var(--pink); }
.primary:hover { background: #173f84; transform: translateY(-2px); }
.primary:active { transform: translateY(1px); }
.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #f3d1ca;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 60%;
}

.notes {
  padding-block: 43px 38px;
  scroll-margin-top: 12px;
  background-color: #fff;
  color: #022866;
}
.notes:focus { outline: none; }
.notes-heading { position: relative; width: fit-content; margin: 0 auto 20px; text-align: center; }
.notes h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  line-height: 1.24;
  text-wrap: balance;
}
.title-decoration { position: absolute; top: -8px; right: -27px; color: var(--blue); font-size: 1.4rem; }
.note-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.note-choice {
  --tile: #fff0ad;
  --tile-edge: #e5bd39;
  background: var(--tile);
  border: 1px solid var(--tile-edge);
  border-radius: 17px;
  color: var(--navy);
  box-shadow: 0 3px 0 var(--tile-edge);
  text-align: left;
  padding: 16px 16px 16px 60px;
  min-height: 80px;
  position: relative;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.note-choice:hover { transform: translateY(-4px); box-shadow: 0 7px 0 var(--tile-edge); }
.note-choice:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tile-edge); }
.note-choice:focus-visible { outline-color: var(--navy); }
.hug { --tile: #ffcfda; --tile-edge: #eb92a7; }
.pep { --tile: #d6ecff; --tile-edge: #8fc6f5; }
.surprise { --tile: #ffddcd; --tile-edge: #f4a68b; }
.note-label { display: block; font: 700 1.115rem/1.28 var(--heading); letter-spacing: .015em; }
.note-detail { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.35; }
.note-icon {
  position: absolute;
  display: grid;
  place-items: center;
  top: 50%;
  left: 17px;
  width: 31px;
  height: 31px;
  transform: translateY(-50%);
  color: var(--navy);
  font: 2rem/1 Georgia, serif;
}
.icon-face { position: relative; border: 2px solid currentColor; border-radius: 50%; width: 27px; height: 27px; }
.icon-face::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 currentColor;
}
.icon-face i {
  position: absolute;
  top: 12px;
  left: 6px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 50% 50%;
}
.surprise-icon sup { position: absolute; font-size: .85rem; top: -1px; right: -3px; }
.no-script { text-align: center; margin-top: 20px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 22px;
  padding-block: 8px 20px;
  border-top: 1px solid var(--edge);
  color: var(--navy);
  font-size: .875rem;
}
.site-footer p, .site-footer nav, .site-footer a { display: flex; align-items: center; gap: 7px; min-height: 44px; }
.site-footer p span { color: var(--blue); }
.site-footer nav { gap: 19px; }
.site-footer a { font-weight: 700; text-decoration: none; }

.letter-dialog {
  --letter-tint: #ffcfda;
  --letter-line: #eb92a7;
  color: var(--navy);
  width: min(500px, calc(100% - 36px));
  padding: 0;
  max-height: calc(100% - 36px);
  border: 1px solid var(--navy);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 7px 0 #02286655, 0 18px 55px #02286638;
}
.letter-dialog[data-mood="smile"] { --letter-tint: #fff0ad; --letter-line: #e5bd39; }
.letter-dialog[data-mood="pep"] { --letter-tint: #d6ecff; --letter-line: #8fc6f5; }
.letter-dialog[data-mood="surprise"] { --letter-tint: #ffddcd; --letter-line: #f4a68b; }
.letter-dialog::backdrop { background: #02286688; }
.letter-dialog[open] { animation: open-letter .25s ease-out both; }
@keyframes open-letter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.letter-paper {
  position: relative;
  margin: 10px;
  padding: 32px 20px 30px;
  border: 1px dashed var(--letter-line);
  border-radius: 16px;
  text-align: center;
}
.letter-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}
.letter-close:hover { background: var(--letter-tint); }
.letter-seal {
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  width: 59px;
  height: 59px;
  transform: rotate(-8deg);
  border: 1px solid var(--letter-line);
  border-radius: 18px;
  background: var(--letter-tint);
  box-shadow: 0 3px 0 var(--letter-line);
  font-size: 1.6rem;
  color: var(--navy);
}
.letter-content h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.65rem);
  line-height: 1.2;
  text-wrap: balance;
}
#letter-message {
  margin: 13px auto 0;
  max-width: 30ch;
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
#letter-from {
  margin-top: 13px;
  color: var(--blue);
  font-size: 1.05rem;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: .015em;
}
.another { margin-top: 24px; }
.letter-content.flip { animation: fresh-note .27s ease-out; }
@keyframes fresh-note {
  from { transform: translateY(4px); opacity: .62; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero-copy { padding-inline: 30px; }
  h1 { font-size: clamp(2.6rem, 5.9vw, 4.1rem); }
  .note-choice { padding-left: 48px; }
  .note-icon { left: 11px; }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .site-bar { min-height: 61px; gap: 8px; }
  .wordmark { font-size: 1.35rem; gap: 5px; }
  .wordmark img { width: 34px; height: 34px; }
  .pals-link { font-size: .83rem; gap: 5px; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: 23px; }
  .hero-photo { grid-row: 1; min-height: 0; aspect-ratio: 1.8; }
  .hero-photo img { object-position: 30% 82%; }
  .hero-copy { align-items: center; text-align: center; padding: 20px 14px 22px; }
  .hello { margin-bottom: 10px; }
  h1 { font-size: clamp(2.38rem, 8.25vw, 4rem); }
  .desktop-break { display: none; }
  .hero-copy p { margin-top: 12px; max-width: 26ch; font-size: 1rem; line-height: 1.42; }
  .notes { padding-block: 30px 29px; }
  .notes-heading { margin-bottom: 16px; padding-inline: 10px; }
  .title-decoration { display: none; }
  .note-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .note-choice { min-height: 68px; padding-block: 12px; padding-right: 7px; }
  .note-label { font-size: 1.025rem; }
  .note-detail { font-size: .875rem; }
  .site-footer { padding-block: 3px 13px; }
}

@media (max-width: 355px) {
  .wrap { width: calc(100% - 22px); }
  .hero-photo { aspect-ratio: 1.62; }
  .note-choice { padding-left: 37px; }
  .note-icon { left: 5px; transform: translateY(-50%) scale(.8); }
  .note-detail { font-size: .81rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
