/* Gedeelde opmaak; de oorspronkelijke blauwe en groene basiskleuren blijven. */
:root {
  color-scheme: light;
  --page: #aee1e6;
  --ink: #203e43;
  --link: #20586c;
  --line: rgb(32 62 67 / 22%);
  --wash: rgb(255 255 255 / 22%);
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 18px/1.75 Georgia, "Times New Roman", serif;
  overflow-wrap: break-word;
}
.theme-green {
  --page: #ccffcc;
  --ink: #29452f;
  --link: #285b36;
  --line: rgb(41 69 47 / 22%);
}
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 5px;
  border-radius: 2px;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
h1, h2 { font-weight: 400; line-height: 1.25; text-wrap: balance; }
h1 { margin: 0 0 1em; font-size: clamp(1.8rem, 4.2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .8em; }
p { margin: 0 0 1.3em; }
.site-shell {
  width: min(1060px, calc(100% - 64px));
  margin: 48px auto;
  border-top: 3px solid var(--ink);
}
.site-header { text-align: center; padding: 42px 0 34px; }
.site-header h1 { margin-bottom: 0; }
.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 4vw, 2.25rem);
  font-weight: 400;
  white-space: nowrap;
}
.byline {
  margin: 20px 0 4px;
  font: 13px/1.7 system-ui, sans-serif;
  letter-spacing: .06em;
}
.byline b { font-weight: 400; }
.authors { margin: 0; font-size: 17px; }
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 165px;
  gap: 36px;
  align-items: center;
  padding: 10px 30px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(32 62 67 / 5%);
}
.reading-list, .chapter-list { list-style: none; margin: 0; padding: 0; }
.reading-list li { line-height: 1.65; font-size: 17px; }
.reading-list li + li { border-top: 1px solid var(--line); }
.reading-list i { font-style: normal; }
.article-link { display: block; min-height: 44px; padding: 19px 0; text-decoration: none; }
.article-link i { text-decoration: underline; text-underline-offset: .2em; }
.article-link:hover { background: var(--wash); }
.article-link:hover i { text-decoration-thickness: 2px; }
.document-image { margin: 0; text-align: center; }
.document-image img {
  border: 5px solid #f9fbf5;
  box-sizing: content-box;
  box-shadow: 0 4px 14px rgb(32 62 67 / 12%);
}
.singularity-mark { margin: 34px 0; text-align: center; }
.singularity-mark img { mix-blend-mode: darken; }
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 22px 0 12px;
  text-align: center;
  font: 12px/1.8 system-ui, sans-serif;
}
.page-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font: 14px/1.5 system-ui, sans-serif;
}
.page-nav { padding: 16px 0; border-bottom: 1px solid var(--line); }
.page-nav .site-home-link { margin-left: auto; }
.page-nav > a, .footer-nav > a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav { justify-content: center; }
.site-footer .footer-nav { margin-bottom: 18px; }
.back-link, .next-link {
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--link);
  border-radius: 999px;
  background: var(--wash);
  color: var(--link);
  font: 600 14px/1.5 system-ui, sans-serif;
  text-decoration: none;
}
.back-link span, .next-link span { font-size: 20px; line-height: 1; }
.back-link:hover, .next-link:hover { background: var(--link); color: var(--page); text-decoration: none; }
.reading-surface > .page-nav { margin: -26px 0 30px; }
.chapter-footer { margin-top: 2.2em; padding-top: 22px; border-top: 1px solid var(--line); }
.contents-page .singularity-mark img {
  /* Het bestaande blauwe beeld wordt met wit transparant op de groene basis. */
  filter: grayscale(1) contrast(2);
}
.bookmark-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.bookmark-link:hover { text-decoration-thickness: 2px; }
.contents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: center;
  padding: 12px 0 32px;
}
.chapter-list li { border-bottom: 1px solid var(--line); }
.chapter-list li:first-child { border-top: 1px solid var(--line); }
.chapter-list a {
  display: block;
  padding: 13px 16px;
  font-size: 20px;
  text-decoration: none;
}
.chapter-list a:hover { background: var(--wash); text-decoration: underline; }
.reading-surface {
  max-width: 860px;
  padding: 42px 48px 28px;
  background: var(--wash);
}
.article-page h1 { text-align: center; margin-bottom: 1.1em; }
.article-page p { text-align: left; }
.legacy-page .site-header { padding: 0 0 8px; }
.legacy-page .site-title { font-size: clamp(.85rem, 2.6vw, 1.75rem); line-height: 1.25; }
.legacy-page .article-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .8em; }
.site-links { margin-top: 16px; text-align: center; font: 14px/1.5 system-ui, sans-serif; }
.site-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; }
.sitemap-page .site-header { padding: 0 0 24px; }
.sitemap-list { list-style: none; padding: 0; margin: 0; }
.sitemap-list li { border-bottom: 1px solid var(--line); }
.sitemap-list a { display: block; min-height: 44px; padding: 12px 0; }
.legacy-footer { margin-top: 30px; padding: 20px 0 0; }
.colophon-page .info, .colophon-page .copyright p { text-align: center; }
.colophon-page .info p { text-align: center; margin-bottom: .4em; }
.profile { text-align: center; margin: 24px 0; }
.profile img { width: 280px; height: auto; border: 6px solid var(--wash); }

@media (max-width: 700px) {
  .site-shell { width: calc(100% - 32px); margin: 24px auto; }
  .site-header { padding: 30px 0; }
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 20px 26px; }
  .document-image img { width: 107px; }
  .singularity-mark { margin: 28px 0; }
  .singularity-mark img { max-width: 210px; }
  .site-footer { padding: 20px 0 12px; }
  .contents-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 0; }
  .chapter-list a { padding: 13px 6px; font-size: 18px; }
  .reading-surface { padding: 28px 22px 24px; }
  .legacy-page .reading-surface { padding-inline: 18px; }
  .reading-surface > .page-nav { margin-top: -12px; }
  .page-nav, .footer-nav { column-gap: 12px; }
  body { font-size: 17px; line-height: 1.75; }
}

@media print {
  body { background: white; color: black; font-size: 12pt; }
  .site-shell { width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
  .site-footer, .page-nav, .footer-nav, .site-links { display: none; }
  a { color: inherit; }
}
