:root {
  color-scheme: light;
  --ink: #162331; --navy: #0c1824; --navy-2: #172a38; --cream: #f4f1e9;
  --paper: #fbfaf7; --gold: #b79b65; --gold-soft: #dfcfad; --muted: #67717a;
  --border: #dedcd4; --radius: 17px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, select { font: inherit; }
a { color: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #c89d4f; outline-offset: 3px; }
.container { width: min(100% - 64px, 1170px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 4px; padding: 12px; background: #fff; z-index: 99; }
.skip-link:focus { left: 8px; }
.site-header { background: var(--navy); color: #f5f2ec; border-bottom: 1px solid #34424a; }
.header-content { display: flex; align-items: center; gap: 36px; min-height: 92px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.mark { display: grid; place-items: center; color: var(--gold-soft); width: 44px; }
.brand-type { display: flex; flex-direction: column; line-height: 1.12; font-size: 12px; letter-spacing: .22em; }
.brand-type strong { font-size: 17px; letter-spacing: .17em; }
.brand-type span { font-size: 9px; letter-spacing: .24em; margin-top: 4px; }
.site-header nav { margin-left: auto; display: flex; gap: 30px; }
.site-header nav a { text-decoration: none; font-size: .86rem; color: #c6cbd0; }
.site-header nav a:hover { color: white; }
.header-status { border: 1px solid #627176; border-radius: 99px; padding: 6px 13px; white-space: nowrap; color: #e5d7b7; font-size: .71rem; letter-spacing: .02em; }
.status-dot { display: inline-block; height: 6px; width: 6px; background: var(--gold); border-radius: 50%; margin-right: 7px; vertical-align: 2px; }
.compact-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: #f5f2ec;
  background: #0c1824;
  border-bottom: 1px solid #34424a;
  box-shadow: 0 4px 14px #0c182426;
}
.compact-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.compact-title { color: #f5f2ec; font: 400 clamp(1.05rem, 3.3vw, 1.35rem)/1.2 Georgia,serif; text-decoration: none; }
.compact-menu { display: flex; gap: 1.5rem; }
.compact-menu a { color: #e2e5e7; font-size: .9rem; text-decoration: none; }
.compact-menu a:hover, .compact-title:hover { color: var(--gold-soft); }
.compact-menu-button {
  display: none;
  min-height: 44px;
  padding: .35rem .7rem;
  color: inherit;
  background: transparent;
  border: 1px solid #627176;
  border-radius: 4px;
  font-size: .88rem;
  cursor: pointer;
}
@media (max-width: 740px) {
  .compact-menu-button { display: block; }
  .compact-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 1px);
    min-width: 11rem;
    background: var(--navy);
    border: 1px solid #34424a;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 14px #0c182426;
  }
  .compact-menu-button[aria-expanded="true"] + .compact-menu { display: grid; gap: 0; }
  .compact-menu a { display: flex; align-items: center; min-height: 44px; padding: .35rem .8rem; }
}
.hero { overflow: hidden; background: radial-gradient(ellipse 60% 70% at 15% 50%,#213744 0%,var(--navy) 88%); color: #f7f5ed; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 7%; align-items: center; padding-block: 88px 100px; }
.hero-copy { padding-block: 16px; }
.eyebrow, .section-number, .small-caps { letter-spacing: .18em; font-size: .71rem; font-weight: 750; text-transform: uppercase; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: var(--gold-soft); }
.eyebrow-line { width: 32px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
h1 { margin: 23px 0 22px; font-size: clamp(3.6rem, 6.1vw, 6.65rem); line-height: 1.08; }
h1 em, h2 em { color: var(--gold-soft); font-weight: 400; font-style: italic; }
.hero-deck { font-size: clamp(1.16rem,1.8vw,1.43rem); margin-bottom: 19px; color: #ede7da; }
.hero-deck strong { font-weight: 700; }
.hero-description { color: #bcc8cd; max-width: 490px; font-size: .99rem; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 29px; flex-wrap: wrap; margin: 32px 0 43px; }
.button { border: 0; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 21px; font-size: .89rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 21px; height: 21px; }
.button-primary { background: var(--gold-soft); color: #18242d; }
.button-primary:hover { background: #f0dfbb; }
.text-link { font-size: .88rem; color: #e9e3d6; text-underline-offset: 5px; }
.text-link span { padding-left: 4px; }
.hero-meta { display: flex; align-items: center; gap: 16px; font-size: .72rem; color: #bfc5c7; letter-spacing: .08em; }
.meta-separator { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
.cover-art {
  display: block;
  width: min(100%, 400px);
  height: auto;
  justify-self: center;
  border: 1px solid #9b8662;
  box-shadow: 14px 16px 0 rgba(198,176,125,.07), 0 30px 65px rgba(0,0,0,.25);
}
.hero-edge { height: 5px; background: linear-gradient(90deg,#c0a979 0 12%,#40505a 12%); }
.section { padding: 104px 0; }
.intro-section { background: var(--paper); }
.two-column { display: grid; grid-template-columns: .91fr 1.09fr; gap: 10%; }
.section-number { color: #9b824f; display: block; margin: 0 0 25px; }
h2 { font-size: clamp(2.7rem,4.6vw,4.6rem); line-height: 1.14; margin: 0; }
h2 em { color: #987b49; }
.section-prose { color: #53606a; font-size: 1.02rem; line-height: 1.96; }
.section-prose p:last-child { margin-bottom: 0; }
.section-prose .lead { color: #223242; font-size: 1.17rem; line-height: 1.77; }
.structure-section { background: var(--cream); border-top: 1px solid #e9e5dc; border-bottom: 1px solid #e5e0d7; }
.section-heading,.listening-header { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 51px; }
.section-heading p,.listening-header p { color: #67717a; max-width: 295px; line-height: 1.8; margin-bottom: 3px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.step { border: 1px solid #dcd6c8; background: #faf9f5; padding: 34px 29px 30px; min-height: 294px; }
.step-index { font: 750 .78rem Arial,sans-serif; letter-spacing: .18em; color: #a88b54; }
.step-icon { width: 42px; height: 42px; margin: 30px 0 25px; color: #9a814c; }
.step-icon svg { width: 42px; height: 42px; }
.step h3 { font-family: Georgia,serif; font-size: 1.4rem; line-height: 1.25; font-weight: 400; margin-bottom: 11px; }
.step p { color: #667078; font-size: .9rem; line-height: 1.7; margin-bottom: 0; }
.note-inline { display: flex; align-items: baseline; gap: 11px; margin-top: 24px; color: #5f6a72; font-size: .86rem; }
.note-inline span { color: #ab8c54; font-size: 1.2rem; }
.note-inline p { margin: 0; }
.listening-section { background: #fdfcf9; }
.listening-header { margin-bottom: 52px; }
.featured-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tag { background: #e9dfc8; color: #7b6032; font-size: .69rem; padding: 7px 10px; letter-spacing: .11em; font-weight: 800; }
.small-caps { color: #6f797d; }
.episode-card { border: 1px solid #dddcd5; background: white; box-shadow: 0 8px 25px rgba(33,40,42,.035); }
.episode-card-featured { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 30px; }
.episode-thumbnail { background: linear-gradient(145deg,#213743,#0b1c27); color: #d8c18c; width: 140px; min-height: 142px; display: grid; place-items: center; position: relative; }
.episode-thumbnail:before { content: ""; inset: 9px; position: absolute; border: 1px solid rgba(215,193,143,.35); }
.episode-thumbnail svg { width: 54px; height: 54px; }
.episode-main { min-width: 0; }
.episode-number { font-size: .72rem; font-weight: 800; letter-spacing: .15em; color: #9a7c47; margin-bottom: 6px; }
.episode-title { font: 400 1.7rem/1.25 Georgia,serif; margin: 0 0 11px; color: #172635; }
.episode-desc { color: #6e777e; font-size: .92rem; line-height: 1.75; margin: 0 0 18px; }
.player-wrap { background: #f4f4f0; border: 1px solid #e5e4dc; padding: 13px 15px; margin-top: 16px; border-radius: 6px; }
.player-wrap audio { width: 100%; display: block; height: 44px; accent-color: #b79b65; }
.player-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.player-actions { display: flex; gap: 7px; }
.player-tools button,.player-tools select { background: #fff; border: 1px solid #d9d9d0; color: #283948; border-radius: 5px; padding: 5px 10px; font-size: .78rem; cursor: pointer; }
.player-tools button:hover,.player-tools select:hover { border-color: #9a814c; }
.player-tools label { color: #6e7576; font-size: .78rem; display: flex; align-items: center; gap: 9px; }
.player-pending { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 13px; color: #7e6942; background: #f5f0e5; border: 1px dashed #dccda8; padding: 12px 14px; font-size: .83rem; }
.player-pending:before { content: '◌'; font-size: 1.3rem; line-height: 1; }
.series-heading { margin: 72px 0 21px; display: flex; align-items: center; gap: 22px; }
.heading-rule { height: 1px; background: var(--border); flex: 1; }
.series-list { display: grid; gap: 17px; }
.series-card {
  background: #fff;
  border: 1px solid #dfded7;
  border-radius: 8px;
  scroll-margin-top: 1rem;
}
.series-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(16px, 3vw, 30px);
  cursor: pointer;
  list-style: none;
}
.series-top::-webkit-details-marker { display: none; }
.series-top:hover { background: #fbfaf6; }
.series-top:focus-visible { outline-offset: -3px; }
.series-copy { min-width: 0; }
.series-copy .episode-number, .series-name { display: block; }
.series-name { font: 400 1.55rem/1.25 Georgia,serif; }
.series-count { color: #647077; font-size: .875rem; white-space: nowrap; }
.series-chevron {
  justify-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid #82683a;
  border-bottom: 2px solid #82683a;
  transform: rotate(45deg) translate(-1px, -1px);
}
.series-card[open] > .series-top .series-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.series-body {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(18px, 3vw, 30px);
  border-top: 1px solid #eceae4;
}
.series-card:not([open]) > .series-body { display: none; }
.series-body-player-only { grid-template-columns: minmax(0, 1fr); }
.series-desc { color: #4e5b63; font-size: 1rem; margin: 0; line-height: 1.65; }
.series-episodes { min-width: 0; }
.series-empty { font-size: 1rem; color: #627078; margin: 0; }
.episode-picker {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.episode-picker button {
  position: relative;
  flex: none;
  min-width: 34px;
  min-height: 36px;
  padding: .2rem .35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #354450;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.episode-picker button + button::before {
  position: absolute;
  inset-inline-start: -3px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #d0cbbf;
  transform: translateY(-50%);
  content: "";
  pointer-events: none;
}
.episode-picker button:focus-visible { outline-offset: -3px; }
.episode-picker button:hover { background: #f4f2ec; }
.episode-picker button[aria-pressed="true"] {
  border-color: #846b3d;
  background: #eee6d4;
  color: #322b1e;
  font-weight: 700;
}
.selected-episode {
  margin-top: 1rem;
  padding: clamp(12px, 2.5vw, 22px);
  border: 1px solid #e5e2d8;
  border-radius: 6px;
  background: #f8f7f2;
  overflow-wrap: anywhere;
}
.selected-episode .episode-title { font-size: 1.35rem; }
.approval-note { margin-top: 51px; padding: 20px 24px; display: flex; gap: 18px; background: #f1eee5; color: #4e5860; }
.approval-icon { border: 1px solid #9f875d; border-radius: 50%; color: #8f784e; display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; font-weight: 800; font-family: Georgia,serif; }
.approval-note strong { font-size: .9rem; color: #2c3945; }
.approval-note p { font-size: .82rem; line-height: 1.75; margin: 4px 0 0; }
.site-footer { background: var(--navy); color: #e8e4d8; padding: 32px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; font-size: .78rem; }
.footer-row > div { display: flex; flex-direction: column; gap: 6px; }
.footer-row strong { font-family: Georgia,serif; font-size: 1rem; font-weight: 400; }
.footer-row span { color: #9caab1; }
.footer-right { text-align: right; }
.loading { padding: 24px; background: #f3f0e8; color: #647078; }
@media(max-width:960px) {
  .site-header nav { gap: 15px; }
  .hero-grid { gap: 5%; }
}
@media(max-width:740px) {
  .container { width: min(100% - 36px,600px); }
  .header-content { min-height: 72px; gap: 12px; }
  .site-header nav { display: none; }
  .header-status { margin-left: auto; }
  .brand-type strong { font-size: 13px; }
  .brand-type span { font-size: 7px; }
  .mark,.mark svg { width: 32px; height: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; padding-block: 63px 78px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.5rem,10vw,5.2rem); }
  .hero-actions { margin-bottom: 28px; }
  .section { padding: 70px 0; }
  .two-column { grid-template-columns: 1fr; gap: 29px; }
  .section-heading,.listening-header { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 34px; }
  .section-heading p,.listening-header p { max-width: 530px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: unset; padding: 24px; }
  .step-icon { margin: 16px 0; }
  .episode-card-featured { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .episode-thumbnail { width: 100%; height: 112px; min-height: auto; }
  .series-body { grid-template-columns: minmax(0, 1fr); }
  .series-top { gap: 12px; }
  .series-name { font-size: 1.3rem; }
  .footer-row { flex-direction: column; align-items: start; }
  .footer-right { text-align: left; }
}
@media(max-width:410px) {
  .header-status { font-size: .64rem; padding: 5px 8px; }
  .hero-actions { gap: 17px; }
  h1 { font-size: 3.25rem; }
  .featured-header .small-caps { display: none; }
  .series-top { grid-template-columns: minmax(0, 1fr) 14px; }
  .series-chevron { grid-column: 2; grid-row: 1; }
  .series-count { grid-column: 1; }
  .player-tools { align-items: start; }
  .player-tools label { width: 100%; }
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}

[hidden] { display: none !important; }
.site-footer a, .server-link { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.player-wrap audio { display: block; width: 100%; }
.server-link { display: inline-block; margin-top: .5rem; }
.admin-page { background: #f6f3ec; color: #172633; }
.admin-header { background: #0c1824; color: #f6f3ec; padding: 1rem 0; }
.admin-header a { color: inherit; }
.admin-main { max-width: 820px; padding-block: 3rem 4rem; }
.admin-main h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; }
.admin-main h2 { font-size: 1.55rem; }
.admin-main form > section { margin: 1.5rem 0; padding: clamp(1rem, 4vw, 1.75rem); background: #fff; border: 1px solid #d2cec3; border-radius: .5rem; }
.admin-main fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.admin-field { display: grid; gap: .3rem; margin-block: 1rem; font-weight: 600; }
.admin-field input, .admin-field textarea { width: 100%; padding: .6rem .7rem; font: inherit; font-weight: 400; color: #172633; background: #fff; border: 1px solid #6e7578; border-radius: .25rem; }
.admin-field textarea { resize: vertical; min-height: 5.5rem; }
.admin-field small { font-weight: 400; }
.admin-main details { margin: .8rem 0; padding: .8rem; background: #f7f6f2; border: 1px solid #d2cec3; border-radius: .25rem; }
.admin-main summary { cursor: pointer; font-weight: 600; }
.admin-main details details { background: #fff; }
.admin-secondary { background: #fff; color: #182834; padding: .55rem .75rem; font: inherit; font-weight: 600; border: 1px solid #65717b; border-radius: .25rem; cursor: pointer; }
.admin-main .button-primary { color: #fff; background: #223747; cursor: pointer; }
.admin-main .button-primary:disabled { opacity: .65; cursor: wait; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.admin-actions p { margin: 0; }

.series-video { margin-top: 1rem; }
.series-video-title { font-size: 1rem; color: #283948; margin: 0 0 .6rem; }
.series-video video {
  display: block;
  width: min(100%, 208px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #0c1824;
  border-radius: .6rem;
}
@media (max-width: 740px) {
  .series-video-title { text-align: center; }
  .series-video video { margin-inline: auto; }
}
#login { max-width: 28rem; }
.admin-video { margin-block: 1rem; padding: .75rem 1rem; border: 1px solid #d2cec3; border-radius: .3rem; }
.admin-video p { margin-bottom: .5rem; }

.admin-series-status {
  display: inline-block;
  margin-inline-start: .65rem;
  padding: .15rem .5rem;
  border-radius: .25rem;
  background: #eee8dc;
  color: #664b25;
  font-size: .875rem;
}
.admin-series-status[data-visible="true"] { background: #e2ece4; color: #265439; }
.admin-series-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-block-start: .65rem;
  cursor: pointer;
}
.admin-series-toggle input {
  appearance: none;
  width: 2.7rem;
  height: 1.5rem;
  margin: 0;
  border-radius: 1rem;
  border: 1px solid #68747a;
  background: radial-gradient(circle at .7rem center, #fff .46rem, transparent .48rem), #68747a;
  cursor: pointer;
}
.admin-series-toggle input:checked {
  border-color: #295940;
  background: radial-gradient(circle at calc(100% - .7rem) center, #fff .46rem, transparent .48rem), #295940;
}
@media (forced-colors: active) {
  .admin-series-toggle input { appearance: auto; width: 1.5rem; background: none; }
}
