/* Layout: a dark, foggy hero in the world of the cover (streetlamp on the Lange Voorhout),
   then paper pages like an archive: a hotel register for the timeline, index cards
   for people and places, newspaper clippings for the press. */
:root {
  /* paper & ink (light) */
  --paper: #eceee8;
  --paper-2: #e2e7e2;
  --card: #f5f6f1;
  --ink: #15262c;
  --ink-soft: #4b5d62;
  --petrol: #215769;
  --rule: #b8c5c2;
  /* hero: the cover's petrol duotone, the same in both themes */
  --night: #0c2830;
  --night-2: #082029;
  --fog: #23596b;
  --lamp: #f6eeb0;
  --lamp-ink: #0c2830;
  --snow: #f4f6f2;

  --f-display: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --f-body: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --f-type: "Courier Prime", "Courier New", Courier, monospace;

  --measure: 66ch;
  --wrap: 68rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1c22;
    --paper-2: #10262d;
    --card: #132c34;
    --ink: #e7e9dc;
    --ink-soft: #a6b7b5;
    --petrol: #93c4cf;
    --rule: #2b474e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1c22;
  --paper-2: #10262d;
  --card: #132c34;
  --ink: #e7e9dc;
  --ink-soft: #a6b7b5;
  --petrol: #93c4cf;
  --rule: #2b474e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--petrol); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 32px; } }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }

.label {
  font-family: var(--f-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--snow);
  background:
    radial-gradient(60rem 36rem at 22% -8%, rgba(246, 238, 176, 0.16), transparent 60%),
    linear-gradient(180deg, var(--fog) 0%, var(--night) 55%, var(--night-2) 100%);
  overflow: hidden;
}
.hero a { color: var(--lamp); }
.hero :focus-visible { outline-color: var(--lamp); }

.topnav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(244, 246, 242, 0.14);
}
.topnav a { color: var(--snow); text-decoration: none; opacity: 0.82; }
.topnav a:hover { opacity: 1; text-decoration: underline; }

.hero-grid {
  display: grid; gap: 2.5rem;
  padding-block: 3rem 4rem;
  align-items: center;
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 4rem; padding-block: 4.5rem 5.5rem; }
}
.hero-text { min-width: 0; display: grid; gap: 1.5rem; }
.author {
  font-family: var(--f-display);
  color: var(--lamp);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.2rem);
  line-height: 1.02;
  color: var(--snow);
}
.pitch { font-size: 1.3rem; max-width: 34ch; color: rgba(244, 246, 242, 0.86); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.4rem;
  background: var(--lamp);
  color: var(--lamp-ink) !important;
  text-decoration: none;
  border-radius: 2px;
}
.btn:hover { background: var(--snow); }
.hero .quiet { color: rgba(244, 246, 242, 0.75); font-size: 1rem; }

.cover-frame { position: relative; justify-self: center; max-width: 21rem; width: 100%; }
.cover-frame img {
  width: 100%;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cover-frame figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: rgba(244, 246, 242, 0.6);
  text-align: center;
}

/* ---------- Clippings ---------- */
.clippings {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.clip-lead-wrap { padding-block: 3rem 0.5rem; }
.clip-lead { margin: 0; }
.clip-lead blockquote { margin: 0; }
.clip-lead p {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; color: var(--petrol);
  text-wrap: balance;
}
.clip-lead figcaption {
  margin-top: 0.6rem; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.clip-lead figcaption b { font-weight: 600; color: var(--ink); }
.clippings .clip-row { display: grid; gap: 1.5rem; padding-block: 2rem 2.75rem; }
@media (min-width: 760px) { .clippings .clip-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
.clip {
  margin: 0;
  min-width: 0;
  background: var(--card);
  padding: 1.6rem 1.6rem 1.3rem;
  border: 1px solid var(--rule);
  transform: rotate(-0.5deg);
  box-shadow: 0 1px 0 var(--rule);
}
.clip:nth-child(2) { transform: rotate(0.45deg); }
.clip:nth-child(3) { transform: rotate(-0.25deg); }
.clip:nth-child(4) { transform: rotate(0.3deg); }
.clip blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.25;
}
.clip figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.98rem; }
.clip figcaption b { font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .clip, .clip:nth-child(2), .clip:nth-child(3), .clip:nth-child(4) { transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; border-bottom: 1px solid var(--rule); }
.section-head { display: grid; gap: 0.6rem; margin-bottom: 2.25rem; }
.section-head .label { color: var(--petrol); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
.section-head p { color: var(--ink-soft); max-width: var(--measure); }

.prose { display: grid; gap: 1.1rem; max-width: var(--measure); }
.prose .lede { font-size: 1.35rem; line-height: 1.5; }
.ornament {
  text-align: center; color: var(--petrol); letter-spacing: 0.6em;
  margin-block: 2.5rem 0; font-size: 1rem; max-width: var(--measure);
}

.facts {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem;
  margin-top: 2rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
  font-size: 1rem; color: var(--ink-soft);
}

/* ---------- Register (timeline) ---------- */
.register {
  list-style: none; margin: 0; padding: 0;
  border-top: 2px solid var(--ink);
  max-width: 54rem;
}
.register-head, .register li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
}
.register-head {
  max-width: 54rem;
  padding-block: 0.5rem;
  color: var(--ink-soft);
}
.register li {
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
}
.register time {
  font-family: var(--f-type);
  font-size: 1rem;
  color: var(--petrol);
  padding-top: 0.25rem;
}
.register h4 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.register p { color: var(--ink); max-width: 60ch; }
.register .war time { font-weight: 700; }
@media (max-width: 520px) {
  .register-head { display: none; }
  .register li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ---------- Author ---------- */
.author-grid { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .author-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4rem; } }
.contact {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 1.5rem;
  display: grid; gap: 0.75rem;
}
.contact .label { color: var(--petrol); }
.contact .mail { font-family: var(--f-type); font-size: 1.05rem; word-break: break-all; user-select: all; }
.contact .note { font-size: 0.95rem; color: var(--ink-soft); }
.copy {
  justify-self: start;
  font: inherit; font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--petrol); color: var(--petrol); background: transparent;
  border-radius: 2px; cursor: pointer;
}
.copy:hover { background: var(--paper-2); }

/* ---------- Press ---------- */
.press { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); max-width: 56rem; }
.press li {
  display: grid; gap: 0.25rem 1.5rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) { .press li { grid-template-columns: 13rem minmax(0, 1fr); } }
.press .outlet { min-width: 0; }
.press .outlet b { display: block; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; }
.press .outlet span { color: var(--ink-soft); font-size: 0.95rem; font-variant-numeric: lining-nums; }
.press .title { min-width: 0; }
.press .title a { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.25; }
.press .title p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.2rem; }

/* ---------- Buy / footer ---------- */
.buy { background: var(--night); color: var(--snow); padding-block: 4.5rem; }
.buy a { color: var(--lamp); }
.buy .label { color: var(--lamp); }
.buy h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-block: 0.6rem 1.6rem; color: var(--snow); }
.editions { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .editions { grid-template-columns: 1fr 1fr; } }
.edition {
  min-width: 0;
  border: 1px solid rgba(244, 246, 242, 0.2);
  padding: 1.2rem 1.3rem;
  display: grid; gap: 0.3rem;
}
.edition .price { font-family: var(--f-display); font-size: 2rem; font-variant-numeric: lining-nums; color: var(--snow); }
.edition .meta { font-family: var(--f-type); font-size: 0.88rem; color: rgba(244, 246, 242, 0.7); }
.colophon {
  margin-top: 3rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(244, 246, 242, 0.16);
  font-size: 0.92rem; color: rgba(244, 246, 242, 0.62);
  display: grid; gap: 0.4rem;
}

/* ---------- Het boek: subsections ---------- */
.subnav {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  padding-block: 0.7rem; margin-bottom: 2.75rem;
  border-block: 1px solid var(--rule);
}
.subnav a {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--petrol);
}
.subnav a:hover { text-decoration: underline; }
.sub { scroll-margin-top: 1rem; }
.sub + .sub { margin-top: 4rem; padding-top: 3rem; border-top: 1px dotted var(--rule); }
.sub-head { display: grid; gap: 0.5rem; margin-bottom: 1.75rem; }
.sub-head h3 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.sub-head p { color: var(--ink-soft); max-width: var(--measure); }

/* ---------- Map ---------- */
.maps { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .maps { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.map-panel { margin: 0; min-width: 0; scroll-margin-top: 1rem; }
.map-panel figcaption {
  margin-top: 0.5rem; font-family: var(--f-type); font-size: 0.85rem; color: var(--ink-soft);
}
.map { display: block; width: 100%; height: auto; font-family: var(--f-body); }
.map .sea { fill: var(--paper-2); }
.map .hatch { stroke: var(--rule); stroke-width: 0.6; }
.map .sea-hatch { opacity: 0.55; }
.map .land, .map .ctrys path { fill: var(--card); }
.map .ctrys path { stroke: var(--rule); stroke-width: 0.7; stroke-linejoin: round; }
.map .coast path { fill: none; stroke: var(--petrol); stroke-width: 1; stroke-linejoin: round; }
.map .coastline { fill: none; stroke: var(--petrol); stroke-width: 1.4; }
.map .grat line { stroke: var(--rule); stroke-width: 0.5; stroke-dasharray: 2 3; }
.map .coord { font-family: var(--f-type); font-size: 9px; fill: var(--ink-soft); }
.map .ctry { font-family: var(--f-display); font-size: 12px; letter-spacing: 0.28em; fill: var(--ink-soft); }
.map text.sea { font-family: var(--f-display); font-style: italic; font-size: 15px; fill: var(--petrol); }
.map .region { font-family: var(--f-display); font-style: italic; font-size: 14px; fill: var(--petrol); }
.map .rose circle { fill: none; stroke: var(--rule); }
.map .rose path { fill: var(--petrol); }
.map .rose text { font-family: var(--f-type); font-size: 10px; fill: var(--petrol); }
.map .frame { fill: none; stroke: var(--ink); stroke-width: 1; }
.map .scale line { stroke: var(--ink); stroke-width: 1.2; }
.map .scale text { font-family: var(--f-type); font-size: 10px; fill: var(--ink); }
.map .mk circle, .map .mk rect { fill: var(--petrol); stroke: var(--card); stroke-width: 1.5; }
.map .mk-n { font-family: var(--f-type); font-size: 10px; font-weight: 700; fill: var(--card); text-anchor: middle; }
.map .mk-l { font-family: var(--f-body); font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }
.map .mk:hover circle, .map .mk:focus circle, .map .mk:hover rect { fill: var(--ink); }
.map a:focus-visible { outline: none; }
.map a:focus-visible circle, .map a:focus-visible rect { stroke: var(--ink); stroke-width: 3; }

.places {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 0.25rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
.places li {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.75rem;
  padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1rem; transition: background-color 0.3s;
}
.places li:target { background: var(--paper-2); outline: 1px solid var(--petrol); }
.places .num {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--petrol); color: var(--card);
  font-family: var(--f-type); font-size: 0.8rem; font-weight: 700;
  font-variant-numeric: lining-nums;
}
.places h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 0.15rem; }
.places p { font-size: 1rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .places li { transition: none; } }

/* ---------- Author bibliography ---------- */
.author-main { min-width: 0; display: grid; gap: 2.75rem; align-content: start; }
.biblio { max-width: var(--measure); }
.biblio h3 {
  font-family: var(--f-body); font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--petrol);
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink);
}
.biblio-list { list-style: none; margin: 0; padding: 0; }
.biblio-list li {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem;
  padding-block: 0.85rem; border-bottom: 1px solid var(--rule);
}
.biblio-list .yr { font-family: var(--f-type); font-size: 0.95rem; color: var(--petrol); padding-top: 0.2rem; }
.biblio-list cite { font-family: var(--f-display); font-style: italic; font-size: 1.3rem; line-height: 1.25; }
.biblio-list p { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); margin-top: 0.15rem; }

/* ---------- Author portrait ---------- */
.author-side { min-width: 0; display: grid; gap: 1.5rem; align-content: start; }
.portrait { margin: 0; max-width: 22rem; }
.portrait img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}
.portrait figcaption { margin-top: 0.5rem; font-family: var(--f-type); font-size: 0.8rem; color: var(--ink-soft); }
