:root {
  color-scheme: light;
  --paper: #f6f2ea;
  --ink: #1b1915;
  --muted: #5c5146;
  --red: #bc301a;
  --red-bright: #e83717;
  --rule: #9f8d7c;
  --dark-rule: #6f5a4b;
  --gutter: clamp(1.25rem, 2.7vw, 2.75rem);
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Courier New", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--serif); }
a { color: var(--red); text-underline-offset: .19em; text-decoration-thickness: .07em; }
a:hover { color: var(--ink); }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.07; }
.site-header { border-bottom: 1px solid var(--dark-rule); }
.shell { width: min(100%, 1600px); margin-inline: auto; }
.topline { min-height: 3.625rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font: 750 clamp(.925rem, 1.46vw, 1.36rem)/1.1 var(--mono); letter-spacing: .065em; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; width: 2rem; height: 2rem; }
.site-nav { display: flex; gap: clamp(.9rem, 3.2vw, 2.8rem); flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-weight: 700; font-size: clamp(.875rem, 1.4vw, 1.25rem); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--red); text-decoration: underline; }
.skip { position: absolute; z-index: 1; left: 1.25rem; top: -6rem; background: var(--paper); padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
.hero { display: grid; grid-template-columns: 47.3% 52.7%; min-height: clamp(21rem, 30vw, 29rem); border-bottom: 1px solid var(--dark-rule); }
.hero-content { padding: clamp(1.5rem, 2.55vw, 2.5rem) var(--gutter) clamp(1.75rem, 2.25vw, 2.25rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero h1 { margin: 0 0 .6rem; font-size: clamp(3.5rem, 7.83vw, 7.7rem); letter-spacing: -.077em; line-height: .94; }
.hero h1 em { display: block; color: var(--red-bright); }
.hero-definition { margin: .45rem 0 1rem; padding-left: .9rem; border-left: 2px solid var(--red); max-width: 36rem; }
.hero-definition blockquote { margin: 0; }
.hero-definition p { margin: 0; font-size: clamp(1.12rem, 1.72vw, 1.66rem); line-height: 1.26; }
.hero-definition figcaption { margin-top: .36rem; font-size: .91rem; line-height: 1.35; }
.hero-intro { font-size: clamp(1rem, 1.26vw, 1.23rem); line-height: 1.35; color: var(--muted); max-width: 43ch; margin-bottom: 1.1rem; }
.hero-art { position: relative; display: grid; overflow: hidden; min-height: 12rem; background: var(--red-bright); }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.button, .search-button { display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fffaf1; border: 1px solid var(--red); padding: .55em 1.1em; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover, .search-button:hover { color: white; background: var(--ink); border-color: var(--ink); }
.hero .button { font-size: clamp(1.1rem, 1.85vw, 1.7rem); padding-inline: 1.2em; }
.inset { margin-inline: var(--gutter); }
.statistics { padding-block: 1.2rem 1.35rem; border-bottom: 1px solid var(--dark-rule); }
.statistics h2 { margin: 0 0 .8rem; font-size: clamp(1.55rem, 2.8vw, 2.55rem); letter-spacing: -.04em; }
.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; border-block: 1px solid var(--rule); background: var(--rule); list-style: none; }
.statistic { display: flex; flex-direction: column; min-width: 0; padding: .8rem clamp(.65rem, 1.1vw, 1.1rem); background: var(--paper); }
.statistic-value { margin: 0 0 .3rem; color: var(--red); font-size: clamp(1.8rem, 3vw, 3.1rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.statistic-description { margin: 0 0 .6rem; font-size: .98rem; line-height: 1.36; }
.statistic-source { align-self: flex-start; margin-top: auto; color: var(--muted); font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; }
.featured { display: grid; grid-template-columns: minmax(8rem,.45fr) 1fr 1.23fr .98fr; padding-block: 1.125rem; border-bottom: 2px solid var(--dark-rule); }
.featured h2 { font-size: clamp(1.12rem, 1.85vw, 1.72rem); max-width: 8ch; margin: 0; }
.feature { min-width: 0; border-left: 1px solid var(--rule); padding: 0 clamp(.7rem, 2.15vw, 2.1rem); }
.feature a { font-size: clamp(1rem, 1.7vw, 1.58rem); font-weight: bold; display: inline-block; line-height: 1.16; }
.feature p { margin: .25rem 0 0; color: var(--ink); font-size: clamp(.875rem, 1.22vw, 1.13rem); line-height: 1.25; }
.library { scroll-margin-top: 1rem; padding-bottom: 3rem; }
.library-header { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding-block: 1.35rem 1.25rem; }
.library-header h2 { margin: 0; font-size: clamp(2.15rem, 3.9vw, 3.7rem); letter-spacing: -.055em; }
.library-collections { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: -.25rem 0 .85rem; }
.library-collections a { display: inline-flex; align-items: baseline; gap: .42rem; min-height: 2rem; color: var(--ink); padding: .2rem 0; }
.library-collections a[aria-current] { color: var(--red); font-weight: bold; }
.library-collections span { color: var(--muted); font: .83rem/1.3 var(--mono); }
.search-field { display: flex; border: 1px solid var(--dark-rule); min-height: 2.85rem; align-items: stretch; }
.search-field label { display: flex; align-items: center; justify-content: center; padding: 0 .75rem; }
.search-field svg { width: 1.25rem; height: 1.25rem; }
.search-field input { width: 100%; min-width: 0; background: none; border: 0; color: var(--ink); padding: .52rem .3rem; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-button { font-size: .95rem; }
.library-grid { display: grid; grid-template-columns: minmax(10.25rem, 17%) minmax(0, 1fr); border-top: 1px solid var(--dark-rule); gap: clamp(1rem, 2.2vw, 2rem); padding-top: .9rem; }
.topic-rail { border-right: 1px solid var(--rule); padding: 0 1.15rem 1rem .22rem; }
.topic-rail h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.topic-rail ul { list-style: none; margin: 0; padding: 0; }
.topic-rail a { display: flex; align-items: baseline; justify-content: space-between; gap: .45rem; min-height: 1.95rem; color: var(--ink); text-decoration: none; line-height: 1.22; padding-block: .25rem; }
.topic-rail a:hover, .topic-rail a[aria-current] { color: var(--red); text-decoration: underline; font-weight: bold; }
.topic-rail small { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.result-content { min-width: 0; }
.result-tools { display: flex; align-items: center; gap: .45rem .7rem; flex-wrap: wrap; padding-bottom: .65rem; }
.result-count { margin: 0 auto 0 0; color: var(--muted); font-size: .91rem; }
.result-count span { white-space: nowrap; }
.facets, .sort-form { display: flex; align-items: center; gap: .42rem; flex-wrap: wrap; }
.facets-desktop label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.facets select, .facets button, .sort-form select, .sort-form button, .filter-panel summary, .citation-copy {
  max-width: 100%; min-height: 2.2rem; padding: .35rem .55rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 0; font-size: .9rem;
}
.facets button, .sort-form button, .filter-panel summary, .citation-copy { cursor: pointer; }
.facets button:hover, .sort-form button:hover, .filter-panel summary:hover, .citation-copy:hover { border-color: var(--ink); }
.filter-panel { display: none; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.active-filters li { max-width: 100%; }
.active-filters a { display: inline-block; min-height: 2rem; padding: .2rem .5rem; border: 1px solid var(--rule); font-size: .88rem; overflow-wrap: anywhere; }
.active-filters .clear-filters { border-color: transparent; color: var(--ink); }
.results { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results th, .results td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); padding: .8rem .8rem; }
.results th { border-top: 1px solid var(--dark-rule); font: 750 .87rem/1.3 var(--mono); text-transform: uppercase; }
.study-heading { width: 29%; }
.type-heading { width: 8.4rem; }
.date-heading { width: 8rem; }
.study-cell a { display: inline-block; font-size: clamp(1.15rem, 1.55vw, 1.48rem); font-weight: bold; line-height: 1.14; overflow-wrap: anywhere; }
.finding-cell p { font-size: 1.02rem; line-height: 1.42; margin: 0; max-width: 63ch; overflow-wrap: anywhere; }
.finding-cell .study-design, .reading .study-design { margin: .3rem 0 0; color: var(--muted); font-size: .87rem; font-weight: 700; line-height: 1.32; }
.results .type-cell, .results .date-cell { font-size: .91rem; line-height: 1.4; }
.mobile-type, .mobile-finding { display: none; }
.byline { display: block; font-size: .86rem; margin-top: .14rem; color: var(--muted); line-height: 1.25; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.pager p { margin: 0; color: var(--muted); text-align: center; }
.empty { margin-top: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.empty p { margin-bottom: .35rem; }
.footer { border-top: 1px solid var(--dark-rule); }
.footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; padding: 1.3rem var(--gutter); color: var(--muted); font-size: .94rem; }
.reading { max-width: 54rem; margin-inline: auto; padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter); min-height: 72vh; }
.reading h1 { font-size: clamp(2.3rem, 5.2vw, 4.7rem); letter-spacing: -.06em; margin: .85rem 0 1.1rem; overflow-wrap: anywhere; }
.reading h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); margin: 1.7rem 0 .6rem; }
.reading .lead { font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.38; margin-bottom: 1.35rem; }
.reading p { max-width: 68ch; overflow-wrap: anywhere; }
.reading .meta { color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: .85rem; margin-bottom: .85rem; }
.reading .button { margin-top: .9rem; }
.study-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.study-actions .button { margin: 0; min-height: 2.75rem; }
.citation-copy { min-height: 2.75rem; font-size: 1rem; font-weight: 700; }
.citation-status { color: var(--muted); font-size: .9rem; }
.citation-fallback { margin-top: .6rem; max-width: 38rem; }
.citation-fallback summary { width: fit-content; min-height: 2.75rem; align-content: center; color: var(--red); cursor: pointer; }
.citation-fallback textarea { display: block; width: 100%; margin-top: .35rem; padding: .55rem; border: 1px solid var(--rule); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.reading .study-design { margin-bottom: .4rem; }
.log-list { padding: 0; list-style: none; }
.log-list li { border-top: 1px solid var(--rule); padding: .85rem 0; }
.log-list h2 { margin: 0 0 .45rem; }
.log-list p { margin: 0 0 .45rem; }
.log-list ul { padding-left: 1.2rem; }
.log-list ul li { border: 0; padding: .1rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1180px) {
  .statistics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .hero h1 { font-size: clamp(3.15rem, 8.3vw, 4.95rem); }
  .hero { min-height: 19rem; }
  .featured { grid-template-columns: .58fr 1fr 1.05fr .9fr; }
  .results .type-heading, .results .type-cell { display: none; }
  .mobile-type { display: inline; }
  .date-heading { width: 7rem; }
}
@media (max-width: 760px) {
  .library-grid { display: block; padding-top: .6rem; }
  .topic-rail, .facets-desktop { display: none; }
  .filter-panel { display: block; }
  .filter-panel[open] { flex: 1 0 100%; }
  .filter-panel summary { width: fit-content; min-height: 2.75rem; align-content: center; font-weight: 700; padding-inline: .7rem; }
  .facets-mobile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding-block: .7rem .35rem; }
  .facets-mobile label { display: grid; gap: .18rem; font-size: .9rem; }
  .facets-mobile button { justify-self: start; }
  .facets-mobile select, .facets-mobile button, .sort-form select, .sort-form button { min-height: 2.75rem; font-size: 1rem; }
  .result-count { flex-basis: 100%; }
  .active-filters a { min-height: 2.75rem; align-content: center; }
}
@media (max-width: 640px) {
  .topline { min-height: 0; gap: .5rem .8rem; align-items: flex-start; flex-direction: column; padding-block: .82rem; }
  .site-nav { gap: .65rem 1.3rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding-block: 1.7rem; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 4.8rem); }
  .hero-definition { margin-top: .25rem; padding-left: .7rem; }
  .hero-art { aspect-ratio: 1.9; min-height: 0; }
  .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; gap: .66rem; }
  .featured h2 { max-width: none; }
  .feature { border-left: 0; border-top: 1px solid var(--rule); padding: .55rem 0 0; }
  .feature p { margin-top: .1rem; }
  .library-header { grid-template-columns: 1fr; gap: .7rem; padding-block: 1.1rem .8rem; }
  .library-collections { margin: 0 0 .35rem; column-gap: .9rem; }
  .library-collections a { min-height: 2.75rem; align-items: center; font-size: .98rem; }
  .results, .results tbody { display: block; }
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .results tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, auto); gap: .5rem .65rem; border-top: 1px solid var(--rule); padding: .8rem .2rem; }
  .results tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .results td { border: 0; padding: 0; }
  .results .date-cell { grid-column: 2; grid-row: 1; text-align: right; max-width: 5.5rem; }
  .results .finding-cell { grid-column: 1 / -1; grid-row: 2; }
  .mobile-finding { display: block; margin-bottom: .18rem; font: 700 .8rem/1.35 var(--mono); color: var(--muted); }
}
@media (forced-colors: active) { .button, .search-button { border: 1px solid ButtonText; } }
