@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("./assets/playfair.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("./assets/playfair-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sand: #f5ede3;
  --paper: #fffaf3;
  --teal: #0e5a67;
  --deep: #104550;
  --night: #08353f;
  --text: #365359;
  --soft: #dbe9e7;
  --pink: #ff2e88;
  --pink-light: #ff61a4;
  --berry: #a51b55;
  --line: #d7cdc1;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --header-height: 78px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--sand);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--deep); }
h1, h2 { line-height: 1.045; letter-spacing: -.055em; }
h2 { font-size: clamp(2.75rem, 5.0vw, 4.7rem); }
h1 em, h2 em { font-weight: 500; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
.wrap { width: min(1216px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: clamp(76px, 8.3vw, 125px); }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-150%);
  padding: 12px 18px;
  background: var(--paper);
  border-radius: 8px;
}
.skip:focus { transform: translateY(0); }

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--sand);
  border-bottom: 1px solid #dfd3c6;
}
.header-inner { min-height: calc(var(--header-height) - 1px); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.scroll-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  pointer-events: none;
}
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--deep); text-decoration: none; flex-shrink: 0; }
.monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 2px 2px 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 500 16px/1 var(--serif);
  letter-spacing: -.115em;
}
.brand-name { font: 500 clamp(1.12rem, 2vw, 1.42rem)/1.2 var(--serif); letter-spacing: -.035em; }
.main-nav { display: flex; gap: clamp(16px, 2.55vw, 38px); }
.main-nav a { color: var(--deep); text-decoration: none; font-size: .92rem; font-weight: 600; position: relative; }
.main-nav a::after {
  content: "";
  height: 2px;
  position: absolute;
  background: var(--pink);
  inset: auto 0 -6px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="location"]::after { transform: scaleX(1); }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  gap: 18px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 190ms ease, box-shadow 220ms ease, transform 210ms ease, border-color 190ms ease;
}
.button-pink { background: var(--pink); color: #251422; }
.button-outline { min-height: 43px; padding: 8px 15px; color: var(--deep); border-color: #789095; }
.arrow { font-size: 1.2em; line-height: 1; transition: transform 210ms ease; }
@media (hover: hover) {
  .button:hover { transform: translateY(-2px) scale(1.025); }
  .button-pink:hover { background: var(--pink-light); box-shadow: 0 8px 19px #9a164333; }
  .button-outline:hover { background: var(--paper); border-color: var(--teal); }
  .button:hover .arrow, .text-link:hover span { transform: translateX(4px); }
}
.button:active { transform: scale(.975); box-shadow: none; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--deep);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow span { width: 22px; height: 2px; flex: 0 0 auto; background: var(--pink); }
.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding-block: 10px;
  color: var(--deep);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #0e5a6770;
}
.text-link span { display: inline-block; transition: transform 210ms ease; color: var(--berry); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sand); }
.hero-inner { position: relative; min-height: clamp(570px, 44vw, 660px); display: flex; align-items: center; }
.hero-copy { padding-block: 53px 62px; }
.hero h1 { max-width: 660px; font-size: clamp(3.35rem, 5.43vw, 5.25rem); }
.hero h1 em { display: block; color: var(--teal); }
.hero-lead {
  max-width: 415px;
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.55;
}
.hero-byline { margin-top: 15px; font-size: .98rem; color: var(--deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 24px; }
.hero-visual { position: absolute; inset: 0 0 0 31%; z-index: -1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; }
.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--sand) 0%, #f5ede3f5 13%, #f5ede3ad 29%, #f5ede34a 42%, transparent 59%);
  pointer-events: none;
}

.course-facts { background: var(--teal); color: #fffaf6; }
.course-facts ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.course-facts li { display: flex; gap: 15px; align-items: center; justify-content: center; min-height: 104px; padding: 16px; }
.course-facts li + li { border-left: 1px solid #b1e0e54d; }
.course-facts svg, .benefits svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.course-facts svg { color: #ffb7d8; }
.course-facts strong, .course-facts small { display: block; }
.course-facts strong { font-size: 1rem; }
.course-facts small { font-size: .875rem; color: #dceff0; }

.overview { background: var(--paper); }
.overview-intro { display: grid; grid-template-columns: 1fr .83fr; gap: 40px; align-items: end; }
.overview-intro > p { max-width: 450px; font-size: 1.13rem; line-height: 1.75; padding-bottom: 3px; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 46px; border-block: 1px solid var(--line); }
.benefits article { padding: 30px 27px 30px 0; transition: background 210ms ease; }
.benefits article + article { border-left: 1px solid var(--line); padding-left: 27px; }
.benefits article:hover { background: #f4ebe0; }
.benefits svg { color: var(--teal); display: block; margin-bottom: 14px; transition: transform 210ms ease, color 210ms ease; }
.benefits article:hover svg { color: var(--berry); transform: translateY(-2px); }
.benefits h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.23; letter-spacing: -.035em; margin-bottom: 10px; }
.benefits p { max-width: 32ch; }
.audience { display: flex; gap: 16px 25px; margin-top: 29px; align-items: baseline; }
.audience strong { color: var(--teal); flex-shrink: 0; }

.program { background: var(--sand); }
.program-grid, .faq-grid { display: grid; grid-template-columns: .85fr 1.25fr; gap: clamp(34px, 7vw, 110px); align-items: start; }
.section-aside { position: sticky; top: calc(var(--header-height) + 35px); }
.section-aside > p:not(.eyebrow) { margin-top: 22px; max-width: 34ch; font-size: 1.05rem; }
.section-aside .text-link { margin-top: 15px; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); transition: background 190ms ease; }
.accordion details[open] { background: #fffaf49e; }
.accordion summary {
  display: grid;
  gap: 14px;
  align-items: center;
  min-height: 57px;
  padding: 12px 14px;
  color: var(--deep);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: background 190ms ease;
}
.accordion summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: #eadfd275; }
.accordion summary:focus-visible { position: relative; outline-offset: -3px; }
.lesson-list summary { grid-template-columns: 29px 1fr 26px; min-height: 53px; }
.lesson-number { color: var(--berry); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.plus { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid #0e5a6755; border-radius: 50%; color: var(--teal); }
.plus::before, .plus::after { content: ""; width: 10px; height: 1px; grid-area: 1/1; background: currentColor; }
.plus::after { transform: rotate(90deg); transition: transform 190ms ease; }
details[open] .plus { background: var(--teal); color: white; }
details[open] .plus::after { transform: rotate(0); }
.detail-copy { padding: 0 46px 16px 14px; line-height: 1.6; }
.lesson-list .detail-copy { padding-left: 57px; }
.accordion details[open] .detail-copy { animation: detail-in 190ms ease-out; }
@keyframes detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.teacher { background: var(--teal); color: #e3eff0; }
.teacher-grid { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: clamp(46px, 8.3vw, 132px); align-items: center; }
.portrait { position: relative; margin-right: 12px; }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 49% 49% 5px 5px / 29% 29% 5px 5px; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 7% -12px -12px 12px;
  border: 1px solid #e19eb5;
  border-radius: 49% 49% 5px 5px / 29% 29% 5px 5px;
  pointer-events: none;
}
.teacher h2, .teacher .eyebrow { color: var(--paper); }
.teacher h2 em { color: #f8ccd6; }
.teacher-intro { font-size: 1.17rem; line-height: 1.6; max-width: 43ch; margin-top: 25px; }
.credentials { list-style: none; padding: 0; margin-top: 26px; max-width: 490px; }
.credentials li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid #ade0e060; }
.credentials li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: #ffb6d4; flex: 0 0 auto; }

.faq { background: var(--paper); }
.faq h2 em { display: block; }
.faq-list summary { grid-template-columns: 1fr 26px; }
.faq-list details[open] { background: var(--sand); }

.offer { isolation: isolate; overflow: hidden; position: relative; background: var(--night); color: #e3eff0; }
.offer-visual { position: absolute; z-index: -1; inset: 0 0 0 34%; }
.offer-visual img { height: 100%; object-fit: cover; object-position: 74% 40%; }
.offer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night), #08353ff5 12%, #08353f80 32%, transparent 62%);
  pointer-events: none;
}
.offer-inner { display: flex; align-items: center; min-height: 480px; }
.offer-copy { padding-block: 64px; max-width: 540px; }
.offer h2 { color: var(--paper); font-size: clamp(2.65rem, 4.4vw, 4.55rem); }
.offer h2 em { display: block; color: #f8ccd6; }
.offer .eyebrow { color: var(--paper); }
.offer-copy > p:not(.eyebrow) { max-width: 40ch; margin-top: 19px; }
.offer-copy .checkout-note { color: #d7e8e8; font-size: .94rem; }
.offer .button { margin-top: 19px; }
.offer a:focus-visible, .footer a:focus-visible { outline-color: #ffc9df; }

.footer { color: #d7e8e8; background: var(--night); border-top: 1px solid #cfeded3a; }
.footer-inner { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 21px; }
.footer .brand, .footer .text-link { color: var(--paper); }
.footer p { font-size: .875rem; }
.footer .text-link { text-decoration-color: #d0e6e68c; }
.footer .text-link span { color: #ffaad0; }

@keyframes reveal {
  from { opacity: .16; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
.reveal.is-visible { animation: reveal 430ms cubic-bezier(.2, .6, .3, 1) both; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero-visual { left: 27%; }
  .hero h1 { font-size: clamp(3.45rem, 6.1vw, 4.5rem); }
  .teacher-grid { gap: 58px; }
}

@media (max-width: 835px) {
  .main-nav { gap: 14px; }
  .header-inner { gap: 12px; }
  .teacher-grid { gap: 44px; }
  .offer-copy { max-width: 420px; }
}

@media (max-width: 760px) {
  :root { --header-height: 65px; }
  .wrap { width: calc(100% - 42px); }
  .section { padding-block: 62px; }
  .main-nav, .header-cta { display: none; }
  .monogram { width: 34px; height: 34px; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding-inline: 9px;
    border: 1px solid #789095;
    border-radius: 5px;
    list-style: none;
    font-size: .875rem;
    font-weight: 700;
    color: var(--deep);
    cursor: pointer;
  }
  .menu-icon { width: 13px; height: 8px; border-block: 1px solid currentColor; }
  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: min(220px, calc(100vw - 42px));
    padding: 7px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 5px;
    box-shadow: 0 10px 25px #17313825;
  }
  .mobile-menu nav a { color: var(--deep); display: block; text-decoration: none; font-weight: 600; padding: 10px 12px; }
  .mobile-menu nav a:hover { background: var(--sand); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { min-height: 0; order: -1; }
  .hero-copy { padding-block: 38px 23px; }
  .eyebrow { margin-bottom: 15px; font-size: .875rem; letter-spacing: .11em; }
  .hero-copy { padding-block: 37px 31px; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.5rem); }
  .desktop-break { display: none; }
  .hero-lead { margin-top: 17px; }
  .hero-byline { margin-top: 12px; }
  .hero-actions { gap: 4px 17px; margin-top: 20px; }
  .hero-actions .button { min-height: 48px; padding-inline: 14px; gap: 12px; }
  .hero-visual { position: relative; inset: auto; min-height: 245px; height: clamp(245px, 64vw, 395px); }
  .hero-visual::after { background: linear-gradient(180deg, var(--sand), #f5ede358 8%, transparent 26%); }
  .hero-visual img { object-position: 78% 36%; }
  .course-facts ul { width: calc(100% - 30px); }
  .course-facts li { min-height: 88px; flex-direction: column; gap: 6px; padding: 12px 5px; text-align: center; }
  .course-facts svg { width: 22px; height: 22px; }
  .course-facts strong { font-size: .875rem; line-height: 1.25; }
  .course-facts small { display: none; }
  .overview-intro, .program-grid, .faq-grid, .teacher-grid { grid-template-columns: 1fr; gap: 26px; }
  .overview-intro > p { font-size: 1.05rem; padding: 0; }
  .benefits { margin-top: 29px; grid-template-columns: 1fr; }
  .benefits article, .benefits article + article { padding: 19px 10px 19px 0; border: 0; display: grid; grid-template-columns: 26px 1fr; gap: 0 14px; }
  .benefits article + article { border-top: 1px solid var(--line); }
  .benefits article svg { grid-row: 1 / 3; margin-top: 3px; }
  .benefits h3 { margin-bottom: 6px; }
  .benefits p { max-width: 50ch; }
  .audience { flex-direction: column; gap: 4px; margin-top: 20px; }
  .section-aside { position: static; }
  .section-aside > p:not(.eyebrow) { margin-top: 15px; }
  .section-aside .text-link { margin-top: 6px; }
  .accordion summary { padding-inline: 8px; }
  .lesson-list summary { grid-template-columns: 23px 1fr 26px; gap: 9px; }
  .detail-copy { padding-left: 8px; }
  .lesson-list .detail-copy { padding-left: 40px; }
  .teacher-grid { gap: 37px; }
  .portrait { max-width: 440px; width: calc(100% - 12px); margin-inline: auto; }
  .teacher-intro { margin-top: 17px; font-size: 1.1rem; }
  .credentials { margin-top: 20px; }
  .offer { display: flex; flex-direction: column; }
  .offer-inner { min-height: 0; order: -1; }
  .offer-copy { padding-block: 51px 24px; }
  .offer-visual { position: relative; inset: auto; height: clamp(215px, 60vw, 390px); }
  .offer-visual::after { background: linear-gradient(180deg, var(--night), #08353f55 18%, transparent 45%); }
  .offer-visual img { object-position: 81% 28%; }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; }
  .footer-inner p { order: 1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .button:active, .button:hover .arrow, .text-link:hover span, .benefits article:hover svg { transform: none; }
}
