/* Self-hosted so the site makes no third-party font requests. Both faces are SIL OFL 1.1 (see OFL-*.txt). Latin subset only. */
@font-face { font-family: 'Andika'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/andika-400i-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/andika-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Andika'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/andika-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Grandstander'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/grandstander-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Pip Paper Toons — the logo's scene as a page: sky paper, cream paper, hill paper.
   Every colour below is sampled from assets/brand/logo-horizontal (the -deep variants are
   darkened for text contrast). */

:root {
  --sky: #BFE3F0;
  --paper: #FBF1DE;
  --card: #FFFBF0;
  --cloud: #FDFCF8;
  --sun: #FBD46A;
  --leaf: #8DC56E;
  --leaf-deep: #3B7331;
  --coral: #EE7A50;
  --coral-deep: #B3461F;
  --teal: #3FB1A2;
  --teal-deep: #1B6A60;
  --ink: #4A382A;
  --ink-soft: #6B5642;
  --lift: 0 3px 0 rgb(74 56 42 / 0.18);
  --display: "Grandstander", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: "Andika", ui-sans-serif, system-ui, sans-serif;
  --accent: var(--coral);
  --accent-deep: var(--coral-deep);
  color-scheme: light;
}
.harbour { --accent: var(--teal); --accent-deep: var(--teal-deep); }
.woodland { --accent: var(--leaf); --accent-deep: var(--leaf-deep); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; max-width: 16ch; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.quiet { font: 400 1rem var(--body); color: var(--ink-soft); letter-spacing: 0; }
.label, .ep__show {
  font: 700 0.78rem/1.2 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.skip { position: absolute; left: 16px; top: -60px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 5; }
.skip:focus { top: 12px; }

/* ---- sky ------------------------------------------------------------ */
.sky {
  position: relative;
  background: var(--sky);
  padding-bottom: 56px;
  overflow: hidden;
}
.sky__art { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: 34px; right: max(24px, 8vw);
  width: clamp(72px, 11vw, 132px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 0 rgb(214 160 40 / 0.35);
}
.cloud { position: absolute; fill: var(--cloud); filter: drop-shadow(0 3px 0 rgb(74 56 42 / 0.08)); }
.cloud--a { width: clamp(90px, 13vw, 170px); top: 86px; right: calc(max(24px, 8vw) + clamp(40px, 7vw, 96px)); }
.cloud--b { width: clamp(70px, 9vw, 120px); top: 170px; right: 3vw; opacity: 0.9; }
.bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding-block: 16px;
}
.bar__logo img { width: auto; height: 60px; }
.bar__links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.bar__links a {
  display: block; padding: 6px 14px; border-radius: 999px;
  font: 700 1rem var(--display); color: var(--ink); text-decoration: none;
  background: rgb(255 251 240 / 0.7);
}
.bar__links a:hover { background: var(--card); }
.sky__hero { position: relative; padding-top: clamp(20px, 5vw, 56px); }
.sky .lede { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 40ch; }
.crumb { margin-bottom: 0.4em; font-weight: 700; }
.crumb a { color: var(--ink); }
.meta { color: var(--ink-soft); }
.meta a { color: var(--ink); }

.tear { position: absolute; left: 0; bottom: -1px; width: 100%; height: 24px; }
.tear--paper path { fill: var(--paper); }
.tear--paper { filter: drop-shadow(0 -2px 0 rgb(74 56 42 / 0.07)); }

/* ---- home hero -------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font: 700 1.05rem/1.2 var(--display);
  text-decoration: none;
  box-shadow: var(--lift);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgb(74 56 42 / 0.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgb(74 56 42 / 0.18); }
.btn--go { background: var(--coral-deep); color: #fff; }
.btn--go:hover { color: #fff; }
.btn--quiet { background: var(--card); color: var(--ink); }
.btn--show { background: var(--accent-deep); color: #fff; }
.btn--show:hover { color: #fff; }

.pinned {
  position: relative;
  display: block;
  margin: 18px 8px 0;
  padding: 12px 12px 16px;
  background: var(--card);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-2.5deg);
  box-shadow: 0 10px 0 -4px rgb(74 56 42 / 0.12), 0 2px 0 rgb(74 56 42 / 0.1);
  transition: transform 180ms ease;
}
.pinned:hover { transform: rotate(-1deg) translateY(-3px); color: var(--ink); }
.pinned img { border-radius: 3px; }
.tape {
  position: absolute; top: -14px; left: 50%;
  width: 118px; height: 30px;
  transform: translateX(-50%) rotate(3deg);
  background: rgb(251 212 106 / 0.78);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 48%);
}
.pinned__label { display: block; margin-top: 12px; font: 700 0.78rem var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral-deep); }
.pinned__title { display: block; font: 800 1.5rem/1.15 var(--display); }

/* ---- bands -------------------------------------------------------- */
.band { padding-block: clamp(28px, 5vw, 52px) 0; }
main > :last-child { padding-bottom: clamp(48px, 8vw, 88px); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.prose { max-width: 68ch; }

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.badge {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 38px);
  background: var(--card);
  border: 6px solid var(--accent);
  border-radius: 34px;
}
.badge::before {
  content: "";
  position: absolute; inset: 7px;
  border: 2px dashed var(--accent);
  border-radius: 26px;
  pointer-events: none;
}
.badge h3 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; }
.badge h3 a { color: var(--ink); text-decoration: none; }
.badge h3 a:hover { color: var(--accent-deep); }
.badge .label { color: var(--accent-deep); }
.badge > :last-child { margin: auto 0 0; }

.cast { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 4px; }
.cast strong { font-family: var(--display); font-weight: 700; }
.promise {
  margin: 0;
  padding: 22px 24px;
  background: var(--card);
  border-left: 8px solid var(--accent);
  border-radius: 6px 22px 22px 6px;
  font: 700 1.25rem/1.35 var(--display);
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 14px; border-radius: 999px; background: var(--card); border: 2px dashed var(--accent); font-weight: 700; }

/* ---- episode cards ------------------------------------------------ */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 24px;
}
.ep { display: block; color: var(--ink); text-decoration: none; }
.ep__thumb {
  display: block;
  padding: 7px;
  margin-bottom: 10px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 6px 0 -2px rgb(74 56 42 / 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.grid li:nth-child(odd) .ep__thumb { transform: rotate(-0.8deg); }
.grid li:nth-child(even) .ep__thumb { transform: rotate(0.7deg); }
.ep:hover .ep__thumb, .ep:focus-visible .ep__thumb { transform: rotate(0) translateY(-4px); box-shadow: 0 10px 0 -2px rgb(74 56 42 / 0.12); }
.ep__thumb img { border-radius: 5px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ep__title { display: block; margin: 2px 0 2px; font: 700 1.25rem/1.2 var(--display); }
.ep:hover .ep__title { color: var(--accent-deep); }
.ep__date { font-size: 0.95rem; color: var(--ink-soft); }

/* ---- episode page ------------------------------------------------- */
.player {
  padding: 10px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 12px 0 -4px rgb(74 56 42 / 0.12);
  margin-top: -8px;
}
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: var(--ink); }
.player--short { max-width: 380px; margin-inline: auto; }
.player--short iframe { aspect-ratio: 9 / 16; }
.readalong {
  background: var(--card);
  border-radius: 18px;
  padding: 4px 24px;
  border: 2px dashed var(--accent);
}
.readalong summary { cursor: pointer; padding: 14px 0; font: 700 1.2rem var(--display); }
.script { list-style: none; padding: 0; margin: 0 0 18px; max-width: 70ch; }
.script li { padding: 3px 0; }
.script b { font-family: var(--display); margin-right: 0.3em; }

/* ---- parents ------------------------------------------------------ */
.facts { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.facts li { background: var(--card); border-radius: 18px; padding: 18px 20px; }
.facts strong { display: block; font: 700 1.2rem var(--display); }
.plain { padding-left: 1.2em; }
.plain li { margin-bottom: 0.6em; }
.prose section + section { margin-top: 2em; }

/* ---- hill --------------------------------------------------------- */
.hill { position: relative; background: var(--leaf); margin-top: 24px; padding: 34px 0 28px; }
.hill .tear { top: -23px; bottom: auto; }
.tear--hill path { fill: var(--leaf); }
.hill__brand { font: 800 1.6rem var(--display); margin-bottom: 0.4em; }
.hill__links { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hill a { color: var(--ink); font-weight: 700; }
.hill__small { font-size: 0.95rem; margin: 0; }

/* ---- small screens ------------------------------------------------ */
@media (max-width: 760px) {
  .hero, .split { grid-template-columns: 1fr; }
  .pinned { max-width: 420px; }
  .bar__logo img { height: 48px; }
  .cloud { display: none; }
  .sun { top: 14px; right: 16px; width: 56px; }
}

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