@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Nunito+Sans:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #26313d;
  --muted: #5c6b78;
  --cream: #fdf6e6;
  --white: #ffffff;
  --blue: #3f7cb8;
  --blue-dark: #2b5a8a;
  --blue-pale: #e4f0f8;
  --orange: #ea9a3e;
  --orange-dark: #c9761f;
  --yellow: #f4c64c;
  --green: #7cb88f;
  --red: #e1604a;
  --line: rgba(38, 49, 61, 0.14);
  --flat-shadow: 4px 4px 0 rgba(38, 49, 61, 0.16);
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body.mnf-home {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

body,
button {
  font: inherit;
}

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

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

a:hover {
  color: var(--blue-dark);
}

:where(a, button):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", "Nunito Sans", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.site-nav {
  width: min(1200px, calc(100vw - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.brand {
  min-width: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  line-height: 1;
}

.nav-links {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.nav-links a {
  padding: 12px 2px;
}

/* Buttons */

.nav-cta,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.nav-cta,
.button-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--flat-shadow);
}

.button-secondary {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--flat-shadow);
}

.nav-cta:hover,
.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(38, 49, 61, 0.2);
}

.nav-cta:active,
.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(38, 49, 61, 0.2);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
}

.hero-art {
  display: none;
}

.hero-inner {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 108px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 480px);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ink);
  background: var(--orange);
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-badges {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hero .hero-actions .button-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.hero .hero-actions .button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero-cover,
.book-showcase {
  margin: 0;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(38, 49, 61, 0.22);
}

.hero-cover {
  position: relative;
}

.hero-cover::before {
  content: "New Adventure";
  position: absolute;
  top: -16px;
  left: 20px;
  z-index: 2;
  padding: 8px 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-cover img,
.book-showcase img,
.world-card img {
  border-radius: 14px;
}

.hero-cover figcaption {
  margin: 14px 5px 2px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Quick paths */

.quick-paths {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding-top: 44px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.path-card {
  min-width: 0;
  min-height: 150px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--flat-shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.path-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(38, 49, 61, 0.2);
}

.path-card span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.path-card strong {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.15;
  text-wrap: balance;
}

.path-card.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.path-card.blue {
  color: #fff;
  background: var(--blue);
}

.path-card.green {
  background: var(--green);
  color: var(--ink);
}

/* Sections */

.page-section {
  scroll-margin-top: 96px;
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-inner {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.section-copy p,
.world-card p,
.activity-card p,
.grownups-note p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.peek-section {
  background: var(--cream);
  text-align: center;
}

.peek-section .section-head {
  margin-inline: auto;
  text-align: center;
}

.peek-video {
  max-width: 860px;
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--flat-shadow);
}

.peek-video video {
  display: block;
  width: 100%;
  height: auto;
}

.reviews-section {
  background: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  min-width: 0;
  margin: 0;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: var(--flat-shadow);
}

.review-card blockquote {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.review-card figcaption {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.book-section {
  background: var(--cream);
}

.book-section::before {
  content: none;
}

.book-grid,
.grownups-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.feature-list li {
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.world-section {
  background: var(--blue-pale);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.world-card,
.activity-card,
.grownups-note {
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--flat-shadow);
}

.world-card img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  object-fit: cover;
  border-radius: 0;
  border-bottom: 3px solid var(--ink);
}

.world-card h3,
.world-card p {
  margin-inline: 20px;
}

.world-card h3 {
  margin-top: 20px;
}

.world-card p {
  margin-bottom: 20px;
}

.activities-section {
  background: var(--cream);
}

.activities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 20px;
  align-items: stretch;
}

.rule-machine,
.activity-card {
  padding: clamp(26px, 4vw, 42px);
  border-radius: 20px;
}

.rule-machine {
  display: grid;
  align-content: space-between;
  min-height: 400px;
  color: #fff;
  background: var(--orange);
  border: 3px solid var(--ink);
  box-shadow: var(--flat-shadow);
}

.rule-machine .eyebrow {
  background: var(--yellow);
}

.rule-machine h2 {
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
}

.activity-stack {
  display: grid;
  gap: 18px;
}

.activity-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grownups-section {
  background: var(--white);
}

.grownups-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: start;
}

.grownups-note {
  padding: 28px;
  background: var(--yellow);
}

.grownups-note h3 {
  font-family: "Baloo 2", sans-serif;
}

/* Footer */

.site-footer {
  padding: 28px 20px;
  color: #fff;
  background: var(--ink);
}

.footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner a:hover {
  color: #fff;
}

/* Reveal-on-scroll (kept subtle) */

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner,
  .quick-paths,
  .book-grid,
  .world-grid,
  .reviews-grid,
  .activities-layout,
  .grownups-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-block: 40px;
  }

  .hero-cover {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .quick-paths {
    padding-top: 32px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    width: min(100% - 22px, 620px);
    min-height: 68px;
  }

  .brand {
    font-size: 1.06rem;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }

  .nav-cta {
    min-height: 46px;
    padding-inline: 14px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-height: 54px;
    font-size: 1rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
