/* Tupimoo — calm, warm, mobile-first. Self-hosted fonts, no external requests. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* brand, used sparingly */
  --orange: #FF5601;
  --orange-ink: #C2410C;   /* CTA background, white text 5.2:1 */
  --sky: #DCF1FC;          /* video band */
  --sky-ink: #0272B8;
  --yellow: #FECA03;
  --green: #81D711;
  /* neutrals */
  --cream: #FFF8EE;
  --paper: #FFFDF8;
  --ink: #2B2A3D;          /* 13:1 on cream */
  --ink-soft: #5A5868;     /* 6.4:1 on cream */
  --line: #EADFCC;
  --night: #2E2B4F;        /* footer */

  --r: 20px;
  --r-lg: 28px;
  --space: clamp(56px, 9vw, 104px);
  --head: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--orange-ink); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, dt { font-family: var(--head); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip-link:focus { top: 8px; }

/* ---------- header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 72px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand-mini img { width: 124px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink);
}
.nav a:hover, .nav a[aria-current="page"] { background: #F6EAD6; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 12px 0 var(--space); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-text { text-align: center; }
.hero-logo { width: min(82vw, 440px); margin: 0 auto; }
.tagline {
  font-family: var(--head); font-weight: 600; font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.25; margin: 18px 0 10px;
}
.lede { color: var(--ink-soft); font-size: 1.125rem; max-width: 34em; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.doodle { position: absolute; width: 64px; height: 64px; right: -10px; top: -26px; }

@media (min-width: 900px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 56px; }
  .hero-text { text-align: left; }
  .hero-logo { margin: 0; }
  .lede { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-art img { aspect-ratio: 4 / 3.4; object-position: 40% 50%; border-radius: 40px 40px 40px 120px; }
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 26px 12px 22px; border-radius: 999px;
  background: var(--orange-ink); color: #fff; font-family: var(--head); font-weight: 600; font-size: 1.125rem;
  text-decoration: none; transition: background-color .15s;
}
.btn:hover { background: #A8380A; color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 10px 24px; }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.text-link::after { content: "\2192"; margin-left: 6px; transition: transform .15s; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- sections ---------- */
.section { padding: var(--space) 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.squiggle { display: block; width: 92px; height: 12px; margin: 10px auto 16px; }
.center { text-align: center; margin: 32px 0 0; }

/* series — no boxes; image + text on the page */
.series { display: grid; gap: 44px 32px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .series { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .series { grid-template-columns: repeat(3, 1fr); } }
.serie img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); margin-bottom: 18px; }
.serie h3 { margin-bottom: 6px; }
.serie p { color: var(--ink-soft); margin: 0 0 10px; }
.badge { font-size: .9rem; font-weight: 700; color: #3E7A06; }
.badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 1px; }
.badge.soon { color: var(--ink-soft); }
.badge.soon::before { background: var(--yellow); }

/* video band with soft waves */
.band { background: var(--sky); padding-top: calc(var(--space) - 10px); }
.wave { position: absolute; left: 0; width: 100%; height: 28px; display: block; }
.band .wave { color: var(--sky); }
.band .wave-top { top: -27px; }
.band .wave-bottom { bottom: -27px; transform: none; }
.band .wave-bottom { color: var(--sky); }

.videos { display: grid; gap: 32px 24px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video-title { font-size: 1.1rem; margin: 14px 2px 2px; }
.video-sub { font-size: .95rem; color: var(--ink-soft); margin: 0 2px; }
.yt, .yt-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #c9e6f5; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt-play {
  position: absolute; left: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 253, 248, .95); transition: transform .15s;
}
.yt-play::after {
  content: ""; position: absolute; left: 20px; top: 16px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--orange-ink);
}
.yt:hover .yt-play { transform: scale(1.08); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note { text-align: center; font-size: .95rem; color: var(--ink-soft); margin: 36px auto 0; max-width: 40em; }

/* parents */
.parents { display: grid; gap: 40px; align-items: center; }
.parents-text h2 { text-align: left; }
.parents-text .squiggle { margin-left: 0; }
.parents-text .lede { margin-left: 0; }
.values { margin: 28px 0 18px; display: grid; gap: 22px; }
.values div { padding-left: 18px; border-left: 3px solid var(--line); }
.values dt { font-size: 1.15rem; margin-bottom: 2px; }
.values dd { margin: 0; color: var(--ink-soft); }
.parents-art img { border-radius: 120px 40px 40px 40px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 30% 50%; }
@media (min-width: 900px) {
  .parents { grid-template-columns: 6fr 5fr; gap: 72px; }
  .values { grid-template-columns: 1fr 1fr; gap: 26px 30px; }
}

/* follow */
.follow { padding-top: 0; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px 8px 14px;
  color: var(--ink); text-decoration: none; font-weight: 700;
  border-radius: 999px; border: 2px solid var(--line); background: var(--paper); transition: border-color .15s;
}
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.socials svg { width: 22px; height: 22px; flex: none; color: var(--ink); }
.contact { text-align: center; margin: 30px 0 0; color: var(--ink-soft); }
.contact .email { font-weight: 700; color: var(--ink); }

/* prose pages */
.page-head { padding: 28px 0 8px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.page-head p { color: var(--ink-soft); margin-top: 10px; }
.prose { padding: 20px 20px var(--space); }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .55em; }
.prose li::marker { color: var(--orange); }
.prose .box { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 18px 0; }
.m0 { margin: 0; }

/* footer */
.site-footer { position: relative; background: var(--night); color: #EDEAFB; padding: 40px 0 34px; text-align: center; margin-top: 28px; }
.site-footer .wave { color: var(--night); top: -27px; }
.site-footer a { color: #fff; text-decoration-color: var(--yellow); }
.site-footer a:hover { color: var(--yellow); }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; padding: 0; margin: 0 0 10px; }
.site-footer nav a { display: inline-block; padding: 10px 2px; }
.site-footer p { margin: 0; }
.site-footer small { font-size: .95rem; }

/* ---------- refinements after screenshot review ---------- */
.hero { padding-bottom: clamp(24px, 5vw, 56px); }
#series { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 599px) {
  .home .brand-mini { display: none; }
  .home .site-header .wrap { justify-content: center; }
  .nav a { padding: 0 10px; }
  /* keep the phone page short: 6 newest videos, the rest via "See all" */
  .videos li:nth-child(n+7) { display: none; }
}
