/* danenberg.family: calm, book-like. EB Garamond (OFL), vendored in fonts/. */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/ebgaramond-roman.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("fonts/ebgaramond-italic.woff2") format("woff2"); }

:root {
  --ink: #23201b; --muted: #6b6257; --paper: #fbf8f1; --rule: #ddd3c2; --accent: #8c2d19; --link: #7a2814;
  --card: #f4efe4; --sea: #e3ebee; --land: #f1ead9;
  --doc: #2f6b3a; --trad: #7a6a52; --prob: #2f5d8a; --poss: #a0662a; --weak: #8a6d8f; --rej: #8c2d19;
}
* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif; line-height: 1.55;
  font-variant-numeric: oldstyle-nums proportional-nums; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .4em .8em; }
.skip:focus { left: .5em; top: .5em; z-index: 10; }

header.site { border-bottom: 1px solid var(--rule); padding: .8rem 1rem .4rem; text-align: center; }
.brand { margin: 0; font-size: 1.5rem; letter-spacing: .06em; font-variant: small-caps; }
.brand a { color: var(--ink); text-decoration: none; }
header.site nav ul { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem 1.1rem; }
header.site nav a { text-decoration: none; color: var(--muted); font-variant: small-caps; letter-spacing: .04em; font-size: 1.02rem; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--accent); }

main { max-width: 40rem; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; }
main.wide { max-width: 64rem; }
footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; text-align: center; padding: 1rem 1rem 2rem; }

h1, h2, h3 { font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: .6rem 0 .5rem; }
h1.home { font-size: 2.6rem; text-align: center; font-variant: small-caps; letter-spacing: .04em; }
h2 { font-size: 1.45rem; margin: 2rem 0 .5rem; border-bottom: 1px solid var(--rule); padding-bottom: .15rem; }
h3 { font-size: 1.15rem; margin: 1.2rem 0 .3rem; }
.lede { font-size: 1.12rem; }
.life { color: var(--muted); font-size: .9em; white-space: nowrap; }
h1 .life { font-size: .6em; display: inline-block; margin-left: .3em; }
.rel { font-style: italic; color: var(--muted); margin-top: 0; }
.note, .credit, .who, .cnote, .kicker, .build { color: var(--muted); font-size: .92rem; }
.lab { font-variant: small-caps; color: var(--muted); letter-spacing: .03em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: .2rem 1rem .6rem; }
.card h3 { font-variant: small-caps; letter-spacing: .04em; }
ul.disc li, ul.explore li { margin-bottom: .45rem; }

/* evidence labels */
.ev { display: inline-block; font-size: .78rem; padding: 0 .4em; border-radius: 3px; border: 1px solid currentColor;
  font-variant: small-caps; letter-spacing: .03em; line-height: 1.35; vertical-align: .08em; white-space: nowrap; }
.ev-documented { color: var(--doc); } .ev-tradition { color: var(--trad); } .ev-probable { color: var(--prob); }
.ev-possible, .ev-unverified-tree { color: var(--poss); } .ev-weak { color: var(--weak); }
.ev-unlikely, .ev-ruled-out { color: var(--rej); } .ev-adoptive { color: var(--muted); }
dl.ev-legend { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; }
dl.ev-legend dd { margin: 0; }

/* status words */
.st { font-variant: small-caps; font-weight: 600; letter-spacing: .03em; }
.st-probable, .st-confirmed { color: var(--doc); } .st-possible { color: var(--poss); } .st-open { color: var(--prob); }
.st-weak { color: var(--weak); } .st-unlikely, .st-ruled-out { color: var(--rej); }
.key .st { margin-right: .8em; }
article.q { margin: .4rem 0 1rem; } article.q h3 { font-size: 1.05rem; margin-bottom: .1rem; }
article.q p { margin: .15rem 0; } .next { font-size: .95rem; }

/* person pages */
dl.fam { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
dl.fam dt { font-variant: small-caps; color: var(--muted); }
dl.fam dd { margin: 0; }
ul.kids { margin: 0; padding-left: 1.1rem; }
a.p.living { color: var(--ink); text-decoration-style: dotted; }
.story p:first-child::first-letter { font-size: 1.15em; }
sup.fn { font-size: .7em; line-height: 0; }
sup.fn a { text-decoration: none; padding: 0 .1em; }
table.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: .3rem .4rem; border-bottom: 1px solid var(--rule); }
table.facts thead th { font-variant: small-caps; color: var(--muted); font-weight: 500; }
table.facts td.d { white-space: nowrap; }
table.facts th[scope=row] { font-weight: 500; white-space: nowrap; }
.jul, .pref { color: var(--muted); font-size: .9em; }
ol.cites { font-size: .92rem; padding-left: 1.6rem; }
ol.cites li { margin-bottom: .55rem; }
ol.cites li:target { background: #f6ecd0; }
blockquote { margin: .3rem 0 .3rem 1rem; padding-left: .7rem; border-left: 2px solid var(--rule); font-style: italic; }
blockquote.tr { font-style: normal; }
.trl { font-variant: small-caps; color: var(--muted); }
.private { color: var(--muted); font-style: italic; }
figure.record { margin: 1rem 0; }
figure.record img { max-width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
figcaption { font-size: .9rem; color: var(--muted); }
.treelink { margin-top: 2rem; font-size: .95rem; }

/* lists */
nav.toc ul { columns: 2 14rem; padding-left: 1.1rem; }
nav.toc ul.inline { columns: auto; display: flex; flex-wrap: wrap; gap: .1rem .9rem; list-style: none; padding: 0; }
ul.plist { columns: 2 17rem; padding-left: 1.1rem; }
ul.plist li { break-inside: avoid; }
ul.srclist li { margin-bottom: .55rem; } ul.srclist .st { font-weight: 500; font-variant: normal; color: var(--ink); }
ul.placelist { padding-left: 1.1rem; font-size: .95rem; } .pn { font-weight: 500; }

/* timeline */
ol.tl { list-style: none; padding: 0; margin: 0; }
ol.tl li { padding: .2rem 0 .2rem 6.2rem; text-indent: -6.2rem; }
ol.tl .d { display: inline-block; width: 6rem; text-indent: 0; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; vertical-align: top; }
ol.tl li.world { color: #4b5d6b; font-style: italic; border-left: 3px solid #c9d6de; background: #f1f4f2; padding-left: 6rem; margin: .2rem 0; }
.pl { color: var(--muted); }

/* memoir */
article.memoir p { text-align: justify; hyphens: auto; text-indent: 1.4em; margin: 0 0 .2rem; }
article.memoir p.kicker, article.memoir p.lede { text-indent: 0; text-align: left; margin-bottom: .8rem; }
article.memoir h1 { margin-bottom: 1rem; }
.ed { font-style: italic; color: #4b4136; }
.redact { color: var(--muted); }
nav.chap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 2rem; padding-top: .6rem; border-top: 1px solid var(--rule); }
.memoir-intro .sub { font-size: .6em; color: var(--muted); }
.byline { font-style: italic; font-size: 1.1rem; margin-top: 0; }
ol.chapters li { margin-bottom: .2rem; }
article.memoir ol li, article.memoir ul li { margin-bottom: .5rem; }

/* essay pages */
article.essay table { border-collapse: collapse; font-size: .9rem; margin: 1rem 0; display: block; overflow-x: auto; }
article.essay th, article.essay td { border-bottom: 1px solid var(--rule); padding: .3rem .4rem; text-align: left; vertical-align: top; }
article.essay code { font-size: .85em; }
figure.record.wide img { width: 100%; }

/* map */
figure.mapfig { margin: 1.2rem 0; }
svg.map { width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
svg.map .sea { fill: var(--sea); }
svg.map .land { fill: var(--land); stroke: #c9bda5; stroke-width: .5; }
svg.map .lake { fill: var(--sea); stroke: #c9bda5; stroke-width: .4; }
svg.map .border { fill: none; stroke: #b9ad97; stroke-width: .6; stroke-dasharray: 2 2; }
svg.map .route { fill: none; stroke-width: 2.2; stroke-linecap: round; opacity: .85; }
svg.map .pt { fill: var(--accent); fill-opacity: .55; stroke: #fff; stroke-width: .6; }
svg.map .lab { font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; font-family: "EB Garamond", Georgia, serif; }
ol.routes { padding-left: 1.2rem; } ol.routes li { margin-bottom: .5rem; }
.sw { display: inline-block; width: 1.4em; height: .35em; vertical-align: middle; border-radius: 2px; }

@media (max-width: 34rem) {
  html { font-size: 106%; }
  h1 { font-size: 1.75rem; }
  ol.tl li { padding-left: 0; text-indent: 0; } ol.tl .d { display: block; width: auto; }
  ol.tl li.world { padding-left: .5rem; }
  table.facts td.d { white-space: normal; }
  article.memoir p { text-align: left; }
}

@media print {
  header.site nav, footer.site, .skip, .treelink, nav.chap, nav.toc { display: none; }
  body { background: #fff; font-size: 11pt; }
  main, main.wide { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  h2 { break-after: avoid; } figure, tr, li { break-inside: avoid; }
  .card { border: none; background: none; padding: 0; }
}

/* sources page: what we hold of each source (archive index), and evidence pages */
.held-content { margin: .3rem 0 .8rem; font-size: .95em; }
.held-content .held { display: block; color: var(--muted, #555); font-size: .9em; }
.held-content details { margin: .25rem 0; }
.held-content summary { cursor: pointer; color: var(--muted, #555); }
.tablewrap { overflow-x: auto; }
table.rows { border-collapse: collapse; font-size: .85em; margin: .4rem 0; min-width: 100%; }
table.rows th, table.rows td { border-bottom: 1px solid var(--rule, #ddd); padding: .2rem .4rem; text-align: left; vertical-align: top; }
table.rows .b { color: var(--muted, #555); white-space: nowrap; }
.srcimgs figure.record { max-width: 32rem; }
figure.evidence img { width: 100%; }
figcaption a.ctx { white-space: nowrap; }
