/* LittleLeap Studios showcase. Fredoka is bundled (SIL Open Font License, fonts/OFL.txt): the site makes no outside requests. */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("fonts/fredoka-500.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("fonts/fredoka-700.woff2") format("woff2"); }

:root {
  --cream: #fffaf2;
  --card: #ffffff;
  --ink: #4a3426;
  --soft: #7a6555;
  --orange: #e06a2c;
  --orange-dark: #b9521c;
  --green: #5f9e3a;
  --sky: #dff1fa;
  --line: #f0e2cf;
  --link: #2a6fb0;
  --round: "Fredoka", "Chalkboard SE", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--round); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 46px); color: var(--orange); }
h2 { font-size: clamp(24px, 4.5vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--soft); }
.small { font-size: 14px; }

/* Header */
.top { background: #fff; border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { font-family: var(--round); font-weight: 600; font-size: 16px; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sky); }
.nav a[aria-current="page"] { background: var(--orange); color: #fff; }
@media (max-width: 640px) {
  .top { position: static; }
  .top .wrap { justify-content: center; }
  .nav { margin: 0; justify-content: center; }
  .nav a { padding: 6px 10px; font-size: 15px; }
}

/* Hero */
.hero { background: linear-gradient(#dff1fa, #fffaf2); padding: 40px 0 24px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.hero p.lead { font-size: 19px; }
.cast { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.cast img { height: auto; filter: drop-shadow(0 4px 3px rgba(74,52,38,.18)); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 24px; } }

/* Buttons */
.btn { display: inline-block; font-family: var(--round); font-weight: 600; font-size: 17px; text-decoration: none;
       padding: 10px 20px; border-radius: 999px; background: var(--orange); color: #fff; border: 2px solid var(--orange); }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--orange-dark); }
.btn.ghost:hover { background: #fff3ea; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* Sections and cards */
section.block { padding: 36px 0; }
section.block + section.block { border-top: 2px dashed var(--line); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; }
.card .meta { font-size: 14px; color: var(--soft); }
.card .body > .btn:last-child { margin-top: auto; align-self: flex-start; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--orange); }
.card .thumb { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sky); }
.tag { align-self: flex-start; display: inline-block; font-family: var(--round); font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--sky); color: var(--ink); }
.tag.soon { background: #fff0d6; }

/* Next episode banner */
.next { background: #fff; border: 2px solid var(--orange); border-radius: 20px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.next .when { font-family: var(--round); font-weight: 700; font-size: 22px; color: var(--orange); }

/* Shorts list */
.shorts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 0; margin: 0; list-style: none; }
.shorts a { display: block; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
.shorts a:hover { border-color: var(--orange); }

/* Album */
.album { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 24px; align-items: start; }
.album img { border-radius: 18px; }
.tracks { padding-left: 1.3em; }
@media (max-width: 640px) { .album { grid-template-columns: 1fr; } .album img { max-width: 320px; } }

/* Play tiles */
.play .thumb { aspect-ratio: 4 / 3; }

/* Footer */
footer.site { margin-top: 24px; background: #fff; border-top: 2px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--soft); }
footer.site a { color: var(--soft); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.note { background: #fff; border-left: 5px solid var(--green); border-radius: 10px; padding: 12px 16px; }
ul.ticks { padding-left: 1.2em; }
ul.ticks li { margin-bottom: .35em; }
