:root {
  --paper: #f6f3ee;
  --ink: #1c1916;
  --muted: #5c564c;
  --accent: #6e2b2b;
  --line: #e3dcd2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

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

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

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

.skip:focus {
  transform: none;
}

.en {
  display: none;
}

body:has(#lang-en:checked) .nl {
  display: none;
}

body:has(#lang-en:checked) .en {
  display: block;
}

.wrap {
  width: min(44rem, 100%);
  margin-inline: auto;
  padding: 1.5rem 1.25rem 4.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 2.25rem;
}

.wordmark {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  gap: 0.4rem;
}

.lang input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lang label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.lang label:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#lang-nl:checked ~ .page label[for="lang-nl"],
#lang-en:checked ~ .page label[for="lang-en"],
body:has(#lang-nl:checked) label[for="lang-nl"],
body:has(#lang-en:checked) label[for="lang-en"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

#lang-nl:focus-visible + label,
#lang-en:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.portrait {
  width: 12.5rem;
  margin: 0 0 1.75rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1.5rem;
}

h1,
h2,
.piece-title {
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 3.5rem);
  letter-spacing: -0.025em;
}

.surname {
  white-space: nowrap;
}

.role {
  margin: 0.9rem 0 0;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.bio {
  margin: 1.35rem 0 0;
  max-width: 38rem;
}

.section {
  margin-top: 4.25rem;
}

h2 {
  margin: 0 0 1.35rem;
  font-size: 1.65rem;
}

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

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

.list > li > a {
  display: block;
  padding: 1.2rem 0 1.3rem;
  color: inherit;
  text-decoration: none;
}

.past {
  padding: 1.2rem 0 1.3rem;
}

.past .kicker {
  margin: 0;
}

.past-sites {
  margin: 0.45rem 0 0;
  font-size: 1.28rem;
  line-height: 1.45;
}

.past-sites a {
  display: inline;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(110 43 43 / 45%);
  text-underline-offset: 0.18em;
}

.past-sites a:hover,
.past-sites a:focus-visible {
  color: var(--accent);
}

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

.kicker {
  display: block;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.piece-title {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.28rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(110 43 43 / 45%);
  text-underline-offset: 0.18em;
  text-wrap: pretty;
}

.meta-line {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.contact-slot {
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 1px dashed #b7aea3;
  border-radius: 0.9rem;
}

.site-footer {
  margin-top: 4.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 3rem 2rem 6rem;
  }

  .portrait {
    width: 16rem;
    margin-bottom: 2.25rem;
  }

  .section {
    margin-top: 5.25rem;
  }

  .piece-title,
  .past-sites {
    font-size: 1.45rem;
  }
}

@media (min-width: 64rem) {
  .wrap {
    padding-top: 3.5rem;
  }
}

body .en {
  display: none;
}

body:has(#lang-en:checked) .en {
  display: block;
}

body:has(#lang-en:checked) .nl {
  display: none;
}
