.site-appearance {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 2px;
  border-radius: 99px;
  border: 1px solid rgb(217 234 251 / .26);
  background: rgb(13 35 61 / .21);
  color: #f3f8ff;
  font: 550 12px/1 var(--reader);
  pointer-events: auto;
}
.site-appearance[hidden] { display: none; }
.site-appearance label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  --glass-wash: transparent;
  --glass-depth: none;
  --glass-glint: linear-gradient(145deg, rgb(174 206 246 / .22), transparent 50%, rgb(236 247 255 / .20));
}
.site-appearance label:has(:checked) {
  --glass-selected: rgb(198 221 250 / .19);
  --glass-glint: linear-gradient(145deg, #91b9ea, rgb(194 216 246 / .22) 48%, rgb(246 251 255 / .77));
  font-weight: 700;
}
.site-appearance input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.site-appearance .icon { width: 14px; height: 14px; }

body[data-reading-theme=light] :is(.reader-intro h1 em, .books-section .section-heading h2) {
  filter: drop-shadow(0 1px 1px rgb(66 48 17 / .36));
}
body[data-reading-theme=light] .footer-nav a[aria-current=page] { color: var(--jaune-charte); }
body[data-reading-theme=light] .site-appearance {
  color: #102f4f;
  border-color: rgb(44 82 124 / .26);
  background: rgb(235 245 253 / .30);
}
body[data-reading-theme=light] .site-appearance label:has(:checked) { --glass-selected: rgb(243 249 255 / .56); }
:root { --page-opening: calc(114px + env(safe-area-inset-top)); }
.page-home .hero, .subpage-hero, .reading-main { padding-top: var(--page-opening); }
.subpage-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.subpage-topline .breadcrumb { margin: 0; }
.subpage-topline .site-appearance { flex-shrink: 0; }
.project-title > span { white-space: nowrap; }
.reader-intro { align-items: flex-start; }
.reader-intro .reader-page-options {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 6px;
}
@media (max-width: 1060px) {
  :root { --page-opening: calc(101px + env(safe-area-inset-top)); }
}
@media (max-width: 620px), (min-width: 600px) and (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  :root { --page-opening: calc(85px + env(safe-area-inset-top)); }
  .subpage-hero h1.project-title { font-size: clamp(39px, 12.4vw, 55px); }
  .reader-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
    row-gap: 5px;
    align-items: start;
  }
  .reader-intro > div:first-child { display: contents; }
  .reader-intro h1 { grid-area: 1 / 1; }
  .reader-intro .reader-page-options { grid-area: 1 / 2; }
  .reader-intro p { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .site-appearance label { gap: 3px; padding-inline: 6px; font-size: 11px; }
  .site-appearance .icon { width: 12px; height: 12px; }
}

body[data-reading-theme=light]:not(.reading-page) {
  --day-ink: #102f4f;
  --day-muted: #394f65;
  --panel-pearl: rgb(251 253 255 / .84);
  color-scheme: light;
  background: #eef4f8;
  .hero { background-color: #c7dbed; color: var(--day-ink); }
  .hero-shade {
    background: linear-gradient(100deg, rgb(237 246 253 / .94) 0%, rgb(222 238 251 / .84) 36%, rgb(219 236 248 / .33) 64%, rgb(218 234 249 / .21)),
      linear-gradient(0deg, rgb(214 231 245 / .78), transparent 45%);
  }
  .hero::after { background: linear-gradient(transparent, #e7f0f7); }
  :is(.hero h1, .hero-kicker, .hero-subtitle, .hero-tagline, .hero-tagline strong, .hero-intro, .hero-launch,
      .hero-art figcaption, .hero .hero-scroll) {
    color: var(--day-ink); text-shadow: none;
  }
  .hero-kicker { border-color: rgb(44 82 124 / .26); background: rgb(235 245 253 / .30); }
  :is(.hero-actions, .about-copy, .project-actions, .social-links, .follow-streaming) {
    --glass-wash: linear-gradient(128deg, rgb(255 255 255 / .66), rgb(219 235 247 / .48) 68%, rgb(200 221 239 / .59));
  }
  .hero-actions a:focus-visible { outline-color: var(--day-ink); }
  .about-duration {
    width: fit-content;
    padding: 3px 8px;
    border-radius: 4px;
    background: #143756;
  }
  .books-section .eyebrow-light { color: var(--day-muted); }
  .blue-universe, .content-page { background: #ebf2f7; color: var(--day-ink); }
  .blue-universe::before {
    background: radial-gradient(ellipse 80% 32% at 100% 31%, #cddfeb9c, transparent),
      linear-gradient(166deg, #e6eff6 5%, #faf8f2 45%, #edf3f6 76%, #dce8f0);
  }
  .content-page {
    background: radial-gradient(ellipse 74% 52% at 100% 53%, #dce9f2, transparent),
      linear-gradient(150deg, #e9f2f8, #faf8f3 50%, #e4edf3);
  }
  .about-section > div:first-child {
    align-self: start;
    color: #f7fbff;
    border-radius: 16px;
    padding: clamp(22px, 3.2vw, 38px);
    background: linear-gradient(100deg, rgb(8 35 61 / .92), rgb(12 43 72 / .82) 56%, rgb(13 45 75 / .45)),
      url('/assets/accueil-panorama-large.webp') center 61% / cover, #163958;
  }
  .about-section .eyebrow-light { color: #d3e5f3; }
  .about-copy strong, .about-cover figcaption, .about-section .episode-one { color: var(--day-ink); }
  .about-cover figcaption > span { color: var(--day-muted); }
  :is(.listen-section .listen-heading h2, .section-heading, .about-section, .page-section h2,
      .project-story h2, .editorial-copy strong, .editorial-copy .guide-lead, .social-link, .follow-streaming .follow-platform) {
    color: var(--day-ink);
  }
  :is(.listen-overline, .listen-heading .listen-intro, .platforms > p, .about-copy, .books-footnote,
      .feed-notice, .section-intro, .project-story p, .editorial-copy p, .social-link small, .follow-platform p) { color: var(--day-muted); }
  .about-section, .page-section, .project-story { border-color: rgb(62 98 132 / .20); }
  .resume-badge { background: rgb(94 136 172 / .10); color: var(--day-ink); border-color: rgb(54 86 119 / .35); }
  .subpage-hero {
    background: linear-gradient(100deg, rgb(237 246 251 / .97), rgb(230 241 249 / .92) 48%, rgb(213 232 245 / .68)),
      url('/assets/accueil-panorama-large.webp') center 58% / cover, #d3e3ef;
  }
  :is(.subpage-hero, .editorial-copy) > .eyebrow,
  .subpage-hero .container > .eyebrow {
    padding: 0;
    color: var(--jaune-charte);
    -webkit-text-fill-color: currentColor;
    background: none;
    text-shadow: 0 1px 1px rgb(44 34 18 / .82), 0 0 2px rgb(52 39 18 / .45);
  }
  .subpage-hero :is(h1, .breadcrumb, .subpage-lead), .editorial-copy .text-link, .rss-copy-row .rss-link { color: var(--day-ink); }
  .subpage-hero::before { content: none; }
  .editorial-copy .share-podcast-action .icon { filter: brightness(0); }
  .project-signature { color: var(--day-ink) !important; }
  .project-story {
    background: linear-gradient(115deg, rgb(255 255 255 / .88), rgb(221 236 245 / .76));
    color: var(--day-ink);
  }
  .follow-streaming .cec-follow-platforms::before { opacity: .14; }
  .follow-platform .follow-action { color: #205787; }
  .reading-steps li { background-color: #2b4567; }
  .theotopia-copy h2 em { color: #164b80; }
  .theotopia-copy .theotopia-now { color: #2d4a66; }
  .support-section, .site-footer, .testament-card { color-scheme: dark; }
  @media (max-width: 740px) {
    .hero-shade { background: linear-gradient(105deg, rgb(231 243 253 / .94), rgb(223 238 250 / .69) 60%, rgb(218 235 248 / .43)), linear-gradient(0deg, rgb(221 236 247 / .9), transparent 65%); }
    .hero-kicker { background: transparent; }
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-appearance { background: var(--glass-solid); }
}
