/* Olel Studio - olel.tv
   Plain CSS, no build step, no external requests.
   Palette (see logo README): navy #243056, coral #EE7862, gold #F0BA4E, cream #FBF3E2. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-latin.woff2") format("woff2"),
       url("fonts/Fredoka-variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #243056;
  --coral: #EE7862;
  --gold: #F0BA4E;
  --cream: #FBF3E2;
  --paper: #FFFAF0;
  --muted: #555B72;       /* 6.0:1 on cream */
  --line: #E9DCC0;
  --coral-soft: #FADBD2;
  --gold-soft: #FBE9C2;
  --radius: 20px;
  --wrap: 68rem;
  --font-head: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

/* Header */
.site-header { padding: 1.25rem 0 0.5rem; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo { display: inline-block; text-decoration: none; }
.logo svg { width: 132px; }
@media (min-width: 40rem) { .logo svg { width: 156px; } }

.nav { display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; font-size: 0.98rem; }
.nav a { text-decoration-color: transparent; padding: 0.25rem 0; }
.nav a:hover, .nav a:focus-visible { text-decoration-color: var(--coral); }

/* Hero */
.hero { padding: 1.5rem 0 2.5rem; }
.hero .wrap { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; } }
.hero .lede { font-size: 1.15rem; max-width: 34rem; }
.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(36, 48, 86, 0.45);
  border: 4px solid var(--paper);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.25rem 0.85rem 0.25rem 0.5rem;
  margin-bottom: 1rem;
}
.eyebrow img { width: 22px; height: auto; }

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 42rem; }

/* Series */
.banner {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -14px rgba(36, 48, 86, 0.45);
}

.episodes {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 36rem) { .episodes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .episodes { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
}
.section-alt .card { background: var(--cream); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 0.9rem 1.1rem 1.1rem; }
.card-body h3 { margin-bottom: 0.35rem; }
.ep-num { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.2rem; }
.words { margin: 0; font-size: 0.98rem; }
.word {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  background: var(--coral-soft);
  border-radius: 999px;
  padding: 0.05rem 0.65rem;
  margin: 0.15rem 0.1rem 0 0;
}

.watch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.button:hover { background: #313f6e; color: var(--cream); }
.button:focus-visible { outline-color: var(--coral); outline-offset: 3px; }
.button svg { width: 1.1em; height: 1.1em; }
.badge {
  font-family: var(--font-head);
  font-weight: 500;
  background: var(--gold-soft);
  border: 1px dashed #C9962E;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.95rem;
}
.note { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

/* How we make */
.points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.4rem;
  border-left: 6px solid var(--gold);
}
.points li:nth-child(3n+2) { border-left-color: var(--coral); }
.points li:nth-child(3n) { border-left-color: var(--navy); }
.points h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }

.cast {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) { .cast { grid-template-columns: repeat(3, 1fr); } }
.cast figure { margin: 0; }
.cast img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cast figcaption { font-size: 0.95rem; color: var(--muted); padding-top: 0.4rem; }

/* Parents */
.tips {
  counter-reset: tip;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 44rem) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tips li {
  counter-increment: tip;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.3rem 4rem;
}
.tips li::before {
  content: counter(tip);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--coral-soft);
  font-family: var(--font-head);
  font-weight: 600;
  display: grid;
  place-items: center;
}
.tips h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }

.age-box {
  margin-top: 1.5rem;
  background: var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 0.2rem;
}

/* Honesty / AI */
.honest {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 0.8rem;
}
.honest h2 { color: var(--cream); }
.honest a { color: var(--cream); text-decoration-color: var(--gold); }
.honest strong { color: #FFE3A3; font-weight: 600; }

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0; }
.site-footer a { color: var(--navy); }
.footer-sun { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-sun img { width: 26px; }

/* Legal pages */
.legal { padding: 1.5rem 0 3rem; }
.legal .wrap { max-width: 46rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal dl { margin: 0 0 1rem; }
.legal dt { font-weight: 700; margin-top: 0.9rem; }
.legal dd { margin: 0.1rem 0 0; }
.placeholder {
  background: #FFE3A3;
  outline: 2px dashed #B9811B;
  border-radius: 4px;
  padding: 0 0.3rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.95em;
}
.back { display: inline-block; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; }
  .nav, .skip-link { display: none; }
}
