/* ---------------------------------------------------------------
   Staka – islandsk kammerkor i København
   Palette: paper / ink / night blue. Type: Cormorant Garamond + Inter.
--------------------------------------------------------------- */
:root {
  --paper: #F4F1EB;
  --paper-2: #EBE6DD;
  --ink: #16181D;
  --ink-2: #4B4E57;
  --muted: #7C7F87;
  --line: #D9D3C8;
  --night: #1C2440;
  --night-2: #2A3560;
  --glacier: #8FB3C9;
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 84px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, iframe { display: block; max-width: 100%; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
p a, .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--muted); transition: text-decoration-color .2s; }
p a:hover, .prose a:hover { text-decoration-color: var(--ink); }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; height: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand img { height: 30px; width: auto; transition: filter .3s; }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.is-dark-header .site-header { color: var(--paper); }
.is-dark-header.logo-clean .brand img, .is-dark-header.logo-soft .brand img { filter: invert(1) brightness(1.2); }
.logo-soft .brand img { height: 40px; }
.logo-stamp .brand img { height: 40px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 60; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; top: 17px; }
.nav-toggle span + span { top: 26px; }
.nav-toggle[aria-expanded="true"] span { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { transform: rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 0; background: var(--night); color: var(--paper); display: grid; place-items: center;
         opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .nav a { font-family: var(--serif); font-size: 2rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { color: var(--paper); }
  body.nav-open.logo-clean .brand img, body.nav-open.logo-soft .brand img { filter: invert(1) brightness(1.2); }
}

/* ---- hero ---- */
.hero { position: relative; min-height: clamp(560px, 92vh, 900px); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--night); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .5; } to { transform: none; opacity: 1; } }
@media (max-width: 800px) { .hero-img img { object-position: 45% 50%; } }
.hero-shade { position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(to right, rgba(12,15,28,.85) 0%, rgba(12,15,28,.6) 35%, rgba(12,15,28,.15) 60%, rgba(12,15,28,.05) 100%),
  linear-gradient(to bottom, rgba(12,15,28,.45) 0%, rgba(12,15,28,0) 22%, rgba(12,15,28,0) 70%, rgba(12,15,28,.55) 100%); }
.hero-content { position: relative; padding: calc(var(--header-h) + 40px) 0 clamp(40px, 7vh, 80px); display: grid; gap: 22px; max-width: 640px; justify-items: start; }
@media (max-width: 800px) {
  .hero { align-items: flex-start; min-height: clamp(560px, 88vh, 820px); }
  .hero-content { max-width: none; position: static; padding-top: calc(var(--header-h) + 12px); padding-bottom: 130px; }
  .hero-content > h1, .hero-content > .lede { position: relative; z-index: 1; }
  .hero-next { z-index: 1; }
  .hero-next-title { font-size: 1.25rem; }
  .hero-next { position: absolute; left: 0; right: 0; bottom: 0; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0;
    padding: 14px var(--gutter) 18px; background: rgba(12,15,28,.8); backdrop-filter: none; }
  .hero-shade { background: linear-gradient(to bottom, rgba(12,15,28,.9) 0%, rgba(12,15,28,.7) 40%, rgba(12,15,28,.2) 68%, rgba(12,15,28,.3) 100%); }
}
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.8rem); font-weight: 500; margin: 0; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(244,241,235,.86); margin: 0; line-height: 1.55; }
.hero-next { display: inline-grid; gap: 4px; margin-top: 8px; padding: 18px 22px; border: 1px solid rgba(244,241,235,.35); border-radius: 4px; width: fit-content; max-width: 100%;
  backdrop-filter: blur(6px); background: rgba(12,15,28,.35); transition: background .3s, border-color .3s; }
.hero-next:hover { background: rgba(244,241,235,.12); border-color: rgba(244,241,235,.7); }
.hero-next .kicker { color: var(--glacier); }
.hero-next-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; }
.hero-next-date { font-size: .92rem; color: rgba(244,241,235,.8); }

/* ---- sections ---- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--night); color: var(--paper); }
.section--dark .kicker { color: var(--glacier); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-link { font-size: .9rem; font-weight: 500; letter-spacing: .02em; border-bottom: 1px solid var(--line); padding-bottom: 4px; white-space: nowrap; transition: border-color .2s; }
.section-link:hover { border-color: var(--ink); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--night-2); margin: 0 0 12px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.page-head { padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 clamp(20px, 4vw, 40px); }
.page-head .lede { margin-bottom: 0; }
.h-line { font-size: 1.05rem; font-family: var(--sans); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.year-h { margin: 48px 0 16px; font-size: 2.2rem; color: var(--night-2); }
.year-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; margin: -8px 0 12px; }
.year-nav a { color: var(--muted); border-bottom: 1px solid transparent; }
.year-nav a:hover { color: var(--ink); border-color: var(--ink); }

.btn { display: inline-block; padding: 13px 26px; border: 1px solid var(--ink); border-radius: 999px; font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--paper); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--night); }

/* ---- concerts ---- */
.concert-list { display: grid; }
.concert-row { border-top: 1px solid var(--line); }
.concert-row:last-child { border-bottom: 1px solid var(--line); }
.concert-link { display: grid; grid-template-columns: 90px 1fr 300px; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 36px) 0; align-items: center; }
.concert-row--big .concert-link { grid-template-columns: 110px 1fr 380px; }
.concert-list--compact .concert-link { grid-template-columns: 80px 1fr 180px; padding: 18px 0; }
.concert-list--compact .excerpt { display: none; }
.concert-list--compact h3 { font-size: 1.3rem; }
.date-block { display: grid; text-align: center; line-height: 1; font-family: var(--serif); color: var(--night-2); }
.date-block .dd { font-size: 2.8rem; font-weight: 500; }
.date-block .mm { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.date-block .yy { font-family: var(--sans); font-size: .72rem; color: var(--muted); margin-top: 2px; }
.concert-row--big .dd { font-size: 3.6rem; }
.concert-text h3 { margin: 0 0 6px; transition: color .2s; }
.concert-link:hover h3 { color: var(--night-2); }
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.excerpt { color: var(--ink-2); margin: 0 0 12px; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-size: .84rem; font-weight: 500; letter-spacing: .04em; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.concert-link:hover .more { border-color: var(--ink); }
.thumb { border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.thumb img { transition: transform .8s var(--ease); }
.concert-link:hover .thumb img { transform: scale(1.04); }
.thumb-empty { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--paper-2), var(--line)); }
.empty { padding: 32px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.concert-row[hidden] { display: none; }

@media (max-width: 800px) {
  .concert-link, .concert-row--big .concert-link, .concert-list--compact .concert-link { grid-template-columns: 64px 1fr; }
  .thumb, .thumb-empty { grid-column: 2; }
  .concert-list--compact .thumb { display: none; }
  .date-block .dd, .concert-row--big .dd { font-size: 2.2rem; }
}

/* ---- about split ---- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo picture { border-radius: 4px; overflow: hidden; }
.about-copy p { color: var(--ink-2); }
.about-copy .btn { margin-top: 12px; }
@media (max-width: 800px) { .about-split { grid-template-columns: 1fr; } .about-split--rev .about-photo { order: -1; } }

/* ---- cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.card a { display: grid; gap: 12px; }
.card-img { border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.card-img img { transition: transform .8s var(--ease); }
.card a:hover img { transform: scale(1.04); }
.card-year { font-size: .78rem; letter-spacing: .14em; color: var(--muted); }
.card h3 { font-size: 1.35rem; margin: 0; transition: color .2s; }
.card a:hover h3 { color: var(--night-2); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

/* ---- listen ---- */
.listen-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.listen-split p { color: rgba(244,241,235,.8); }
.listen-embed iframe { border-radius: 12px; }
@media (max-width: 800px) { .listen-split { grid-template-columns: 1fr; } }

/* ---- video ---- */
.yt { position: relative; aspect-ratio: 16/9; background: var(--night); border-radius: 4px; overflow: hidden; }
.yt button { position: absolute; inset: 0; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .8s var(--ease); }
.yt button:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(244,241,235,.92); transition: transform .3s var(--ease); }
.yt .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid var(--night); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.yt button:hover .play { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt--big { margin-bottom: clamp(20px, 3vw, 36px); }
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 800px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .yt-grid { grid-template-columns: 1fr; } }
.embed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.embed-grid iframe { border-radius: 12px; }
@media (max-width: 700px) { .embed-grid { grid-template-columns: 1fr; } }

/* ---- article ---- */
.article-head { padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 clamp(24px, 4vw, 40px); max-width: 860px; }
.article-body { max-width: 860px; padding-bottom: clamp(56px, 9vw, 120px); }
.article-img { border-radius: 4px; overflow: hidden; margin-bottom: clamp(28px, 4vw, 48px); }
.article-img img { object-fit: contain; max-height: 80vh; background: var(--paper-2); width: 100%; height: auto; }
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose p { margin: 0 0 1.2em; }
.prose img { border-radius: 4px; margin: 1em 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2 { font-size: 1.8rem; } .prose h3 { font-size: 1.4rem; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--line); font-family: var(--serif); font-size: 1.3rem; }
.article-back { margin-top: 40px; font-size: .9rem; }
.badge { display: inline-block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--night); border: 1px solid var(--night); padding: 5px 12px; border-radius: 999px; }
.badge--cancelled { color: #9a3b2f; border-color: #9a3b2f; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.gallery picture { border-radius: 4px; overflow: hidden; aspect-ratio: 1; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.pager a { color: var(--ink-2); } .pager a:hover { color: var(--ink); }

/* ---- about page ---- */
.conductor { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.conductor-photo picture { border-radius: 4px; overflow: hidden; position: sticky; top: 24px; }
.conductor h2 { margin-bottom: 4px; }
@media (max-width: 800px) { .conductor { grid-template-columns: 1fr; } .conductor-photo { max-width: 360px; } }
.voices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.voice h3 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.voice li { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
@media (max-width: 800px) { .voices { grid-template-columns: repeat(2, 1fr); } }
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.press-grid a { display: grid; gap: 10px; font-size: .9rem; }
.press-grid em { color: var(--muted); font-style: normal; }
.press-img { border-radius: 4px; overflow: hidden; }
@media (max-width: 700px) { .press-grid { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-big { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 48px; }
.contact-big a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-big a:hover { border-color: var(--ink); }
.social--big li { font-family: var(--serif); font-size: 1.5rem; line-height: 1.6; }
.join-card { background: var(--night); color: var(--paper); padding: clamp(28px, 4vw, 48px); border-radius: 6px; }
.join-card .kicker { color: var(--glacier); }
.join-card p { color: rgba(244,241,235,.82); }
.join-card .btn { border-color: var(--paper); color: var(--paper); margin-top: 8px; }
.join-card .btn:hover { background: var(--paper); color: var(--night); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: rgba(244,241,235,.8); padding: clamp(48px, 7vw, 80px) 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.logo-clean .footer-logo, .logo-soft .footer-logo { filter: invert(1) brightness(1.2); }
.logo-soft .footer-logo { height: 40px; }
.footer-h { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer a:hover { color: var(--white); }
.social li { line-height: 1.9; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(244,241,235,.12); font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
