@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/onest-400.ttf") format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/onest-500.ttf") format("truetype");
}

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

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

:root {
  --dark-blue: #15273f;
  --dark-blue-light: #5b6778;
  --dark-blue-lighter: #d0d3d8;
  --yellow: #feed54;
  --soft-gray: rgba(0, 0, 0, 0.05);
  --white: #ffffff;
  --mobile-gutter: clamp(18px, 6.15vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--white);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--dark-blue);
  font-family: "Onest", Arial, sans-serif;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
  color: currentColor;
  overflow: visible;
}

.fun-word {
  display: block;
  width: min(124px, 36vw);
  height: auto;
  aspect-ratio: 124 / 39;
  flex: 0 0 auto;
  color: var(--white);
  fill: currentColor;
}

h1,
h2,
p {
  margin: 0;
}

.page-shell {
  width: min(100%, 100vw);
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 100vw);
  min-height: 61px;
  padding: 16px var(--mobile-gutter);
  background: var(--white);
}

.topbar__logo {
  display: block;
  width: min(119px, 35vw);
  height: auto;
  aspect-ratio: 119 / 29;
}

.topbar__logo img,
.hero__logo,
.footer__logo {
  width: 100%;
  height: 100%;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-row a {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.social-row--dark {
  color: var(--dark-blue);
}

.social-row--dark a,
.social-row--dark .icon {
  width: 18px;
  height: 18px;
}

.social-row--hero {
  color: var(--white);
}

.social-row--hero a,
.social-row--hero .icon {
  width: 20px;
  height: 20px;
}

.social-row--footer {
  width: auto;
  color: var(--white);
}

.social-row--footer a,
.social-row--footer .icon {
  width: 24px;
  height: 24px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  width: min(100%, 100vw);
  min-height: clamp(600px, 168vw, 656px);
  height: auto;
  padding: clamp(64px, 21vw, 82px) var(--mobile-gutter);
  color: var(--white);
  text-align: center;
}

.hero__bg,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  object-fit: cover;
}

.hero__shade {
  background: rgba(0, 0, 0, 0.68);
}

.hero > *:not(.hero__bg):not(.hero__shade) {
  position: relative;
  z-index: 1;
}

.hero__logo {
  flex: 0 0 auto;
  width: min(188px, 60vw);
  height: auto;
  aspect-ratio: 188 / 46;
}

.hero__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  padding: 24px 0;
}

.hero__title-block {
  width: 100%;
}

.hero__intro {
  max-width: 100%;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
  padding: 4px 0;
}

.hero__tagline span {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
}

.hero__description {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.hero__description strong {
  font-weight: 600;
}

.cta-stack {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  height: auto;
  max-width: 100%;
  padding: 10px clamp(18px, 6vw, 24px);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transform-origin: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button span {
  min-width: 0;
}

.button--yellow {
  gap: 10px;
  color: var(--dark-blue);
  font-weight: 600;
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.button--outline {
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  background: transparent;
  border-color: var(--white);
}

.button--dark {
  width: 100%;
  gap: 8px;
  color: var(--white);
  font-weight: 500;
  background: var(--dark-blue);
  border-color: var(--dark-blue);
}

@media (hover: hover) and (pointer: fine) {
  .button--yellow:hover,
  .button--dark:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 2px 5px rgba(0, 0, 0, 0.12);
  }

  .button--outline:hover {
    color: var(--dark-blue);
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.02);
  }
}

.button:active {
  transform: scale(0.98);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.button--youtube {
  width: min(278px, 100%);
  gap: 6px;
  font-weight: 500;
  order: 3;
}

.button__icon,
.button__bolt {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.button__bolt {
  color: var(--dark-blue);
}

.community {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  width: min(100%, 100vw);
  min-height: clamp(560px, 159vw, 622px);
  height: auto;
  padding: clamp(48px, 16vw, 64px) var(--mobile-gutter);
  background: var(--soft-gray);
  text-align: center;
}

.community__photo {
  position: relative;
  width: min(316px, 100%);
  height: auto;
  aspect-ratio: 316 / 188;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.community__photo img {
  position: absolute;
  top: -56.69%;
  left: -1.84%;
  width: 103.68%;
  height: 231.7%;
  max-width: none;
}

.community__content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 520px;
}

.section-copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.section-copy h2 {
  width: 100%;
  color: var(--dark-blue);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-copy p {
  width: 100%;
  color: var(--dark-blue-light);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.youtube {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  width: min(100%, 100vw);
  min-height: clamp(460px, 126vw, 493.605px);
  height: auto;
  padding: clamp(40px, 12.3vw, 48px) var(--mobile-gutter);
  background: var(--white);
  text-align: center;
}

.youtube__content {
  display: contents;
}

.youtube__copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  order: 1;
}

.youtube__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  color: var(--dark-blue);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.youtube-mark {
  width: 24px;
  height: 16px;
  color: #ff0000;
}

.youtube__copy p {
  width: 100%;
  color: var(--dark-blue-light);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.video-embed {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 342 / 190.605;
  flex: 0 0 auto;
  background: #000;
  overflow: hidden;
  order: 2;
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  width: min(100%, 100vw);
  min-height: 332px;
  height: auto;
  padding: 48px var(--mobile-gutter);
  color: var(--white);
  background: var(--dark-blue);
  text-align: center;
}

.footer__logo {
  width: min(258px, 100%);
  height: auto;
  aspect-ratio: 258 / 65;
  flex: 0 0 auto;
}

.footer__subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  height: auto;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
}

.footer__fun {
  width: 58px;
  height: auto;
  aspect-ratio: 124 / 39;
  flex: 0 0 auto;
  color: var(--white);
}

.footer__fun-word {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer__legal {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 358px;
  height: auto;
  color: var(--dark-blue-lighter);
  line-height: 1.5;
}

.footer__legal a {
  height: auto;
  font-size: 14px;
  font-weight: 500;
}

.footer__legal p {
  height: auto;
  font-size: 12px;
  font-weight: 400;
}

@media (min-width: 800px) {
  .page-shell {
    width: 100%;
    max-width: none;
  }

  .topbar {
    height: 80px;
    padding: 18px clamp(32px, 6vw, 88px);
  }

  .topbar__logo {
    width: 148px;
    height: 36px;
  }

  .social-row {
    gap: 22px;
  }

  .social-row--dark a,
  .social-row--dark .icon {
    width: 22px;
    height: 22px;
  }

  .hero {
    min-height: 700px;
    height: clamp(700px, calc(100svh - 80px), 900px);
    padding: 104px clamp(48px, 8vw, 112px);
    gap: 32px;
  }

  .hero__bg {
    object-position: center 45%;
  }

  .hero__shade {
    background: rgba(0, 0, 0, 0.6);
  }

  .hero__logo {
    width: 220px;
    height: 54px;
  }

  .hero__content {
    max-width: 860px;
    gap: 28px;
    padding: 18px 0;
  }

  .hero__intro {
    font-size: 56px;
    line-height: 1.15;
  }

  .hero__tagline {
    gap: 12px;
    padding: 6px 0;
  }

  .fun-word {
    width: 220px;
  }

  .hero__tagline span {
    font-size: 76px;
    line-height: 1.05;
  }

  .hero__description {
    max-width: 760px;
    font-size: 18px;
  }

  .cta-stack {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    max-width: 680px;
  }

  .cta-stack .button {
    min-width: 300px;
  }

  .button {
    height: 52px;
    padding: 12px 28px;
  }

  .social-row--hero a,
  .social-row--hero .icon {
    width: 24px;
    height: 24px;
  }

  .community {
    display: grid;
    grid-template-columns: minmax(320px, 540px) minmax(320px, 520px);
    gap: 72px;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 560px;
    padding: 96px clamp(48px, 8vw, 112px);
    text-align: left;
  }

  .community__photo {
    width: min(540px, 100%);
    height: 320px;
    justify-self: end;
  }

  .community__photo img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .community__content,
  .section-copy {
    align-items: flex-start;
    text-align: left;
  }

  .community__content {
    gap: 28px;
    max-width: 520px;
  }

  .section-copy h2 {
    font-size: 44px;
    line-height: 1.15;
  }

  .section-copy p {
    font-size: 18px;
  }

  .button--dark {
    width: auto;
    min-width: 300px;
  }

  .youtube {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(420px, 620px);
    gap: 72px;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 560px;
    padding: 96px clamp(48px, 8vw, 112px);
    text-align: left;
  }

  .youtube__copy {
    align-items: flex-start;
    order: initial;
  }

  .youtube__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    grid-column: 1;
    width: 100%;
  }

  .youtube__heading {
    justify-content: flex-start;
    font-size: 44px;
    line-height: 1.15;
  }

  .youtube-mark {
    width: 34px;
    height: 23px;
  }

  .youtube__copy p {
    max-width: 420px;
    font-size: 18px;
  }

  .video-embed {
    grid-column: 2;
    grid-row: 1;
    width: min(620px, 100%);
    max-width: 620px;
    height: auto;
    aspect-ratio: 342 / 190.605;
    justify-self: end;
    order: initial;
  }

  .button--youtube {
    width: auto;
    min-width: 304px;
    align-self: flex-start;
    order: 2;
  }

  .footer {
    height: auto;
    min-height: 360px;
    padding: 64px 24px;
    gap: 28px;
  }

  .footer__logo {
    width: 310px;
    height: 78px;
  }

  .footer__subscribe {
    font-size: 20px;
  }

  .social-row--footer {
    width: auto;
  }

  .social-row--footer a,
  .social-row--footer .icon {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }

  .button--yellow:hover,
  .button--dark:hover,
  .button--outline:hover,
  .button:active {
    transform: none;
  }
}
