/* ============================================================
   MATHIAS MONRAD MØLLER — Main Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* --- CSS Variables --- */
:root {
  /* Former mint/green accent palette — kept as variable names so the 40+ pages
     still referencing them don't break, but repointed to a neutral off-white/
     anthracite system instead of green. "Sat"/"light" fills are now a pale
     neutral tint rather than a colour; "text" variants are anthracite. */
  --mint-light:      #f1efec;
  --mint-light-text: #2b2f33;
  --mint-sat:        #f1efec;
  --mint-sat-text:   #2b2f33;
  --mint-deep:       #2b2f33;

  /* Neutrals */
  --page:   #ffffff;
  --off:    #f7f5f2;
  --dark:   #2b2f33;
  --line:   #e6e3dd;
  /* --muted/--subtle were #999999/#cccccc — both fail WCAG AA against a
     white background (2.85:1 / 1.61:1). Darkened to values that pass
     (4.54:1 / 5.74:1), matching the darkening already done on the
     Calendar page's event text. */
  --muted:  #767676;
  --subtle: #666666;

  /* Accent — crimson, used only for clickable/active states (nav links,
     filter pills, language toggle) so the color stays a reliable "you are
     here / this is selected" signal rather than decoration. */
  --accent: #d7263d;

  /* Typography */
  --font: 'DM Sans', sans-serif;

  /* Spacing */
  --pad: 28px;
  --pad-sm: 14px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

/* Sticky footer — on short pages (e.g. Contact) the footer used to end
   right after the content instead of sitting at the bottom of the
   viewport. min-height + flex column lets <main> (present on every page
   except the hero-driven index.html, which is tall enough regardless)
   grow to fill any leftover space, pushing .footer down with it. */
body {
  font-family: var(--font);
  background: var(--page);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button, input, select, textarea {
  font-family: var(--font);
}

/* --- Utility classes --- */
.tag-sat,
.tag-light {
  background: none;
  color: #fff;
}

.tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Score tiles have a near-white background (no photo/video), so white tag
   text loses all contrast — switch to dark ink with no shadow there. */
.tile:has(.score-bg) .tag {
  color: var(--dark);
  text-shadow: none;
}

/* Sentence case, tight tracking, no shouting — same restrained voice as
   the nav/filter bar (13px, weight-driven hierarchy) rather than the
   small-caps "eyebrow label" convention this used before. */
.sec-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--subtle);
  margin-bottom: 16px;
  display: block;
}

/* Sits beside its value now (.werk-meta-item is a two-column grid), not
   stacked above it — padding-top nudges the label's smaller text back
   onto the value's baseline instead of its cap-height. */
.meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--subtle);
  padding-top: 1px;
  display: block;
}

.meta-value {
  font-size: 12px;
  color: var(--dark);
  line-height: 1.5;
}

/* --- Navigation --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--pad-sm) var(--pad);
  border-bottom: 0.5px solid var(--line);
  background: var(--page);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-name a {
  color: var(--dark);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-pill:hover {
  opacity: 0.8;
}

.nav-pill-sat {
  background: var(--mint-sat);
  color: var(--mint-sat-text);
}

.nav-pill-light {
  background: var(--mint-light);
  color: var(--mint-light-text);
}

.nav-aux {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}

.nav-aux a {
  color: var(--muted);
  transition: color 0.15s;
}

.nav-aux a:hover {
  color: var(--dark);
}

/* Mobile nav toggle */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--dark);
  transition: all 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--page);
  border-bottom: 0.5px solid var(--line);
  padding: 16px var(--pad);
  gap: 14px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 14px;
  font-weight: 300;
  color: var(--dark);
}

/* --- Language switcher --- */
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.lang-btn.active { color: var(--dark); font-weight: 500; }
.lang-btn:hover { color: var(--dark); }
.lang-sep { color: #ddd; font-size: 11px; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--pad-sm) var(--pad);
  font-size: 11px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0.5px solid var(--line);
  background: var(--off);
}

.breadcrumb a {
  color: #aaa;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--mint-sat-text);
}

.breadcrumb-sep {
  color: #ddd;
}

.breadcrumb-current {
  color: var(--dark);
  font-weight: 500;
}

/* --- Page header (Composer, Singer, etc.) --- */
.page-header {
  padding: 8px var(--pad) 20px;
}

/* Still used by pages not yet migrated off the old boxed header. */
.page-back {
  font-size: 11px;
  color: currentColor;
  opacity: 0.6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.page-back:hover {
  opacity: 1;
}

.page-title {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--dark);
}

/* ============================================================
   PAGE KICKER — small page-name heading for interior pages that
   have no statement-block intro (Records, Calendar, About, Contact).
   Same typographic voice as .statement-heading so every page reads
   as one system. Doubles as the page's actual <h1> — no separate
   sr-only title needed since the visible text is the page name.
   ============================================================ */
.page-kicker {
  padding: 40px var(--pad) 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.01em;
}

/* --- Filter bar --- */
.filter-bar {
  display: flex;
  gap: 20px;
  padding: 0 var(--pad) 32px;
  background: transparent;
  flex-wrap: wrap;
  font-family: 'Inter', -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.filter-btn {
  font-size: 12px;
  font-weight: 400;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.filter-btn:hover {
  color: var(--dark);
}

.filter-btn.active {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================================
   SITE NAV — floating nav for pages with no photo hero (Composer,
   Singer, and eventually every interior page). Transparent, dark
   text, "floats" on the page's own background instead of a bar.
   Was duplicated per-page; centralized here so nav fixes only need
   to happen once. Requires Inter to be linked in the page's <head>.
   ============================================================ */
.site-nav{ display:flex; justify-content:space-between; align-items:center; padding:22px 28px;
  background:transparent; gap:12px; font-family:'Inter',-apple-system,"Helvetica Neue",Arial,sans-serif; }
.site-nav-name{ font-weight:400; font-size:13px; letter-spacing:.02em; color:var(--dark); text-decoration:none; white-space:nowrap; flex-shrink:0; }
.site-nav-links{ display:flex; align-items:center; gap:16px; font-weight:400; font-size:13px; color:var(--dark); white-space:nowrap; }
/* line-height:1 pins each link's own box height so the nav-click flicker
   (js/main.js) — which cycles through fonts with very different natural
   line-heights — can't make the whole bar (and everything below it)
   grow/shrink and bounce on every frame. */
.site-nav-links a{ color:inherit; text-decoration:none; transition:opacity .15s; line-height:1; }
.site-nav-links a:hover{ opacity:.6; }
/* No persistent accent color on the active link — the nav-click flicker
   (js/main.js) already signals "you clicked this" at the moment of the
   click; the resting state is just bold. */
.site-nav-links a.active{ font-weight:600; color:var(--dark); }
.site-nav-mobile a.active{ font-weight:600; color:var(--dark); }
.site-nav-sep{ opacity:.4; }
.site-nav-lang{ display:flex; align-items:center; gap:5px; font-weight:400; font-size:11px; color:var(--muted); }
.site-nav-lang button{ background:none; border:none; padding:0; font:inherit; color:inherit; cursor:pointer; }
/* The language toggle isn't part of the nav-click flicker (it doesn't
   navigate anywhere), so it keeps the persistent accent color. */
.site-nav-lang button.active{ font-weight:600; color:var(--accent); }

.site-nav-burger{ display:none; flex-direction:column; gap:4px; background:none; border:none; padding:6px; cursor:pointer; }
.site-nav-burger span{ width:20px; height:1.5px; background:var(--dark); }
.site-nav-mobile{ position:fixed; top:0; left:0; right:0; z-index:20; background:#171717; padding:70px 28px 24px;
  display:flex; flex-direction:column; gap:18px; transform:translateY(-100%); transition:transform .25s ease;
  max-height:100%; overflow-y:auto; }
.site-nav-mobile.open{ transform:translateY(0); }
.site-nav-mobile a{ color:#fdfbf7; font-size:16px; font-weight:400; text-decoration:none; line-height:1.2; }
.site-nav-mobile .site-nav-lang{ color:rgba(253,251,246,.7); margin-top:6px; }
.site-nav-mobile .site-nav-lang button.active{ color:#fdfbf7; }
@media (prefers-reduced-motion:reduce){ .site-nav-mobile{ transition:none; } }
@media (max-width:640px){
  .site-nav-links{ display:none; }
  .site-nav-burger{ display:flex; }
}

/* ============================================================
   STATEMENT BLOCK — page intro used on Composer/Singer: a kicker
   H1 (visually hidden, see .sr-only), a heading, body copy, and an
   optional press-quote block in a third row aligned under the body
   column. Grid: 1fr heading column, 2fr body/quote column.
   ============================================================ */
.statement-block {
  padding: 40px 28px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: start;
}

.statement-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.statement-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
}

.statement-body p { margin-bottom: 0.9em; }
.statement-body p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .statement-block { grid-template-columns: 1fr; gap: 16px; }
}

/* --- Press quote — sits in a new row below the statement, aligned with
   the body-text column rather than flush with the heading column.
   Auto-advances (js/main.js), dots only — no prev/next arrows. --- */
.press-quote-block{ grid-column:2; }
.press-quote-item{ display:none; }
.press-quote-item.active{ display:block; }
.press-quote-text{
  font-family:var(--font); font-size:15px; font-weight:300; font-style:italic;
  color:#444; line-height:1.85; margin:0 0 10px;
}
.press-source{
  font-family:'Inter',-apple-system,"Helvetica Neue",Arial,sans-serif;
  font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
.press-controls{ display:flex; align-items:center; gap:8px; margin-top:16px; }
.press-dot{
  width:6px; height:6px; border-radius:50%; background:#ddd; border:none;
  cursor:pointer; padding:0;
}
.press-dot.active{ background:var(--accent); }

@media (max-width: 768px) {
  .press-quote-block { grid-column: auto; }
}

/* --- Work tile grid --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tile {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.tile-std { aspect-ratio: 4/3; }

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tile:hover img {
  transform: scale(1.02);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,12,8,0.84) 0%, transparent 52%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  z-index: 1;
  transition: background 0.2s;
}

.tile:hover .tile-overlay {
  background: linear-gradient(to top, rgba(5,12,8,0.92) 0%, transparent 60%);
}

.tile-tag-pos {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.tile-yr {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

.tile-nm {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 1.25;
}

.tile-nm-lg { font-size: 15px; }

.tile-tp {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  font-weight: 300;
}

.tile-media-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  z-index: 2;
}

/* Score background (partitur) */
.score-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 7px;
}

.score-line {
  height: 1px;
  background: #555;
  opacity: 0.22;
  width: 100%;
}

.score-line-thick {
  height: 2px;
  background: #444;
  opacity: 0.18;
}

.score-clef {
  position: absolute;
  font-size: 28px;
  font-family: serif;
  color: #333;
  opacity: 0.13;
}

/* --- Category label inside grid --- */
.cat-label {
  grid-column: span 3;
  padding: 28px 12px 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--subtle);
}

/* --- Buttons --- */
.btn {
  font-size: 11px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }

.btn-sat {
  background: var(--mint-sat);
  color: var(--mint-sat-text);
}

.btn-light {
  background: var(--mint-light);
  color: var(--mint-light-text);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

/* --- Footer --- */
/* A tinted background reads as "you've left the page content, this is
   site chrome" on its own — no border needed, and it stops the footer
   from visually competing with whatever content sits directly above it
   (e.g. a werk page's prev/next nav, a similarly two-item split row). */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad);
  background: var(--off);
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.footer-name {
  font-size: 11px;
  color: var(--subtle);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Deliberately weightier than the plain-text Impressum link — this points
   off-site, so it gets a label explaining why, plus enough size/color to
   read as a choice rather than an afterthought. Sits alone at the far
   right so it's the last thing the eye lands on in the footer. */
.footer-company-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-company-label {
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--subtle);
}

.footer-company {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent);
  padding-bottom: 1px;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.footer-company:hover { opacity: 0.75; }

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--subtle);
}

.footer-links a {
  color: var(--subtle);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--dark); }

/* --- Nav work (prev/next) --- */
.nav-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--pad);
  padding-top: 24px;
}

.nav-work {
  padding: 18px var(--pad);
  cursor: pointer;
}

.nav-work-dir {
  font-size: 11px;
  color: var(--subtle);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-work-title {
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-work:hover .nav-work-title { color: var(--accent); }

.nav-work-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

/* --- Video lightbox — plays a [data-youtube] tile's YouTube video
   inline instead of navigating away. Requires the markup block (see
   any page using it, e.g. singer.html) and js/main.js's wiring. --- */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.video-lightbox.open { display: flex; }

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
}

.video-lightbox-inner {
  position: relative;
  width: min(920px, 100%);
}

.video-lightbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-lightbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px;
  transition: color 0.15s;
}

.video-lightbox-close:hover { color: #fff; }
.video-lightbox-close i { font-size: 16px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --pad: 18px; --pad-sm: 12px; }

  .nav-center,
  .nav-aux { display: none; }

  .nav-hamburger { display: flex; }

  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-label { grid-column: span 2; }

  .nav-works { grid-template-columns: 1fr; }

  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
  .cat-label { grid-column: span 1; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
