/*
 * Publieke site, ontwerp "Matinee": de concertzaal bij daglicht. De foto vervloeit bewust
 * niet in de pagina maar eindigt hard op de menubalk; kaarten zijn als gedrukt programmakarton.
 * Alles hangt onder body.site, zodat het beheer (body.admin-shell) er niets van merkt.
 * Bewust eigen klassen in plaats van de HTML5UP-klassen (.button, .image, .main): die
 * dragen !important-regels mee die hier anders overal tegenin werken.
 * Staat op de stylesheets-root zodat de url() naar de foto door propshaft wordt herschreven.
 */

body.site {
  background: var(--color-hall);
  color: var(--color-text);
}

/* :where houdt de specificiteit gelijk; het witte beheer-dialoog houdt zo zijn eigen kleuren. */
.site :is(h1, h2, h3, h4):where(:not(.quick-dialog *)) {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-heading);
}

.site :is(strong, b):where(:not(.quick-dialog *)) {
  color: inherit;
}

.site a:where(:not(.quick-dialog *)) {
  color: var(--color-velvet);
  border-bottom: 0;
}

.site :is(h1, h2, h3) a {
  color: inherit;
}

.site :is(h1, h2, h3) a:hover {
  color: var(--color-velvet);
}

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-velvet);
}

.prose p {
  margin: 0 0 1.1rem;
  line-height: 1.8;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose strong {
  color: var(--color-heading);
}

/* ── Hero ── */

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: min(48vh, 30rem);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgb(20 14 10 / 0.42) 0, rgb(20 14 10 / 0.14) 32%, rgb(20 14 10 / 0.34) 60%, rgb(20 14 10 / 0.58) 100%),
    url("/assets/hero-violin-sunset-2b57530c.jpg") center 30% / cover no-repeat;
}

.site .hero__title {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.45);
}

.hero__title [aria-hidden] span {
  display: inline-block;
  white-space: pre;
}

.hero__hairpin {
  width: min(60vw, 21rem);
  height: 18px;
  margin-top: 0.5rem;
  overflow: visible;
}

.hero__hairpin path {
  fill: none;
  stroke: var(--color-on-photo);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.hero__tagline {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #f6d9a8;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.7), 0 1px 16px rgb(0 0 0 / 0.9);
}

/* Poco a poco: de titel zwelt bij elke pagina in ±2,5 s aan; kort genoeg om navigeren niet op te houden. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title [aria-hidden] span {
    animation: crescendo-letter 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i) * 80ms + 150ms);
  }

  .hero__hairpin path {
    stroke-dasharray: 340;
    animation: crescendo-draw 1.2s ease-out 1.2s both;
  }

  .hero__tagline {
    animation: crescendo-fade 0.9s ease 1.6s both;
  }
}

@keyframes crescendo-letter {
  from { opacity: 0.06; filter: blur(8px); transform: translateY(0.12em); }
  to { opacity: 1; filter: none; transform: none; }
}

@keyframes crescendo-draw {
  from { stroke-dashoffset: 340; }
  to { stroke-dashoffset: 0; }
}

@keyframes crescendo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Navigatie ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-hall);
  border-top: 2px solid var(--color-brass);
  border-bottom: 1px solid var(--color-rule);
}

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: clamp(0.25rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav li {
  padding: 0;
  flex: none;
}

.site-nav a {
  display: block;
  padding: 1.25rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-velvet);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--color-velvet);
}

/* ── Inhoud ── */

.site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

.site-main--article {
  max-width: 46rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 4.5rem;
  align-items: center;
  padding-bottom: 5.5rem;
}

.feature__text {
  min-width: 0;
}

.site .feature__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.15;
}

.feature__media {
  display: block;
}

/* Boogvorm als een concertzaalraam. */
.feature__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 6px 6px;
}

.cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--color-velvet);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site .cta:hover {
  background: var(--color-velvet);
  color: var(--color-hall-raised);
}

.text-link {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link--forward::after {
  content: "\00a0\2192";
}

.text-link--back::before {
  content: "\2190\00a0";
}

.site .text-link:hover {
  color: var(--color-velvet-deep);
}

.site .section-title {
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.75rem;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-hall-raised);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  box-shadow: 0 18px 30px -28px rgb(43 34 28 / 0.45);
}

.card__media {
  display: block;
  overflow: hidden;
}

.card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card__media img {
    transition: transform 0.5s ease;
  }

  .card:hover .card__media img {
    transform: scale(1.04);
  }
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
}

.card__body .kicker {
  margin: 0;
}

.site .card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card__excerpt {
  display: -webkit-box;
  margin: 0 0 0.5rem;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.card .text-link {
  margin-top: auto;
}

.article {
  padding-bottom: 4rem;
}

.site .article__title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.site .article__title:has(+ .article__subtitle) {
  margin-bottom: 0.25rem;
}

.article__subtitle {
  position: relative;
  display: inline-block;
  margin: 0 0 2rem;
  padding-right: 0.25em;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--color-velvet);
}

.article__subtitle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.25em;
  bottom: -0.1em;
  height: 1px;
  background: var(--color-brass);
  transform-origin: left;
}

/* De naam verschijnt als met de hand geschreven, daarna de lijn eronder. */
@media (prefers-reduced-motion: no-preference) {
  .article__subtitle {
    animation: subtitle-write 1.4s cubic-bezier(0.5, 0, 0.3, 1) 0.4s both;
  }

  .article__subtitle::after {
    animation: subtitle-underline 0.9s ease-out 1.6s both;
  }
}

@keyframes subtitle-write {
  from { clip-path: inset(-0.2em 100% -0.3em 0); }
  to { clip-path: inset(-0.2em 0 -0.3em 0); }
}

@keyframes subtitle-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.article__media {
  margin: 2.5rem 0;
}

.article__media img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

/* ── Muzikale versiering naast het artikel (shared/_flourish) ── */

.site-main--article {
  position: relative;
}

.flourish {
  width: 9rem;
  margin: 0 0 1.5rem auto;
  color: var(--color-brass);
  pointer-events: none;
}

/* Vanaf hier past hij in de rechtermarge: artikel 46rem + 2 × 11,5rem versiering, plus speling. */
@media (min-width: 72rem) {
  .flourish {
    position: absolute;
    top: 4.5rem;
    left: calc(100% + 0.5rem);
    width: 11rem;
    margin: 0;
  }
}

.flourish svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flourish__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

line.flourish__line {
  opacity: 0.6;
}

.flourish__pattern {
  stroke-width: 1.4;
  stroke-linecap: round;
}

.flourish__note {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.flourish__note--half {
  fill: none;
  stroke-width: 1.5;
}

.flourish__sharps {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.flourish__note--yours,
.flourish__baton {
  color: var(--color-velvet);
  fill: var(--color-velvet);
}

.flourish__caption {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 18px;
  fill: var(--color-text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .flourish__line {
    stroke-dasharray: 1;
    animation: flourish-draw 0.8s ease-out both;
    animation-delay: calc(var(--i, 0) * 50ms + 100ms);
  }

  .flourish__pattern {
    animation-duration: 1.3s;
  }

  .flourish__sharps {
    animation: flourish-appear 0.5s ease-out 0.5s both;
  }

  /* De noten verschijnen in tempo, alsof de melodie gespeeld wordt. */
  .flourish__note,
  .flourish__beat {
    animation: flourish-appear 0.45s ease-out both;
    animation-delay: calc(var(--i) * 130ms + 600ms);
  }

  .flourish__note--yours,
  .flourish__caption:not(.flourish__beat) {
    animation: flourish-appear 1s ease-out 1.6s both;
  }

  .flourish__caption.flourish__caption--credit {
    animation-delay: 2.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flourish__baton {
    display: none;
  }
}

@keyframes flourish-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes flourish-appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ── Bezetting, als in een programmaboekje ── */

.lineup {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--color-rule);
}

.lineup__header {
  text-align: center;
}

.site .lineup__title {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  line-height: 1;
}

.lineup__lead {
  margin: 0.5rem 0 0;
  color: var(--color-text-muted);
}

.lineup__lead strong {
  font-weight: 700;
  color: var(--color-text);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 14rem;
  margin: 2rem auto 2.5rem;
  color: var(--color-brass);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.ornament span {
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

.lineup__list {
  display: grid;
  gap: 1.6rem;
  max-width: 38rem;
  margin: 0 auto;
}

.lineup__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.8rem;
}

.lineup__group dt {
  display: flex;
  grid-column: 1;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--color-heading);
}

.lineup__group dt::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--color-brass);
}

.lineup__group dd {
  grid-column: 2;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  text-align: right;
}

/* ── Footer ── */

.site-footer {
  padding: 3.5rem 1.5rem;
  background: var(--color-hall-deep);
  border-top: 1px solid var(--color-rule);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 6rem;
  max-width: 72rem;
  margin: 0 auto;
}

.site .site-footer h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-velvet);
}

.site-footer :is(address, p) {
  margin: 0;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
}

.site .site-footer a {
  color: var(--color-text);
}

.site .site-footer a:hover {
  color: var(--color-velvet);
}

/* ── Smal ── */

@media (max-width: 800px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding-bottom: 4rem;
  }

  .feature__media {
    order: -1;
    justify-self: center;
    width: 100%;
    max-width: 22rem;
  }

  .site-main {
    padding: 3rem 1.25rem 4.5rem;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 34vh;
    padding-top: 3rem;
  }

  .hero__tagline {
    font-size: 0.62rem;
    letter-spacing: 0.26em;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .site-nav li:first-child {
    margin-left: auto;
  }

  .site-nav li:last-child {
    margin-right: auto;
  }

  .site-nav a {
    padding: 1.1rem 0.6rem;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .lineup__group {
    grid-template-columns: minmax(0, 1fr);
  }

  .lineup__group dt {
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--color-rule);
  }

  .lineup__group dt::after {
    display: none;
  }

  .lineup__group dd {
    grid-column: 1;
    text-align: left;
  }
}
