/* Editorial type scale. Size changes are scoped to reading and display roles. */
body {
  --gold-body: clamp(1.125rem, 1.6vw, 1.4375rem);
  --gold-minor: calc(var(--gold-body) * 1.618);
  --gold-major: calc(var(--gold-body) * 2.618);
  --gold-display: calc(var(--gold-body) * 4.236);
  --gold-section: var(--gold-major);
  --gold-title: var(--gold-display);
}
body.home-page #page-title { font-size: var(--gold-title) !important; }
body.home-page :is(.home-production, .home-about-intro, .studio-collaborations, .home-discover, .studio-reviews, #kontakt) h2 {
  font-size: var(--gold-section) !important;
}
body.home-page :is(.home-about-credits h2, #kontakt .contact-link) {
  font-size: var(--gold-minor) !important;
}
body.home-page :is(.intro-subtitle, .home-production-copy, .home-about-intro .lead, #kontakt .lead) {
  font-size: var(--gold-body) !important;
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body {
    --gold-body: 1.125rem;
    --gold-section: var(--gold-minor);
    --gold-title: clamp(2.5rem, 12.7vw, var(--gold-major));
  }
  body.home-page .home-production .home-production-copy {
    white-space: normal;
    text-wrap: pretty;
  }
  body.home-page #kontakt h2 { white-space: normal; }
}

@media (max-width: 760px) and (orientation: portrait) {
  body.home-page #page-title {
    --gold-poster-line: clamp(2.75rem, 14.6vw, 3.75rem);
    font-size: calc(var(--gold-poster-line) / 1.618) !important;
  }
  body.home-page #page-title > span:first-child {
    font-size: var(--gold-poster-line);
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (pointer: fine) {
  body.home-page #page-title {
    --gold-poster-line: calc(var(--gold-major) * 2.1);
    font-size: calc(var(--gold-poster-line) / 1.618) !important;
  }
  body.home-page #page-title > span:first-child {
    font-size: var(--gold-poster-line);
    line-height: 1;
    white-space: nowrap;
  }
}

/* Selective hierarchy study for two headings; all other sections inherit the prior preview. */
body.home-page :is(.home-about-intro,.home-production) {
  --section-accent: calc(var(--gold-major) * 1.3);
  --gold-section: calc(var(--section-accent) / 1.618);
}
body.home-page :is(.section-music-accent,.section-result-accent) {
  display: inline-block;
  font-size: var(--section-accent);
  line-height: 1.04;
}
@media (max-width:760px), (max-width:1000px) and (pointer:coarse) {
  body.home-page :is(.home-about-intro,.home-production) { --section-accent: var(--gold-major); }
}

/* Balance the two text gaps by the visible type, including its line-box inset. */
body.home-page .home-production .stats { margin-top: 25px; }
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body.home-page .home-production .stats { margin-top: 28.5px; }
}


/* Section headings and prose on the other editorial pages. */
body:not(.home-page) :is(.intro-subtitle,.contact .lead,.about-journey-intro .lead,.adrian-statement-copy,.workshop-information-inner .lead,.type-reading-copy) {
  font-size: var(--gold-body);
}
body:not(.home-page) :is(#kontakt .lead,.intro .intro-subtitle) { font-size: var(--gold-body) !important; }
body:not(.home-page) :is(#kontakt h2,.about-journey-intro h2,.about-journey-timeline h2,.about-journey-instagram h2,.catalog-music-videos h2,.workshop-information h2,.pricing-faq h2,.type-section-title) {
  font-size: var(--gold-section) !important;
}
body:not(.home-page) :is(#kontakt .contact-link,.workshop-information h3,.workshop-information .feature-grid h3) {
  font-size: var(--gold-minor);
}
body.price-page .pricing-category .section-heading h2,
body.studio-page .studio-recording-story h2 {
  font-size: calc(var(--gold-section) * .8);
}
body.price-page .pricing-faq :is(.pricing-faq-intro,.pricing-faq-answer) {
  font-size: var(--gold-body);
}
body.studio-page .studio-recording-copy h2 .type-recording-context {
  font-size: .76em;
}
body.studio-page .studio-recording-copy h2 .studio-recording-subtitle {
  font-size: min(1.06em, 52px);
  font-weight: 850;
  line-height: 1.06;
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body.studio-page .studio-recording-copy h2 .type-recording-context { font-size: .82em; }
  body.studio-page .studio-recording-copy h2 .studio-recording-subtitle {
    font-size: clamp(29px, 8.7vw, 34px);
  }
}
body.studio-page .studio-recording-copy .studio-recording-paragraph {
  font-size: clamp(16px, 1.4vw, 20px);
}
body:not(.home-page) .type-section-pair {
  --type-section-accent: calc(var(--gold-major) * 1.3);
  --gold-section: calc(var(--type-section-accent) / 1.618);
}
body:not(.home-page) .type-section-pair > .type-focus {
  font-size: var(--type-section-accent);
  line-height: 1.04;
}
body:not(.home-page) #page-title[data-type-hero="balanced"] {
  font-size: var(--gold-title) !important;
}
body:not(.home-page) #page-title:is([data-type-hero="first"],[data-type-hero="last"]) {
  --type-hero-accent: calc(var(--gold-major) * 2.1);
  font-size: calc(var(--type-hero-accent) / 1.618) !important;
}
body:not(.home-page) #page-title[data-type-hero="first"] > span:first-child,
body:not(.home-page) #page-title[data-type-hero="last"] > span:last-child {
  font-size: var(--type-hero-accent);
  line-height: 1;
}

/* Legal pages keep a more compact reading measure. */
body:is(.impressum-page,.privacy-page) .intro #page-title {
  font-size: clamp(27px, 6.5vw, var(--gold-major)) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
body:is(.impressum-page,.privacy-page) .legal-copy {
  font-size: clamp(18px, 1.4vw, 20px);
}
body:is(.impressum-page,.privacy-page) .legal-copy :is(p,li) {
  font-size: inherit;
}
body:is(.impressum-page,.privacy-page) .legal-copy h2 {
  font-size: var(--gold-minor);
  overflow-wrap: anywhere;
}
body.privacy-page .legal-copy :is(p,li,a) {
  font-size: inherit !important;
}
body.workshops-page .workshop-information .feature-grid article p:not(.price,.scope-note),
body.price-page :is(.demo-copy,.pricing-faq-intro,.pricing-faq-answer),
body.adrian-page .adrian-statement-copy {
  font-size: clamp(18px, 1.4vw, 21px);
}
body.price-page #demo-title {
  font-size: var(--gold-section);
}
body.price-page #demo-title > span:first-child {
  font-size: 1.16em;
}
body.price-page #demo-title > span:last-child {
  font-size: .88em;
}

@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body:not(.home-page) .type-section-pair { --type-section-accent: var(--gold-major); }
  body:not(.home-page) #page-title:is([data-type-hero="first"],[data-type-hero="last"]) {
    --type-hero-accent: clamp(41px, 13.6vw, 57px);
  }
  body:not(.home-page) #kontakt h2 { white-space: normal; }
  body.price-page .pricing-category .section-heading h2 { font-size: var(--gold-section); }
  body.price-page #demo-title > span { white-space: normal; }
  body.studio-page .studio-recording-story h2 { font-size: var(--gold-section); }
  body.studio-page .studio-recording-copy .studio-recording-paragraph { font-size: var(--gold-body); }
}
@media (max-width: 1000px) and (pointer: coarse) and (orientation: landscape) {
  body.studio-page #page-title[data-type-hero] { --type-hero-accent: 36px; }
  body.studio-page .intro .intro-subtitle.studio-positioning { font-size: 12px !important; }
}
@media (min-width:1001px) and (max-height:650px) {
  body.studio-page .studio-recording-copy .studio-recording-paragraph { font-size: 15px; }
  body.studio-page .studio-recording-story h2 { font-size: 30px; }
}

@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body.privacy-page .intro .intro-subtitle { font-size: 14px !important; }
}
@media (max-width: 359px) {
  body.privacy-page .intro #page-title { font-size: 24px !important; }
  body.privacy-page .legal-copy #datenschutzauswahl {
    font-size: clamp(22px, 7.35vw, 26px);
  }
}

/* Shared contact rhythm. Keep the closing sentence in the paragraph flow. */
body #kontakt.contact.section h2 {
  line-height: 1.06;
  text-wrap: balance;
}
body #kontakt.contact.section > .lead {
  margin-top: clamp(12px, 1.3vw, 19px);
  line-height: 1.58;
  text-wrap: pretty;
}
body #kontakt.contact.section > .lead .contact-desktop-break,
body #kontakt.contact.section > .lead::before {
  display: none;
}
body #kontakt.contact.section .contact-link {
  font-size: var(--gold-minor) !important;
}
@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
  body #kontakt.contact.section > .lead {
    width: min(100%, 62ch);
    text-wrap: balance;
  }
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body #kontakt.contact.section .contact-link {
    font-size: calc(var(--gold-body) * 1.45) !important;
  }
}

/* Footer navigation and copyright align with the page center. */
html body .footer.footer-centered {
  display: grid;
  justify-content: stretch;
  gap: 18px;
  text-align: center;
}
html body .footer.footer-centered > div {
  position: static;
  margin: 0;
  text-align: center;
}
html body .footer.footer-centered .footer-social {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
}
html body .footer.footer-centered .footer-social .footer-instagram {
  min-height: 22px;
  margin: 0;
}
html body .footer.footer-centered .footer-link-row,
html body .footer.footer-centered .footer-legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 16px;
}
html body .footer.footer-centered .footer-legal-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
html body .footer.footer-centered .footer-link-row a,
html body .footer.footer-centered .footer-link-row .al-consent-open {
  margin: 0;
  line-height: inherit;
}
html body .footer.footer-centered .footer-link-row .al-consent-open {
  padding: 0;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .25s ease, color .25s ease;
}
html body .footer.footer-centered .footer-link-row .al-consent-open:is(:hover, :focus-visible) {
  color: #fff;
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
  html body .footer.footer-centered .footer-link-row .al-consent-open {
    transition: none;
  }
}
html body .footer.footer-centered .footer-copyright {
  margin: 12px 0 0;
  text-align: center;
}
html body.studio-page .footer.footer-centered > div:first-child {
  margin-inline: 0;
}
html body.studio-page .footer.footer-centered .studio-location-stack {
  position: static;
  text-align: center;
}
html body.studio-page .footer.footer-centered #standort {
  max-width: 68ch;
  margin: 0 auto 24px;
  text-align: center;
}

/* Keep the fixed desktop drawer's copy and list in the same height budget. */
body.studio-free-scroll-test .studio-software-drawer {
  display: flex;
  flex-direction: column;
}
body.studio-free-scroll-test .studio-software-drawer .studio-software-caption {
  position: relative;
  inset: auto;
  order: -1;
  flex: none;
  width: min(1200px, 88%);
  margin: var(--software-brand-offset, 55px) auto 0;
}
body.studio-free-scroll-test .studio-software-caption .section-heading .eyebrow {
  order: -1;
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  color: #f2ff00;
}
body.studio-free-scroll-test .studio-software-caption .section-heading h2 {
  font-size: var(--gold-minor);
}
body.studio-free-scroll-test .studio-software-drawer .studio-software-inner {
  flex: 1;
  height: auto;
  width: min(1200px, 88%);
  margin: 0 auto;
  padding-top: 22px;
}
@media (max-width: 760px), (max-width: 1000px) and (pointer: coarse) {
  body.studio-page .mobile-software-section .studio-software-inner {
    padding-top: calc(var(--hero-brand-top, 42px) + 2px);
  }
  body.studio-page .mobile-software-section .section-heading h2 {
    font-size: var(--gold-section);
  }
}

body.studio-page .studio-software-drawer .section-heading h2 .muted {
  font-size: 1.618em;
  line-height: 1.04;
}
