@charset "utf-8";

/* Virtuosenschule — static rebuild, 2026-07
   Palette is taken from the instrument itself: lacquer, aged ivory keys,
   damper felt, pedal brass. One typeface across a wide weight range. */

/* ---------- Fonts (self-hosted; the site loads nothing third-party) ---------- */

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("fonts/libre-franklin-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/libre-franklin-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/libre-franklin-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("fonts/libre-franklin-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800;
  font-display: swap; src: url("fonts/libre-franklin-latin-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("fonts/libre-franklin-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/libre-franklin-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 800;
  font-display: swap; src: url("fonts/libre-franklin-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: italic; font-weight: 800;
  font-display: swap; src: url("fonts/libre-franklin-latin-ext-800-italic.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */

:root {
  --lacquer: #16120f;
  --lacquer-soft: #211b17;
  --ivory: #f4efe6;
  --ivory-dim: #cdc5b8;
  --felt: #96263a;
  --brass: #c08a3e;
  --dust: #8a8177;

  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 74rem;
}

*, *::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(--lacquer);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.19rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--brass); color: var(--lacquer);
  padding: 0.75rem 1.25rem; font-weight: 600; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Type ---------- */

.display {
  font-weight: 800;
  letter-spacing: -0.033em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
  /* German compounds are long; never let one punch out of its column. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.display--xl { font-size: clamp(2.6rem, 1.4rem + 6.2vw, 6.4rem); }
.display--lg { font-size: clamp(2.1rem, 1.3rem + 3.9vw, 4.1rem); }
.display--md { font-size: clamp(1.6rem, 1.2rem + 1.9vw, 2.4rem); }

/* Section mark: a real stave with clef, key and time signature, drawn from
   Bravura (SIL OFL) and shipped as flat SVG paths — no music font to load, no
   <use>, no script. An <img> renders identically everywhere and degrades to
   nothing if it ever fails, since the mark is decorative. */
.mark {
  display: block;
  width: clamp(3.5rem, 9vw, 5.5rem);
  height: auto;
  margin: 0 0 1.15rem;
}

/* The "two pianists" mark is a real grand staff — two staves joined by a brace,
   which is what a pianist actually reads. It is much taller than it is wide, so
   it is sized by height instead, or the width clamp would make it enormous. */
.mark--grand {
  width: auto;
  height: clamp(4.6rem, 11vw, 6.4rem);
}

.eyebrow {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dust);
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.14rem, 1rem + 0.7vw, 1.42rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ivory);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.gap { margin-top: 2.5rem; }
.gap-sm { margin-top: 1.6rem; }
.prose p { margin: 0 0 1.35em; color: var(--ivory-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--ivory); }

/* ---------- Shell ---------- */

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 1.4rem;
  /* Opaque, not translucent: the panels scroll dark photography underneath and
     a blurred/see-through bar would make the nav unreadable at some scroll
     positions. A solid bar is legible at every one. */
  background: var(--lacquer);
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
}

/* Anchor targets must clear the sticky bar, or #angebot lands under it. */
:target { scroll-margin-top: 6rem; }

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 2rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--brass); }

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; align-items: baseline; }

.nav a {
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav a:hover { color: var(--ivory); border-bottom-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--felt); }

.lang {
  display: flex;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.lang a { text-decoration: none; color: var(--dust); }
.lang a:hover { color: var(--ivory); }
.lang [aria-current="true"] { color: var(--brass); }

/* ---------- Panels: content scrolls over a held image ----------
   The image is position:fixed, but `clip-path` on .panel__media makes that
   element the containing block, so the fixed layer is clipped to the panel.
   This is what background-attachment:fixed is supposed to do and does not,
   reliably, on iOS Safari. */

.panel { position: relative; isolation: isolate; }

.panel__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* DEFAULT = the safe rendering. The image simply fills its own panel. If every
   enhancement below is unsupported or switched off, the page still looks right.
   This ordering is deliberate: when the held-image effect was the default, any
   browser that did not make .panel__media a containing block would have let a
   position:fixed image escape and cover the whole viewport — a total breakage
   rather than a downgrade. */
.panel__media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ENHANCEMENT = hold the image while the content scrolls over it.
   `clip-path` makes .panel__media the containing block for the fixed child, so
   the image is clipped to the panel. Gated three ways: the browser must
   actually support clip-path, the viewport must be wide enough that mobile
   toolbar resizing will not judder, and the visitor must not have asked for
   reduced motion. */
@supports (clip-path: inset(0)) {
  @media (min-width: 46.0625rem) and (prefers-reduced-motion: no-preference) {
    .panel__media { clip-path: inset(0); }
    .panel__media img {
      position: fixed;
      width: 100vw;
      height: 100vh;
    }
  }
}

.panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Type sits on the upper-left; weight the scrim there so contrast holds
     without flattening the photograph. */
  background:
    linear-gradient(102deg, rgba(22,18,15,0.93) 0%, rgba(22,18,15,0.78) 42%, rgba(22,18,15,0.42) 100%),
    linear-gradient(to bottom, rgba(22,18,15,0.55) 0%, rgba(22,18,15,0.1) 30%, rgba(22,18,15,0.72) 100%);
}

.panel__body {
  position: relative;
  min-height: min(94vh, 56rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 12vh, 9rem);
}

/* ---------- Hero ---------- */

.hero .panel__body { min-height: min(96vh, 60rem); align-items: flex-end; }

.hero__inner { max-width: 52rem; }

.hero .lede { margin: 1.6rem 0 0; }

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dust);
  text-decoration: none;
}
.hero__scroll::after {
  content: "";
  width: 2.6rem; height: 1px;
  background: var(--brass);
  transition: width 0.25s;
}
.hero__scroll:hover { color: var(--ivory); }
.hero__scroll:hover::after { width: 3.8rem; }

/* ---------- Interlude: solid bands that break the parallax rhythm ---------- */

.band { background: var(--lacquer); padding-block: clamp(4rem, 11vh, 7.5rem); }
.band--soft { background: var(--lacquer-soft); }

.band--ivory {
  background: var(--ivory);
  color: var(--lacquer);
}
.band--ivory .prose p { color: #4a443c; }
/* Without this, .prose strong's ivory colour lands on an ivory ground and the
   emphasised sentence disappears entirely. */
.band--ivory .prose strong { color: var(--lacquer); }
.band--ivory .eyebrow { color: #7d7367; }
.band--ivory .dyn { color: var(--felt); }

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 3rem;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  padding-top: 2.25rem;
}
.band--ivory .facts { border-top-color: rgba(22, 18, 15, 0.16); }

.fact__key {
  display: block;
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--brass);
}
.band--ivory .fact__key { color: var(--felt); }

.fact__val {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--dust);
}
.band--ivory .fact__val { color: #6d6459; }

/* ---------- Teachers ---------- */

.teachers {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 3.25rem;
}
@media (min-width: 52rem) { .teachers { grid-template-columns: 1fr 1fr; } }

/* Rectangular, not circular. Neither photograph is a headshot — both are
   action shots of a pianist mid-playing, with the face off-centre — so a
   circular crop cut the subject out entirely. The 4:3 frame suits the source
   material and needs no re-crop when real headshots arrive (see the TODO in
   deploy-virtuosenschule-de.md § 6).
   Width is capped at 21rem because Tiffany's source is only 370px wide; going
   wider would visibly upscale it. */
.teacher__portrait {
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border-bottom: 2px solid var(--brass);
  margin-bottom: 1.5rem;
}

.teacher__name {
  font-weight: 800;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.72rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.3rem;
}

.teacher__role {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.15rem;
}

.teacher__bio { font-size: 0.97rem; line-height: 1.68; }
.teacher__bio p { color: var(--ivory-dim); margin: 0 0 1em; }

/* ---------- Subject list ---------- */

.subjects {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.subjects li {
  border: 1px solid rgba(192, 138, 62, 0.42);
  color: var(--ivory);
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 400;
}
.band--ivory .subjects li { border-color: rgba(150, 38, 58, 0.34); color: var(--lacquer); }

/* ---------- Call to action ---------- */

.cta {
  display: inline-block;
  margin-top: 2.4rem;
  background: var(--felt);
  color: var(--ivory);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 1.05rem 2.3rem;
  transition: background 0.2s, transform 0.2s;
}
.cta:hover { background: #a92b41; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .cta:hover { transform: none; } }

/* ---------- Contact ---------- */

.contact-card {
  margin-top: 2.5rem;
  background: var(--ivory);
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 34rem;
}
.contact-card img { width: 100%; }

.contact-note {
  margin-top: 1.1rem;
  font-size: 0.83rem;
  color: var(--dust);
  max-width: 34rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--lacquer);
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  padding-block: clamp(3rem, 8vh, 5rem);
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}

.footer p, .footer ul { margin: 0; color: var(--ivory-dim); line-height: 1.65; }
.footer ul { list-style: none; padding: 0; }
.footer a { color: var(--ivory-dim); text-decoration: none; border-bottom: 1px solid rgba(192,138,62,0.4); }
.footer a:hover { color: var(--ivory); border-bottom-color: var(--brass); }

.footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.79rem;
  color: var(--dust);
}

/* ---------- Legal pages ----------
   Deliberately outside the panel scroller: these are reference documents people
   arrive at to check a fact, not part of the narrative. Plain, high-contrast,
   quick to scan. */

.legal { padding-block: clamp(3rem, 9vh, 5.5rem); }

.legal__body { max-width: 44rem; }

.legal__body h2 {
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.85rem;
}
.legal__body h3 {
  font-weight: 600;
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--brass);
}
.legal__body p, .legal__body li { color: var(--ivory-dim); }
.legal__body p { margin: 0 0 1.1em; }
.legal__body ul { margin: 0 0 1.1em; padding-left: 1.15rem; }
.legal__body li { margin-bottom: 0.4em; }
.legal__body a { color: var(--ivory); text-decoration-color: var(--brass); }

.address {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ivory);
  margin: 0 0 1.1em;
}

/* Two distinct states, deliberately not the same colour:
     .todo    (crimson) — the fact is MISSING and must be supplied
     .pending (brass)   — a fact IS stated but is not yet confirmed
   Conflating them would let an unverified claim read as a settled one, which
   is the more dangerous of the two on a page carrying legal weight. */
.pending {
  display: block;
  background: rgba(192, 138, 62, 0.13);
  border-left: 4px solid var(--brass);
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.1em;
  font-size: 0.92rem;
  color: var(--ivory);
}
.pending strong { color: var(--brass); }

/* Unmissable on purpose. These pages carry legal obligations and must not go
   live with the placeholders still in them. */
.todo {
  display: block;
  background: rgba(150, 38, 58, 0.16);
  border-left: 4px solid var(--felt);
  padding: 0.85rem 1.1rem;
  margin: 0 0 1.1em;
  font-size: 0.92rem;
  color: var(--ivory);
}
.todo strong { color: var(--brass); }

/* ---------- 404 ---------- */

.err {
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding-block: 5rem;
}
