/* Kidober styles. Palette hex values from the 4 Dec 2026 brand sheet. */
@font-face {
  font-family: Fredoka;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Fredoka-700.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Nunito-400.woff2") format("woff2");
}
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Nunito-700.woff2") format("woff2");
}
@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Cinzel-700.woff2") format("woff2");
}

:root {
  --dot: #FF911E;
  --bram: #3CC364;
  --fizz: #46A5FF;
  --sun: #FFD23F;
  --coral: #FF6B6B;
  --ink: #23233C;
  --sky: #EAF5FF;
  --cream: #FFF6D6;
  --temple-gold: #F2B134;
  --deep-gold: #B5751A;
  --night-brown: #2B1202;
  --card: #FFFFFF;
  --bg: var(--cream);
  --bg-alt: var(--sky);
  --link: var(--ink);
  --btn: var(--ink);
  --btn-text: #FFFFFF;
  --line: color-mix(in srgb, var(--ink) 18%, var(--cream));
  --focus: var(--ink);
  --radius: 1rem;
  --font: Nunito, ui-sans-serif, system-ui, sans-serif;
  --font-title: Fredoka, ui-rounded, system-ui, sans-serif;
  --font-ramayana: Cinzel, ui-serif, Georgia, serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.0625rem;
}
h1, h2, h3, .btn, .series-name, .vid-title, .yt-play-label {
  font-family: var(--font-title);
  font-weight: 700;
}
.tag, nav a, .btn, strong, b {
  font-weight: 700;
}
#ramayana .series-name,
#ramayana .vid-title {
  font-family: var(--font-ramayana);
  font-weight: 700;
}
#ramayana .series-name {
  border-bottom-color: var(--temple-gold);
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(68rem, calc(100% - 1.5rem)); margin-inline: auto; }

.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand .logo {
  display: block;
  height: 48px;
  width: auto;
  border: 0;
  border-radius: 0;
}
.brand .wordmark,
.site-footer .wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-footer .logo {
  display: block;
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 0.5px #FFF6D6);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

.hero {
  padding: 1.75rem 0 2.25rem;
  background:
    radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 28%),
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--fizz) 28%, transparent), transparent 26%),
    var(--bg);
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.tag { margin: 0 0 0.8rem; font-weight: 700; font-size: 1.15rem; }
.lead { margin: 0 0 1rem; max-width: 38rem; }
.hero-latest { margin: 0 auto; max-width: 18rem; }
.hero-latest .vid-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.65rem 0 0;
  font-weight: 700;
}

.banner {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  margin: 1rem 0 0;
}

section { padding: 2rem 0; }
section + section { border-top: 1px solid var(--line); }
#more { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 1.45rem; margin: 0 0 0.6rem; }
h3 { font-size: 0.98rem; line-height: 1.35; margin: 0.65rem 0 0; font-weight: 700; }
h2.vid-title, h3.vid-title, .vid-title {
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0.65rem 0 0;
  font-weight: 700;
}
.intro { margin: 0 0 1rem; max-width: 42rem; }

.series-block { margin: 1.5rem 0 0; }
.series-block h3.series-name {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0;
  border-bottom: 3px solid var(--bram);
  display: inline-block;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.55rem 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.yt-embed {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border-radius: calc(var(--radius) - 0.3rem);
  overflow: hidden;
}
.yt-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: transparent;
  color: inherit;
  display: block;
  position: relative;
}
.yt-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--btn);
  color: var(--btn-text);
  border-radius: 999px;
  padding: 0.4rem 0.75rem 0.4rem 0.55rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}
.yt-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--btn-text);
}
.yt-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-noscript { margin: 0.4rem 0 0; font-size: 0.9rem; }

.btn {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.btn:hover { filter: brightness(1.08); }

#about ul { max-width: 42rem; }
#socials ul, .plain-list { list-style: none; margin: 0; padding: 0; }
#socials li { margin: 0.3rem 0; }

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 1.5rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: var(--sun); }
.site-footer p { margin: 0.4rem 0; }
.privacy-note { max-width: 42rem; }

.oops { text-align: center; padding: 3rem 0; }


.series-link { margin: 0 0 0.75rem; font-size: 0.95rem; }
.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.6rem 1rem;
}
.playlist-list a {
  display: block;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.playlist-list a:hover { background: var(--bg-alt); text-decoration: underline; }

.prose { max-width: 42rem; padding: 2rem 0 3rem; }
.prose h1 { margin: 0 0 0.5rem; }
.prose .updated { margin: 0 0 1.25rem; }
.prose p { margin: 0 0 1rem; }

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}
.top-in nav { margin-left: auto; }
.nav-panel { position: relative; }
.nav-panel > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-panel > summary::-webkit-details-marker { display: none; }
.nav-panel > summary::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 5px 0 5px;
  border-color: var(--ink) transparent transparent transparent;
}
.nav-panel[open] > summary::after {
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent var(--ink) transparent;
}
.nav-panel > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-panel a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
}
@media (max-width: 59.99rem) {
  .top-in nav { width: 100%; margin-left: 0; }
  .nav-panel:not([open]) > ul { display: none; }
  .nav-panel[open] > ul {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0.6rem 0 0;
    padding: 0.4rem 0;
    border-top: 1px solid var(--line);
  }
  .nav-panel a { width: 100%; }
}
@media (min-width: 60rem) {
  .nav-panel > summary { display: none; }
  .nav-panel > ul { display: flex !important; }
}

.page-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem 1rem;
}
.page-links a,
#series .page-links a,
#more h2 a,
#playlists h2 a,
#about h2 a,
#socials h2 a,
#contact h2 a,
.hero-latest .intro a {
  color: var(--ink);
}
.page-links a {
  display: block;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-title);
  min-height: 44px;
}
.page-links a:hover { background: var(--bg-alt); text-decoration: underline; }
#more h2 a,
#playlists h2 a,
#about h2 a,
#socials h2 a,
#contact h2 a {
  text-decoration: none;
}
#more h2 a:hover,
#playlists h2 a:hover,
#about h2 a:hover,
#socials h2 a:hover,
#contact h2 a:hover {
  text-decoration: underline;
}

.page-latest { padding: 2rem 0 1.25rem; }
.page-latest .hero-latest { margin: 0; max-width: 18rem; }
.page-latest .series-name,
#ramayana .series-name { display: inline-block; }

h1.series-name {
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  padding: 0.2rem 0;
  border-bottom: 3px solid var(--bram);
  display: inline-block;
}
