@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Jost:wght@400;500;600&display=swap');

/* Palette drawn from the studio photos: velvet sofa, gold chains, linen walls. */
:root {
  --velvet: #2F4A3A;
  --velvet-deep: #243A2D;
  --gold: #B8935A;
  --gold-soft: #D9C29A;
  --espresso: #2A211B;
  --taupe: #6E6258;
  --linen: #FBF8F4;
  --blush: #F2E4DD;
  --line: #E7DED3;
  --white: #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 14px;
  --measure: 66ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--linen);
  color: var(--espresso);
}

img, video { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1em; }

a { color: var(--velvet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.button {
  display: inline-block;
  padding: 15px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--gold-soft); color: var(--espresso); }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Sales page ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
.wordmark:hover { color: inherit; }

.header-link {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.header-link:hover { color: inherit; background: rgba(255, 255, 255, 0.08); }

.hero {
  background: var(--velvet);
  color: var(--linen);
}

.hero-grid {
  display: grid;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.hero h1 { color: var(--white); max-width: 16ch; }

.hero-lede {
  font-size: 1.15rem;
  color: #E5E0D6;
  max-width: 46ch;
  margin-bottom: 30px;
}

/* The signature: a gold chain that welds shut once on load. */
.chain {
  width: min(100%, 420px);
  height: auto;
  margin: 6px 0 26px;
  overflow: visible;
}
.chain .links { clip-path: inset(0 0 0 0); }
.chain .spark { opacity: 0; transform-origin: 402px 22px; }

@media (prefers-reduced-motion: no-preference) {
  .chain .links { animation: draw-chain 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.2s both; }
  .chain .spark { animation: weld 0.7s ease-out 1.7s both; }
}

@keyframes draw-chain {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes weld {
  0% { opacity: 0; transform: scale(0.3); }
  35% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1); }
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.price {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}

.buy-note {
  font-size: 0.95rem;
  color: #CFC8BB;
  margin-top: 16px;
  margin-bottom: 0;
}

.hero-photo {
  margin: 0;
  justify-self: center;
  width: min(100%, 440px);
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217, 194, 154, 0.5);
  padding: 10px;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 578 / 700;
  object-fit: cover;
  border-radius: 210px 210px 8px 8px;
}

.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }

.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head p { color: var(--taupe); margin: 0; }

.preview-video {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  background: var(--espresso);
  border-radius: var(--radius);
}

.learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 30px 48px;
}

.learn-list li {
  position: relative;
  padding-left: 34px;
}
.learn-list li::before {
  /* one open chain link */
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 16px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 8px;
}
.learn-list h3 { font-size: 1.4rem; margin-bottom: 0.2em; }
.learn-list p { color: var(--taupe); margin: 0; }

.included {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}
.included-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--velvet);
}
.included-list span { color: var(--taupe); font-size: 0.98rem; }

.curriculum { max-width: 820px; }

.module-row {
  border-bottom: 1px solid var(--line);
}
.module-row:first-child { border-top: 1px solid var(--line); }

.module-row summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
}
.module-row summary::-webkit-details-marker { display: none; }
.module-row summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.module-row[open] summary::after { transform: rotate(45deg); }

.module-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  flex: 1;
}
.module-count {
  color: var(--taupe);
  font-size: 0.92rem;
  white-space: nowrap;
}

.module-row ul {
  list-style: none;
  margin: 0;
  padding: 0 4px 18px;
}
.module-row li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--taupe);
}
.lock { flex: none; width: 14px; height: 14px; color: var(--gold); }
.tag {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--velvet);
  background: #E8EDE6;
  border-radius: 999px;
  padding: 1px 10px;
}

.instructor { background: var(--blush); }

.instructor-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.instructor-photo {
  margin: 0;
  width: min(100%, 360px);
}
.instructor-photo img {
  width: 100%;
  aspect-ratio: 448 / 520;
  object-fit: cover;
  object-position: top;
  border-radius: 180px 180px var(--radius) var(--radius);
}

.instructor-note { max-width: 36rem; }
.instructor-note .byline { color: var(--taupe); margin-top: -0.4em; }
.instructor-note p:last-child { font-family: var(--serif); font-size: 1.3rem; font-style: italic; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; line-height: 1.2; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { padding: 0 4px 12px; color: var(--taupe); max-width: var(--measure); }

.closing {
  background: var(--velvet);
  color: var(--linen);
  text-align: center;
}
.closing h2 { color: var(--white); }
.closing p { color: #E5E0D6; }
.closing .price { margin: 10px 0 24px; }

.site-footer {
  padding: 28px 0 36px;
  color: var(--taupe);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

@media (min-width: 720px) {
  .learn-list { grid-template-columns: repeat(2, 1fr); }
  .included-list { grid-template-columns: repeat(4, 1fr); }
  .instructor-grid { grid-template-columns: 360px 1fr; gap: 64px; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 64px;
    padding-top: 40px;
    padding-bottom: 96px;
  }
  .learn-list { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 104px 0; }
}

/* ---------- Student area ---------- */

.layout { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 290px;
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  background: var(--velvet);
  color: var(--linen);
}
.sidebar.open { transform: translateX(0); box-shadow: 0 0 0 100vmax rgba(42, 33, 27, 0.35); }

.sidebar-home {
  display: block;
  padding: 26px 24px 20px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 194, 154, 0.3);
}
.sidebar-home:hover { color: var(--gold-soft); }

.sidebar-modules { padding: 14px 0; flex: 1; }

.sidebar .module { padding: 8px 0; }

.sidebar .module-title {
  padding: 4px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.lesson-link {
  display: block;
  padding: 6px 24px 6px 36px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #E5E0D6;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.lesson-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.lesson-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--gold);
}

.sidebar-footer {
  padding: 18px 24px 26px;
  border-top: 1px solid rgba(217, 194, 154, 0.3);
}
.sidebar-footer a { color: #E5E0D6; font-size: 0.95rem; }
.sidebar-footer a:hover { color: var(--white); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 20px 0;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.content {
  padding: 28px 20px 72px;
  max-width: 900px;
}

.dashboard-intro { color: var(--taupe); max-width: var(--measure); margin-bottom: 36px; }

.module-grid {
  display: grid;
  gap: 16px;
}

.module-card {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.module-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.module-card ul { list-style: none; margin: 0; padding: 0; }
.module-card li { padding: 3px 0; }
.module-card a { text-decoration: none; }
.module-card a:hover { text-decoration: underline; }

.lesson-header { margin-bottom: 26px; }
.lesson-header .module-label { color: var(--taupe); font-size: 0.95rem; margin-bottom: 6px; }
.lesson-header h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 0; }

.lesson-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 32px;
  background: var(--espresso);
  border-radius: var(--radius);
}

.lesson-description { max-width: var(--measure); }
.lesson-description p { margin: 0 0 1em; }
.lesson-description ul, .lesson-description ol { padding-left: 1.3em; }
.lesson-description li { margin-bottom: 0.35em; }
.lesson-description strong { font-weight: 600; }

.lesson-assets {
  max-width: var(--measure);
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--blush);
  border-radius: var(--radius);
}
.lesson-assets h4 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.lesson-assets ul { margin: 0; padding-left: 1.2em; }

.lesson-nav {
  display: grid;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.lesson-nav a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--espresso);
  line-height: 1.35;
}
.lesson-nav a:hover { border-color: var(--gold); color: var(--espresso); }
.lesson-nav small { display: block; color: var(--taupe); font-size: 0.85rem; margin-bottom: 2px; }
.lesson-nav .next { text-align: right; }

@media (min-width: 640px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-nav { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 290px 1fr; }
  .sidebar { position: sticky; transform: none; }
  .nav-toggle { display: none; }
  .content { padding: 56px 56px 96px; }
}

/* ---------- Log in, password, and receipt pages ---------- */

.simple-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--velvet);
}

.simple-page .wordmark { color: var(--linen); margin-bottom: 22px; }

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--linen);
  border-radius: var(--radius);
}
.auth-box h1 { font-size: 2.1rem; }
.auth-box p { color: var(--taupe); }

.auth-box label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 500;
}
.auth-box input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--espresso);
}
.auth-box input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }

.auth-box button {
  width: 100%;
  margin: 6px 0 18px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--velvet);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-box button:hover { background: var(--velvet-deep); }

.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #F6DEDA;
  color: #7A2E22 !important;
  font-size: 0.95rem;
}

