:root {
  --paper: #eef3f1;
  --ink: #132820;
  --muted: #345044;
  --rule: #c9d7d0;
  --panel: #e3efe8;
  --accent: #0c5c48;
  --focus: #0c5c48;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a16;
    --ink: #e6f0ea;
    --muted: #c5d5cc;
    --rule: #2c4036;
    --panel: #1b2822;
    --accent: #9ed4be;
    --focus: #9ed4be;
    color-scheme: dark;
  }
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.sheet {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.brand {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lang-switch {
  display: flex;
  gap: 0.85rem;
}

.lang-switch button {
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.15rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

main {
  padding-top: 2rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 5vw, 2.55rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.declaration {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.2rem 1.15rem 1.15rem;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  font-size: clamp(1.35rem, 3.4vw, 1.6rem);
  line-height: 1.4;
}

.contents {
  margin: 0 0 2.25rem;
}

.contents ol {
  margin: 0;
  padding-left: 1.25rem;
}

.contents li {
  margin: 0.2rem 0;
}

.contents a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

section {
  margin: 0 0 2.1rem;
  max-width: 66ch;
}

h2 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p,
li {
  margin: 0 0 0.75rem;
}

ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

.site-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
  max-width: 66ch;
}

html[data-lang="nl"] .lang-en,
html[data-lang="en"] .lang-nl {
  display: none;
}

.missing {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.missing h1 {
  margin-bottom: 0.8rem;
}

.missing p {
  max-width: 36ch;
}

@media (max-width: 40rem) {
  .sheet {
    width: min(40rem, calc(100% - 2rem));
  }

  .site-header {
    align-items: flex-start;
  }
}

@media print {
  .skip,
  .lang-switch,
  .contents {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .declaration {
    border: 0;
    padding: 0 0 0.5rem;
    background: transparent;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
