:root {
  color-scheme: light;
  --paper: #f7f1e3;
  --ink: #17384d;
  --rust: #b94731;
  --muted: #52616a;
  --rule: #d4ccbb;
  --white: #fffdf7;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--rust); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--rust); outline-offset: 4px;
}
button, input { font: inherit; }
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 5;
  padding: .5rem 1rem; background: var(--ink); color: white;
}
.skip-link:focus { top: .5rem; }
.shell { width: min(100% - 3rem, 48rem); margin-inline: auto; }
.site-header { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wordmark { font-weight: bold; text-decoration: none; }
.wordmark span { color: var(--rust); }
.nav-link { font-family: Arial, sans-serif; font-size: .8rem; }
.page-heading { padding-block: 3rem 1.6rem; }
.eyebrow {
  margin: 0 0 .7rem; color: var(--rust); font-family: Arial, sans-serif;
  font-size: .7rem; font-weight: bold; letter-spacing: .09em; text-transform: uppercase;
}
h1, h2 { line-height: 1.12; text-wrap: pretty; }
h1 { font-size: clamp(2.6rem, 8vw, 4.1rem); letter-spacing: -.035em; margin: 0 0 1rem; }
.intro { max-width: 34rem; margin: 0; color: var(--muted); }
.book-line { max-width: 34rem; margin: 1rem 0 0; font-size: .82rem; }
.search-tools { padding-block: 1rem 1.1rem; border-bottom: 2px solid var(--ink); }
.search-tools label { display: block; margin-bottom: .4rem; font-family: Arial, sans-serif; font-size: .82rem; font-weight: bold; }
.search-row { display: flex; gap: .6rem; }
.search-row input {
  width: 100%; min-width: 0; padding: .65rem .8rem;
  border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink);
  font-family: Arial, sans-serif; font-size: .9rem;
}
.search-row button {
  border: 1px solid var(--ink); border-radius: 0; padding: .5rem .8rem;
  background: transparent; color: var(--ink); font-family: Arial, sans-serif; font-size: .8rem;
  cursor: pointer;
}
.search-row button:hover { background: var(--ink); color: var(--white); }
.search-hint { margin: .5rem 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .68rem; }
.result-count { margin: 1rem 0 .2rem; color: var(--muted); font-family: Arial, sans-serif; font-size: .75rem; }
.fact {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem;
  padding-block: 1.8rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 1rem;
}
.fact:target { border-bottom-color: var(--rust); }
.fact-number { padding-top: .05rem; color: var(--rust); font-size: 1.35rem; font-weight: bold; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact-number a { text-decoration: none; }
.fact h2 { margin: 0 0 .75rem; font-size: 1.35rem; letter-spacing: -.015em; }
.source-list { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.source-list li { padding-left: .1rem; margin-block: .3rem; }
.source-list a { overflow-wrap: anywhere; }
.source-list li::marker { color: var(--rust); }
.empty-state { padding: 2rem 0; }
.empty-state h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.empty-state p { color: var(--muted); }
.site-footer { padding-block: 2rem; color: var(--muted); font-size: .73rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.site-footer p { margin: 0; }
.home { padding-block: 3.2rem 4rem; }
.home-frame { border: 3px solid var(--rust); padding: clamp(1.4rem, 6vw, 3rem); }
.home h1 { max-width: 36rem; font-size: clamp(2.6rem, 8vw, 4.4rem); }
.author { color: var(--rust); margin: 0 0 2rem; font-size: 1.05rem; }
.home-copy { max-width: 31rem; margin-bottom: 1.7rem; }
.button { display: inline-block; background: var(--ink); color: var(--white); padding: .65rem 1rem; font-family: Arial, sans-serif; font-size: .85rem; text-decoration: none; }
.button:hover { background: var(--rust); color: white; }
.edition { margin: 1.5rem 0 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .7rem; }
@media (max-width: 560px) {
  :root { font-size: 17px; }
  .shell { width: min(100% - 2.2rem, 48rem); }
  .page-heading { padding-top: 2.2rem; }
  .fact { grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; padding-block: 1.5rem; }
  .fact h2 { font-size: 1.25rem; }
  .fact-number { font-size: 1.15rem; }
  .source-list { font-size: .86rem; }
  .footer-row { display: block; }
  .footer-row p + a { display: inline-block; margin-top: .7rem; }
  .home { padding-top: 2rem; }
}
@media print {
  :root { color: black; background: white; font-size: 11pt; }
  .shell { width: 100%; }
  .site-header, .search-tools, .result-count, .empty-state, .skip-link, .site-footer { display: none !important; }
  .page-heading { padding-top: 0; }
  .fact, .fact[hidden] { display: grid !important; break-inside: avoid; }
  .fact h2 { font-size: 13pt; }
  a { color: black; }
}
