/* The header and hero have their own rules so the rest of the page stays intact. */
.site-header {
  height: 112px;
  padding-inline: max(56px, calc((100vw - 1440px) / 2));
  gap: 36px;
  border-bottom: 2px solid var(--ink);
}

.site-header .wordmark {
  font-size: 76px;
  letter-spacing: -5.5px;
  flex-shrink: 0;
}

.site-header .logo-letter {
  width: 47px;
  height: 39px;
  margin-left: 20px;
  margin-top: 13px;
  stroke-width: 2.3;
  transform: rotate(-14deg);
  transition: transform 180ms ease;
}

.site-header .wordmark:hover .logo-letter {
  transform: translateY(-4px) rotate(3deg);
}

.site-header .desktop-nav {
  gap: 30px;
  margin-right: 8px;
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.site-header .desktop-nav a {
  padding: 15px 0;
  white-space: nowrap;
}

.site-header .desktop-nav a::after {
  bottom: 7px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
}

.site-header .header-cta {
  min-height: 58px;
  padding: 14px 21px;
  gap: 23px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.site-header .header-cta svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.site-header .header-cta:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.site-header .header-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero .container {
  width: min(1440px, calc(100% - 112px));
}

.hero .hero-inner {
  min-height: clamp(558px, calc(100svh - 177px), 740px);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  padding-block: 48px 40px;
}

.hero .hero-copy {
  padding-top: 0;
}

.hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  font-size: clamp(74px, 7.4vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.073em;
  margin-bottom: 36px;
  isolation: isolate;
}

.hero h1 .blue-text {
  position: relative;
  white-space: nowrap;
}

.hero h1 .blue-text::after {
  content: "";
  position: absolute;
  left: 0.015em;
  right: -0.025em;
  bottom: 0.045em;
  height: 0.14em;
  border-radius: 65% 15% 55% 20%;
  background: var(--yellow);
  transform: rotate(-1.5deg);
  z-index: -1;
}

.hero .hero-copy > p {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.6;
  max-width: 610px;
}

.hero .hero-copy .hero-description {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.hero .hero-actions {
  margin-top: 32px;
  gap: 29px;
  flex-wrap: wrap;
}

.hero .hero-actions .button {
  min-height: 66px;
  padding: 15px 20px 15px 24px;
  gap: 24px;
  border-width: 2px;
  border-radius: 5px;
  background: var(--ink);
  font-family: var(--heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.035em;
  box-shadow: 4px 4px 0 var(--yellow);
}

.hero .hero-actions .button svg {
  width: 33px;
  height: 33px;
  padding: 6px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  stroke-width: 2.3;
  transition: transform 180ms ease;
}

.hero .hero-actions .button:hover {
  box-shadow: 6px 6px 0 var(--yellow);
}

.hero .hero-actions .button:hover svg {
  transform: rotate(-35deg);
}

.hero .hero-actions .button:active {
  box-shadow: 2px 2px 0 var(--yellow);
}

.hero .hero-actions .button:focus-visible {
  outline-color: var(--blue);
}

.hero .hero-actions .text-link {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.035em;
  gap: 17px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--ink);
}

.hero .hero-actions .text-link:hover {
  text-decoration: none;
  color: var(--blue);
  border-color: var(--blue);
}

.hero .hero-actions .text-link span {
  font-size: 24px;
}

.hero .hero-art {
  height: clamp(440px, 37vw, 600px);
  margin: 0 -14px 0 0;
}

.hero .mascot {
  top: 0;
  left: -1%;
  width: 105%;
  height: 100%;
  animation: none;
}

.hero .spark-one {
  width: 47px;
  height: 47px;
  left: 5%;
  top: 13%;
  fill: var(--yellow);
  stroke-width: 2;
  transform: rotate(-12deg);
}

.hero .spark-two {
  width: 29px;
  height: 29px;
  right: -1%;
  bottom: 16%;
  stroke-width: 2;
  transform: rotate(12deg);
}

.hero .hero-bottom {
  min-height: 63px;
  align-items: center;
  padding-block: 18px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.hero .hero-bottom a {
  align-items: center;
  gap: 17px;
}

.hero .hero-bottom a span {
  font-size: 23px;
  animation: scroll-nudge 2.6s ease-in-out infinite;
}

@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 1150px) {
  .site-header {
    height: 100px;
    padding-inline: 36px;
    gap: 25px;
  }

  .site-header .wordmark {
    font-size: 66px;
    letter-spacing: -4.6px;
  }

  .site-header .logo-letter {
    width: 35px;
    height: 29px;
    margin-left: 14px;
  }

  .site-header .desktop-nav {
    font-size: 16px;
    gap: 22px;
    margin-right: 0;
  }

  .site-header .header-cta {
    min-height: 52px;
    font-size: 16px;
    gap: 15px;
    padding: 12px 17px;
  }

  .hero .container {
    width: calc(100% - 72px);
  }

  .hero .hero-inner {
    min-height: 580px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    padding-block: 38px;
  }

  .hero h1 {
    font-size: 7.35vw;
    margin-bottom: 30px;
  }

  .hero .hero-copy > p {
    font-size: 16px;
  }

  .hero .hero-copy .hero-description {
    font-size: 14px !important;
  }

  .hero .hero-actions {
    gap: 23px;
  }

  .hero .hero-actions .button {
    font-size: 14px;
    min-height: 58px;
    gap: 17px;
    padding: 13px 16px;
  }

  .hero .hero-actions .button svg {
    width: 29px;
    height: 29px;
    padding: 5px;
  }

  .hero .hero-actions .text-link {
    font-size: 14px;
    gap: 10px;
  }

  .hero .hero-art {
    height: 435px;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 90px;
    padding-inline: 24px;
    gap: 20px;
  }

  .site-header .wordmark {
    font-size: 58px;
    letter-spacing: -4px;
  }

  .site-header .desktop-nav {
    display: none;
  }

  .site-header .header-cta {
    margin-left: auto;
    font-size: 15px;
    min-height: 48px;
    gap: 13px;
  }

  .site-header .header-cta svg {
    width: 21px;
    height: 21px;
  }

  .site-header .menu-toggle {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 11px;
    border: 2px solid var(--ink);
    border-radius: 5px;
    background: var(--ink);
  }

  .site-header .menu-toggle span {
    background: #fff;
    height: 2px;
    width: 22px;
  }

  .mobile-nav {
    top: 90px;
    padding: 18px 24px 25px;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 7px 0 var(--yellow);
  }

  .mobile-nav a {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.045em;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a:last-child {
    border-bottom: none;
    color: var(--blue);
  }

  .mobile-nav a:hover {
    color: var(--blue);
  }

  .hero .container {
    width: calc(100% - 48px);
  }

  .hero .hero-inner {
    min-height: 530px;
    padding-block: 36px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: 7.7vw;
    margin-bottom: 29px;
  }

  .hero .hero-copy > p {
    font-size: 14px;
  }

  .hero .hero-copy .hero-description {
    font-size: 14px !important;
  }

  .hero .hero-actions {
    margin-top: 25px;
    gap: 17px;
  }

  .hero .hero-actions .button {
    font-size: 14px;
    min-height: 53px;
    gap: 13px;
    padding: 11px 14px;
  }

  .hero .hero-actions .text-link {
    font-size: 14px;
  }

  .hero .hero-art {
    height: 350px;
  }

  .hero .spark-one {
    width: 31px;
    height: 31px;
  }

  .hero .spark-two {
    width: 23px;
    height: 23px;
  }

  .hero .hero-bottom {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 88px;
    padding-inline: 20px;
    gap: 14px;
  }

  .site-header .wordmark {
    font-size: 56px;
    letter-spacing: -4px;
  }

  .site-header .logo-letter {
    display: none;
  }

  .site-header .header-cta {
    min-height: 45px;
    font-size: 14px;
    padding: 10px 13px;
    gap: 12px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .site-header .header-cta svg {
    width: 20px;
    height: 20px;
  }

  .site-header .menu-toggle {
    width: 45px;
    height: 45px;
    padding: 9.5px;
  }

  .mobile-nav {
    top: 88px;
    padding-inline: 20px;
  }

  .hero .container {
    width: calc(100% - 40px);
  }

  .hero .hero-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-block: 41px 18px;
    gap: 14px;
  }

  .hero h1 {
    font-size: clamp(42px, 13.4vw, 78px);
    line-height: 0.99;
    letter-spacing: -0.071em;
    margin-bottom: 29px;
  }

  .hero h1 .blue-text::after {
    height: 0.16em;
    bottom: 0.025em;
  }

  .hero .hero-copy > p {
    font-size: 14px;
    line-height: 1.75;
  }

  .hero .hero-copy .hero-description {
    font-size: 14px !important;
    margin-top: 13px;
    line-height: 1.75;
  }

  .hero .hero-actions {
    margin-top: 26px;
    gap: 15px;
  }

  .hero .hero-actions .button {
    min-height: 55px;
    font-size: 14px;
    padding: 12px 13px;
    gap: 13px;
    box-shadow: 3px 3px 0 var(--yellow);
  }

  .hero .hero-actions .button svg {
    width: 28px;
    height: 28px;
  }

  .hero .hero-actions .text-link {
    font-size: 14px;
    gap: 9px;
    padding-bottom: 3px;
  }

  .hero .hero-actions .text-link span {
    font-size: 20px;
  }

  .hero .hero-art {
    height: 330px;
    max-width: 420px;
    width: 100%;
    margin: 5px auto 0;
  }

  .hero .mascot {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .hero .spark-one {
    left: 6%;
    top: 12%;
    width: 33px;
    height: 33px;
  }

  .hero .spark-two {
    right: 3%;
    bottom: 17%;
    width: 22px;
    height: 22px;
  }

  .hero .hero-bottom {
    min-height: 59px;
    font-size: 14px;
    line-height: 1.65;
    padding-block: 15px;
    gap: 25px;
  }

  .hero .hero-bottom a {
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
  }

  .hero .hero-bottom a span {
    font-size: 22px;
  }
}

@media (max-width: 370px) {
  .site-header {
    padding-inline: 16px;
    gap: 11px;
  }

  .site-header .wordmark {
    font-size: 48px;
    letter-spacing: -3.5px;
  }

  .site-header .header-cta {
    padding-inline: 11px;
    font-size: 14px;
    gap: 9px;
  }

  .hero .container {
    width: calc(100% - 32px);
  }

  .hero .hero-copy > p {
    font-size: 14px;
  }

  .hero .hero-copy .hero-description {
    font-size: 14px !important;
  }

  .hero .hero-actions {
    gap: 20px;
  }

  .hero .hero-art {
    height: 290px;
  }

  .hero .hero-bottom {
    font-size: 14px;
  }

  .hero .hero-bottom a {
    font-size: 14px;
  }
}
