:root {
  color-scheme: light;
  --ink: #102420;
  --dark: #0d1715;
  --deep: #09110f;
  --white: #faf7ed;
  --gold: #f4ca63;
  --gold-hover: #ffe197;
  --cream: #f8f7f0;
  --mist: #efeee5;
  --body: #465650;
  --muted: #b9c7bd;
  --line: #dadfd5;
  --max-width: 72rem;
  --ease-out: cubic-bezier(.22, .7, .28, 1);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5.25rem; }
body { margin: 0; background: var(--dark); color: var(--white); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid #827019; outline-offset: 5px; }

.wrap { width: min(var(--max-width), calc(100% - 5rem)); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 11; transform: translateY(-200%); padding: .7rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ffffff19;
  background: var(--dark);
  background: color-mix(in srgb, var(--dark) 93%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 4.85rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 2.6rem; height: 2.6rem; flex: none; border: 1px solid #52736f; border-radius: .5rem; }
.brand-name { display: grid; font-weight: 700; font-size: 1.12rem; line-height: 1.05; letter-spacing: -.025em; }
.brand-name small { font-size: .7rem; line-height: 1.4; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.navigation { display: flex; align-items: center; gap: 2rem; }
.navigation a, .footer-channel { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.navigation a {
  padding-block: .42rem;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: color .2s ease, background-size .25s var(--ease-out);
}
.navigation a:hover { color: var(--white); background-size: 100% 1px; }
.footer-channel:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.3rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  padding: .65rem 1.2rem;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.25;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .22s ease, transform .22s var(--ease-out);
}
.button-outline { min-height: 2.65rem; color: var(--white); border-color: #82918568; font-size: .875rem; }
.button-outline:hover { background: #ffffff12; border-color: var(--muted); }
.button-gold { background: var(--gold); color: #1d2117; box-shadow: 0 .45rem 1.1rem #09110f35, inset 0 1px #faf7ed7a; }
.button-gold:hover { background: var(--gold-hover); box-shadow: 0 .65rem 1.4rem #09110f58, inset 0 1px #faf7ed7a; }

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(ellipse at 81% 44%, #26443a 0%, #12231e 38%, transparent 71%),
    linear-gradient(160deg, var(--dark) 42%, var(--deep));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, #f4ca638a 44%, #f4ca632b 81%, transparent);
}
.hero-inner {
  min-height: 39rem;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  padding-block: clamp(4rem, 6.2vw, 5.9rem);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: #53654e; text-transform: uppercase; font-weight: 750; font-size: .875rem; line-height: 1.4; letter-spacing: .115em; }
.hero .eyebrow, .section-teacher .eyebrow { color: var(--gold); }
.hero .eyebrow { display: flex; align-items: center; gap: .8rem; }
.dot { width: 1.6rem; height: 1px; flex: 0 0 auto; background: var(--gold); }
.hero h1 { margin-top: 1.35rem; font-size: clamp(3rem, 5.35vw, 4.95rem); font-weight: 800; letter-spacing: -.073em; line-height: 1.01; }
.hero h1 em {
  display: block;
  margin-top: .1em;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .97em;
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.02;
}
.hero-description { margin-top: 1.75rem; max-width: 33rem; color: #d4ddd3; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.58; }
.hero-cta { margin-top: 2.15rem; display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }
.hero-cta .button { min-height: 3.55rem; padding-inline: 1.65rem; }
.hero-price { font-size: 1.07rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.hero-art {
  position: relative;
  isolation: isolate;
  width: calc(100% - 1rem);
  max-width: 33rem;
  justify-self: start;
  perspective: 65rem;
}
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -2.8rem -3.5rem -2.8rem -2rem;
  background:
    linear-gradient(90deg, #f4ca632c 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(#f4ca632c 1px, transparent 1px) 0 0 / 3rem 3rem;
  mask-image: radial-gradient(ellipse at 54% 50%, #000 48%, transparent 78%);
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1rem -.9rem -.9rem 1rem;
  border: 1px solid #f4ca6361;
  border-radius: 1.1rem;
  background: linear-gradient(155deg, #26443a44, #0d1715);
  pointer-events: none;
}
.cover-pose {
  transform: rotateX(2deg) rotateY(-7deg);
  transform-style: preserve-3d;
}
.cover-frame {
  --book-depth: clamp(.65rem, 1.4vw, 1.05rem);
  position: relative;
  padding: clamp(.42rem, .9vw, .72rem);
  border: 1px solid #f4ca6380;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #26443a, #0d1715 60%);
  box-shadow: 0 1.65rem 4rem #09110f9c, inset 0 1px #faf7ed29;
  transform-style: preserve-3d;
}
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  border: 1px solid #f4ca6361;
  background: #26443a;
  backface-visibility: hidden;
  pointer-events: none;
}
.cover-frame::before {
  inset: 100% .5rem auto;
  height: var(--book-depth);
  background: linear-gradient(#26443a, var(--deep));
  transform: rotateX(-90deg);
  transform-origin: center top;
}
.cover-frame::after {
  inset: .5rem auto .5rem 100%;
  width: var(--book-depth);
  background: repeating-linear-gradient(90deg, #26443a 0 2px, #12231e 2px 3px);
  transform: rotateY(90deg);
  transform-origin: left center;
}
.cover-frame img { border-radius: .7rem; width: 100%; }

.section { padding-block: clamp(4rem, 7vw, 6.4rem); }
.section-light { background: var(--cream); color: var(--ink); }
.section h2 { margin-top: .75rem; max-width: 18ch; font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.063em; }
.section-intro { margin-top: 1.2rem; max-width: 38rem; color: var(--body); font-size: 1.11rem; line-height: 1.62; }
.course-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: 1.25rem 3rem; align-items: end; }
.course-heading .section-intro { margin-top: 0; }
.topics {
  --topic-pad: clamp(1.3rem, 2.8vw, 2.2rem);
  --topic-icon-size: 3rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, #faf7ed, #efeee55c);
}
.topics::before {
  content: "";
  position: absolute;
  top: calc(var(--topic-pad) + var(--topic-icon-size) / 2);
  inset-inline-start: calc(var(--topic-pad) + var(--topic-icon-size) / 2);
  inset-inline-end: calc(33.333% - var(--topic-pad) - var(--topic-icon-size) / 2);
  height: 1px;
  background: #a8893785;
}
.topic { position: relative; padding: var(--topic-pad); }
.topic + .topic { border-inline-start: 1px solid var(--line); }
.topic h3 { margin-top: 1.15rem; font-size: 1.25rem; letter-spacing: -.032em; line-height: 1.22; }
.topic p { margin-top: .6rem; color: var(--body); }
.topic-icon {
  position: relative;
  z-index: 1;
  width: var(--topic-icon-size);
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border: 1px solid #a3ad9d;
  border-radius: .65rem;
  background: #e7ebdc;
  box-shadow: 0 0 0 .28rem var(--cream);
  color: #36503c;
}
.topic-icon i { display: block; width: 1.13rem; height: 1.13rem; border: 1.5px solid currentColor; border-radius: .15rem; position: relative; }
.icon-extract i::before { content: ""; position: absolute; inset: .25rem .18rem auto; height: .12rem; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.icon-grid i { background: linear-gradient(to right, transparent 43%, currentColor 43% 54%, transparent 54%), linear-gradient(to bottom, transparent 43%, currentColor 43% 54%, transparent 54%); }
.icon-check i::before { content: ""; position: absolute; width: .43rem; height: .23rem; top: .21rem; left: .21rem; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }

.section-program { border-block: 1px solid var(--line); background: linear-gradient(138deg, var(--mist), var(--cream)); color: var(--ink); }
.program-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: clamp(2.2rem, 5vw, 4.65rem); }
.course-example {
  margin-top: 1.55rem;
  max-width: 34rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #dadfd5;
  border-inline-start: 3px solid #a88937;
  border-radius: 0 .55rem .55rem 0;
  background: var(--cream);
  color: var(--body);
}
.course-example strong { display: block; margin-bottom: .32rem; color: var(--ink); }
.program-list { display: grid; align-content: start; gap: .75rem; }
.program-list details {
  background: var(--cream);
  border: 1px solid #d9ddcf;
  border-radius: .7rem;
  transition: border-color .2s ease, box-shadow .24s ease;
}
.program-list details:hover { border-color: #a3ad9d; }
.program-list details[open] { border-color: #a3ad9d; box-shadow: 0 .65rem 1.55rem #1024200c; }
.program-list summary { min-height: 4.1rem; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .8rem 1rem; color: var(--ink); font-size: 1.06rem; font-weight: 700; line-height: 1.25; list-style: none; }
.program-list summary::-webkit-details-marker { display: none; }
.program-list summary:hover { color: #345b43; }
.lesson-range { min-width: 3.55rem; padding: .3rem .45rem; border-radius: .3rem; background: #e8ecdf; color: #415541; font-size: .875rem; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums; }
.program-list details[open] .lesson-range { background: var(--ink); color: var(--white); }
.toggle { width: .78rem; height: .78rem; margin-left: .2rem; position: relative; }
.toggle::before, .toggle::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; height: 2px; border-radius: 1px; background: currentColor; }
.toggle::after { transform: rotate(90deg) scaleX(1); transition: transform .25s var(--ease-out); }
details[open] .toggle::after { transform: rotate(90deg) scaleX(0); }
.program-list ol { margin: 0 1rem; padding: 0 0 .85rem 2rem; border-top: 1px solid var(--line); color: var(--body); }
.program-list li { padding: .64rem 0 0 .25rem; }
.program-list li::marker { color: #52674f; font-variant-numeric: tabular-nums; font-weight: 650; }

.section-teacher { background: radial-gradient(ellipse at 24% 14%, #26443a, transparent 63%), #13241e; }
.teacher-layout { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2rem, 7vw, 6.2rem); }
.teacher-image {
  position: relative;
  width: calc(100% - .6rem);
  max-width: 25.5rem;
  padding: .48rem;
  border: 1px solid #f4ca6380;
  border-radius: .95rem;
  background: #0d1715;
  box-shadow: 0 1.35rem 2.8rem #09110f54;
}
.teacher-image::after {
  content: "";
  position: absolute;
  inset: .95rem -.58rem -.58rem .95rem;
  border: 1px solid #f4ca6366;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 .95rem 0;
  pointer-events: none;
}
.teacher-image img { width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: center 34%; border-radius: .58rem; }
.section-teacher .section-intro { color: #d4ddd3; }
.text-link { display: inline-block; margin-top: 1.3rem; color: var(--gold); text-underline-offset: .23rem; font-weight: 650; }
.text-link:hover { color: var(--gold-hover); }

.section-enrollment { background: linear-gradient(145deg, var(--cream), var(--mist)); }
.enrollment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; gap: clamp(2.5rem, 6.5vw, 6rem); }
.offer {
  background:
    linear-gradient(90deg, #f4ca6338 2%, var(--gold) 50%, #f4ca6338 98%) center top / 100% 2px no-repeat,
    radial-gradient(ellipse at 95% 0%, #26443a, #152820 66%);
  color: var(--white);
  padding: clamp(1.5rem, 3.3vw, 2.5rem);
  border-radius: 1rem;
  border: 1px solid #253a2d;
  box-shadow: 0 1.2rem 3rem #10242024;
}
.offer-title { font-weight: 650; font-size: 1.08rem; }
.offer-price { color: var(--gold); font-size: clamp(4rem, 6.5vw, 5.25rem); font-weight: 800; line-height: 1; letter-spacing: -.075em; margin: .55rem 0; }
.offer-price small, .offer-price span { font-size: .47em; font-weight: 650; letter-spacing: -.025em; }
.payment-terms { color: #cad6cb; font-size: .875rem; margin-bottom: 1.15rem; }
.offer ul { margin: 0 0 1.3rem; padding: 1rem 0 0; border-top: 1px solid #ffffff28; list-style: none; }
.offer li { display: flex; gap: .6rem; align-items: baseline; color: #e3e9df; margin: .35rem 0; }
.offer li::before { content: ""; width: .48rem; height: .28rem; flex: 0 0 auto; border: solid var(--gold); border-width: 0 0 2px 2px; transform: translateY(-.17rem) rotate(-45deg); }
.offer .button { width: 100%; }
.checkout-note { margin-top: .75rem; color: #cad6cb; font-size: .875rem; text-align: center; }
.site-footer { background: var(--deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 6.5rem; }

@media (max-width: 62rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner { min-height: 0; padding-block: 4rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2.75rem, 6vw, 4rem); }
}

@media (max-width: 45rem) {
  html { scroll-padding-top: 4.7rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.5rem; }
  .navigation { display: none; }
  .hero-inner, .course-heading, .program-layout, .teacher-layout, .enrollment-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding-block: 3rem 3.65rem; gap: 2.35rem; }
  .hero h1 { font-size: clamp(2.5rem, 9.5vw, 4.2rem); }
  .hero-description { margin-top: 1.2rem; }
  .hero-cta { margin-top: 1.5rem; }
  .hero-art { width: calc(100% - 1.2rem); justify-self: center; }
  .hero-art::after { inset: .68rem -.55rem -.6rem .68rem; }
  .topics { grid-template-columns: minmax(0, 1fr); margin-top: 1.8rem; }
  .topics::before { display: none; }
  .topic:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(var(--topic-pad) + var(--topic-icon-size) / 2);
    bottom: calc(-1 * (var(--topic-pad) + var(--topic-icon-size) / 2));
    inset-inline-start: calc(var(--topic-pad) + var(--topic-icon-size) / 2);
    width: 1px;
    background: #a8893785;
  }
  .topic {
    display: grid;
    grid-template-columns: var(--topic-icon-size) minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
  }
  .topic-icon { grid-row: 1 / span 2; }
  .topic + .topic { border-inline-start: 0; border-top: 1px solid var(--line); }
  .topic h3 { margin-top: .08rem; }
  .topic p { grid-column: 2; margin-top: .45rem; }
  .teacher-image { max-width: 23rem; }
  .teacher-layout { gap: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: enter .52s var(--ease-out) both; }
  .cover-pose {
    transform: rotateX(calc(2deg + var(--cover-pitch, 0deg))) rotateY(calc(-7deg + var(--cover-yaw, 0deg)));
    transition: transform .46s var(--ease-out);
  }
  .hero-art.is-book-visible .cover-frame { animation: book-arrival 3.6s var(--ease-out); }
  [data-reveal].is-entering { animation: enter .57s var(--ease-out); }
  [data-reveal]:focus-within { animation: none; }
  .program-list details[open] ol { animation: enter .3s var(--ease-out); }

  @supports (animation-timeline: scroll()) {
    .site-header::after {
      content: "";
      position: absolute;
      inset: auto 0 -1px;
      height: 1px;
      background: var(--gold);
      transform-origin: left center;
      animation: reading-progress linear both;
      animation-timeline: scroll(root block);
      pointer-events: none;
    }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button-gold:hover { transform: translateY(-2px); }
  .button-gold:active { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .navigation a, .program-list details, .toggle::after { transition: none; }
}

@keyframes enter {
  from { opacity: .72; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes book-arrival {
  0% { transform: translateY(14px) rotateX(7deg) rotateY(-21deg); }
  42% { transform: translateY(-5px) rotateX(-3deg) rotateY(11deg); }
  73% { transform: translateY(2px) rotateX(1deg) rotateY(-3deg); }
  100% { transform: translateY(0) rotateX(0) rotateY(0); }
}

@keyframes reading-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
