@font-face {
  font-family: 'DM Sans'; src: url('/assets/dm-sans.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Kalam; src: url('/assets/kalam.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: Kalam; src: url('/assets/kalam-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #312344;
  --muted: #564b5a;
  --purple: #603680;
  --deep-purple: #593274;
  --rust: #a53f2e;
  --paper: #fff5e4;
  --matte: #fffbf3;
  --edge: #dfcfba;
  --width: 1330px;
  --writing: Kalam, 'Comic Sans MS', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem; line-height: 1.55; color: var(--ink);
  background: var(--paper) url('/assets/paper.png');
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #8e3e98; outline-offset: 5px;
}
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .8rem; background: #fff; }
.wrap { width: min(var(--width), calc(100% - clamp(2.25rem, 9vw, 10.5rem))); margin-inline: auto; }
.topbar { border-bottom: 1px solid #e8d7c3; background: #fffbf399; }
.topbar-inner {
  min-height: 4.55rem; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; color: var(--ink); font: 700 1.48rem/1 var(--writing); text-decoration: none; }
.brand img { border-radius: 50%; border: 1px solid #ba5d5a; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.7rem); }
nav a, .channel { padding-block: .55rem; text-decoration: none; font-size: .92rem; font-weight: 700; }
nav a:hover, .channel:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .3em; }
.channel {
  justify-self: end; border: 1px solid #e4bdad; border-radius: .6rem .8rem .65rem .7rem;
  padding-inline: 1.1rem; color: #8c372f; background: #fff8ef;
}
.intro {
  isolation: isolate; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 84% 45%, #ffdda559, transparent 57%),
              radial-gradient(ellipse at 8% 79%, #fbe5e0a0, transparent 60%);
}
.intro::after {
  content: ''; position: absolute; inset: auto 0 0; height: 5px; pointer-events: none;
  opacity: .85; background: linear-gradient(90deg,#67428e 23%,#dc796f 23% 48%,#eab84f 48% 74%,#5276a8 74%);
  clip-path: polygon(0 46%,8% 11%,18% 34%,32% 13%,42% 37%,56% 21%,65% 27%,76% 8%,90% 23%,100% 0%,100% 100%,0 100%);
}
.hero {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.3fr);
  align-items: center; gap: clamp(2rem,4.4vw,4.5rem);
  min-height: clamp(31rem, 40vw, 40rem);
  padding-block: clamp(3.5rem,6vw,6.4rem);
}
.hero-copy { position: relative; z-index: 1; }
.studio, .kind, .role {
  text-transform: uppercase; font-weight: 700; letter-spacing: .11em; font-size: .77rem;
}
.studio { color: #855148; margin: 0 0 1rem; }
h1 { margin: 0; }
h1 img { width: min(36rem,100%); height: auto; }
.tagline {
  font: 700 clamp(1.75rem,3.0vw,3.12rem)/1.03 var(--writing);
  margin: 1.3rem 0 .65rem; letter-spacing: -.028em;
}
.tagline em { color: var(--rust); font-style: normal; white-space: nowrap; }
.lede { max-width: 30rem; color: var(--muted); font-size: clamp(1rem,1.25vw,1.16rem); margin: 0 0 1.55rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .65rem;
  padding: .66rem 1.14rem; border: 1.5px solid var(--purple); border-radius: 9px 12px 8px 10px;
  text-align: center; text-decoration: none; font-weight: 700; font-size: .97rem; transition: background .18s, transform .18s;
}
.button:hover { transform: translateY(-2px); }
.primary { color: white; background: var(--deep-purple); box-shadow: 2px 3px #362144; }
.primary:hover { background: #4a275f; }
.outline { color: var(--deep-purple); background: #fff9ef; }
.outline:hover { background: #eee1f4; }
.play-icon {
  width: 0; height: 0; border-top: .37rem solid transparent; border-bottom: .37rem solid transparent;
  border-left: .62rem solid currentColor;
}
.art-paper {
  margin: .45rem .1rem .25rem; padding: .85rem .85rem .4rem;
  position: relative; background: #fff7e8 url('/assets/paper.png'); border: 1px solid #d8bfa0;
  border-radius: 3px 7px 4px 6px; transform: rotate(1.7deg);
  box-shadow: 4px 6px 0 #e5c8a3b3, 0 18px 45px #9a623425;
}
.art-paper::before, .art-paper::after {
  position: absolute; z-index: 1; content: ''; width: 4.25rem; height: 1.45rem;
  background: #eac475aa url('/assets/paper.png'); clip-path: polygon(0 6%,100% 0,96% 100%,4% 89%);
}
.art-paper::before { top: -.42rem; left: -.95rem; transform: rotate(-30deg); }
.art-paper::after { top: -.38rem; right: -.9rem; transform: rotate(33deg); }
.art-paper img { width: 100%; height: auto; mix-blend-mode: multiply; }
.art-paper figcaption { font: 700 clamp(.9rem,1.6vw,1.36rem)/1.2 var(--writing); text-align: right; padding: .58rem .3rem .15rem; color: #863d46; }
.art-paper figcaption span { margin-inline-start: .2em; }

.section-pad { padding-block: clamp(3.25rem,5.6vw,5.3rem); }
section[id] { scroll-margin-top: 1.1rem; }
.episode-section { background: #fffaf0b0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-block-end: 1.85rem; }
.section-head h2 { display: inline-block; position: relative; margin: 0; font: 700 clamp(2.15rem, 4vw, 3.65rem)/1.12 var(--writing); }
.section-head h2::after {
  position: absolute; left: 0; bottom: -.05rem; width: 5rem; height: 4px; content:'';
  background-color:#d47c68; border-radius: 50%; clip-path: polygon(0 32%,38% 0,100% 34%,92% 81%,22% 100%,0% 86%);
}
.section-head p { margin: .48rem 0 0; color: var(--muted); }
.text-link, .profile-link { color: var(--deep-purple); text-decoration-color: #b393c5; text-underline-offset: .23em; font-weight: 700; }
.text-link:hover, .profile-link:hover { text-decoration-color: currentColor; }
.episodes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.05rem,2.4vw,2rem); }
.episode {
  display: flex; flex-direction: column; min-width: 0;
  background: #fffcf6; border: 1px solid var(--edge); border-radius: 12px 9px 14px 10px;
  box-shadow: 3px 4px 0 #e9d9c4; overflow: hidden;
}
.episode.special { background: #fff0d6; }
.stills { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: #56354a; }
.stills img { width: 100%; height: 100%; object-fit: cover; }
.video-cover { position: absolute; display: block; inset: 0; }
.video-cover:focus-visible { outline-offset: -4px; }
.video-cover:hover img { filter: brightness(.85); }
.play-disc {
  display: grid; place-items: center; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); color: #4b2a6b; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; background: #fff8e8; border: 2px solid var(--purple); box-shadow: 2px 3px #291d3b90;
}
.play-disc .play-icon { margin-left: .22rem; }
.episode-copy { padding: 1rem clamp(.9rem,2vw,1.4rem) 1.4rem; display: flex; flex-direction: column; align-items: start; flex: 1; }
.episode .kind { margin: 0 0 .15rem; color: #8d483a; }
.episode h3 { font: 700 1.9rem/1.12 var(--writing); margin: .23rem 0 .36rem; }
.episode-copy p:not(.kind) { color: var(--muted); margin: 0 0 1rem; }
.episode-copy .text-link, .release-note { margin-top: auto; }
.release-note { color: #814e24; font-weight: 700; font-size: .95rem; }
.parts { margin-top: 1.6rem; padding: .8rem 1rem; border: 1px dashed #b99bb7; border-radius: 9px 14px 12px 8px; background: #faf0fa; }
.parts summary { cursor: pointer; font-weight: 700; color: var(--deep-purple); }
.parts ol { margin: 1rem 0 .3rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .55rem; }
.parts a { display: grid; gap: .12rem; padding: .65rem; text-decoration: none; border: 1px solid #e7d7e5; border-radius: .4rem; background: #fffaf4; }
.parts a:hover { background: #fff; text-decoration: underline; }
.parts a span { font-size: .82rem; color: var(--muted); }
.cast-section {
  background: linear-gradient(transparent 30px,#b596c01c 31px,transparent 32px) 0 0 / 100% 32px,
              #f5ecf5 url('/assets/paper.png');
  border-block: 1px solid #e6d6e5;
}
.cast-section h2::after { background: #9873a7; }
.filters { display: flex; gap: .65rem; flex-wrap: wrap; margin-block: 1.15rem 1.7rem; }
.filters button {
  cursor: pointer; font-weight: 700; font-size: .9rem; background: #fffbf7;
  padding: .5rem .9rem; border: 1px solid #9c79ad; color: var(--deep-purple); border-radius: 6px 11px 8px 10px;
}
.filters button:hover { background: #eadcf1; }
.filters button[aria-pressed=true] { background: var(--deep-purple); color: white; border-color: var(--deep-purple); }
.cast { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.2rem; }
.profile {
  --stripe: #cb6e7d;
  display: flex; flex-direction: column; min-width: 0;
  background: #fffaf0; border: 1px solid #dfcedf; border-top: 4px solid var(--stripe); border-radius: .5rem .8rem .6rem .8rem;
  overflow: hidden; box-shadow: 2px 4px 0 #decce0;
  scroll-margin-top: 1.2rem;
}
.profile.blue { --stripe: #6082af; }
.profile.gold { --stripe: #c78a3d; }
.portrait { overflow: hidden; aspect-ratio: 6/3.9; background: #f3dec5 url('/assets/paper.png'); display: grid; place-items: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-type { font: 700 4.9rem/.9 var(--writing); color: #805194; transform: rotate(-8deg); }
.profile-copy { padding: 1rem; flex: 1; display: flex; flex-direction: column; align-items: start; }
.profile h3 { font: 700 1.55rem/1.12 var(--writing); margin: .18rem 0 .42rem; }
.profile p { margin: 0 0 .8rem; color: var(--muted); }
.profile .role { margin: 0; font-size: .72rem; color: #805b56; }
.profile .alias { font-size: .9rem; }
.profile-link { margin-top: auto; font-size: .9rem; }
.short-section { background: #fffaf0a0; }
.shorts { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1rem; }
.short-card {
  display: block; overflow: hidden; border: 1px solid var(--edge); border-radius: 11px 9px 12px 8px;
  background: #fffaf2; box-shadow: 2px 3px #e6d1b9; text-decoration: none;
}
.short-card:hover { background: #f1e0f4; }
.short-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.short-card > span { padding: .62rem .7rem; display: block; font-weight: 700; }
.short-card small { display: block; color: var(--muted); font-weight: 500; }
footer { border-top: 1px solid #e6d7c7; background: #faead8 url('/assets/paper.png'); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 7.8rem; padding-block: 1.3rem; }
.footer-inner p { margin: .5rem 0 0; }
dialog { width: min(54rem, calc(100% - 1.6rem)); padding: 1rem; border: 2px solid #8f608d; border-radius: 13px 9px 14px 11px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #2a1b32c0; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .65rem; margin-bottom: .7rem; }
.dialog-top h2 { margin: 0; font: 700 clamp(1.35rem, 4vw, 2.1rem)/1 var(--writing); }
.dialog-top button { color: var(--deep-purple); border: 1px solid #bd95bb; background: #fffaf2; border-radius: .55rem; padding: .35rem .65rem; cursor: pointer; }
#player { aspect-ratio: 16/9; background: #201726; }
#player iframe { width: 100%; height: 100%; border: 0; }
#player-link { display: inline-block; padding-top: .65rem; }

@media (max-width: 1100px) {
  .cast { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: minmax(0,1fr); text-align: center; min-height: initial; gap: 2.2rem; padding-block: 3.25rem; }
  .hero .lede, .hero h1 img { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .art-paper { width: min(94%,36rem); margin-inline: auto; }
  .episodes { gap: .8rem; }
  .parts ol, .shorts { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .topbar-inner { grid-template-columns: 1fr auto; gap: .25rem; padding-block: .7rem .55rem; }
  .topbar-inner nav { order: 3; grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; gap: 1.3rem; }
  .channel { padding-block: .4rem; padding-inline: .75rem; }
  .hero { padding-block: 2.55rem; }
  .hero-actions .button { padding-inline: .78rem; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: .65rem; }
  .episodes { grid-template-columns: 1fr; gap: 1.3rem; }
  .episode-copy { padding: 1.1rem; }
  .cast, .parts ol, .shorts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cast, .shorts { gap: .7rem; }
  .filters { gap: .45rem; }
  .profile-copy { padding: .78rem; }
  .profile h3 { font-size: 1.33rem; }
}
@media (max-width: 370px) {
  .cast { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
