/* =========================================================
   concertino — das kammerorchester
   Design system: warm near-black, violin-wood amber, cream.
   ========================================================= */

@font-face { font-family: "Gilda Display"; font-weight: 400; font-display: swap; src: url("../fonts/gildadisplay-400.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 300; font-display: swap; src: url("../fonts/almarai-300.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 400; font-display: swap; src: url("../fonts/almarai-400.woff2") format("woff2"); }
@font-face { font-family: "Almarai"; font-weight: 700; font-display: swap; src: url("../fonts/almarai-700.woff2") format("woff2"); }

:root {
  /* Palette */
  --ink:        #17120f;
  --ink-2:      #231b16;
  --paper:      #f7f2e9;
  --paper-2:    #eee6d8;
  --text:       #2a211b;
  --text-soft:  #5c4e43;
  --wood:       #93501a;
  --wood-dark:  #743d10;
  --amber:      #dda45f;
  --amber-soft: #ecc594;
  --on-dark:    #f4ece0;
  --on-dark-2:  rgba(244, 236, 224, 0.78);
  --line:       rgba(42, 33, 27, 0.16);
  --line-dark:  rgba(244, 236, 224, 0.16);

  /* Type */
  --display: "Gilda Display", "Hoefler Text", Georgia, "Times New Roman", serif;
  --body:    "Almarai", "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 3px;
  --shadow: 0 22px 50px -30px rgba(23, 18, 15, 0.7);
  --header-h: 78px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.09rem);
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); text-underline-offset: 3px; }
a:hover { color: var(--wood-dark); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7em 1.2em;
  background: var(--paper); color: var(--text); border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 5rem); }
h2 { font-size: clamp(1.85rem, 2vw + 1rem, 2.85rem); }
h3 { font-size: clamp(1.35rem, 0.7vw + 1rem, 1.7rem); }
p { margin: 0 0 1.1em; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--wood);
  margin: 0 0 1rem;
}
.lead { font-size: 1.18em; font-weight: 300; color: var(--text-soft); }
.muted { color: var(--text-soft); }
.small { font-size: 0.9rem; }
.rule { width: 56px; height: 2px; border: 0; margin: 1.3rem 0 1.6rem; background: var(--wood); }
.center .rule { margin-inline: auto; }

/* ----- Layout helpers ----- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--logos { background: #fff; }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink .eyebrow { color: var(--amber); }
.section--ink .muted, .section--ink .lead { color: var(--on-dark-2); }
.section--ink .rule { background: var(--amber); }
.section--ink a:not(.btn) { color: var(--amber-soft); }
.center { text-align: center; }
.stack > * + * { margin-top: clamp(2.5rem, 5vw, 4rem); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--poster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--reverse > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 820px) {
  .split, .split--poster { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.8em;
  border: 1px solid var(--wood);
  background: var(--wood);
  color: #fff;
  border-radius: var(--radius);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { background: var(--wood-dark); border-color: var(--wood-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--wood); }
.btn--amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-soft); border-color: var(--amber-soft); color: var(--ink); }
.btn--on-dark { background: transparent; border-color: var(--amber-soft); color: var(--on-dark); }
.btn--on-dark:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-links .nav-group > button {
  color: var(--on-dark); text-decoration: none; font: inherit; font-size: 0.93rem;
  background: none; border: 0; cursor: pointer; padding: 0.45em 0;
}
.nav-links a:hover, .nav-links button:hover { color: var(--amber); }
.nav-links a.is-active, .nav-group.is-active > button { color: var(--amber); }
.nav-group { position: relative; }
.nav-group > button::after { content: "\25BE"; margin-left: 0.4em; font-size: 0.8em; }
.subnav {
  list-style: none; margin: 0; padding: 0.5rem 0; position: absolute; top: 100%; left: -1rem; min-width: 12rem;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.subnav a { display: block; padding: 0.5em 1rem; }
.nav-group:hover .subnav, .nav-group:focus-within .subnav, .nav-group.is-open .subnav { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; border: 0; background: none; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; height: 2px; width: 24px; background: var(--on-dark); transition: transform .25s;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-2px); }

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 0 var(--gutter);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s;
  }
  .nav-links.is-open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; visibility: visible; padding-bottom: 1rem; }
  .nav-links > li { border-bottom: 1px solid var(--line-dark); }
  .nav-links a, .nav-links .nav-group > button { display: block; width: 100%; text-align: left; padding: 0.85rem 0; font-size: 1rem; }
  .nav-group > button { display: none !important; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .subnav li + li { border-top: 1px solid var(--line-dark); }
  .subnav a { padding: 0.85rem 0; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; color: var(--on-dark); overflow: hidden; display: flex; align-items: center; background: var(--ink); }
.hero--home { min-height: min(82vh, 780px); }
.hero--page { min-height: clamp(300px, 42vh, 440px); align-items: flex-end; }
.hero--page .hero__bg img { object-position: center top; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(23,18,15,.86) 0%, rgba(23,18,15,.58) 45%, rgba(23,18,15,.12) 78%), linear-gradient(180deg, transparent 55%, rgba(23,18,15,.75) 100%); }
.hero__inner { position: relative; width: 100%; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--amber); }
.hero .lead { color: var(--on-dark); max-width: 46ch; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 0.6rem; margin: 0; font-size: 0.7rem; color: var(--on-dark-2); }
.crumbs { font-size: 0.82rem; margin: 0 0 0.9rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark); }
@media (max-width: 700px) {
  .hero--home { min-height: 78vh; align-items: flex-end; }
  .hero__bg img { object-position: 78% 20%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(23,18,15,.05) 15%, rgba(23,18,15,.72) 55%, rgba(23,18,15,.95) 100%); }
  .hero__credit { top: 0.6rem; bottom: auto; }
  /* Photo above the text so the heading never covers a face */
  .hero--home { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 0; padding-top: 62vw; }
  .hero--home .hero__bg { bottom: auto; height: 78vw; }
  .hero--home .hero__bg img { object-position: 72% 25%; }
  .hero--home .hero__bg::after { background: linear-gradient(180deg, transparent 55%, var(--ink) 100%); }
  .hero--home .hero__inner { padding-block: 0 2.5rem; }
  .hero--page .hero__bg::after { background: linear-gradient(180deg, rgba(23,18,15,.55) 0%, rgba(23,18,15,.82) 55%, rgba(23,18,15,.94) 100%); }
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  display: flex; flex-direction: column; background: #fffdf9; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__media--contain { background: #6a2483; }
.card__media--poster { background: var(--ink-2); padding: 0.75rem; }
.card__media--contain img, .card__media--poster img { object-fit: contain; object-position: center; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; }
.card__kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; color: var(--wood); text-transform: uppercase; }
.card__title { margin: 0.35rem 0 0.35rem; font-size: 1.5rem; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* quote */
.quote { margin: 0 auto; max-width: 820px; text-align: center; }
.quote p { font-family: var(--display); font-size: clamp(1.3rem, 1.2vw + 1rem, 1.85rem); line-height: 1.4; }
.quote footer { font-size: 0.9rem; color: var(--on-dark-2); }

/* lists / facts */
.facts { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.facts li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { border-top: 1px solid var(--line); }
.section--ink .facts li { border-color: var(--line-dark); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ticks li { padding-left: 1.3rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 2px; background: var(--amber); }

/* musicians */
.roster { columns: 3 220px; column-gap: 2.5rem; }
.roster > div { break-inside: avoid; margin-bottom: 1.8rem; }
.roster h3 { margin-bottom: 0.4em; font-size: 1.3rem; }
.roster ul { list-style: none; margin: 0; padding: 0; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2.5rem 2.25rem; align-items: start; }
.person__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--paper-2); margin-bottom: 0.9rem; }
.person__role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wood); margin: 0; }
.person__name { font-size: 1.4rem; margin: 0.15rem 0 0.4rem; }
.person details summary { cursor: pointer; color: var(--wood); font-size: 0.92rem; list-style: none; padding-block: 0.3rem; }
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: " +"; }
.person details[open] summary::after { content: " \2013"; }
.person details p { font-size: 0.93rem; line-height: 1.65; color: var(--text-soft); margin: 0.6rem 0 0; }
.people--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* chronicle */
.chronicle { list-style: none; margin: 0; padding: 0; }
.chronicle li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.chronicle .when { font-family: var(--display); font-size: 1.1rem; color: var(--wood); }
.chronicle h3 { margin: 0 0 0.15em; font-size: 1.25rem; }
.chronicle p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 560px) { .chronicle li { grid-template-columns: minmax(0, 1fr); } }

/* press */
.search { display: block; width: 100%; max-width: 460px; padding: 0.8em 1em; font: inherit; color: var(--text); background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius); }
.search:focus { outline: 2px solid var(--wood); outline-offset: 1px; }
.press-year { margin-top: 2.5rem; }
.press-year h2 { font-size: 1.5rem; color: var(--wood); margin-bottom: 0.4em; }
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 760px) { .press { grid-template-columns: minmax(0, 1fr); } }
.press a, .press .press__gone {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  background: #fffdf9; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1.1rem; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s;
}
.press a:hover { border-color: var(--wood); background: #fff; color: var(--text); }
.press strong { display: block; font-weight: 700; line-height: 1.35; }
.press span.meta { display: block; font-size: 0.84rem; color: var(--text-soft); margin-top: 0.2rem; }
.tag { flex: none; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; color: var(--wood); border: 1px solid currentColor; border-radius: 999px; padding: 0.15em 0.6em; }
.press__gone { opacity: .75; }

/* gallery */
/* Natural proportions in columns: photos are never cropped */
.gallery { columns: 4 160px; column-gap: 0.6rem; }
.gallery a { display: block; break-inside: avoid; margin-bottom: 0.6rem; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.gallery img { width: 100%; height: auto; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.03); }
.posters { columns: 5 150px; column-gap: 1.25rem; }
.posters a { display: block; break-inside: avoid; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.posters img { width: 100%; height: auto; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.95rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(12,9,6,.95); padding: clamp(1rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; }
.lightbox button { position: absolute; width: 3rem; height: 3rem; border-radius: 999px; font-size: 1.5rem; line-height: 1; color: var(--on-dark); background: rgba(244,236,224,.12); border: 1px solid rgba(244,236,224,.3); cursor: pointer; }
.lightbox button:hover { background: rgba(244,236,224,.25); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%); color: var(--on-dark-2); font-size: 0.82rem; }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-title { font-size: 1.35rem; margin-bottom: 0.6rem; }

/* press images */
.dl-card img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.2rem; width: 100%; }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.dl-list a:hover { color: var(--wood); }

/* partners */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem clamp(1.5rem, 4vw, 3rem); }
.partners img { max-height: 58px; max-width: 150px; width: auto; object-fit: contain; }

/* answers (Innehalten) */
.answers { columns: 3 240px; column-gap: 1.25rem; }
.answers blockquote { break-inside: avoid; margin: 0 0 1.25rem; padding: 1rem 1.2rem; background: rgba(244,236,224,.06); border-left: 2px solid var(--amber); font-family: var(--display); font-size: 1.12rem; line-height: 1.4; }

/* contact */
.contact { font-family: var(--display); font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); line-height: 1.5; }
.contact a { text-decoration: none; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: var(--on-dark-2); padding-block: 3.5rem 2rem; font-size: 0.94rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-grid img { height: 54px; width: auto; margin-bottom: 1rem; }
.footer-grid h2 { font-family: var(--body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: 0.84rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
