/* ============================================================
   Morten Schuldt-Jensen — schuldtjensen.com
   Modern, clean, responsive
   ============================================================ */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #17191c;
  --text: #3c4046;
  --muted: #82878e;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --accent: #2f6f9f;
  --accent-dark: #24587f;
  --line: #e5e7e9;
  --sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.3rem; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1.3rem;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand a { color: var(--ink); }
.brand .name {
  font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap;
}
.brand .role {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .26em;
  color: var(--muted); margin-top: .1rem;
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink); font-size: 1.3rem; line-height: 1;
  padding: .3rem .55rem; cursor: pointer;
}
.main-nav ul { display: flex; gap: 1.35rem; list-style: none; align-items: center; }
.main-nav a {
  color: var(--text); font-size: .8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .09em; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

.lang-switch { display: flex; gap: .15rem; margin-left: .7rem; }
.lang-switch a {
  color: var(--muted); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; padding: .16rem .4rem; border-radius: 4px;
}
.lang-switch a:hover { color: var(--ink); background: var(--bg-soft); }
.lang-switch a.active { color: #fff; background: var(--accent); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; display: none;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; padding: .4rem 0 .9rem; }
  .main-nav li { text-align: center; }
  .main-nav a { display: block; padding: .6rem 1rem; border-bottom: none; }
  .main-nav a.active { border-bottom: none; }
  .lang-switch { justify-content: center; margin: .5rem 0 0; }
}

/* ---------- Page head (compact, no banner) ---------- */
.page-head { padding: 2rem 0 0; }
.page-head h1 {
  font-weight: 700; color: var(--ink);
  font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em;
}
.page-head .sub {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .26em;
  color: var(--muted); margin-top: .25rem;
}
.rule { width: 48px; height: 3px; background: var(--accent); margin: .9rem 0 0; border: none; }

/* ---------- Content ---------- */
.content { padding: 1.8rem 0 3.4rem; }
.content h2 {
  font-weight: 700; color: var(--ink);
  font-size: 1.35rem; margin: 2.2rem 0 .8rem; line-height: 1.25; letter-spacing: -.01em;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-weight: 600; color: var(--ink);
  font-size: 1.05rem; margin: 1.5rem 0 .4rem;
}
.content p { margin: 0 0 1rem; max-width: 74ch; }
.lead { font-size: 1.06rem; color: var(--ink); }

/* Bio layout */
.bio-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.bio-grid .portrait img { border-radius: 6px; }
.bio-thumbs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .55rem; margin-top: .55rem; }
.bio-thumbs img { border-radius: 4px; }
@media (max-width: 800px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid .portrait { max-width: 320px; }
}

/* Ensemble sections */
.ensemble { margin: 0 0 2.8rem; }
.ensemble .ens-img { margin: .8rem 0 1.2rem; }
.ensemble .ens-img img { width: 100%; border-radius: 6px; }
.ensemble + .ensemble { border-top: 1px solid var(--line); padding-top: 2.2rem; }

/* ---------- Discography ---------- */
.cd-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  margin-top: 1.3rem;
}
.cd-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem; display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .15s, box-shadow .15s;
}
.cd-card:hover { border-color: #cfd3d7; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.cd-card .cover {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 5px; overflow: hidden;
}
.cd-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.cd-card .cd-title { font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.cd-card .cd-artists { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ---------- Reviews (accordion) ---------- */
.acc {
  border: 1px solid var(--line); border-radius: 8px;
  margin: 0 0 .6rem; background: #fff; overflow: hidden;
}
.acc summary {
  cursor: pointer; list-style: none;
  padding: .85rem 1.1rem;
  font-weight: 600; color: var(--ink); font-size: .97rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background .15s;
}
.acc summary:hover { background: var(--bg-soft); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-size: 1.15rem; font-weight: 500; color: var(--muted);
  flex-shrink: 0; line-height: 1;
}
.acc[open] summary { border-bottom: 1px solid var(--line); }
.acc[open] summary::after { content: "–"; }
.acc .acc-body { padding: .9rem 1.1rem .4rem; }

blockquote.review {
  font-style: italic; font-size: .97rem; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--accent); padding: .1rem 0 .1rem 1rem;
  margin: 0 0 .3rem; max-width: 70ch;
}
blockquote.review + .review-src {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--muted); margin: 0 0 1.1rem 1.05rem;
}

/* ---------- Mediathek / audio player ---------- */
.tracks { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.track {
  display: grid; grid-template-columns: 42px 1fr auto; gap: .7rem .9rem;
  align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: .7rem .9rem;
  user-select: none; -webkit-user-select: none;
}
.track .tk-play {
  width: 42px; height: 42px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.track .tk-play:hover { background: var(--accent); }
.track.playing .tk-play { background: var(--accent); }
.track .tk-play svg { width: 15px; height: 15px; fill: currentColor; }
.track .tk-meta { min-width: 0; }
.track .tk-title { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.3; }
.track .tk-detail { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.track .tk-time {
  font-variant-numeric: tabular-nums; font-size: .76rem; color: var(--muted);
  min-width: 84px; text-align: right;
}
.track .tk-bar {
  grid-column: 1 / -1;
  height: 5px; background: var(--bg-soft); border-radius: 3px;
  overflow: hidden; cursor: pointer; display: none;
}
.track.started .tk-bar { display: block; }
.track .tk-bar .tk-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 3px; }
.audio-note { font-size: .78rem; color: var(--muted); margin-top: 1.2rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-top: 1.2rem;
}
.gallery a { display: block; border-radius: 6px; overflow: hidden; }
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .2s, filter .2s;
}
.gallery a:hover img { transform: scale(1.03); filter: brightness(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,13,15,.92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(94vw, 900px); max-height: 86vh; object-fit: contain;
  border-radius: 4px;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 2.1rem; cursor: pointer; padding: .5rem 1rem; line-height: 1;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { color: #fff; }
.lightbox .lb-close { top: .7rem; right: .7rem; }
.lightbox .lb-prev { left: .3rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .3rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-line { font-size: 1.06rem; color: var(--ink); margin-top: .4rem; }
.contact-line a { font-weight: 600; }

/* ---------- Legal ---------- */
.legal .content h2 { font-size: 1.1rem; }
.legal .content p, .legal .content li { font-size: .88rem; max-width: 80ch; }
.legal .content ul { margin: 0 0 1rem 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted);
  padding: 1.5rem 0; margin-top: 1.5rem; font-size: .78rem;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.3rem;
  display: flex; flex-wrap: wrap; gap: .7rem 2rem; align-items: center; justify-content: space-between;
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .5rem 1rem; z-index: 999;
}
.skip-link:focus { left: 0; }
::selection { background: var(--accent); color: #fff; }
