:root {
  --navy: #102d52;
  --navy-deep: #081f3d;
  --red: #a83324;
  --cream: #f5f2eb;
  --paper: #fffdf8;
  --gold: #d2aa28;
  --ink: #172f39;
  --muted: #5f6b72;
  --line: #d8d3c9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); line-height: 1.55; }
a { color: var(--red); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-top: 5px solid var(--red); border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: flex; align-items: baseline; gap: 14px; color: var(--navy); text-decoration: none; }
.identity strong { font: 700 29px/1 Georgia, "Times New Roman", serif; }
.identity span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; }
.quiet-link { color: var(--navy); font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.intro { padding: 74px 0 58px; background: var(--navy); color: white; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: end; gap: 70px; }
.intro--compact { padding-block: 48px; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.7px; }
.intro .eyebrow { color: #f0c92f; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); font-weight: 500; }
.intro h1 { margin: 0; color: white; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.intro p:last-child { max-width: 520px; margin: 0; color: #dce4ee; font-size: 18px; }
.search-band, .results-search { padding: 38px 0; border-bottom: 1px solid var(--line); background: var(--paper); }
.search-form label { display: block; margin-bottom: 12px; color: var(--navy); font-weight: 800; }
.search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input[type="search"] { min-width: 0; min-height: 58px; border: 2px solid var(--navy); border-radius: 0; background: white; color: var(--ink); padding: 12px 17px; font: inherit; font-size: 18px; }
input[type="search"]:focus { outline: 3px solid rgba(210, 170, 40, .45); outline-offset: 2px; }
button { min-height: 58px; border: 0; border-radius: 0; background: var(--red); color: white; padding: 12px 24px; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #87291e; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.search-form > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.examples { padding: 50px 0 80px; }
.examples h2 { margin: 0 0 20px; font-size: 30px; }
.examples > div { display: flex; flex-wrap: wrap; gap: 10px; }
.examples a { border: 1px solid var(--line); background: var(--paper); color: var(--navy); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.examples a:hover { border-color: var(--red); color: var(--red); }

.collection-summary {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.collection-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.collection-summary strong { font-weight: 600; }
.collection-summary span { white-space: nowrap; }
.results-wrap { padding: 48px 0 80px; }
.results-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; border-bottom: 3px solid var(--navy); padding-bottom: 22px; }
.results-header .eyebrow { grid-column: 1 / -1; margin: 0; }
.results-header h1 { margin: 0; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.05; overflow-wrap: anywhere; }
.results-header > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 30px; border-bottom: 1px solid var(--line); padding: 28px 0 30px; }
.result-meta, .authors, .passage { grid-column: 1; }
.result-meta { margin: 0; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.result h2 { grid-column: 1; margin: 1px 0 0; font-size: 27px; line-height: 1.16; }
.result h2 a { color: var(--navy); text-decoration: none; }
.result h2 a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.authors { margin: 2px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.passage { max-width: 860px; margin: 8px 0 0; color: var(--muted); }
mark { background: #f5dc72; color: inherit; padding-inline: 1px; }
.pdf-link { grid-column: 2; grid-row: 1 / 6; align-self: center; min-width: 170px; border: 1px solid var(--red); color: var(--red); padding: 12px 15px; font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.pdf-link:hover { background: var(--red); color: white; }
.no-results { padding: 50px 0; }
.no-results h2 { margin: 0; font-size: 30px; }
.pagination { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; }
.pagination a { color: var(--navy); font-weight: 800; text-underline-offset: 4px; }
.usage { padding: 50px 0 80px; }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 1px; margin-bottom: 50px; background: var(--line); }
.totals > div { display: grid; background: var(--paper); padding: 24px; }
.totals strong { color: var(--red); font: 500 42px/1 Georgia, serif; }
.totals span { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.usage h2 { font-size: 31px; }
table { width: min(700px, 100%); border-collapse: collapse; background: var(--paper); }
th, td { border-bottom: 1px solid var(--line); padding: 13px 15px; text-align: left; }
th:last-child, td:last-child { width: 110px; text-align: right; }
.privacy-note { max-width: 700px; color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); padding: 24px 0; font-size: 12px; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 70px; }
  .identity { display: grid; gap: 3px; }
  .identity strong { font-size: 25px; }
  .identity span { font-size: 10px; }
  .quiet-link { display: none; }
  .intro { padding: 50px 0 42px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro h1 { font-size: 48px; }
  .intro p:last-child { font-size: 16px; }
  .search-band, .results-search { padding: 26px 0; }
  .search-controls { grid-template-columns: 1fr; }
  .results-wrap { padding-top: 34px; }
  .results-header { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; padding-block: 24px; }
  .result h2 { font-size: 23px; }
  .pdf-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .totals { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

