@font-face {
  font-family: Fredoka;
  src: url("assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("assets/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --navy: #081c49;
  --blue: #0075c7;
  --yellow: #ffcd19;
  --cream: #fffbee;
  --body: #344663;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--navy);
  font:
    18px/1.6 Nunito,
    sans-serif;
  background: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.wrap {
  max-width: 1200px;
  width: calc(100% - 96px);
  margin: auto;
}
header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo {
  height: auto;
  width: 153px;
  display: block;
}
nav {
  display: flex;
  gap: 38px;
  font-size: 16px;
  font-weight: 800;
}
.button {
  background: var(--yellow);
  border-radius: 100px;
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 0 #e6b610;
}
.button.small {
  padding: 11px 21px;
}
.button span {
  font-size: 22px;
  line-height: 1;
}
.hero {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #efe7ca;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 590px;
}
.hero-copy {
  padding: 67px 28px 44px 0;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #45607a;
  display: block;
}
h1,
h2,
h3 {
  font-family: Fredoka, sans-serif;
  font-weight: 600;
  line-height: 1.13;
  margin: 0;
  color: var(--navy);
}
h1 {
  font-size: 56px;
  margin: 18px 0 21px;
  letter-spacing: -1.3px;
}
h1 em {
  font-style: normal;
  color: var(--blue);
}
h2 {
  font-size: 36px;
  margin: 9px 0 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 28px;
}
p {
  color: var(--body);
  margin: 0 0 16px;
}
.hero-copy p {
  max-width: 490px;
}
.hero-copy > p:first-of-type {
  font-weight: 800;
}
.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 29px;
}
.text-link {
  font-size: 15px;
  font-weight: 800;
}
.hero-note {
  margin-top: 36px;
  font-size: 14px;
  color: #60705b;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-track {
  color: #8d9f83;
  letter-spacing: 1px;
}
.hero-art {
  position: relative;
  margin-right: calc((1200px - 100vw) / 2);
  min-width: 0;
  overflow: hidden;
  border-radius: 0 0 0 100px;
}
.friends {
  padding: 60px 0 43px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.section-head > p {
  font-size: 16px;
}
.showcase {
  display: grid;
  grid-template-columns: 160px 1fr 320px;
  align-items: center;
  gap: 30px;
  margin-top: 25px;
  min-height: 330px;
}
.character-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 2px solid #e8eef2;
}
.character-menu button {
  border: 0;
  background: none;
  text-align: left;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 0 30px 30px 0;
  position: relative;
}
.character-menu button.active {
  background: #e9f6ff;
  font-weight: 800;
  color: var(--blue);
}
.character-menu button.active:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.character-art {
  position: relative;
  min-width: 0;
  padding: 45px 0 20px;
  isolation: isolate;
}
.character-halo {
  position: absolute;
  inset: 5% 4% 0;
  border-radius: 50%;
  background: #edf8ff;
  z-index: -1;
}
.railway {
  height: 10px;
  border-top: 3px solid #9cabb4;
  border-bottom: 3px solid #9cabb4;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 20px,
    #baa483 20px 27px
  );
  margin: 8px 14px 0;
  transform: perspective(180px) rotateX(20deg);
}
.character-copy h3 {
  font-size: 40px;
  margin: 8px 0 12px;
}
.character-copy strong {
  font-weight: 800;
  font-size: 17px;
  display: block;
  margin-bottom: 10px;
}
.character-copy p {
  font-size: 16px;
}
.character-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}
.character-controls button {
  border: 1px solid #ccdce7;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  background: white;
  font-size: 22px;
}
.character-controls button:hover {
  background: var(--yellow);
}
.character-controls span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}
.showcase-hint {
  text-align: center;
  margin-top: 25px;
  font-size: 12px;
  color: #617188;
}
.books {
  background: #eef8fc;
  border-top: 1px solid #deedf5;
  border-bottom: 1px solid #deedf5;
  padding: 54px 0;
}
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.book-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.cover {
  width: 295px;
  aspect-ratio: 1100/1428;
  position: relative;
  overflow: hidden;
  box-shadow:
    10px 16px 25px #203d6528,
    -5px 0 0 #005a91;
  border-radius: 2px;
  transform: rotate(-3deg);
}
.cover img {
  position: absolute;
  height: 100%;
  width: 200%;
  max-width: none;
  right: 0;
  top: 0;
}
.book-copy h2 {
  margin-bottom: 24px;
}
.badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  background: #fff;
  padding: 7px 11px;
  border-radius: 7px;
  display: inline-block;
  margin-bottom: 15px;
}
.book-copy h3 {
  margin-bottom: 15px;
}
.book-copy p {
  font-size: 17px;
}
.book-features {
  display: flex;
  gap: 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
  margin: 25px 0;
}
.book-features li:before {
  content: "✓";
  color: var(--blue);
  margin-right: 6px;
}
.release {
  display: inline-block;
  padding: 8px 19px;
  background: var(--yellow);
  border-radius: 30px;
  color: var(--navy);
  font-weight: 800;
}
.contact {
  padding: 45px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 250px;
}
.contact p {
  font-size: 17px;
}
.contact-art {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-art span {
  font: 500 21px Fredoka;
  max-width: 150px;
}
footer {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 25px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer strong {
  font-size: 16px;
}
footer span {
  opacity: 0.75;
}
@media (min-width: 1296px) {
  .hero-art {
    margin-right: calc((1200px - 100vw) / 2);
  }
}
@media (max-width: 1295px) {
  .hero-art {
    margin-right: -48px;
  }
}
@media (max-width: 1050px) {
  h1 {
    font-size: 44px;
  }
  .actions {
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
  }
  .showcase {
    grid-template-columns: 140px 1fr 260px;
    gap: 20px;
  }
  .book-grid {
    gap: 40px;
  }
  .book-features {
    flex-wrap: wrap;
    gap: 10px;
  }
  header .small {
    display: none;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  header {
    height: 95px;
    gap: 10px;
  }
  .logo {
    width: 110px;
  }
  nav {
    gap: 15px;
    font-size: 12px;
  }
  nav a:first-child {
    display: none;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    padding: 40px 0 28px;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -0.5px;
  }
  h2 {
    font-size: 28px;
  }
  body {
    font-size: 17px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .actions {
    flex-direction: row;
    gap: 20px;
    align-items: center;
  }
  .button {
    padding: 12px 16px;
    gap: 12px;
    font-size: 14px;
  }
  .text-link {
    font-size: 12px;
  }
  .hero-note {
    font-size: 12px;
    margin-top: 24px;
  }
  .hero-art {
    height: 360px;
    margin: 0 -20px;
    border-radius: 0;
  }
  .friends {
    padding: 35px 0;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    font-size: 15px;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  .character-menu {
    flex-direction: row;
    overflow-x: auto;
    border: 0;
    gap: 5px;
    padding: 8px 0;
  }
  .character-menu button {
    white-space: nowrap;
    border-radius: 20px;
    font-size: 13px;
    padding: 7px 11px;
  }
  .character-menu button.active:before {
    display: none;
  }
  .character-art {
    padding: 15px 15px 5px;
  }
  .character-copy h3 {
    font-size: 28px;
  }
  .character-copy {
    padding-top: 15px;
  }
  .character-controls {
    margin-top: 15px;
  }
  .showcase-hint {
    font-size: 11px;
  }
  .books {
    padding: 35px 0;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .cover {
    width: 240px;
  }
  .book-copy h2 {
    margin-bottom: 20px;
  }
  .contact {
    padding: 35px 0;
    align-items: flex-start;
  }
  .contact-art span {
    display: none;
  }
  .contact p {
    font-size: 15px;
  }
  footer .wrap {
    flex-wrap: wrap;
    gap: 12px;
  }
  footer span {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.contact-art > img {
  height: 165px;
  width: 155px;
  object-fit: contain;
}
@media (max-width: 700px) {
  .contact-art > img {
    width: 85px;
    height: 120px;
  }
}

#character-image {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
@media (max-width: 700px) {
  #character-image {
    height: 210px;
  }
}

/* Sky, rotating sunlight and the supplied transparent friends artwork. */
.hero {
  background: linear-gradient(110deg, #f4fbff 0%, #e0f3ff 50%, #c5e8fc 100%);
  border-bottom-color: #d9edf8;
}
.hero-friends {
  margin-right: 0;
  border-radius: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 55px;
}
.sun-rays {
  position: absolute;
  width: 900px;
  aspect-ratio: 1;
  left: 50%;
  top: 46%;
  margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(
    from 0deg,
    #ffffffb8 0deg 11deg,
    #ffffff00 11deg 30deg
  );
  mask-image: radial-gradient(circle, #000 0%, #000a 38%, transparent 68%);
  animation: sun-turn 75s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.aura-glow {
  position: absolute;
  inset: 12% 0 20%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #fffef2e6,
    #ffffff70 40%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}
.friend-ensemble {
  position: relative;
  width: 100%;
  z-index: 2;
}
.banner-friend {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center 85%;
  animation: friend-rock 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px #21679a1a);
}
.ensemble-caption {
  position: absolute;
  bottom: 61px;
  font:
    500 20px Fredoka,
    sans-serif;
  color: #456780;
  z-index: 3;
}
.motion-toggle {
  position: absolute;
  bottom: 18px;
  right: 10px;
  border: 1px solid #c5dce9;
  border-radius: 20px;
  padding: 6px 12px;
  background: #ffffffc9;
  font-size: 12px;
  line-height: 1.5;
  z-index: 3;
}
.hero.motion-paused .sun-rays,
.hero.motion-paused .banner-friend {
  animation-play-state: paused;
}
@keyframes sun-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes friend-rock {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.6deg);
  }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .ensemble-caption {
    font-size: 16px;
  }
}
@media (max-width: 700px) {
  .hero-friends {
    margin: 0 -20px;
    height: auto;
    min-height: 340px;
    padding: 20px 10px 80px;
  }
  .friend-ensemble {
    width: 100%;
    max-width: 540px;
  }
  .ensemble-caption {
    bottom: 48px;
    font-size: 17px;
  }
  .motion-toggle {
    bottom: 10px;
    right: 15px;
  }
  .sun-rays {
    width: 650px;
    margin: -325px 0 0 -325px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sun-rays,
  .banner-friend {
    animation: none;
  }
  .motion-toggle {
    display: none;
  }
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
  background: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
