/* reizevoort.nl — colours taken from the family emblem */
:root {
  --blue: #4a7fbf;
  --teal: #1b7f80;
  --gold: #a8874f;
  --brown: #6b3a10;
  --ink: #1f2a33;
  --muted: #5b6770;
  --glass: rgba(255, 255, 255, 0.80);
  --line: rgba(31, 42, 51, 0.35);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 "Avenir Next", Avenir, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
}
/* fixed background that also works on iOS */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background: #c9d8e6 url("duinen.jpg") center / cover no-repeat;
}
a { color: #24598f; }
a:hover { color: var(--teal); }

/* ---------- landing page ---------- */
.landing { display: flex; flex-direction: column; align-items: center; padding: 4vh 16px 40px; }
.hero { text-align: center; margin-bottom: 2.5vh; }
.emblem { width: min(240px, 50vw); height: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.title {
  margin: .2em 0 0; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: .04em;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; width: 100%; }
.card {
  background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 26px 28px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.card h2 { margin: 0 0 .5em; font-size: 1.6rem; color: var(--brown); }
.card p { margin: 0 0 .8em; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px; text-decoration: none;
  background: var(--blue); color: #fff; font-weight: 600; transition: background .15s;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn.alt { background: #fff; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn.alt:hover { background: var(--teal); color: #fff; }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 480px); } }

/* ---------- content pages ---------- */
.panel {
  max-width: 900px; margin: 24px auto 40px; padding: 0 26px 18px;
  background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.panel.wide { max-width: 1110px; }
.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-weight: 600; font-size: 1.15rem; }
/* the emblem file has empty space above the crown (13% of its height); pull it up,
   and a little further so the shield lines up with the letters */
.brand img { display: block; width: 48px; height: auto; margin-top: -5px; position: relative; top: -4px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--ink); }
nav a:hover { background: rgba(74,127,191,.14); }
nav a.on { background: var(--blue); color: #fff; }
nav a.lang { color: var(--teal); font-weight: 600; }
h1 { margin: .4em 0 .1em; font-size: 1.9rem; color: var(--brown); line-height: 1.25; }
h2 { font-size: 1.15rem; margin: 1.6em 0 .6em; padding-bottom: 4px; border-bottom: 2px solid rgba(27,127,128,.35); color: var(--teal); }
h3 { font-size: 1rem; margin: 1.2em 0 .4em; }
.sub { margin: 0 0 1em; color: var(--muted); font-size: 1.05rem; }
.lbl { margin: .6em 0 .2em; color: var(--muted); font-size: .9rem; }
.living-note { background: rgba(27,127,128,.1); border-left: 4px solid var(--teal); padding: 8px 12px; border-radius: 6px; }
footer { margin-top: 2.4em; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); font-size: .85rem; color: var(--muted); }

table.ev { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.ev th, table.ev td { text-align: left; vertical-align: top; padding: 6px 10px 6px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
table.ev th { font-weight: 600; white-space: nowrap; width: 1%; padding-right: 18px; }
table.ev td:nth-child(2) { white-space: nowrap; width: 1%; padding-right: 18px; }
table.ev td:nth-child(3) { width: 24%; }
.note { color: #34414b; }
p.note { white-space: normal; }
sup a { text-decoration: none; font-size: .75em; padding: 0 1px; }
ul.people { list-style: none; padding: 0; margin: .2em 0; columns: 2 300px; column-gap: 30px; }
ul.people li { padding: 2px 0; break-inside: avoid; }
.yrs { color: var(--muted); font-size: .9em; white-space: nowrap; }
ol.srcs { padding-left: 1.6em; font-size: .92rem; }
ol.srcs li { margin-bottom: 4px; word-break: break-word; }
#q { width: 100%; max-width: 360px; padding: 9px 14px; font: inherit; border: 1px solid rgba(0,0,0,.2); border-radius: 999px; background: #fff; }
.letters { word-spacing: 6px; }
.scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.scans figure { margin: 0; }
.scans img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.2); display: block; }
.scans figcaption { font-size: .8rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* ---------- background story ---------- */
.story { max-width: 44em; margin: 0 auto; line-height: 1.65; }
.story article p { margin: 0 0 1em; }
.story h2 { font-size: 1.4rem; }
.story .intro { margin-top: 1em; padding: 10px 18px; background: rgba(27,127,128,.1); border-left: 4px solid var(--teal); border-radius: 6px; }
.story .intro p { margin: .4em 0; }
.variants { list-style: none; padding: 0; margin: .2em 0 .5em; display: flex; flex-wrap: wrap; gap: 2px 18px; font-style: italic; }

/* ---------- hourglass ---------- */
.hg-scroll { overflow-x: auto; padding: 4px 0 10px; }
.hg { position: relative; margin: 0 auto; }
.hg svg { position: absolute; inset: 0; overflow: visible; }
.hg svg path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.hg svg path.pt { stroke-dasharray: 3 3; }
.hg-box {
  position: absolute; width: 190px; height: 44px; padding: 4px 10px; border-radius: 9px;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-left: 5px solid #9aa5ad;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: center;
  line-height: 1.25; transition: transform .12s, box-shadow .12s;
}
.hg-box b { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hg-box small { font-size: .72rem; color: var(--muted); }
.hg-box.m { border-left-color: var(--blue); }
.hg-box.f { border-left-color: var(--teal); }
.hg-box.living { background: #f4f6f7; }
a.hg-box:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.25); color: var(--ink); }
.hg-box.me { background: var(--blue); color: #fff; border-left-color: var(--brown); }
.hg-box.f.me { background: var(--teal); }
.hg-box.me small { color: rgba(255,255,255,.85); }
.hg-box.empty { background: transparent; box-shadow: none; border: 1.5px dashed rgba(0,0,0,.18); }

@media (max-width: 600px) {
  .panel { margin: 0; border-radius: 0; padding: 0 14px 14px; }
  h1 { font-size: 1.5rem; }
  table.ev td:nth-child(2) { white-space: normal; }
}
