/* The Noyon Family — "Anno 1643" design.
   A Dutch Golden Age printed book: laid paper, sepia ink, gilt rules, Delft indigo, a touch of oxblood.
   Type: IM Fell DW Pica (cut by Dutch punchcutters, 17th c.) for titles; EB Garamond for text. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/eb-garamond-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/eb-garamond-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+2113, U+A720-A7FF; }
@font-face { font-family: "IM Fell DW Pica"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-dw-pica-latin-400-normal.woff2) format("woff2"); }
/* "Noyon Display": IM Fell letters with EB Garamond figures (Fell's old-style 5 reads like a long s) */
@font-face { font-family: "Noyon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Noyon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-dw-pica-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-002F, U+003A-00FF, U+2000-206F; }
@font-face { font-family: "Noyon Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/eb-garamond-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02FF, U+1E00-1EFF; }
@font-face { font-family: "IM Fell DW Pica"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/im-fell-dw-pica-latin-400-italic.woff2) format("woff2"); }

:root {
  --paper: #f2eadb;
  --paper-2: #f7f1e5;
  --ink: #241b13;
  --ink-2: #4a3d30;
  --body-ink: #3b3026; /* running text: a softer sepia than titles */
  --muted: #716150;
  --rule: #c9b48a;
  --gilt: #84652d;
  --indigo: #22385a;
  --oxblood: #7d2216;
  --text: "EB Garamond", "Garamond", "Hoefler Text", "Baskerville", "Iowan Old Style", Georgia, serif;
  --display: "Noyon Display", "IM Fell DW Pica", "EB Garamond", "Hoefler Text", Georgia, serif;
  --measure: 38rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171d; --paper-2: #1b1e26; --ink: #ebe2cf; --body-ink: #d9cfbb; --ink-2: #d5c9b2; --muted: #a39882;
    --rule: #4b4232; --gilt: #c4a367; --indigo: #a9bfe0; --oxblood: #d98b7c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  /* laid paper: faint chain lines and a soft vignette */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 252, 244, .55), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(120, 95, 60, .035) 39px 40px);
  font: 400 1.18rem/1.68 var(--text);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal; font-feature-settings: "liga", "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* finer strokes on macOS */
  color: var(--body-ink);
}
@media (prefers-color-scheme: dark) { body { background-image: none; } }
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--indigo) 35%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--oxblood); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
strong, b { font-weight: 500; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .1em 0 .25em; letter-spacing: .005em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.85rem); margin: 2.4rem 0 .7rem; }
h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; font-style: italic; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--paper-2); padding: .5rem 1rem; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
main.wrap { padding-bottom: 4rem; }
.muted, .years { color: var(--muted); }
.years { font-style: italic; font-size: .92em; white-space: nowrap; }
.small { font-size: .9rem; }

/* letter-spaced capitals: the "small caps" voice of the site */
.kicker { font: 500 .78rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); margin: 0 0 .3rem; }
.kicker a { color: inherit; text-decoration: none; }
.lede { font-style: italic; font-size: 1.25rem; color: var(--ink-2); max-width: var(--measure); margin-top: .2rem; }
.lede a { font-style: normal; }

/* ---------- masthead (title page) ---------- */
.masthead { padding: 1.6rem 0 0; }
.mast-inner { display: grid; justify-items: center; text-align: center; }
.brand { display: grid; justify-items: center; gap: .25rem; color: var(--ink); text-decoration: none; }
.brand img { width: 2.6rem; height: auto; }
.brand-name { font: 400 1.55rem/1 var(--display); letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; margin-top: .35rem; }
.brand-sub { font: italic 400 .98rem/1.2 var(--text); color: var(--muted); }
.brand:hover { color: var(--ink); }
.site-nav { width: 100%; margin-top: 1.1rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 3px 0; position: relative; }
.site-nav::before, .site-nav::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--rule); }
.site-nav::before { top: 2px; } .site-nav::after { bottom: 2px; }
.site-nav ul { list-style: none; margin: 0; padding: .35rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.6rem; }
.site-nav a { display: block; padding: .35rem .1rem; text-decoration: none; color: var(--ink-2);
  font: 500 .8rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.site-nav a:hover { color: var(--oxblood); }
.site-nav a[aria-current="page"] { color: var(--oxblood); }
.site-nav a[aria-current="page"]::after { content: ""; display: block; width: 5px; height: 5px; margin: .3rem auto -.2rem;
  background: var(--oxblood); transform: rotate(45deg); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .masthead { padding: .9rem 0 0; }
  .mast-inner { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .brand { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: .7rem; row-gap: 0; }
  .brand img { width: 1.9rem; grid-row: span 2; }
  .brand-name { font-size: 1.05rem; letter-spacing: .16em; margin: 0; padding: 0; }
  .brand-sub { font-size: .85rem; }
  .js .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule);
    background: transparent; color: var(--ink); cursor: pointer; }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { grid-column: 1 / -1; margin-top: .8rem; }
  .js .site-nav ul { display: none; }
  .js .site-nav.open ul { display: block; }
  .js .site-nav li + li { border-top: 1px solid var(--rule); }
  .js .site-nav a { padding: .85rem .2rem; font-size: .85rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
}

/* ---------- breadcrumbs & page heads ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; padding: 0; margin: 1.4rem 0 0;
  font: 500 .7rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs li + li::before { content: "·"; margin-right: .3rem; color: var(--gilt); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--oxblood); }
.page-head { text-align: center; margin: 2rem auto 2.2rem; max-width: 46rem; }
.page-head .lede { margin-inline: auto; }
.page-head::after, .lozenges::after { content: ""; display: block; width: 7px; height: 7px; margin: 1.6rem auto 0; background: var(--gilt);
  transform: rotate(45deg); box-shadow: 14px -14px 0 -2px var(--gilt), -14px 14px 0 -2px var(--gilt); }

/* ---------- reading ---------- */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose p { hyphens: auto; -webkit-hyphens: auto; text-align: justify; margin: 0 0 1em; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose li { margin: .2rem 0; }
.prose li::marker { color: var(--gilt); }
.prose h2 { clear: both; text-align: center; font-size: 1.55rem; margin-top: 2.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose .source { text-align: center; font-style: italic; color: var(--muted); font-size: 1rem; text-wrap: balance; }
.prose p.first::first-letter {
  float: left; font: 400 4.3em/.8 var(--display); color: var(--oxblood); margin: .06em .1em 0 0; padding: 0; }
.figure { margin: 2rem 0; text-align: center; }
.figure a { display: inline-block; text-decoration: none; }
.figure img, .gallery img, .card-img {
  display: block; background: var(--paper-2); padding: 5px; border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: 3px; }
.figure img { max-height: 30rem; width: auto; margin: 0 auto; }
.figure--side { max-width: 14rem; }
@media (min-width: 680px) { .figure--side { float: left; margin: .4rem 1.8rem 1rem 0; } }
figcaption { font: italic .95rem/1.45 var(--text); color: var(--muted); margin: .9rem auto 0; max-width: 30rem; text-wrap: balance; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 2rem 1.6rem; margin: 2rem 0; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.prose:has(.gallery) { max-width: 58rem; }
a.download { font-style: italic; }
.filesize { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.filesize::before { content: " ("; } .filesize::after { content: ")"; }

/* ---------- asides, pager, section nav ---------- */
.callout { max-width: var(--measure); margin: 2.5rem auto; padding: 1.1rem 1.4rem; text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.callout h2 { font-size: 1.2rem; margin: 0 0 .4rem; }
.callout p { margin: .25rem 0; }
.callout ul { list-style: none; margin: .3rem 0; padding: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: var(--measure); margin: 3.5rem auto 0;
  border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.pager a { text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.15rem; line-height: 1.25; }
.pager a:hover { color: var(--oxblood); }
.pager span { display: block; font: 500 .7rem/1.6 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.pager .next { text-align: right; }
.pager--top { margin: 0 auto 2rem; padding: 0 0 1rem; border-top: 0; border-bottom: 1px solid var(--rule); }
.pager--top a { font-size: 1rem; }
.sibling-nav ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.3rem; }
.sibling-nav a { font-style: italic; text-decoration: none; color: var(--ink-2); }
.sibling-nav a[aria-current="page"] { color: var(--oxblood); }

/* ---------- buttons (engraved, quiet) ---------- */
.button { display: inline-block; padding: .65rem 1.3rem; border: 1px solid var(--ink-2); outline: 1px solid var(--ink-2); outline-offset: 2px;
  color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
  font: 500 .78rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; }
.button:hover { color: var(--paper); background: var(--ink); }
.button--ghost { border-color: var(--rule); outline-color: transparent; color: var(--ink-2); }
.button--ghost:hover { background: transparent; color: var(--oxblood); border-color: var(--oxblood); }

/* ---------- home ---------- */
.hero { text-align: center; padding: 2.2rem 0 .5rem; }
.hero-arms { width: min(15rem, 62vw); height: auto; display: block; margin: 0 auto 1.4rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin: 0; }
.hero .anno { font: italic 1.25rem var(--text); color: var(--muted); margin: .2rem 0 0; }
.hero .lede { margin: 1.8rem auto 0; font-style: normal; color: var(--ink); text-align: justify; hyphens: auto; }
.hero .lede::first-letter { font: 400 3.6em/.8 var(--display); float: left; color: var(--oxblood); margin: .08em .1em 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 2rem; }
.section-title { text-align: center; margin-top: 3.5rem; }
.section-sub { text-align: center; font-style: italic; color: var(--muted); margin-top: -.3rem; }
.gen-strip { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.gen-strip li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gen-strip a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; height: 100%;
  padding: 1rem .6rem 1.1rem; text-decoration: none; color: var(--ink); }
.gen-strip a:hover { background: var(--paper-2); }
.gen-strip a:hover .g-t { color: var(--oxblood); }
.g-n { font: 400 1.7rem/1 var(--display); color: var(--oxblood); }
.g-y { font-style: italic; font-size: .95rem; color: var(--muted); }
.g-t { font-size: 1rem; line-height: 1.3; color: var(--indigo); }
.more { text-align: center; margin-top: 1.2rem; font-style: italic; }
.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 2.2rem 1.8rem; }
.cards a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); text-align: center; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center 25%; }
.card-img--empty { padding: 0; }
.card-title { font: 400 1.4rem/1.2 var(--display); margin-top: 1.1rem; }
.cards a:hover .card-title { color: var(--oxblood); }
.card-text { font-style: italic; color: var(--muted); font-size: 1rem; line-height: 1.45; margin-top: .3rem; }
.subpages { margin-bottom: 2.5rem; }
.subpages .cards { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.subpages .cards a > span { font: 400 1.15rem/1.25 var(--display); margin-top: .9rem; }
.facts { max-width: 48rem; margin-inline: auto; }
.facts dl { display: grid; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.facts dt { font: 500 .72rem/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); padding-top: .9rem; }
.facts dd { margin: 0; padding: .15rem 0 .9rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) {
  .facts dl { grid-template-columns: 14rem 1fr; }
  .facts dt { padding: 1.05rem 1rem .9rem 0; border-bottom: 1px solid var(--rule); }
  .facts dd { padding: .75rem 0 .8rem; }
}

/* ---------- generations ledger ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 54rem; border-top: 1px solid var(--rule); }
.tl-item { border-bottom: 1px solid var(--rule); }
.tl-item a { display: grid; grid-template-columns: 3.2rem 1fr; gap: .2rem 1.2rem; padding: 1.4rem .2rem; text-decoration: none; color: var(--ink); }
.tl-num { text-align: center; }
.tl-num b { display: block; font: 400 1.9rem/1 var(--display); color: var(--oxblood); }
.tl-year { display: block; font-style: italic; font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.tl-item .card-img { display: none; }
.tl-body { display: flex; flex-direction: column; }
.tl-gen { font: 500 .7rem/1.5 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.tl-title { font: 400 1.45rem/1.25 var(--display); color: var(--ink); }
.tl-text { color: var(--ink-2); font-size: 1.02rem; margin-top: .25rem; }
.tl-item a:hover .tl-title { color: var(--oxblood); }
@media (min-width: 720px) {
  .tl-item a { grid-template-columns: 4rem 1fr 7.5rem; }
  .tl-item .card-img { display: block; width: 7.5rem; aspect-ratio: 4/5; align-self: start; }
  .tl-item .card-img--empty { visibility: hidden; }
}

/* ---------- family tree ---------- */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1.7fr; gap: 4rem; } }
.two-col h2 { margin-top: 1rem; }
.search { max-width: 40rem; margin: 0 auto 2.5rem; text-align: center; }
.search label { display: block; font: 500 .75rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); margin-bottom: .5rem; }
.search input { width: 100%; font: italic 1.25rem var(--text); padding: .6rem .2rem; border: 0; border-bottom: 1px solid var(--ink-2);
  background: transparent; color: var(--ink); text-align: center; border-radius: 0; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-bottom-color: var(--oxblood); }
.search input:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.results:empty { display: none; }
.results { margin: 1rem 0 0; max-height: 26rem; overflow: auto; text-align: left; columns: 17rem; column-gap: 2rem; }
.results li { break-inside: avoid; }
.people { padding-left: 1.4rem; }
.people li { margin: .2rem 0; }
.people li::marker { color: var(--gilt); }
.people--cols { columns: 19rem; column-gap: 2.5rem; }
.people--cols li { break-inside: avoid; }
.role { display: inline-block; min-width: 5rem; font: 500 .68rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.private { color: var(--muted); font-style: italic; }
.gen-line { list-style: none; padding: 0; }
.gen-line li { display: grid; grid-template-columns: 2.6rem 1fr; align-items: baseline; padding: .3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
.d-gen { font: 400 1rem/1 var(--display); color: var(--oxblood); margin-right: .5rem; }
.az ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .65rem; margin: 0 0 1rem; }
.az a { font: 400 1.25rem var(--display); text-decoration: none; }
.surnames { list-style: none; padding: 0; margin: 0; columns: 11rem; column-gap: 1.6rem; }
.surnames li { break-inside: avoid; padding: .05rem 0; }
.surnames a { text-decoration: none; }
.count { font-size: .85rem; font-style: italic; color: var(--muted); }
.two-col h3 { font-style: normal; font-size: 1.6rem; color: var(--oxblood); border-bottom: 1px solid var(--rule); margin: 1.6rem 0 .5rem; }
.summary { max-width: var(--measure); margin: 0 auto 1rem; text-align: justify; hyphens: auto; font-size: 1.22rem; }
.summary::first-letter { font: 400 3.3em/.8 var(--display); float: left; color: var(--oxblood); margin: .08em .1em 0 0; }
.aka { text-align: center; font-style: italic; color: var(--muted); margin-top: -1.2rem; }
.person-grid { display: grid; gap: 0 4rem; grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
.person-grid > div { min-width: 0; }
@media (min-width: 960px) { .person-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.person-grid h2 { font-size: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: .35rem; margin-top: 2.2rem; }
.person-grid h3 { font-size: 1.1rem; }
.spouse { font-size: 1.2rem; margin: .4rem 0 .2rem; }
.table-wrap { overflow-x: auto; }
.events { border-collapse: collapse; width: 100%; }
.events th, .events td { text-align: left; vertical-align: baseline; padding: .55rem .9rem .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.events th { font: 500 .68rem/1.6 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); width: 8.5rem; }
.ev-date { white-space: nowrap; width: 11.5rem; font-style: italic; }
.ev-note { margin: .3rem 0 0; font-size: .95rem; color: var(--muted); font-style: italic; }
@media (max-width: 560px) {
  .events tr { display: grid; grid-template-columns: 1fr auto; padding: .6rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
  .events th, .events td { border: 0; padding: 0; width: auto; }
  .events td:last-child { grid-column: 1 / -1; }
}
.note { border-left: 1px solid var(--gilt); padding: .1rem 0 .1rem 1.1rem; margin: .8rem 0; font-style: italic; color: var(--ink-2); }
.note p { margin: .4rem 0; }
.pedigree { display: grid; grid-template-columns: repeat(3, minmax(9rem, 1fr)); gap: .6rem; overflow-x: auto; padding: .5rem 0; }
.ped-col { display: grid; gap: .6rem; align-content: space-around; }
.ped-box { border: 1px solid var(--rule); background: var(--paper-2); padding: .45rem .7rem; font-size: 1rem; line-height: 1.3; text-align: center; }
.ped-col--0 .ped-box { border-color: var(--gilt); outline: 1px solid var(--rule); outline-offset: 2px; }
.ped-box .years { display: block; font-size: .85rem; }
.ped-box--empty { border-style: dotted; background: transparent; min-height: 2.8rem; }
@media (max-width: 560px) { .pedigree { grid-template-columns: repeat(3, minmax(7.5rem, 1fr)); font-size: .9rem; } }
.descendants, .descendants ul { list-style: none; padding-left: 0; }
.descendants { max-width: 60rem; margin-inline: auto; }
.descendants ul { margin-left: .5rem; padding-left: 1.1rem; border-left: 1px solid var(--rule); }
.descendants li { margin: .15rem 0; }
.descendants summary { cursor: pointer; margin-left: 1rem; }
.descendants summary::marker { color: var(--gilt); }
.descendants li:not(:has(details)) { padding-left: 1rem; }
.descendants .spouse { font-size: .95rem; margin-left: .35rem; color: var(--muted); font-style: italic; }
.tools { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.tools .button { padding: .5rem .9rem; font-size: .7rem; }

/* ---------- lightbox ---------- */
.lightbox-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox-dialog::backdrop { background: rgba(22, 17, 12, .92); }
.lightbox-dialog img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; display: block; margin: auto; }
.lightbox-dialog p { color: #e9dfcb; font: italic 1rem/1.45 var(--text); text-align: center; margin: .8rem auto 0; max-width: 46rem; }
.lightbox-dialog button { position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 1px solid rgba(233, 223, 203, .5);
  background: transparent; color: #e9dfcb; font: 1.5rem/1 var(--text); cursor: pointer; }

/* ---------- colophon ---------- */
.site-footer { margin-top: 3rem; padding: 2.5rem 0 3rem; text-align: center; border-top: 1px solid var(--rule); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.footer-inner { display: grid; justify-items: center; gap: 1.1rem; }
.footer-arms { width: 2.4rem; height: auto; opacity: .85; }
.motto { font: italic 1.2rem var(--text); margin: 0; color: var(--ink-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.5rem; }
.site-footer ul a { font: 500 .72rem var(--text); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--oxblood); }
.site-footer .small { color: var(--muted); margin: 0; max-width: 40rem; font-style: italic; }

/* the engraved arms are black line art; in dark mode, print them in parchment */
@media (prefers-color-scheme: dark) {
  .brand img, .hero-arms, .footer-arms { filter: invert(.92) sepia(.25); }
}

/* ---------- languages ---------- */
.mast-inner { position: relative; }
.lang-switch { position: absolute; top: 0; right: 0; }
.lang-switch ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0;
  font: 500 .7rem/1 var(--text); letter-spacing: .14em; }
.lang-switch a, .lang-switch span { display: block; padding: .35rem .4rem; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--oxblood); }
.lang-switch [aria-current] { color: var(--oxblood); }
.lang-switch li + li::before { content: "·"; color: var(--gilt); float: left; padding: .35rem 0; }
@media (max-width: 760px) {
  .lang-switch { position: static; grid-column: 1 / -1; justify-self: end; order: -1; margin-bottom: .2rem; }
}
.lang-note { max-width: var(--measure); margin: 1.4rem auto 0; padding: .6rem 1rem; text-align: center; font-style: italic;
  color: var(--muted); border: 1px dashed var(--rule); }

/* ---------- verification ---------- */
.badge { display: inline-block; vertical-align: .15em; padding: .15rem .45rem; border: 1px solid var(--oxblood); color: var(--oxblood);
  font: 500 .62rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.draft-banner { max-width: 46rem; margin: 0 auto 1.6rem; padding: .8rem 1.1rem; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); font-style: italic; color: var(--ink-2); text-align: center; }
.draft-banner .badge { font-style: normal; margin-right: .4rem; }
.unverified h2 .badge { margin-left: .4rem; }
.small { font-size: .9rem; }
.unsure, .illegible { position: relative; text-decoration: underline dotted var(--oxblood); text-decoration-thickness: 1.5px;
  text-underline-offset: .22em; cursor: help; }
.unsure:focus, .illegible:focus { outline: 1px solid var(--gilt); outline-offset: 2px; }
.illegible { color: var(--muted); }
.unsure .tip, .illegible .tip { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
  user-select: none; -webkit-user-select: none; }
.unsure:hover .tip, .unsure:focus .tip, .illegible:hover .tip, .illegible:focus .tip {
  clip: auto; width: auto; height: auto; overflow: visible; left: 50%; bottom: calc(100% + .45rem); transform: translateX(-50%);
  z-index: 20; padding: .3rem .55rem; background: var(--ink); color: var(--paper); border-radius: 2px;
  font: italic .8rem/1.3 var(--text); white-space: nowrap; text-decoration: none; pointer-events: none; }
.later { color: var(--muted); font-style: italic; }
.transcription { font-size: 1.02rem; line-height: 1.75; padding: 1rem 1.2rem; background: var(--paper-2);
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 3px; overflow-wrap: anywhere; }
.transcription p { margin: 0 0 .8em; }
.tr-page h3 { font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gilt); margin: 1.6rem 0 .6rem; }
.tr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.tr-tabs { display: none; margin: 0 0 .6rem; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.js .tr-tabs { display: inline-flex; }
.tr-tabs button { font: italic .85rem/1 var(--text); padding: .45rem .8rem; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.tr-tabs button + button { border-left: 1px solid var(--rule); }
.tr-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); font-style: normal; }
.tr-tabs button:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }
.tr-tabbed .tr-en { margin-top: 1rem; }
.js .tr-tabbed .tr-en { margin-top: 0; }
.tr-nojs { font-style: italic; color: var(--muted); }
.js .tr-nojs { display: none; }
.translation { margin: 2rem 0; }
.translation summary, .note-orig summary, .toc-mini summary { cursor: pointer; font-style: italic; color: var(--ink-2); }
.doc-files { list-style: none; padding: 0; text-align: center; margin: 0 0 2rem; }
.doc-list ul, .doc-refs { padding-left: 1.2rem; }
.doc-list { max-width: var(--measure); margin: 0 auto 2.5rem; }
.tr-link { font-size: .9rem; font-style: italic; }
.note-orig { margin: -.4rem 0 1.2rem; }
.note-orig .note { color: var(--muted); }

/* ---------- portraits ---------- */
.portrait { margin: 0 auto 1.6rem; }
.portrait img { max-height: 22rem; width: auto; margin: 0 auto; }

/* ---------- the book ---------- */
.book .pg { float: right; margin: .25rem -5.5rem 0 1rem; font: 500 .68rem/1 var(--text); letter-spacing: .1em; color: var(--gilt);
  font-style: normal; text-transform: uppercase; }
@media (max-width: 62rem) { .book .pg { float: none; margin: 0 .3rem; display: inline-block; vertical-align: .2em; opacity: .8; } }
.book h3 { font-size: 1.2rem; margin-top: 2rem; }
sup.fn { font-size: .68em; line-height: 0; margin-left: .05em; }
sup.fn a { text-decoration: none; color: var(--oxblood); padding: 0 .1em; }
.book-notes { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1rem; font-size: .95rem; }
.book-notes h2 { font-size: 1.2rem; }
.book-notes li { margin: .35rem 0; }
.book-notes li:target { background: var(--paper-2); }
.book-notes .back { text-decoration: none; }
.book blockquote.old { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--rule); font-style: italic; }
.book .tr, .book p.tr { color: var(--muted); font-size: .95rem; }
.book table, .prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.2rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: .35rem .5rem; text-align: left; vertical-align: top; }
.prose thead th { font-weight: 500; color: var(--gilt); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
ol.genealogy { padding-left: 1.6rem; }
dl.glossary dt { font-weight: 500; margin-top: .8rem; }
dl.glossary dd { margin: 0 0 0 1.2rem; }
.book-fig { margin: 2rem 0; text-align: center; }
.book-fig img { display: inline-block; max-width: 100%; height: auto; background: var(--paper-2); padding: 5px;
  border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 3px; }
.toc-mini { max-width: var(--measure); margin: 0 auto 2rem; text-align: center; }
.toc-mini ol { text-align: left; display: inline-block; margin: .6rem auto 0; }
.translator-note { max-width: var(--measure); margin: 2rem auto 0; text-align: center; font-style: italic; color: var(--muted); font-size: .95rem; }
.book-actions { text-align: center; margin: 1.6rem 0; }
.book-toc { max-width: var(--measure); margin: 2.5rem auto; }
.book-toc h2 { text-align: center; }
.book-toc ol { list-style: none; padding: 0; margin: 0; }
.book-toc li { border-bottom: 1px solid var(--rule); }
.book-toc a { display: flex; gap: 1rem; align-items: baseline; padding: .65rem .2rem; text-decoration: none; color: var(--ink); }
.book-toc a:hover { color: var(--oxblood); }
.toc-n { font-family: var(--display); color: var(--gilt); min-width: 1.6rem; text-align: right; }
.toc-t { font-size: 1.1rem; }
.sibling-nav-list { list-style: none; text-align: center; padding: 0; font-style: italic; }
.center { text-align: center; }

/* ---------- the open question ---------- */
.callout--quest { max-width: 44rem; padding: 2rem 1.6rem; margin: 3rem auto; border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: 4px; background: var(--paper-2); }
.callout--quest h2 { font-size: 1.7rem; margin: .2rem 0 .8rem; }
.callout--quest p { font-size: 1.08rem; }
.callout--quest .button { margin-top: .6rem; }

@media print {
  .masthead nav, .site-footer ul, .pager, .crumbs, .search, .tools, .lang-switch, .toc-mini { display: none; }
  .unsure .tip, .illegible .tip { position: static; clip: auto; width: auto; height: auto; font-size: .8em; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Hover previews of internal links (site.js) */
.peek { position: fixed; z-index: 50; display: flex; gap: .8rem; width: min(22rem, calc(100vw - 16px)); padding: .75rem .85rem;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); pointer-events: none; font-size: .85rem; line-height: 1.35; }
.peek[hidden] { display: none; }
.peek img { flex: 0 0 auto; width: 5.2rem; height: 6.6rem; object-fit: cover; object-position: top; border: 1px solid var(--rule); background: var(--paper); }
.peek p { margin: 0; }
.peek-k { font: 500 .62rem/1.5 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); }
.peek-t { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.peek-l { color: var(--muted); font-style: italic; }
.peek-x { margin-top: .35rem !important; color: var(--body-ink, var(--ink)); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media print { .peek { display: none !important; } }

/* Transcribed documents as a timeline */
.doc-list { max-width: 54rem; }
.doc-century { font: 400 1.05rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gilt); text-align: center; margin: 2.4rem 0 .6rem; }
.timeline--docs .tl-item a { grid-template-columns: 4.2rem 1fr; }
.timeline--docs .tl-yr { font-size: 1.45rem; }
.timeline--docs .tl-title { font-size: 1.2rem; }
.timeline--docs .tl-text { font-size: .95rem; color: var(--muted); }
.fig-person { display: block; margin-top: .35rem; font-style: normal; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gilt); text-decoration: none; }
.fig-person:hover { color: var(--oxblood); }

/* research log status chips */
.st { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .05rem .45rem;
  border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; margin-right: .25rem; }
.st--found { color: var(--gilt); }
.st--none { color: var(--muted); }
.st--part { color: var(--oxblood, #7a2a2a); }
.st--todo { color: var(--ink, inherit); border-style: dashed; }
.st-legend { font-size: .9rem; color: var(--muted); line-height: 2; }
