
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/eb-garamond.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/eb-garamond-italic.woff2") format("woff2"); }

/* Layout: a letterhead masthead (crest over name), then a plain left-aligned reading column. Off-white paper, very dark blue ink, one blue for links on hover. */
:root {
  --paper: #F8F5E9;
  --ink: #0A0A2A;
  --muted: #4A4A68;
  --blue: #4169E1;
  --rule: rgba(10, 10, 42, .18);
  --serif: "EB Garamond", Garamond, "Times New Roman", Times, serif;
  --measure: 64ch;
  --wide: 64rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  max-width: var(--wide); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: .5rem 1rem; z-index: 20; }

.label { font-style: italic; color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }

/* masthead */
.masthead .wrap { display: grid; justify-items: center; gap: .9rem; padding-block: 2.25rem 0; text-align: center; }
.masthead .crest { color: var(--ink); display: block; width: 4.25rem; }
.masthead .crest svg { width: 100%; height: auto; display: block; }
.masthead .name { font-size: clamp(1.5rem, 3.4vw, 2rem); font-variant-caps: all-small-caps; letter-spacing: .16em; text-decoration: none; line-height: 1.1; }
.masthead .name:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 2rem; font-size: 1.05rem;
  width: 100%; margin-top: .6rem; padding-block: .7rem; border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; }

/* home */
.home .wrap { display: grid; gap: 3rem; padding-block: 3rem 4rem; }
@media (min-width: 860px) { .home .wrap { grid-template-columns: minmax(0, 1fr) 16rem; gap: 4rem; } }
.home h2 { font-size: 1.2rem; font-style: italic; font-weight: 400; color: var(--muted); padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.intro { display: grid; gap: 1rem; align-content: start; font-size: 1.05rem; }
.intro p:first-of-type::first-letter { }
.intro a { font-style: italic; }

/* publication list */
.pubs { list-style: none; margin: 0; padding: 0; display: grid; }
.pubs li { border-bottom: 1px solid var(--rule); }
.pub { display: grid; gap: .35rem; padding-block: 1.5rem; text-decoration: none; color: var(--ink); }
.pub h3 { font-size: 1.85rem; }
.pub:hover h3 { color: var(--blue); }
.pub p { max-width: var(--measure); }

/* footer colophon */
.site-foot .wrap { display: grid; justify-items: center; gap: .6rem; text-align: center; padding-block: 0 3rem; font-size: .95rem; color: var(--muted); }
.site-foot .wrap::before { content: ""; justify-self: stretch; border-top: 1px solid var(--ink); margin-bottom: 1.9rem; }
.site-foot .crest { width: 2.6rem; color: var(--ink); }
.site-foot .crest svg { width: 100%; height: auto; display: block; }
.site-foot .motto { font-style: italic; font-size: 1.25rem; color: var(--ink); letter-spacing: .04em; }
.site-foot p { max-width: 46em; }

/* inner pages */
.page-head .wrap { display: grid; gap: .8rem; padding-block: 3rem 1.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); max-width: 22em; }
.page-head .sub { font-size: 1.3rem; font-style: italic; color: var(--muted); max-width: 34em; line-height: 1.4; }
.crumb { font-size: .95rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.body .wrap { padding-block: 0 4rem; }
.prose { max-width: var(--measure); display: grid; gap: 1.1rem; min-width: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.5rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose .bottom { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding-block: .9rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-weight: 400; font-style: italic; color: var(--muted); border-bottom: 1px solid var(--ink); }
td.num { font-variant-numeric: lining-nums; width: 2rem; }
td.levers { font-size: .95rem; color: var(--muted); min-width: 11rem; }
.facts { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; color: var(--muted); font-size: 1rem; }
.note { color: var(--muted); font-size: .95rem; font-style: italic; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 1rem; }

/* resources */
.res-groups { display: grid; gap: 2.5rem; max-width: var(--measure); }
.res-groups section { display: grid; gap: .9rem; }
.res-groups h2 { font-size: 1.45rem; padding-bottom: .4rem; border-bottom: 1px solid var(--ink); }
.res { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.res p { color: var(--muted); font-size: 1.05rem; }

/* about */
.about-crest { display: block; width: 100%; max-width: 15rem; aspect-ratio: 720 / 768; margin-block: .5rem 1rem; }
.engraved {
  background: var(--ink);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
