:root {
  color-scheme: dark;
  --base: #0c091b;
  --header: #100c20;
  --text: #faf3ff;
  --muted: #c8b8df;
  --accent: #ff8bd9;
  --line: #493361;
  --panel: #161027;
  --hero-bg: #110c25;
  --wash: #251349;
  --button-bg: linear-gradient(105deg, #fa81d8, #ac97ff);
  --button-text: #180d28;
  --hero-image: url("/assets/dreamwave.webp");
  --hero-position: center 51%;
  --title-fill: linear-gradient(180deg, #fff1ff 4%, #efbbff 57%, #ac9bf3 99%);
  --title-font: "Arial Black", "DejaVu Sans", sans-serif;
  --sub-font: Georgia, serif;
  --radius: 22px;
}
[data-theme="jesi"] {
  --base: #090909;
  --header: #0b0b0b;
  --text: #f6f1ec;
  --muted: #c7bfb9;
  --accent: #f2d9c3;
  --line: #514747;
  --panel: linear-gradient(145deg, #202020, #0f0f0f 75%);
  --hero-bg: #151313;
  --wash: #292120;
  --button-bg: linear-gradient(180deg, #3c332e, #181616 55%, #26201e);
  --button-text: #fff6ed;
  --hero-image: url("/assets/jesi.webp");
  --hero-position: center 52%;
  --title-fill: linear-gradient(#fff8ed, #ddd0c4 74%, #b6a09b);
  --title-font: Georgia, "Times New Roman", serif;
  --radius: 6px;
}
[data-theme="renee"] {
  color-scheme: light;
  --base: #fff1fb;
  --header: #fff7fd;
  --text: #392350;
  --muted: #624c77;
  --accent: #873c82;
  --line: #d7b6e8;
  --panel: #fff9fe;
  --hero-bg: #fae2fa;
  --wash: #edd9fc;
  --button-bg: linear-gradient(105deg, #f8acd9, #d8b7fa);
  --button-text: #3a204f;
  --hero-image: url("/assets/renee.webp");
  --hero-position: center 53%;
  --title-fill: linear-gradient(180deg, #522764, #843a88);
  --title-font: ui-rounded, "Trebuchet MS", sans-serif;
  --sub-font: ui-rounded, "Trebuchet MS", sans-serif;
  --radius: 34px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 15%, var(--wash), transparent 55%), var(--base);
  color: var(--text);
  font: 1rem/1.6 "Trebuchet MS", Arial, sans-serif;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: .5rem 1rem; background: var(--header); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
.brand-mark { flex: none; width: 36px; height: 36px; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, .site-footer a, .back-link { text-decoration: none; color: var(--muted); }
nav a:hover, .site-footer a:hover, .back-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .3em; }
.theme-bar { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding-block: 22px; }
.theme-label { color: var(--muted); font-size: .875rem; }
.theme-picker { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: var(--header); border: 1px solid var(--line); border-radius: 100px; }
.theme-picker button { display: inline-flex; align-items: center; gap: .3rem; padding: .27rem .75rem; min-height: 34px; color: var(--muted); font-size: .875rem; font-weight: 700; border: 1px solid transparent; border-radius: 100px; background: transparent; cursor: pointer; }
.theme-picker button:hover { color: var(--text); }
.theme-picker button[aria-pressed="true"] { color: var(--button-text); background: var(--button-bg); border-color: var(--line); }
.hero { position: relative; display: grid; grid-template-columns: 46% 54%; min-height: 510px; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--hero-bg); box-shadow: 0 24px 75px #08051152; }
.hero::after { content: ""; position: absolute; inset: 8px; border: 1px solid transparent; border-radius: max(4px, calc(var(--radius) - 5px)); pointer-events: none; }
[data-theme="jesi"] .hero::after { border-color: #97858552; }
[data-theme="renee"] .hero { box-shadow: 0 18px 55px #a1659c25; }
.hero-content { position: relative; z-index: 1; padding: clamp(1.8rem, 4vw, 3.8rem); align-self: center; }
.hero-art { min-width: 0; background: var(--hero-image) var(--hero-position) / cover no-repeat; }
.hero-art::after { content: ""; display: block; height: 100%; background: linear-gradient(90deg, var(--hero-bg), transparent 24%); }
.eyebrow { color: var(--accent); font-size: .8125rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 800; }
.hero-status { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.3rem; }
.hero-status::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 14px var(--accent); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0 0 1.25rem; font: 900 clamp(3.8rem, 7.8vw, 7.15rem)/.86 var(--title-font); letter-spacing: -.087em; }
.hero h1 > span { display: block; width: fit-content; padding-right: .12em; background: var(--title-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font: italic .39em var(--sub-font); letter-spacing: -.055em; color: var(--accent); }
.hero h1 small { display: block; margin-top: .45em; font: italic 500 clamp(1.65rem, 3.7vw, 3.05rem)/1 var(--sub-font); letter-spacing: -.05em; color: var(--accent); }
[data-theme="jesi"] .hero h1 { letter-spacing: -.065em; }
[data-theme="renee"] .hero h1 { letter-spacing: -.065em; }
.hero-description { color: var(--muted); margin: 0 0 1.5rem; line-height: 1.6; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; }
.primary { color: var(--button-text); background: var(--button-bg); }
.secondary { color: var(--text); background: var(--panel); }
.button:hover { box-shadow: 0 0 0 2px var(--accent); }
.section { padding-top: 46px; scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { font: 800 clamp(1.65rem, 3vw, 2.3rem)/1.1 var(--title-font); letter-spacing: -.04em; margin: 0; }
.section-rule { height: 1px; flex: 1; background: var(--line); }
.empty-state, .about-panel { display: flex; gap: 1.1rem; align-items: center; padding: clamp(1rem, 3vw, 1.6rem); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.section-icon { flex: 0 0 48px; width: 48px; height: 48px; }
.control-icon { width: 20px; height: 20px; vertical-align: middle; }
.button .control-icon, .episode-extra .control-icon { margin-right: .35rem; }
.empty-state h3 { margin-bottom: .2rem; font-size: 1.1rem; }
.empty-state p, .about-panel p { margin-bottom: 0; color: var(--muted); }
.about { margin-bottom: 58px; }
.site-footer { border-top: 1px solid var(--line); background: var(--header); color: var(--muted); font-size: .9rem; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1rem; }
.episode-card { overflow: hidden; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.episode-card:hover { border-color: var(--accent); }
.episode-card-copy { padding: 1.25rem; }
.episode-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.episode-card p:last-child { color: var(--muted); margin-bottom: 0; }
.episode-content { max-width: 865px; padding-block: 24px 60px; }
.episode-content h1 { font: 900 clamp(2rem, 6vw, 4rem)/1.05 var(--title-font); letter-spacing: -.04em; margin: 0 0 1rem; }
.episode-content p { color: var(--muted); }
.episode-content .eyebrow { color: var(--accent); }
.player { position: relative; display: grid; place-items: center; background: var(--hero-bg); width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); margin: 1.5rem 0 1rem; }
.player > img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player button { z-index: 1; }
.episode-extra { margin-top: 1.5rem; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.episode-extra :last-child { margin-bottom: 0; }
.transcript summary { font-weight: 800; cursor: pointer; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero { min-height: 425px; }
  .hero-content { padding: 1.65rem; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner, .footer-inner { min-height: 60px; }
  .header-inner { gap: .6rem; }
  .brand { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
  nav { gap: .65rem; font-size: .9rem; }
  .theme-bar { justify-content: flex-start; padding-block: 15px; }
  .theme-label { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 1.6rem; }
  .hero h1 { font-size: clamp(3.7rem, 13vw, 5.4rem); }
  .hero-art { min-height: min(72vw, 340px); }
  .hero-art::after { background: linear-gradient(180deg, var(--hero-bg), transparent 24%); }
  .section { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
