/* Nunito and Fredoka, Latin subsets, SIL Open Font License.
   Licenses: assets/fonts/OFL-Nunito.txt and assets/fonts/OFL-Fredoka.txt */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Final Hero Pup palette. Change these to restyle the page. */
  --color-charcoal: #24272c;
  --color-grass: #6d933d;
  --color-tan: #c1752b;
  --color-cream: #fff8ec;
  --color-white: #ffffff;
  /* BROTHERS green for dark backgrounds only. Not for text on cream. */
  --color-light-green: #8db85a;

  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* How long the end-card fade takes. When it starts is LOGO_FADE_AT_SECONDS in script.js. */
  --logo-fade-duration: 0.55s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
}

.grass-bar {
  height: 0.55rem;
  background: var(--color-grass);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 3;
  padding: 0.5rem 0.8rem;
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
}

.skip:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--color-charcoal);
  outline-offset: 3px;
}

.page {
  width: min(100% - 1.5rem, 60rem);
  margin-inline: auto;
  padding: 1rem 0 3rem;
}

.site-header {
  display: flex;
  justify-content: center;
  margin: 1.15rem 0 1.35rem;
}

/* Horizontal lockup. Never below 220px wide, never stretched. */
.brand-logo {
  display: block;
  width: min(78%, 28rem);
  min-width: 220px;
  max-width: 100%;
  height: auto;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--color-tan);
  border-radius: 1.15rem;
  background: var(--color-charcoal);
  box-shadow: 0 14px 34px rgb(36 39 44 / 16%);
}

video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.9rem;
  background: var(--color-charcoal);
}

/* Stacked Hero Pup, scaled with the frame and pinned inside it, bottom-right. */
.hero-logo {
  position: absolute;
  right: 2.4%;
  bottom: 2.75rem;
  height: 62%;
  width: auto;
  box-sizing: border-box;
  display: flex;
  padding: 0.35rem 0.4rem 0.28rem;
  border-radius: 0.75rem;
  background: var(--color-white);
  box-shadow: 0 10px 26px rgb(36 39 44 / 28%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--logo-fade-duration) ease;
}

.hero-logo.is-visible {
  opacity: 1;
}

.hero-logo picture {
  display: block;
  height: 100%;
}

.hero-logo img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
}

.sound-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.85rem;
  padding: 0.8rem 1.2rem;
  border: 3px solid var(--color-light-green);
  border-radius: 999px;
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.sound-toggle[hidden] {
  display: none;
}

.sound-icon {
  display: block;
  flex: none;
}

.sound-toggle.is-muted .sound-waves {
  display: none;
}

h1 {
  margin: 1.2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.02em;
}

.tagline {
  max-width: 28rem;
  margin: 0 auto;
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.soon-wrap {
  margin-top: 1.15rem;
  text-align: center;
}

.soon {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 1.05rem;
  border: 3px solid var(--color-grass);
  border-radius: 999px;
  background: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
}

.noscript-note {
  margin: 0.85rem 0 0;
  text-align: center;
}

@media (min-width: 48rem) {
  .page {
    padding-top: 1.4rem;
  }

  .brand-logo {
    width: min(70%, 28rem);
  }

  .hero-logo {
    bottom: max(4.5%, 2.75rem);
    padding: 0.55rem 0.6rem 0.45rem;
    border-radius: 1rem;
  }

  h1 {
    margin-top: 1.5rem;
  }
}

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