/* Stichting I.S.I.S. — clean modern journal */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #1b2420;
  --muted: #5a655e;
  --accent: #1f5c4a;
  --accent-dark: #154336;
  --line: #d8ddd7;
  --hero-overlay: rgba(18, 32, 28, 0.62);
  --radius: 10px;
  --shadow: 0 8px 24px rgba(27, 36, 32, 0.08);
  --space: 1.25rem;
  --content: 720px;
  --grid: 1180px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--grid);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: rgba(31, 92, 74, 0.08);
}

.site-nav a.nav-pdf {
  color: var(--accent);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: #fff;
  background: #1a2e28;
}

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 32, 28, 0.35) 0%,
    var(--hero-overlay) 55%,
    rgba(18, 32, 28, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--grid);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.92);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--accent-dark);
}

.btn-primary:hover {
  background: #eef4f1;
  color: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-inner {
  max-width: var(--grid);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--content);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}

.section h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.section p {
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 36, 32, 0.1);
}

.topic-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.topic-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.topic-card a {
  text-decoration: none;
  color: inherit;
}

.topic-card a:hover h3 {
  color: var(--accent);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(27, 36, 32, 0.1);
}

.card-body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body > :last-child {
  margin-bottom: 0;
}

.card-media {
  background: #eef1ee;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card-media--contain {
  aspect-ratio: 3 / 4;
  max-height: 320px;
  background: #f3f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-media--contain img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.card-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.card.featured .card-media {
  aspect-ratio: auto;
  min-height: 100%;
}

.card.featured .card-media--contain {
  max-height: none;
  min-height: 280px;
}

.dates-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dates-list li {
  font-size: 0.86rem;
  background: rgba(31, 92, 74, 0.08);
  color: var(--accent-dark);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.news-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.news-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.news-item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.pub-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.pub-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
  border: 0;
}

/* Footer */
.site-footer {
  background: #15241f;
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 1.25rem 2rem;
}

.site-footer a {
  color: #b7d8cc;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--grid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--grid);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.jaarprogramma-promo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(31, 92, 74, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.jaarprogramma-promo img {
  width: 90px;
  flex-shrink: 0;
  border-radius: 6px;
}

/* Privacy page */
.page-hero {
  padding: 3rem 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.prose {
  max-width: var(--content);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.featured {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .pub-layout {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.7rem 0.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .pub-layout {
    grid-template-columns: 1fr;
  }

  .pub-cover {
    max-width: 180px;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 16px;
  }

  .hero-content {
    padding: 3.5rem 1rem 2.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }
}
