body {
  --page-bg: var(--paper);
  background-color: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1rem 5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  transition: background-color 0.6s ease;
}
body.nav-active {
  --page-bg: var(--paper-deep);
  background-color: var(--paper-deep);
}

/* ── Page container ─────────────────────────────────────────── */
.container {
  width: min(92vw, 520px);
  margin-top: 1rem;
  animation: fadeUp 0.6s ease both;
}

/* ── Headings ───────────────────────────────────────────────── */
h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 2.4rem;
  text-align: center;
}
h2 {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* ── Body text ──────────────────────────────────────────────── */
strong {
  font-weight: 600;
}
p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ── Section divider ────────────────────────────────────────── */
.section {
  margin-bottom: 2.8rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin-bottom: 2.8rem;
}

/* ── Course structure notes & sources ──────────────────────── */
.note {
  margin-top: 1.2rem;
}
.sources {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.7;
  padding-left: 0;
  list-style: none;
}
.sources li {
  padding-left: 1.2rem;
  position: relative;
}
.sources li::before {
  content: '*';
  position: absolute;
  left: 0;
}
.sources a {
  color: inherit;
  text-decoration: none;
}
.sources a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Pricing grid ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.4rem;
}
.pricing-card {
  border: 1px solid var(--rule);
  padding: 1.2rem 0.8rem;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.35);
}
.pricing-card__label {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}
.pricing-card__price {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.pricing-card__unit {
  font-size: 0.78rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
html[data-device='mobile'] .pricing-grid {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
html[data-device='mobile'] .cta-row {
  flex-direction: column;
}

/* ── Book CTA ────────────────────────────────────────────────── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.cta-row .book-cta {
  flex: 1;
  margin-top: 0;
}
.book-cta {
  display: block;
  margin-top: 3rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  padding: 0.9rem;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition:
    background 0.2s,
    color 0.2s;
}
.book-cta:hover {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

html[data-touch='true'] .book-cta:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
html[data-touch='true'] .book-cta:active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
html[data-device='mobile'] h1 {
  font-size: 1.55rem;
  margin-bottom: 1.6rem;
}
html[data-device='mobile'] .container {
  width: 94vw;
}
html[data-device='mobile'] .book-cta {
  min-height: 48px;
}
html[data-device='tablet'] h1 {
  font-size: 1.8rem;
}
html[data-device='tablet'] .container {
  width: min(80vw, 500px);
}
html[data-device='tablet'] .book-cta {
  min-height: 48px;
}

/* ── Desktop: editorial two-column section layout ────────────── */
html[data-device='desktop'] body {
  padding: 5rem 2rem 6rem;
}
html[data-device='desktop'] .container {
  width: min(86vw, 820px);
  margin-top: 1.4rem;
}
html[data-device='desktop'] h1 {
  font-size: 2.4rem;
  margin-bottom: 3.2rem;
}
html[data-device='desktop'] .section {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
html[data-device='desktop'] .section h2 {
  margin-bottom: 0;
  padding-top: 0.45rem;
  text-align: left;
}
html[data-device='desktop'] .section > *:not(h2) {
  grid-column: 2;
}
html[data-device='desktop'] .section p {
  font-size: 1rem;
  line-height: 1.75;
}
html[data-device='desktop'] .divider {
  margin-bottom: 3rem;
}
html[data-device='desktop'] .pricing-grid {
  gap: 1rem;
}
html[data-device='desktop'] .pricing-card {
  padding: 1.6rem 1rem;
}
html[data-device='desktop'] .pricing-card__price {
  font-size: 1.35rem;
}
html[data-device='desktop'] .book-cta {
  margin-top: 3.5rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
html[data-device='desktop'] .cta-row {
  margin-top: 3.5rem;
  padding-left: calc(180px + 3rem);
  justify-content: flex-start;
}
html[data-device='desktop'] .cta-row .book-cta {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
