:root {
  --purple: #713399;
  --ink: #291e30;
  --muted: #75677e;
  --line: #e6ddec;
  --soft: #f4edf8;
  --orange: #d74480;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #faf7fc;
  color: var(--ink);
  font: 16px/1.5 "DM Sans", sans-serif;
  border-top: 5px solid var(--orange);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
.site-header, .layout, .site-footer {
  width: min(1200px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.signature-brand img {
  width: 150px;
  height: 65px;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}
.version {
  margin: 0;
  max-width: 420px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title {
  width: min(1200px, calc(100% - 40px));
  margin: 28px auto 0;
  text-align: left;
}
.page-title h1 {
  margin: 0;
  max-width: 22em;
  font: 800 42px/1.08 Manrope, sans-serif;
  letter-spacing: -0.03em;
}
.page-title .hero-sub {
  margin: 14px 0 0;
  max-width: 40em;
  color: var(--ink);
  font: 700 22px/1.3 Manrope, sans-serif;
}
.page-title .hero-line {
  margin: 12px 0 0;
  max-width: 46em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.page-title .hero-line + .hero-line {
  margin-top: 4px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 25fr) minmax(0, 60fr) minmax(0, 15fr);
  gap: 18px;
  align-items: start;
  padding: 26px 0 10px;
}
.section-title h2 {
  font: 700 22px/1.2 Manrope, sans-serif;
  margin: 0 0 12px;
}
.toc-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.list-title {
  margin: 0;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
}
.lesson {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  text-align: left;
  color: var(--ink);
}
.lesson:hover { background: #f8f2fc; }
.lesson[aria-current="true"] {
  background: #eee0f7;
  color: #672b90;
  box-shadow: inset 4px 0 var(--orange);
}
.lesson .num { font-size: 12px; color: var(--muted); width: 22px; }
.lesson strong { font-weight: 600; font-size: 14px; }
.lesson-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lesson-copy strong { display: block; }
.lesson-copy small { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--purple); font-weight: 700; }

details { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 14px;
  color: var(--purple);
}
summary:hover { background: #f8f2fc; }
.downloads { margin: 0; padding: 0 14px 8px; }
.resource {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
a.resource:hover strong { text-decoration: underline; }
.lesson-download { margin-top: 12px; }
.download-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.download-btn:hover { background: #5c287f; }
.resource strong { display: block; font-weight: 600; color: var(--ink); font-size: 13px; }
.resource small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.resource > span:last-child { color: var(--purple); font-weight: 600; white-space: nowrap; }
.player {
  aspect-ratio: 16/9;
  background: #201326;
  border: 3px solid #561477;
  border-radius: 10px;
  box-shadow: 0 8px 22px #50087918;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}
.player-kicker { margin: 0 0 8px; letter-spacing: 1.4px; font-size: 12px; font-weight: 700; color: #e7ceef; text-transform: uppercase; }
.player-title { margin: 0; font: 700 32px/1.2 Manrope, sans-serif; }
.player-note { margin: 12px 0 0; color: #d7c3e4; font-size: 14px; }
.now-playing { padding-top: 16px; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--purple); }
.now-playing h3 { margin: 0 0 6px; font: 700 20px/1.3 Manrope, sans-serif; }
#lesson-desc { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.resource-label { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--purple); }
#lesson-resources { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
#lesson-resources li { margin: 4px 0; }
.ctas { display: flex; flex-direction: column; gap: 14px; }
.cta-intro { display: none; margin: 20px 0 14px; font: 800 20px/1.2 Manrope, sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.cta-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px #50087914;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter .18s ease;
}
.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-10px) scale(1.035);
  box-shadow: 0 24px 44px #50087955;
  outline: 3px solid #713399;
  outline-offset: 3px;
}
.cta-card:hover img,
.cta-card:focus-visible img { filter: brightness(1.08); }
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}
.copy { margin: 0; }
.connect-bar { display: flex; align-items: center; gap: 8px; }
.connect-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
#lessons { display: flex; flex-direction: column; }
.player.has-video {
  padding: 0;
  display: block;
  overflow: hidden;
  background: #000;
}
.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.player-coming { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover { background: var(--soft); }
@media (max-width: 860px) {
  .site-header, .layout, .site-footer, .page-title {
    width: min(1200px, calc(100% - 32px));
  }
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
  }
  .signature-brand img { width: 120px; height: auto; }
  .connect-bar { gap: 10px; }
  .connect-label { font-size: 13px; }
  .social-icon { width: 44px; height: 44px; }
  .page-title { margin-top: 18px; }
  .page-title h1 { font-size: 30px; }
  .page-title .hero-line { font-size: 16px; }
  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 16px;
  }
  .player-col { order: -1; }
  .cta-intro { display: block; }
  .lesson { padding: 14px; }
  .summary { padding: 16px 14px; }
  .download-btn { display: block; text-align: center; }
  .resource > span:last-child { white-space: normal; }
  .now-playing h3 { font-size: 18px; }
}
