/* Waking House — site styles
   Layout: type-led, left-aligned, one reading column (36rem) inside a 68rem frame.
   Cream ground, ink text, gold used only for the short rule above section headings. */

:root {
  --ink: #241F1E;
  --gold: #C38900;
  --cream: #F3F2EC;
  --cream-2: #EAE8DE;
  --grey: #6E6E6E;
  --line: rgba(36, 31, 30, 0.18);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --frame: 68rem;
  --measure: 36rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose a.more { display: inline-block; margin-top: 1.6em; font-weight: 500; }

.small { font-size: 0.9375rem; color: var(--grey); }

/* ---------- frame + bands ---------- */
.band { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band > .frame { max-width: var(--frame); margin-inline: auto; }
.band--tint { background: var(--cream-2); }
.band--ink { background: var(--ink); color: var(--cream); }
.band--ink a { text-decoration-color: rgba(243, 242, 236, 0.35); }
.band--ink a:hover { text-decoration-color: var(--cream); }

/* The gold rule: 46 x 2, above section headings only */
.rule { width: 46px; height: 2px; background: var(--gold); margin-bottom: 1.4rem; }

/* ---------- header ---------- */
.site-header { padding-block: 1.4rem; }
.site-header .frame { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 1.25rem; border: 1.5px solid var(--ink); border-radius: 2px;
  text-decoration: none !important; line-height: 1.2; white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: #3a3331; border-color: #3a3331; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: rgba(36, 31, 30, 0.06); }
.btn--lg { font-size: 1.05rem; padding: 0.95rem 1.6rem; }

.menu { display: none; }

@media (max-width: 760px) {
  .site-header .frame { align-items: center; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { text-decoration: underline; }
  .menu .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 1rem 0 0.4rem; }
  .menu .nav .btn { margin-top: 0.4rem; }
  .menu-panel { width: 100%; flex-basis: 100%; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.hero .lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; margin-top: 1.5rem; max-width: 34ch; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; }
.under { list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: 0.9375rem; color: var(--grey); max-width: 34rem; }
.under li { padding-left: 1.1rem; position: relative; }
.under li + li { margin-top: 0.3rem; }
.under li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1.5px; background: var(--grey); }
.hero-portrait img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; margin-left: auto; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-width: 100%; aspect-ratio: 4 / 3; object-position: 50% 20%; margin-left: 0; }
}

/* steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.2rem; min-width: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--grey); margin-bottom: 0.6rem; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 0.7rem; }
.steps p { max-width: 36ch; }
.section > .frame > a.more { display: inline-block; margin-top: 2.25rem; font-weight: 500; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 2rem; } .steps p { max-width: var(--measure); } }

/* commitments: a short list, set as prose, no bullets */
.commitments { list-style: none; margin: 1.6rem 0 0; padding: 0; max-width: var(--measure); }
.commitments li { padding: 1rem 0; border-top: 1px solid var(--line); }
.commitments li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section h2 { margin-bottom: 1.4rem; }

/* premise band: the one typographic exception */
.premise { padding-block: clamp(4rem, 9vw, 7rem); }
.premise .thesis {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.2; max-width: 22ch; text-wrap: balance;
}
.premise .prose { margin-top: 2rem; }

/* who: three entries */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; margin-top: 2.75rem; }
.who-grid > div { border-top: 1px solid var(--line); padding-top: 1.4rem; min-width: 0; }
.who-grid h3 { margin-bottom: 0.7rem; }
.who-grid p { max-width: 34ch; }
.who-grid a.more { display: inline-block; margin-top: 1.1rem; font-weight: 500; }
@media (max-width: 860px) { .who-grid { grid-template-columns: 1fr; gap: 2rem; } .who-grid p { max-width: var(--measure); } }

/* about teaser */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-grid .portrait { max-width: 420px; }
.about-grid .portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-grid .creds { margin-top: 1.6rem; line-height: 1.5; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-grid .portrait { max-width: 100%; order: 2; margin-top: 2.5rem; } }

/* start */
.start .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.start .note { margin-top: 1.5rem; }

/* ---------- footer ---------- */
.site-footer { padding-block: 3.5rem 3rem; font-size: 0.9375rem; line-height: 1.55; }
.site-footer .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 4rem; }
.site-footer .logo img { height: 36px; }
.site-footer .crisis { max-width: 34rem; margin-top: 1.5rem; }
.site-footer .creds p + p { margin-top: 0.2rem; }
.site-footer .meta { margin-top: 1.5rem; color: rgba(243, 242, 236, 0.7); }
.site-footer .notices { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer .notices a { text-decoration: none; }
.site-footer .notices a:hover { text-decoration: underline; }
@media (max-width: 760px) { .site-footer .frame { grid-template-columns: 1fr; } }

/* ---------- hero, full-bleed variant ---------- */
.hero--bleed { position: relative; padding: 0; background: var(--ink); color: var(--cream); overflow: hidden; }
.hero--bleed .bleed-media { position: absolute; inset: 0; }
.hero--bleed .bleed-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.hero--bleed .bleed-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36,31,30,0.92) 0%, rgba(36,31,30,0.78) 38%, rgba(36,31,30,0.25) 62%, rgba(36,31,30,0.05) 100%); }
.hero--bleed .bleed-copy { position: relative; padding-block: clamp(4rem, 9vw, 8rem) clamp(4rem, 9vw, 8rem); }
.hero--bleed .hero-copy { max-width: 34rem; }
.hero--bleed h1 { color: var(--cream); }
.hero--bleed .lead { color: rgba(243,242,236,0.88); }
.hero--bleed .under { color: rgba(243,242,236,0.72); }
.hero--bleed .under li::before { background: rgba(243,242,236,0.5); }
.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: #fff; border-color: #fff; }
@media (max-width: 760px) {
  .hero--bleed .bleed-media { position: relative; height: 62vw; }
  .hero--bleed .bleed-media img { object-position: 50% 25%; }
  .hero--bleed .bleed-media::after { background: linear-gradient(180deg, rgba(36,31,30,0) 55%, rgba(36,31,30,1) 100%); }
  .hero--bleed .bleed-copy { padding-block: 0.5rem 3rem; }
}

/* ---------- hero, split-bleed variant: copy left, portrait bleeds to the right edge ---------- */
.hero--split { position: relative; padding: 0; overflow: hidden; }
.hero--split.hero--dark { background: var(--ink); color: var(--cream); }
.hero--split.hero--light { background: var(--cream-2); color: var(--ink); }
.hero--split .split-media { position: absolute; top: 0; bottom: 0; right: 0; width: 46%; }
.hero--split .split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.hero--split.hero--dark .split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(36,31,30,0) 28%); }
.hero--split.hero--light .split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream-2) 0%, rgba(234,232,222,0) 26%); }
.hero--split .split-copy { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.hero--split .hero-copy { max-width: 32rem; width: 52%; min-width: 0; }
.hero--dark h1 { color: var(--cream); }
.hero--dark .lead { color: rgba(243,242,236,0.88); }
.hero--dark .under { color: rgba(243,242,236,0.72); }
.hero--dark .under li::before { background: rgba(243,242,236,0.5); }
.hero--dark .btn--hero { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero--dark .btn--hero:hover { background: #fff; border-color: #fff; }
.hero--light .btn--hero { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.hero--light .btn--hero:hover { background: #3a3331; border-color: #3a3331; }
@media (max-width: 860px) {
  .hero--split .split-media { position: relative; width: 100%; height: 72vw; }
  .hero--split .split-media img { object-position: 50% 15%; }
  .hero--split.hero--dark .split-media::after { background: linear-gradient(180deg, rgba(36,31,30,0) 60%, var(--ink) 100%); }
  .hero--split.hero--light .split-media::after { background: linear-gradient(180deg, rgba(234,232,222,0) 70%, var(--cream-2) 100%); }
  .hero--split .split-copy { padding-block: 0.5rem 3rem; }
  .hero--split .hero-copy { width: 100%; }
}

/* ---------- inner pages ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; margin-top: 1.4rem; max-width: 34rem; color: var(--grey); }
.about-grid--hero { align-items: start; }
.about-grid--hero .portrait { max-width: 460px; }
.about-grid--hero .portrait img { aspect-ratio: 3 / 4; object-position: 50% 10%; }
.about-grid--hero h1 { margin-bottom: 1.4rem; }
.about-grid--hero .creds { margin-top: 1.8rem; }
@media (max-width: 760px) { .about-grid--hero .portrait { order: -1; margin-top: 0; margin-bottom: 2rem; } }
.section .commitments { margin-top: 1.4rem; margin-bottom: 1.4rem; }

/* ---------- getting started: fees ---------- */
.fees { margin: 2rem 0; padding: 0; max-width: 44rem; border-top: 1px solid var(--line); }
.fees > div { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 0.5rem 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.fees dt { font-weight: 500; margin: 0; }
.fees dd { margin: 0; color: var(--grey); font-size: 0.95rem; }
.fees dd.price { color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
@media (max-width: 640px) { .fees > div { grid-template-columns: 1fr auto; } .fees dd:not(.price) { grid-column: 1 / -1; } }

/* ---------- trainings topics ---------- */
.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3.5rem; }
.topics p { max-width: 40ch; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } }

/* ---------- letters index ---------- */
.letters { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.letters li + li { margin-top: 2.5rem; }
.letters a { display: block; text-decoration: none; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.letters a:hover h2 { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 0.12em; }
.letters h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.7rem; }
.letters p { max-width: 60ch; margin-bottom: 0.6rem; }

/* ---------- essay ---------- */
.essay { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.essay .frame { max-width: 42rem; }
.essay-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 0.6rem 0 1.4rem; }
.essay-head .lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.essay-body { margin-top: 2.5rem; font-size: 1.1rem; line-height: 1.7; }
.essay-body h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.essay-body p + p { margin-top: 1.15em; }
.essay-body .pull { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; margin: 1.8rem 0; padding-left: 1.2rem; border-left: 2px solid var(--gold); }
.essay-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.essay-foot p + p { margin-top: 1rem; }

/* ========== v2: rhythm pass ========== */
:root { --walnut: #3B2A22; }
.band--walnut { background: var(--walnut); color: var(--cream); }
.band--walnut a { text-decoration-color: rgba(243,242,236,0.35); }
.band--walnut a:hover { text-decoration-color: var(--cream); }

/* pull band: one large italic line, gold, on a dark ground, linking to a letter */
.pull-band { padding-block: clamp(4rem, 9vw, 7rem); }
.pull-band .quote { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--gold);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.25; max-width: 24ch; text-wrap: balance; margin: 0; }
.pull-band .cite { margin-top: 1.6rem; font-size: 0.95rem; color: rgba(243,242,236,0.78); }
.pull-band .cite a { color: var(--cream); font-weight: 500; }
.pull-band .prose { color: rgba(243,242,236,0.9); margin-top: 1.6rem; }

/* photo band: full-bleed photograph with a short caption line */
.photo-band { position: relative; background: var(--walnut); color: var(--cream); overflow: hidden; }
.photo-band img { width: 100%; height: clamp(320px, 48vw, 620px); object-fit: cover; display: block; }
.photo-band .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem var(--gutter-r) 1.6rem var(--gutter-l);
  background: linear-gradient(180deg, rgba(59,42,34,0) 0%, rgba(36,31,30,0.78) 100%); }
.photo-band .caption .frame { max-width: var(--frame); margin-inline: auto; }
.photo-band .caption p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); max-width: 30ch; margin: 0; }

/* sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 0.6rem var(--gutter-r) calc(0.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: rgba(243,242,236,0.96); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
    transform: translateY(110%); transition: transform 0.25s ease; }
  .sticky-cta.is-visible { transform: translateY(0); }
  .sticky-cta .btn { width: 100%; text-align: center; }
  body.has-sticky { padding-bottom: 4.5rem; }
}

/* FAQ */
.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--grey); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.8rem; color: var(--ink); }

/* qualifier list */
.notfor { list-style: none; padding: 0; margin: 1.4rem 0 0; max-width: var(--measure); }
.notfor li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.notfor li:last-child { border-bottom: 1px solid var(--line); }

/* credential badges */
.badge { margin: 1.4rem 0 0; }
.badge img { width: 110px; height: auto; display: block; }
.badge a { display: inline-block; }

/* essay figure */
.essay-figure { margin: 2.2rem 0; }
.essay-figure img { width: 100%; height: auto; display: block; }
.essay-figure figcaption { margin-top: 0.8rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--grey); line-height: 1.45; }
