/* ==========================================================
   Musical Healer — styles
   ========================================================== */

:root {
  /* Palette (from the instrument photo) */
  --bg: #16110d;            /* deep espresso */
  --surface: #211912;
  --text: #efe6d8;          /* warm ivory */
  --muted: #b8a993;
  --accent: #c99a5b;        /* candlelight brass */
  --light-bg: #f3ece1;      /* parchment */
  --light-text: #2a1f17;    /* espresso on parchment */
  --light-muted: #5e4d3e;
  --light-accent: #85602f;  /* darker brass: AA on parchment */

  --hairline: rgba(201, 154, 91, 0.45);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --fs-h2: clamp(2.25rem, 1.7rem + 2.6vw, 4rem);
  --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.85rem);
  --fs-wordmark: clamp(2.6rem, 1.4rem + 6vw, 6.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.8rem + 2.4vw, 3rem);
  --section-y: clamp(5rem, 3.5rem + 7vw, 10rem);
  --max: 72rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 46rem; }

.section {
  padding-block: var(--section-y);
  position: relative;
}


.section--surface { background: var(--surface); }

.section--light {
  background: var(--light-bg);
  color: var(--light-text);
}
.section--light .eyebrow { color: var(--light-accent); }
.section--light .lead,
.section--light p { color: var(--light-text); }
.section--light ::selection { background: var(--light-text); color: var(--light-bg); }
.section--light :focus-visible { outline-color: var(--light-text); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}

.rule {
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--accent);
}
.rule--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--bg);
}
.btn--block { width: 100%; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(22, 17, 13, 0.62) 0%, rgba(22, 17, 13, 0.82) 70%),
    linear-gradient(180deg, rgba(22, 17, 13, 0.55) 0%, rgba(22, 17, 13, 0.35) 40%, rgba(22, 17, 13, 0.95) 100%);
}
.hero__inner {
  width: 100%;
  max-width: 52rem;
  padding: 7rem var(--gutter) 6rem;
}
.hero .eyebrow { margin-bottom: 2rem; }

.wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--fs-wordmark);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* offset trailing tracking so the word sits optically centered */
  margin-right: -0.14em;
  margin-bottom: 2rem;
}

.hero__tagline {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem);
  line-height: 1.3;
}
.hero__sub {
  max-width: 36rem;
  text-wrap: balance;
  margin: 1.25rem auto 2.75rem;
  color: var(--text);
  opacity: 0.88;
}

/* ---------- 2. The gap ---------- */
.turn {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--light-accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  line-height: 1.35;
}

.payoff { margin-top: 2rem; }

/* ---------- 3. Pillars ---------- */
.section-head { max-width: 44rem; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-head__copy { color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hairline);
}
.pillar {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--hairline);
}
.pillar__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.pillar__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.pillar p { color: var(--muted); max-width: 32rem; }

/* ---------- 4. Hook ---------- */
.hook { text-align: center; }
.hook__figure {
  width: min(15rem, 70%);
  margin: 0 auto 3rem;
  display: block;
  overflow: visible;
}
.hook__figure line { stroke: var(--hairline); stroke-width: 1; }
.hook__figure circle { fill: var(--accent); }
.hook__figure .ghost { fill: none; stroke: var(--accent); stroke-width: 1; }

.hook__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.75rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hook__em {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--accent);
}

/* ---------- 5. Guide ---------- */
.guide {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 6rem);
  align-items: center;
}
.guide__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.guide__body p { color: var(--muted); }
.guide__body p + p { margin-top: 1.25rem; }
.guide__body cite { font-style: italic; color: var(--text); }

.facts {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
}
.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.facts dd { font-family: var(--serif); font-size: 1.2rem; }

/* ---------- 6. Cohort ---------- */
.details {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--light-accent);
}
.details li {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(133, 96, 47, 0.4);
}
.details h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section--light .details p { color: var(--light-muted); }

/* ---------- 7. Waitlist ---------- */
.waitlist { text-align: center; }
.waitlist .lead { margin-bottom: 3rem; }

.form {
  text-align: left;
  display: grid;
  gap: 1.75rem;
  max-width: 30rem;
  margin-inline: auto;
}
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color 0.3s ease;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { border-bottom-color: #e2a07a; }

.form__error { color: #e2a07a; font-size: 0.95rem; }
.form .btn { margin-top: 0.75rem; }

.form__thanks { max-width: 30rem; margin-inline: auto; padding-top: 1rem; }
.form__thanks:focus { outline: none; }
.form__thanks-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.form__thanks p:not(.form__thanks-title) { color: var(--muted); }

/* ---------- 8. Footer ---------- */
.footer {
  padding-block: 4rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer__inner { display: grid; gap: 0.75rem; }
.footer__mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer a {
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer__legal { font-size: 0.8rem; letter-spacing: 0.08em; }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .field input, .footer a { transition: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 40rem) {
  .facts div { grid-template-columns: 7rem 1fr; align-items: baseline; gap: 1rem; }
  .details { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

@media (min-width: 52rem) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
  }
  .pillar:last-child { grid-column: 1 / -1; }
  .pillar:last-child p { max-width: 40rem; }

  .guide { grid-template-columns: 5fr 6fr; }
}

@media (min-width: 72rem) {
  .pillars { grid-template-columns: repeat(6, 1fr); column-gap: 3.5rem; }
  .pillar { grid-column: span 2; }
  .pillar:nth-child(4) { grid-column: 1 / span 3; }
  .pillar:last-child { grid-column: 4 / span 3; }
  .details { grid-template-columns: repeat(4, 1fr); }
  .details li { padding-right: 1rem; }
}
