/* Interkerkelijk Koor Immanuël: photographic, choir-first */

:root {
  --ink: #16181c;
  --ink-soft: #3a3f46;
  --muted: #5c6168;
  --paper: #f3f1ed;
  --paper-2: #e9e6e0;
  --white: #fbfaf8;
  --line: rgba(22, 24, 28, 0.12);
  --accent: #1b7e96;
  --accent-deep: #146274;
  --night: #101214;
  --night-2: #1a1e24;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --section: clamp(4.5rem, 11vw, 7.25rem);
  --content: min(1280px, 92vw);
  --radius: 4px;
  --z-header: 20;
  --z-skip: 40;
}

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

html {
  font-size: 125%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cde7ee;
  color: var(--ink);
}

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

picture {
  display: contents;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5.25vw, 3.15rem);
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.container {
  width: var(--content);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--z-skip);
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  color: var(--white);
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(251, 250, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--content);
  margin-inline: auto;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
}

.nav-logo-small {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.72;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  font-style: italic;
  padding-bottom: 0.12rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.15rem;
}

.nav-menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
  border-radius: var(--radius);
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 1;
}

.nav-menu a.active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.45rem;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(251, 250, 248, 0.45);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(251, 250, 248, 0.08);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--night-2);
  color: var(--white);
}

.play-mark {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-deep);
}

.text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.join-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  width: 100%;
  height: 100%;
}

.hero-media img,
.join-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: 58% 42%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.72) 0%, rgba(16, 18, 20, 0.28) 48%, rgba(16, 18, 20, 0.12) 100%),
    linear-gradient(180deg, rgba(16, 18, 20, 0.28) 0%, rgba(16, 18, 20, 0.08) 38%, rgba(16, 18, 20, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--content);
  margin-inline: auto;
  padding: 0 0 clamp(3.25rem, 9vh, 6rem);
}

.hero-inner > * {
  max-width: 44rem;
}

.hero-kicker {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.72);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(3.15rem, 12vw, 7.68rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 0.9rem;
  padding-bottom: 0.2rem;
}

.hero-lead {
  font-size: 1.38rem;
  line-height: 1.5;
  max-width: 28ch;
  color: rgba(251, 250, 248, 0.9);
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions .btn {
  min-height: 3.25rem;
  padding: 0.85rem 1.7rem;
  font-size: 1.1rem;
}

/* Sections */

.section {
  padding: var(--section) 0;
}

.section-about {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-copy h2 {
  max-width: 16ch;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 58ch;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.about-wish {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 28ch;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 18%;
}

/* History */

.section-history {
  background: var(--white);
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-deep);
  padding-top: 0.15rem;
}

.timeline-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.timeline-item-now {
  background: var(--paper);
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Agenda */

.section-agenda {
  background: var(--paper);
}

.agenda-intro {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.agenda-intro p {
  color: var(--muted);
}

.agenda-season {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.agenda-month {
  background: var(--white);
  padding: 1.75rem 1.7rem 1.9rem;
}

.agenda-month h3 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.agenda-month ol {
  list-style: none;
}

.agenda-month li {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1.1rem;
  padding: 1.35rem 0 0;
}

.agenda-month li + li {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.agenda-month time {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--accent-deep);
}

.agenda-month h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.agenda-month p {
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.concert-place {
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0;
}

/* Listen / YouTube */

.watch {
  position: relative;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.watch-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.watch-bg picture,
.watch-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.watch-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(16, 18, 20, 0.42) 0%, rgba(16, 18, 20, 0.62) 42%, rgba(16, 18, 20, 0.82) 100%);
}

.watch-content {
  position: relative;
  z-index: 2;
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 var(--section);
}

.watch-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.watch-intro h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.watch-intro p {
  max-width: 42ch;
  color: rgba(251, 250, 248, 0.86);
}

.watch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
  align-items: start;
}

.watch-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--night-2);
  overflow: hidden;
}

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

.watch-grid h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  margin-top: 0.85rem;
  padding-bottom: 0.15rem;
}

.watch-more {
  margin-top: 2rem;
}

/* CDs */

.section-cds {
  background: var(--white);
}

.cds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.album {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: center;
}

.album-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(16, 18, 20, 0.16);
}

.album-info h3 {
  font-size: 1.45rem;
  margin-bottom: 0.3rem;
}

.album-meta {
  color: var(--accent-deep);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.album-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.album-price span {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
}

.album-tracks {
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}

.album-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.album-offer p {
  color: var(--ink-soft);
}

/* Join */

.section-join {
  background: var(--paper);
  color: var(--ink);
}

.join-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.join-photo {
  margin: 0;
}

.join-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 36rem;
  object-fit: cover;
  object-position: center 28%;
}

.join-copy h2 {
  max-width: 18ch;
}

.join-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 52ch;
}

.join-fee-card {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  max-width: 22rem;
}

.join-fee-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.join-fee-note {
  color: var(--muted);
}

/* Conductor */

.section-conductor {
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}

.conductor-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: end;
}

.conductor-stage {
  display: flex;
  justify-content: center;
  min-height: 28rem;
}

.conductor-stage img {
  height: min(560px, 70vh);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

.conductor-copy {
  padding-bottom: 2.5rem;
}

.conductor-role {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.55);
  margin-bottom: 0.6rem;
}

.conductor-copy h2 {
  color: var(--white);
}

.conductor-copy p {
  color: rgba(251, 250, 248, 0.78);
  max-width: 54ch;
  margin-bottom: 1rem;
}

.conductor-copy .text-link {
  color: #8ed0df;
}

.conductor-copy .text-link:hover {
  color: var(--white);
}

/* News */

.section-news {
  background: var(--paper);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  align-items: stretch;
}

.news-feature {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.news-feature img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 30%;
}

.news-body,
.news-item {
  padding: 1.5rem 0 0;
}

.news-feature .news-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.75rem;
}

.news-stack {
  display: flex;
  flex-direction: column;
}

.news-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.news-stack .news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-layout time {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

.news-layout h3 {
  font-size: 1.3rem;
  margin: 0.4rem 0 0.5rem;
}

.news-layout p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Contact */

.section-contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-copy p {
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 1.25rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.75vw, 2rem);
  font-style: italic;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 2rem;
}

.contact-email:hover {
  color: var(--accent-deep);
}

address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}

address span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-board h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.board-list {
  list-style: none;
}

.board-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.board-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background: var(--night);
  color: rgba(251, 250, 248, 0.62);
  padding: 2.75rem 0 2rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-brand p {
  font-size: 0.92rem;
}

.footer-brand address {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: inherit;
}

.footer-brand address a {
  color: inherit;
}

.footer-social {
  display: flex;
  gap: 0.35rem;
}

.footer-social a {
  padding: 0.45rem 0.85rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid rgba(251, 250, 248, 0.18);
  border-radius: var(--radius);
}

.footer-social a:hover {
  border-color: rgba(251, 250, 248, 0.5);
  color: var(--white);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: 0.75rem;
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

body.loaded .hero-inner {
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */

@media (max-width: 980px) {
  .about-layout,
  .agenda-season,
  .cds-grid,
  .conductor-layout,
  .news-layout,
  .contact-layout,
  .join-layout,
  .watch-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .album {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.15rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    box-shadow: 0 16px 40px rgba(16, 18, 20, 0.08);
  }

  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 0.85rem 0.5rem;
    opacity: 1;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .conductor-stage {
    min-height: 0;
  }

  .conductor-stage img {
    height: 420px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .join-photo img {
    max-height: 28rem;
    aspect-ratio: 4 / 5;
  }

  .about-photo img {
    aspect-ratio: 4 / 5;
    max-height: 28rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .album {
    justify-items: start;
  }

  .album-cover {
    width: 10rem;
  }

  .news-feature img {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  body.loaded .hero-inner {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
