:root {
  --paper: #eddbb3;
  --ink: #30251b;
  --red: #813e2d;
  --rule: #89714f;
  color: var(--ink);
  background: #c1a57c url("papiervezels.webp") repeat;
  font: 18px/1.6 Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body {
  max-width: 1120px;
  margin: clamp(0px, 3vw, 35px) auto;
  background-color: var(--paper);
  background-image:
    url("papiervezels.webp"),
    radial-gradient(ellipse at 1% 2%, #7f481e55, transparent 23rem),
    radial-gradient(ellipse at 96% 98%, #985c2866, transparent 34rem),
    radial-gradient(ellipse at 12% 70%, #b57d3c25, transparent 24rem),
    radial-gradient(ellipse at 76% 30%, #fff0cb9c, transparent 32rem),
    linear-gradient(90deg, #a3623433, transparent 8%, transparent 91%, #80461e35);
  background-size: 420px 420px, auto, auto, auto, auto, auto;
  box-shadow: 0 5px 24px #51351f55, inset 0 0 38px #89542055;
}
header, section, footer { margin-inline: clamp(20px, 6vw, 74px); }
header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem 1.25rem;
  flex-wrap: wrap;
  padding-block: .75rem;
}
header { border-bottom: 4px double var(--rule); }
footer { border-top: 4px double var(--rule); padding-block: 1rem 1.35rem; }
footer p { margin: 0; }
footer a { overflow-wrap: anywhere; }
nav, .links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; align-items: center; }
a { color: var(--red); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.brand { color: var(--ink); font-weight: bold; text-decoration: none; }
section { padding-block: clamp(2rem, 6vw, 4rem); }
.hero, .story {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
}
h1, h2 { margin: 0; line-height: 1; font-weight: bold; letter-spacing: -.035em; }
h1 { font-size: clamp(3.5rem, 9vw, 6.7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.tag {
  margin: 0 0 .65rem;
  color: var(--red);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: bold;
}
.subtitle {
  margin: .4rem 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.3rem;
  font-style: italic;
}
.intro { font-size: 1.1rem; margin-bottom: 1.3rem; }
.button, button {
  display: inline-block;
  padding: .48rem .9rem;
  border: 3px double #eee0c3;
  background: var(--red);
  color: #fff9ea;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}
.button:hover, button:hover { background: #663020; }
figure { margin: 0; }
.illustration, .print { padding: .35rem; border: 1px solid var(--rule); }
.illustration img, .print img { display: block; width: 100%; height: auto; }
.illustration img { aspect-ratio: 1.2; object-fit: cover; object-position: center 52%; }
figcaption { padding-top: .4rem; font-size: .8rem; line-height: 1.4; }
.story { border-top: 4px double var(--rule); }
.story { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.print { max-width: 19rem; justify-self: center; }
@media (max-width: 700px) {
  .hero, .story { grid-template-columns: 1fr; }
  .illustration img { aspect-ratio: 1.15; }
}

.speelboek { border-top: 4px double var(--rule); }
.voorwoord { max-width: 64ch; font-size: 1.1rem; }
.register {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  padding-block: .55rem;
  border-block: 1px solid var(--rule);
}
.atlas { margin-block: 1.5rem 1rem; padding: .35rem; border: 1px solid var(--rule); }
.atlas img { display: block; width: 100%; height: auto; }
.atlas figcaption { padding: .45rem .3rem .25rem; }
.spelartikelen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 3.5rem);
}
.spelartikelen article { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.spelartikelen h4 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.spelartikelen p { margin-block: .65rem; }
.spelartikelen a { font-size: .9rem; }
@media (max-width: 700px) {
  .spelartikelen { grid-template-columns: 1fr; }
}

@font-face {
  font-family: 'IM Fell English';
  src: url('fonts/im-fell-english.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
h1, h2, h3, h4, .brand {
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: normal;
}
h1 { line-height: .96; }
.brand { font-size: 1.25rem; }

[hidden] { display: none !important; }
.spelzoeker { margin: 1.25rem 0; }
.spelzoeker label { display: block; font-weight: bold; }
.spelzoeker input {
  width: min(100%, 34rem);
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: #fff3d777;
  color: var(--ink);
  font: inherit;
}
.spelzoeker input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#zoek-status { margin: .3rem 0 0; }
#zoek-status:empty { display: none; }
.speelboek .spelgroep {
  margin: 2rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 4px double var(--rule);
}
.spelgroep > h3, .bronnenkast h3 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.groep-intro { margin-top: .2rem; }
.archiefprent { max-width: 30rem; margin: .8rem 0 1.15rem; padding: .4rem; border: 1px solid var(--rule); }
.archiefprent img { display: block; width: 100%; height: auto; max-height: 35rem; object-fit: contain; }
.is-searching .archiefprent { display: none; }
.spelartikelen .bron { margin-bottom: 0; }
.bronnenkast { margin-top: 2rem; }
.bronnenkast p { max-width: 67ch; }

.verhalen { border-top: 4px double var(--rule); }
.verhaalartikelen article { padding-block: 1.1rem; border-top: 1px solid var(--rule); }
.verhaalartikelen h3 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.verhaalartikelen p { max-width: 71ch; margin-block: .6rem; }
.verhaalartikelen .bron { font-size: .9rem; }
.verhaalartikelen .atlas { max-width: 39rem; }
