:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #202326;
  --muted: #66706f;
  --line: #ded8cc;
  --brand: #0f6f68;
  --brand-dark: #084c48;
  --link-hover: #2570bb;
  --accent: #d4873a;
  --accent-soft: #f1ddc7;
  --sky: #dcebf0;
  --shadow: 0 20px 60px rgba(32, 35, 38, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(220, 235, 240, 0.8), rgba(247, 244, 239, 0) 42%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 76, 72, 0.76), rgba(8, 76, 72, 0.72)),
    url("../img/cover_photo.jpg") center/cover;
  color: white;
}

.page-header {
  border-bottom: 1px solid var(--line);
  background: var(--brand-dark);
  color: white;
}

.page-title {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
}

.page-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.topbar,
.hero,
.intro-band,
.content-layout,
.link-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: min(267px, 58vw);
  height: auto;
  display: block;
  border-radius: 7px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.nav-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-left: auto;
}

.nav-actions a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 700;
}

.nav-actions a {
  color: rgba(255, 255, 255, 0.88);
}

.nav-actions a:hover,
.nav-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 2rem;
  padding: 5rem 0 3.4rem;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.7vw, 4.45rem);
  line-height: 1;
  white-space: nowrap;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.7;
}

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

.button.primary {
  background: var(--accent);
  color: #1f170f;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: white;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(12px);
}

.panel-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-soft);
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  font-size: 1.35rem;
}

.intro-band {
  margin-top: -1.6rem;
  border-radius: 8px;
  padding: 1.2rem 1.35rem;
  position: relative;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ad-band {
  width: min(1120px, calc(100% - 32px));
  min-height: 90px;
  margin: 2rem auto 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(222, 216, 204, 0.75);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.68);
}

.ad-band:has(.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

.cookie-banner {
  width: min(960px, calc(100% - 32px));
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong,
.cookie-banner p {
  margin: 0;
}

.cookie-banner p {
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cookie-actions button:last-child {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.content-layout,
.link-section {
  padding: 3.2rem 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.source-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.source-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1rem 0.85rem;
}

.source-card h3 {
  margin: 0;
  font-size: 1rem;
}

.source-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: var(--sky);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 1rem 1rem;
}

.article-list li + li {
  border-top: 1px solid var(--line);
}

.article-list a {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0;
  text-decoration: none;
}

.article-list a:hover strong,
.article-list a:focus-visible strong {
  color: var(--link-hover);
}

.article-list time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-list strong {
  line-height: 1.35;
}

.empty-source {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.link-card {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper);
  text-decoration: none;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--brand);
}

.link-card strong {
  display: block;
}

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

.link-arrow {
  color: var(--accent);
  font-size: 1.35rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.activity-card img,
.activity-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky), var(--accent-soft));
}

.activity-card div {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.activity-card time,
.activity-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.activity-card strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.activity-card a {
  color: var(--link-hover);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  min-height: 50px;
  max-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding: 0;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.site-footer p {
  width: min(1120px, calc(100% - 32px));
  margin: 0;
  text-align: right;
}

.admin-body {
  min-height: 100vh;
  background: #eef3f2;
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card img {
  width: 230px;
  max-width: 100%;
}

.auth-card h1,
.dashboard-top h1,
.dashboard-panel h2 {
  margin: 0;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
}

.admin-form-panel form,
.auth-card label {
  display: grid;
  gap: 0.35rem;
}

.auth-card label {
  color: var(--muted);
  font-weight: 700;
}

.auth-card input,
.admin-form-panel input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.auth-card button,
.dashboard-top a,
.dashboard-actions button,
.admin-form-panel button,
.secondary-admin-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-error {
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  background: #fae1df;
  color: #8c251e;
}

.admin-dashboard {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.metric-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.metric-card strong {
  font-size: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.dashboard-panel {
  padding: 1.15rem;
}

.admin-form-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
  background: var(--paper);
}

.admin-form-panel form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.admin-form-panel .import-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #eef6f5;
}

.admin-form-panel label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-form-panel button,
.secondary-admin-button {
  width: fit-content;
}

.check-row {
  display: flex !important;
  align-items: center;
  grid-column: 1 / -1;
}

.check-row input {
  min-height: auto;
  width: auto;
}

.admin-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.admin-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
}

.admin-list-row small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.admin-list-row button {
  background: #8c251e;
}

.beheer-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: var(--paper);
  color: var(--muted);
}

.beheer-footer button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.version-history {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.version-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #f8fbfa;
}

.version-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.version-card time {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.version-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.update-form {
  margin-top: 1rem;
}

.dashboard-panel h2 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
}

.stat-row span {
  color: var(--muted);
  font-weight: 800;
}

.stat-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ecea;
}

.stat-row i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--link-hover);
}

.title-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.3rem;
}

.title-list a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.title-list a:hover,
.title-list a:focus-visible {
  color: var(--link-hover);
}

.title-list span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .hero,
  .dashboard-top,
  .beheer-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    padding: 1rem 0;
  }

  .nav-actions {
    width: auto;
    overflow-x: auto;
  }

  .metric-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .source-grid,
  .link-grid,
  .activity-grid,
  .admin-form-panel form,
  .admin-form-panel .import-form {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .topbar,
  .hero,
  .intro-band,
  .content-layout,
  .link-section {
    width: min(100% - 22px, 1120px);
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .nav-actions a {
    padding-inline: 0.8rem;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .site-footer p {
    text-align: right;
  }
}
