/* Fonts are self-hosted (faster than loading from Google, and no third-party requests). */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('assets/fonts/bodoni-moda-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Albert Sans'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('assets/fonts/albert-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --ground: #0f0e0c;
  --text: #efe8db;
  --text-soft: #d6cec0;
  --muted: #a89f90;
  --brass: #c8a66a;
  --brass-light: #e3cc9d;
  --brass-line: rgba(200, 166, 106, 0.45);
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --serif-weight: 500;
  --serif-settings: 'opsz' 11;  /* sturdy small-size design everywhere; the homepage name alone uses the hairline design */
  --sans: 'Albert Sans', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

h1, h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); margin: 0; }
.programme-name, .bar-place { font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 960px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(15, 14, 12, 0.94);
  border-bottom: 1px solid rgba(200, 166, 106, 0.25);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 16px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); }

/* Buttons */
.button-solid, .button-outline {
  min-height: 52px; padding: 0 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
}
.button-solid { background: var(--brass-light); color: var(--ground); }
.button-solid:hover { background: #f0ddb5; color: var(--ground); }
.button-outline { border: 1px solid rgba(239, 232, 219, 0.5); font-weight: 400; }

/* Staff lines */
.staff { display: flex; flex-direction: column; gap: 9px; max-width: 720px; margin: 0 auto; }
.staff span { height: 1px; background: var(--brass-line); }
.divider { display: flex; flex-direction: column; gap: 5px; width: 56px; margin: 0 auto; }
.divider span { height: 1px; background: rgba(200, 166, 106, 0.6); }

/* Hero */
.hero { min-height: calc(100vh - 73px); display: flex; align-items: center; padding: 96px 0; }
.hero .wrap { max-width: 1200px; }
/* His name always sits on one line; the size scales with the screen to make that fit. */
.hero h1 { white-space: nowrap; font-size: clamp(24px, 6.8vw, 96px); line-height: 1.05; font-family: 'Bodoni Moda', 'Didot', Georgia, serif; font-weight: 500; font-variation-settings: 'opsz' 40; }
.hero-bio { margin: 32px auto 64px; max-width: 680px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.55; color: var(--text-soft); }

/* About */
.about { padding: 96px 0 120px; }
.about-row { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; justify-content: center; }
.portrait { margin: 0; flex: 0 1 340px; padding: 14px; border: 1px solid rgba(200, 166, 106, 0.4); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.about-text { flex: 1 1 420px; max-width: 540px; }
.about-text h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin-bottom: 24px; }
.about-text p { color: var(--text-soft); margin-bottom: 28px; }
.text-link { border-bottom: 1px solid var(--brass); padding-bottom: 4px; }

/* Sections */
.procedures, .training { padding: 112px 0; }
.section-title { text-align: center; font-size: 40px; margin-bottom: 56px; }

/* Programme list */
.programme { list-style: none; margin: 0; padding: 0; }
.programme a, .programme-row { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; }
.programme-row .programme-name { color: var(--text-soft); }
.programme-soon { color: var(--muted); font-size: 15px; white-space: nowrap; }
#procedures { scroll-margin-top: 72px; }
.programme-name { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
.leader { flex: 1 1 auto; min-width: 24px; border-bottom: 1px dotted rgba(200, 166, 106, 0.55); transform: translateY(-6px); }
.arrow { color: var(--brass); font-size: 22px; transition: transform 0.2s ease; }
.programme a:hover .arrow { transform: translateX(4px); }

/* Training bars */
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); row-gap: 32px; border-left: 1px solid rgba(200, 166, 106, 0.5); }
.bars li { padding: 8px 20px; border-right: 1px solid rgba(200, 166, 106, 0.5); }
.bar-place { font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.bar-cred { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.45; }

/* Book */
.book { padding: 112px 0 140px; }
.book .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.book h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.book-phone { font-size: 26px; }

/* Footer */
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 48px; font-size: 15px; }
.final-bar { display: flex; gap: 5px; height: 40px; }
.final-bar span:first-child { width: 1px; background: var(--brass); }
.final-bar span:last-child { width: 5px; background: var(--brass); }

/* Scroll reveal: content develops as it arrives. Scrolling itself is never altered. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Inner pages (procedures) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.page-hero { padding: 120px 0 64px; text-align: center; }
.eyebrow { color: var(--muted); font-size: 16px; letter-spacing: 0.04em; margin-bottom: 24px; }
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.05; margin-bottom: 28px; }
.page-hero .lede { color: var(--text-soft); font-size: 19px; line-height: 1.6; text-align: left; }
.page-hero .lede + .lede { margin-top: 16px; }

.glance { border-top: 1px solid var(--brass-line); border-bottom: 1px solid var(--brass-line); padding: 32px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; }
.glance dt { color: var(--brass); font-size: 15px; letter-spacing: 0.02em; }
.glance dd { margin: 4px 0 0; }

.toc { padding: 56px 0 24px; }
.toc p { color: var(--muted); font-size: 16px; letter-spacing: 0.04em; margin-bottom: 16px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.toc a { font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); font-size: 21px; line-height: 1.35; }
.toc a:hover { color: var(--brass-light); }

.qa { padding: 72px 0 24px; scroll-margin-top: 80px; }
.qa + .qa { border-top: 1px solid rgba(200, 166, 106, 0.18); }
.qa h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-bottom: 24px; }
.qa > p, .qa > ul, .qa > ol { color: var(--text-soft); margin-bottom: 20px; }
.qa .answer { color: var(--text); font-size: 19px; }
.qa ul { padding-left: 22px; }
.qa li { margin-bottom: 8px; }
.qa li::marker { color: var(--brass); }

.qa details { border-top: 1px solid rgba(239, 232, 219, 0.14); }
.qa details:last-of-type { border-bottom: 1px solid rgba(239, 232, 219, 0.14); }
.qa details + :not(details) { margin-top: 28px; }
.qa summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--brass); font-size: 24px; font-weight: 400; line-height: 1; flex: none; }
.qa details[open] > summary::after { content: '–'; }
.qa summary:hover { color: #fff; }
.qa details > *:not(summary) { color: var(--text-soft); margin: 0 0 18px; }
.qa details > ul { padding-left: 22px; }
.qa h3 { font-family: var(--sans); font-size: 18px; font-weight: 500; margin: 28px 0 12px; color: var(--text); }

/* "The short version": the most common questions, answered briefly, each linking to the full section */
.shortlist { margin: 8px 0 0; }
.shortlist > div { padding: 22px 0; border-top: 1px solid rgba(239, 232, 219, 0.14); }
.shortlist > div:last-child { border-bottom: 1px solid rgba(239, 232, 219, 0.14); }
.shortlist dt { font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); font-size: 22px; line-height: 1.3; margin-bottom: 8px; }
.shortlist dd { margin: 0; color: var(--text-soft); }



.cite { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.table-box { overflow-x: auto; margin: 8px 0 24px; border-top: 1px solid var(--brass-line); }
.table-box table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.table-box th, .table-box td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid rgba(239, 232, 219, 0.14); }
.table-box thead th { color: var(--brass); font-weight: 500; font-size: 15px; }
.table-box tbody th { font-weight: 500; color: var(--text); }
.table-box td { color: var(--text-soft); }

.page-book { padding: 96px 0 120px; border-top: 1px solid var(--brass-line); margin-top: 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.page-book h2 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; }
.page-book p { color: var(--text-soft); max-width: 560px; }
.page-book .muted { color: var(--muted); }
.reviewed { color: var(--muted); font-size: 15px; font-style: italic; margin: -12px 0 28px; }

/* Procedures hub */
.hub-list { list-style: none; margin: 0 0 40px; padding: 0; }
.hub-list li { border-top: 1px solid rgba(239, 232, 219, 0.14); }
.hub-list li:last-child { border-bottom: 1px solid rgba(239, 232, 219, 0.14); }
.hub-list a, .hub-list .hub-item { display: block; padding: 32px 0; }
.hub-list .hub-name { display: flex; align-items: baseline; gap: 16px; font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.hub-list .hub-desc { display: block; margin-top: 10px; color: var(--text-soft); max-width: 620px; }
.hub-list .soon { color: var(--muted); font-size: 15px; margin-top: 8px; display: block; }
.hub-list a:hover .arrow { transform: translateX(4px); }

/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 4px; }
  .site-nav { flex-wrap: wrap; column-gap: 18px; row-gap: 0; font-size: 15px; }
  .wordmark { font-size: 16px; }
  .about-row { gap: 40px; }
  .section-title { font-size: 38px; }
  .procedures, .training, .book { padding: 80px 0; }
}

/* Homepage interlude: the music quote */
.interlude { padding: 104px 0 24px; }
.interlude figure { margin: 0 auto; }
.interlude blockquote { margin: 0 auto; max-width: 820px; font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings); font-size: clamp(24px, 3vw, 34px); line-height: 1.3; text-wrap: balance; }
.interlude figcaption { margin-top: 28px; color: var(--muted); font-size: 16px; }

/* Small serif text uses Bodoni's small-size design (thicker hairlines) so it stays readable on dark.
   Large headings keep the in-between setting. */
:root { --serif-settings-small: 'opsz' 11; }
.toc a, .shortlist dt, .bar-place { font-variation-settings: var(--serif-settings-small); }
@media (max-width: 640px) {
  .programme-name, .interlude blockquote { font-variation-settings: var(--serif-settings-small); }
}

/* Grouped procedure pages: shared main headings, procedure-specific subsections */
.qa .sub { padding-top: 36px; scroll-margin-top: 80px; }
.qa .sub:first-of-type { padding-top: 8px; }
.qa .sub-title { font-family: var(--serif); font-weight: var(--serif-weight); font-variation-settings: var(--serif-settings-small); font-size: 24px; line-height: 1.3; margin: 0 0 16px; color: var(--text); }
.qa h4 { font-family: var(--sans); font-size: 17px; font-weight: 500; margin: 28px 0 10px; color: var(--text); }
.qa .sub > p, .qa .sub > ul { color: var(--text-soft); margin-bottom: 20px; }
.qa .sub > ul { padding-left: 22px; }
.qa .sub > p.answer { color: var(--text); font-size: 19px; }
.qa .sub details:last-of-type { border-bottom: 1px solid rgba(239, 232, 219, 0.14); }
.toc ul ul { margin: 6px 0 8px 20px; gap: 4px; }
.toc ul ul a { font-family: var(--sans); font-weight: 400; font-variation-settings: normal; font-size: 16px; color: var(--text-soft); }
.toc li.has-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.toc li.has-sub > ul { flex-basis: 100%; }
.toc-toggle { background: none; border: 0; padding: 0; width: 44px; height: 36px; cursor: pointer; color: var(--brass); font-family: var(--sans); font-size: 22px; line-height: 1; }
.toc-toggle:hover { color: var(--brass-light); }
.toc ul[hidden] { display: none; }
.toc > ul > li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: 36px; }

.footer-link { color: var(--muted); border-bottom: 1px solid transparent; }
.footer-link:hover { color: var(--text); border-bottom-color: var(--brass); }

.hero-bio { max-width: 760px; }
.hero-line { display: block; text-wrap: balance; }
.hero-place { margin-top: 10px; color: var(--muted); font-size: 0.9em; }

.bio-social { margin-top: 20px; color: var(--muted); font-size: 16px; text-align: left; }

.addr-line { display: block; text-wrap: balance; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { .book .muted, .page-book .muted { font-size: 15px; } }

/* Bio page: training in an even 2x2 grid (one column on small phones) */
.page .bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .page .bars { grid-template-columns: minmax(0, 1fr); } }
