/* Shared visual rules for primary actions and inner-page title balance. */
:root {
  --site-paper: #ebe1ce;
  --site-paper-light: #f3ead9;
  --site-ink: #40342a;
  --site-ink-deep: #2f261f;
  --site-soft: #756654;
  --site-line: rgba(64, 52, 42, .2);
}

/* One visual language for the five primary navigation icons. */
.nav-glyph {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
  color: #564434;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.site-nav .nav-glyph {
  width: 26px;
  height: 24px;
}

.nav .nav-glyph {
  width: 29px;
  height: 28px;
}

[data-site-cta] {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--site-ink);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, border-color .2s ease,
    transform .2s ease, box-shadow .2s ease;
}

[data-site-cta="primary"] {
  color: var(--site-paper);
  background: var(--site-ink);
  border-color: var(--site-ink);
  box-shadow: 0 5px 0 rgba(64, 52, 42, .12);
}

[data-site-cta="primary"]:hover,
[data-site-cta="primary"]:focus-visible {
  color: var(--site-paper-light);
  background: var(--site-ink-deep);
  border-color: var(--site-ink-deep);
  box-shadow: 0 7px 0 rgba(47, 38, 31, .14);
  transform: translateY(-2px);
}

[data-site-cta="secondary"] {
  color: var(--site-ink);
  background: transparent;
  border-color: var(--site-ink);
}

[data-site-cta="secondary"]:hover,
[data-site-cta="secondary"]:focus-visible {
  color: var(--site-paper);
  background: var(--site-ink);
  transform: translateY(-2px);
}

[data-site-cta]:focus-visible {
  outline: 2px solid var(--site-ink);
  outline-offset: 4px;
}

/* One hero system for every main inner page. */
.bio-page .hero-title,
.music-page .hero-title,
.live-page .hero-title,
.contact-page .hero-title,
.courses-page h1 {
  flex-direction: column;
  align-items: flex-start;
  row-gap: clamp(9px, .8vw, 13px);
}

.bio-page .hero-title .en,
.music-page .hero-title .en,
.live-page .hero-title .en,
.contact-page .hero-title .en {
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.045em;
  transform: none;
}

.bio-page .hero-title .zh,
.music-page .hero-title .zh,
.live-page .hero-title .zh,
.contact-page .hero-title .zh,
.courses-page h1 .zh {
  display: block;
  margin-left: 0;
}

.music-page .music-hero,
.live-page .live-hero,
.contact-page .contact-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}

.music-page .hero-copy,
.live-page .hero-copy,
.contact-page .hero-intro {
  width: 100%;
  max-width: 410px;
  margin: 38px 0 0;
  padding: 0;
  justify-self: start;
  color: var(--ink-soft);
  font-family: var(--formal-cn);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: .04em;
}

.contact-page .hero-intro .zh {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

.music-page .hero-copy .en,
.live-page .hero-copy .en,
.contact-page .hero-intro .en {
  display: block;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: .9em;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
  text-transform: none;
}

@media (max-width: 900px) {
  .music-page .music-hero,
  .live-page .live-hero,
  .contact-page .contact-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.foundation-page h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(9px, .8vw, 13px);
  margin: 20px 0 0;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: .86;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.foundation-page h1 span {
  display: inline;
}

.foundation-page h1 .zh {
  font-family: var(--formal);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
}

.foundation-page .main {
  padding-top: clamp(58px, 6vw, 88px);
}

.foundation-page .foundation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}

.foundation-page .intro {
  width: 100%;
  max-width: 410px;
  margin: 38px 0 0;
  font-size: 16px;
  line-height: 1.95;
}

.foundation-page .intro .en {
  display: block;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: .9em;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
}

.materials-page h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(9px, .8vw, 13px);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: .86;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.materials-page h1 span {
  display: inline;
}

.materials-page h1 .zh {
  font-family: var(--formal);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: none;
}

.materials-page .materials-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
}

.materials-page .intro {
  width: 100%;
  max-width: 410px;
  margin: 38px 0 0;
  color: var(--soft);
  font-family: var(--formal);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: .04em;
}

.materials-page .intro .en {
  display: block;
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: .9em;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .03em;
}

/* Approved course-page hierarchy from the brown preview. */
.courses-page .main {
  padding-top: clamp(58px, 6vw, 88px);
}

.courses-page .eyebrow {
  color: var(--site-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.courses-page .eyebrow .cn {
  font-family: var(--formal);
  font-weight: 700;
  letter-spacing: .08em;
}

.external-arrow {
  width: .76em;
  height: .76em;
  margin-left: .18em;
  overflow: visible;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

.courses-page .hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(60px, 7vw, 92px);
}

.courses-page h1 {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: .86;
  letter-spacing: -.045em;
}

.courses-page .lead {
  max-width: 410px;
  margin: 38px 0 0;
  font-size: 16px;
  line-height: 1.95;
}

.courses-page .course-grid {
  gap: 26px;
  border-top: 0;
  align-items: stretch;
}

.courses-page .course {
  min-height: 0;
  padding: 24px 8px 26px;
  border-top: 1px solid var(--site-line);
}

.courses-page .featured-course {
  padding: 24px 26px 26px;
  background: var(--site-paper-light);
  border: 1px solid rgba(64, 52, 42, .25);
  border-left: 4px solid var(--site-ink);
  box-shadow: 0 7px 22px rgba(64, 52, 42, .05);
}

.courses-page .featured-course .action {
  width: 100%;
  max-width: 430px;
  min-height: 59px;
  margin-top: 24px;
  padding: 16px 19px;
  font-size: 14px;
  letter-spacing: .055em;
}

.courses-page .featured-course .action .cn {
  font-size: 13px;
  letter-spacing: .04em;
}

.courses-page .upcoming-course {
  padding: 24px 26px 26px;
  background: rgba(243, 234, 217, .72);
  border: 1px solid rgba(64, 52, 42, .16);
  box-shadow: 0 7px 22px rgba(64, 52, 42, .025);
}

.courses-page .upcoming-course .action {
  width: 100%;
  max-width: 430px;
  min-height: 59px;
  margin-top: 24px;
  padding: 16px 19px;
  color: var(--site-ink-soft);
  background: rgba(64, 52, 42, .055);
  border-color: rgba(64, 52, 42, .18);
  font-size: 14px;
  letter-spacing: .055em;
  pointer-events: none;
}

.courses-page .upcoming-course .action .cn {
  font-size: 13px;
  letter-spacing: .04em;
}

.courses-page .paid h2 {
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(7px, .7vw, 11px);
}

.courses-page .paid h2 .zh {
  display: block;
  margin-left: 0;
}

/* Active listening links use the same system without changing disabled items. */
.music-page a.platform-link[data-site-cta] {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  padding: 5px 9px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .055em;
  box-shadow: 0 2px 0 rgba(64, 52, 42, .08);
}

/* Match the four main pages to the courses page canvas, origin and hero rhythm. */
.bio-page .bio-content,
.music-page .music-content,
.live-page .live-content,
.contact-page .contact-content {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(58px, 6vw, 88px) clamp(24px, 7vw, 112px) 0;
  background: var(--site-paper);
}

.bio-page .section-kicker,
.music-page .section-kicker,
.live-page .section-kicker,
.contact-page .section-kicker {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.bio-page .hero-title,
.music-page .hero-title,
.live-page .hero-title,
.contact-page .hero-title {
  margin: 18px 0 0;
}

.music-page .music-hero,
.live-page .live-hero,
.contact-page .contact-hero {
  padding-bottom: clamp(60px, 7vw, 92px);
}

.bio-page .hero {
  padding-bottom: clamp(60px, 7vw, 92px);
}

@media (max-width: 760px) {
  .bio-page .bio-content,
  .music-page .music-content,
  .live-page .live-content,
  .contact-page .contact-content {
    padding: 58px 20px 0;
    background: var(--site-paper);
  }

  .bio-page .hero,
  .music-page .music-hero,
  .live-page .live-hero,
  .contact-page .contact-hero {
    padding-bottom: 52px;
  }

  .courses-page .site-header {
    align-items: flex-start;
  }

  .courses-page .brand-note {
    display: block;
  }

  .courses-page .site-nav {
    align-self: stretch;
  }

  .site-nav .nav-glyph,
  .nav .nav-glyph {
    width: 24px;
    height: 23px;
  }

  [data-site-cta] { width: 100%; }

  .bio-page .hero-title .en,
  .music-page .hero-title .en,
  .live-page .hero-title .en,
  .contact-page .hero-title .en {
    font-size: clamp(24px, 7vw, 32px);
  }

  .bio-page .hero-title,
  .music-page .hero-title,
  .live-page .hero-title,
  .contact-page .hero-title,
  .courses-page h1 {
    column-gap: 8px;
  }

  .music-page .hero-copy,
  .live-page .hero-copy,
  .contact-page .hero-intro {
    margin-top: 12px;
    font-size: 15px;
  }

  .foundation-page h1 {
    gap: 8px;
    font-size: clamp(24px, 7vw, 32px);
  }

  .foundation-page h1 .zh {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .foundation-page .foundation-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .foundation-page .intro {
    margin-top: 12px;
    font-size: 15px;
  }

  .materials-page h1 {
    gap: 8px;
    font-size: clamp(24px, 7vw, 32px);
  }

  .materials-page h1 .zh {
    font-size: clamp(12px, 3.2vw, 15px);
  }

  .materials-page .materials-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .materials-page .intro {
    margin-top: 12px;
    font-size: 15px;
  }

  .courses-page .main { padding-top: 58px; }
  .courses-page .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 52px;
  }
  .courses-page h1 { font-size: clamp(24px, 7vw, 32px); }
  .courses-page .lead { margin: 12px 0 0; font-size: 15px; }
  .courses-page .course-grid { gap: 16px; }
  .courses-page .course { min-height: 0; padding-top: 22px; padding-bottom: 24px; }
  .courses-page .featured-course,
  .courses-page .upcoming-course { padding: 22px 18px 24px; }
  .courses-page .featured-course .action,
  .courses-page .upcoming-course .action { max-width: none; }
}

/* Shared bottom navigation for inner pages. */
.bottom-actions,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.bottom-actions {
  justify-content: flex-end;
}

.footer-nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.foundation-page .footer,
.materials-page .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 760px) {
  .bottom-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .footer-nav {
    align-items: flex-start;
  }

  .foundation-page .footer,
  .materials-page .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
