:root {
  --paper: #f7f6f2;
  --panel: #fffefa;
  --ink: #202722;
  --muted: #68716c;
  --line: #dddfd8;
  --accent: #305c47;
  --wash: #e6ece5;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="ink"] {
  --accent: #283e67;
  --wash: #e7eaf0;
  --ink: #202936;
}
html[data-theme="cobalt"] {
  --accent: #245ace;
  --wash: #e5eaf5;
  --ink: #1f2c42;
}
html[data-theme="clay"] {
  --accent: #95513d;
  --wash: #efe4d9;
  --ink: #332b25;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
}
.header {
  max-width: 1440px;
  margin: auto;
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.mark {
  background: var(--accent);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 400;
}
.header nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
}
.header-search {
  font-size: 20px;
}
.header-search span {
  font-size: 13px;
  margin-left: 5px;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 48px;
}
.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 430px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: normal clamp(40px, 4.4vw, 62px)/1.09 var(--serif);
  letter-spacing: -2.2px;
  margin: 23px 0;
}
h2 {
  font: normal 32px/1.2 var(--serif);
  letter-spacing: -0.8px;
}
h3 {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.3px;
}
.hero-description {
  font-size: 15px;
  line-height: 1.85;
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 27px;
}
.hero-facts {
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: var(--muted);
}
.hero-facts strong {
  color: var(--ink);
  font-weight: 650;
}
.orbital {
  height: 290px;
  width: 290px;
  position: relative;
  justify-self: center;
  background:
    radial-gradient(circle, transparent 2px, var(--paper) 2.5px) center/13px
      13px,
    var(--line);
}
.orbit {
  position: absolute;
  border: 1px solid var(--accent);
  border-radius: 50%;
  inset: 25px;
  opacity: 0.28;
}
.orbit-one {
  transform: rotate(-30deg) scaleX(0.4);
}
.orbit-two {
  transform: rotate(40deg) scaleX(0.58);
}
.orbit-three {
  inset: 35px;
  transform: rotate(-10deg);
}
.orbit-core {
  position: absolute;
  inset: 104px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 40px var(--serif);
  box-shadow: 0 0 0 15px var(--paper);
}
.orbit-label {
  font: 8px monospace;
  letter-spacing: 1px;
  position: absolute;
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 4px;
}
.label-top {
  top: 0;
}
.label-bottom {
  bottom: 0;
}
.hero-plate {
  background: #e9e4d5;
  padding: 20px 30px 12px;
  transform: rotate(3deg);
  box-shadow: 0 9px 22px #3331;
  max-width: 310px;
  justify-self: center;
}
.hero-plate img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.hero-plate > span {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.5px;
  margin-top: 14px;
}
.search-section {
  padding-bottom: 50px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 9px 9px 9px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px #22204;
}
.search-symbol {
  font-size: 30px;
  color: var(--muted);
  line-height: 1;
}
.searchbox input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  padding: 10px 0;
  color: var(--ink);
  outline: none;
}
.searchbox:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--wash);
}
.searchbox button,
.button {
  white-space: nowrap;
  border: 0;
  border-radius: 5px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
}
.searchbox button span {
  margin-left: 30px;
}
.searchbox select {
  max-width: 115px;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 12px;
}
.suggestions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  padding-top: 15px;
}
.suggestions > span {
  color: var(--muted);
  margin-right: 8px;
}
.suggestions a,
.tags a {
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 4px;
}
.suggestions a:hover,
.tags a:hover {
  background: var(--wash);
  border-color: var(--accent);
}
.suggestions a span {
  margin-left: 14px;
}
.archive-section {
  padding: 32px 0 48px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 9px;
}
.text-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.metadata {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}
.metadata span:first-child {
  color: var(--accent);
}
.card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 13px;
}
.excerpt {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.card-bottom a {
  color: var(--accent);
  font-size: 20px;
}
.plate {
  background: #ece9df;
  display: block;
  padding: 20px;
}
.plate img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}
.image-card h3 {
  font-family: var(--serif);
  font-weight: 400;
}
.image-card .card-body {
  padding: 20px;
}
.manifesto {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 60px 15%;
  margin-bottom: 20px;
}
.manifesto .eyebrow {
  justify-content: center;
}
.manifesto h2 {
  font-size: 35px;
}
.manifesto p {
  color: var(--muted);
  font-size: 14px;
}
footer {
  max-width: 1440px;
  border-top: 1px solid var(--line);
  padding: 35px 5%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px 60px;
}
footer p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}
.footer-links {
  grid-column: 1/-1;
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  font-size: 15px;
}
.footer-brand .mark {
  width: 28px;
  height: 28px;
  font-size: 18px;
}
.listing-head {
  padding: 60px 0 25px;
}
.listing-head h1 {
  font-size: 48px;
}
.listing-head > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 680px;
}
.listing-head .searchbox {
  margin-top: 25px;
}
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}
.source-filters {
  display: flex;
  gap: 15px;
}
.source-filters [aria-current] {
  color: var(--accent);
  font-weight: 650;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 35px;
  font-size: 13px;
}
.pagination a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 18px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.collection-tile {
  padding: 25px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.collection-number {
  font: 32px var(--serif);
  opacity: 0.4;
  margin-bottom: 30px;
}
.collection-tile h2 {
  font-size: 25px;
}
.collection-tile > span:last-child {
  font-size: 11px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
}
.facet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.facet-grid a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.facet-grid small {
  color: var(--muted);
  white-space: nowrap;
}
.breadcrumbs {
  font-size: 11px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  margin: 35px 0;
}
.record-header {
  max-width: 1000px;
}
.record h1 {
  font-size: 45px;
  line-height: 1.2;
}
.authors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--accent);
}
.record-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 30px 0 45px;
}
.secondary {
  color: var(--accent);
  background: var(--wash);
}
.record-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
  margin-bottom: 40px;
}
.abstract p {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.9;
}
.record-facts {
  background: var(--wash);
  padding: 25px;
  height: fit-content;
  border-radius: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.record-facts dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 18px;
}
.record-facts dd {
  margin: 3px 0 0;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
}
.subjects {
  margin-top: 35px;
}
.subjects h2 {
  font-size: 24px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 11px;
}
.detail-plate {
  margin: 0 0 35px;
  background: #ece9df;
  padding: 25px;
}
.detail-plate img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}
.detail-plate figcaption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.prose {
  max-width: 760px;
  margin: 70px auto 100px;
}
.prose h1 {
  font-size: 48px;
}
.prose h2 {
  margin-top: 35px;
  font-size: 28px;
}
.prose p {
  color: var(--muted);
  line-height: 1.9;
}
.prose a:not(.button) {
  text-decoration: underline;
  color: var(--accent);
}
.empty {
  padding: 60px;
  text-align: center;
  background: var(--wash);
  border-radius: 5px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  display: block;
  padding: 10px;
  background: var(--accent);
  color: white;
}
.button:hover {
  color: white;
  filter: brightness(0.9);
}
.secondary:hover {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 1000px) {
  main {
    padding: 0 30px;
  }
  .hero {
    gap: 20px;
  }
  .orbital {
    width: 240px;
    height: 240px;
  }
  .orbit-core {
    inset: 82px;
  }
  .hero-facts {
    gap: 12px;
  }
  .cards {
    gap: 12px;
  }
  .card-body {
    padding: 18px;
  }
  .header nav {
    gap: 18px;
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .record-columns {
    gap: 30px;
  }
  .facet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  main {
    padding: 0 20px;
  }
  .header {
    padding: 18px 20px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 17px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
    padding-top: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0 28px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 43px;
  }
  .orbital {
    display: none;
  }
  .hero-plate {
    display: none;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-facts {
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .searchbox {
    gap: 8px;
    padding-left: 12px;
  }
  .searchbox input {
    font-size: 13px;
  }
  .searchbox button {
    padding: 11px 13px;
  }
  .searchbox button span {
    display: none;
  }
  .searchbox select {
    max-width: 85px;
    font-size: 10px;
  }
  .search-symbol {
    display: none;
  }
  .suggestions {
    gap: 7px;
  }
  .suggestions > span {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .plate {
    padding: 10px;
  }
  .gallery .plate img {
    height: 180px;
  }
  .gallery .card-body {
    padding: 13px;
  }
  .gallery .metadata {
    font-size: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .gallery h3 {
    font-size: 16px;
  }
  .gallery .card-bottom {
    font-size: 9px;
    padding-top: 10px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading .text-link {
    max-width: 100px;
    text-align: right;
    font-size: 10px;
  }
  h2 {
    font-size: 28px;
  }
  .section-heading .eyebrow {
    font-size: 9px;
  }
  .manifesto {
    padding: 40px 10px;
  }
  .manifesto h2 {
    font-size: 30px;
  }
  footer {
    padding: 30px 20px;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
  .listing-head {
    padding-top: 35px;
  }
  .listing-head h1 {
    font-size: 37px;
    overflow-wrap: anywhere;
  }
  .results-bar {
    align-items: start;
    flex-direction: column;
  }
  .collection-tile {
    padding: 18px;
    min-height: 190px;
  }
  .collection-tile h2 {
    font-size: 22px;
  }
  .facet-grid {
    grid-template-columns: 1fr;
  }
  .record h1 {
    font-size: 33px;
  }
  .record-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .record-actions {
    gap: 10px;
  }
  .record-actions .button {
    font-size: 12px;
    padding: 11px 13px;
  }
  .abstract p {
    font-size: 15px;
  }
  .prose {
    margin-top: 40px;
  }
  .prose h1 {
    font-size: 39px;
  }
  .empty {
    padding: 35px 15px;
  }
}

/* Research tools stay compact and usable without third-party UI code. */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1.2rem 0;
}
.tool-actions button,
.filter-form button,
#snapshot-form button,
#delete-snapshot button,
#research-selection button {
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.research-tools,
.passages {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid #d6d9d3;
  border-radius: 8px;
}
.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0;
}
.filter-form label,
#snapshot-form label,
#delete-snapshot label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.filter-form input {
  width: 7rem;
}
.filter-form select {
  max-width: min(22rem, 85vw);
}
.filter-form input,
.filter-form select,
#snapshot-form input,
#snapshot-form textarea,
#delete-snapshot input {
  padding: 0.7rem;
  font: inherit;
  border: 1px solid #a6afa9;
  border-radius: 4px;
  background: #fff;
  color: #243b42;
}
#snapshot-form,
#delete-snapshot {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
#snapshot-result {
  overflow-wrap: anywhere;
}
.tool-status:not(:empty) {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 1rem;
  border: 1px solid #a6afa9;
  border-radius: 6px;
  color: #fff;
  background: #243b42;
  z-index: 10;
}
.passages details {
  margin: 1rem 0;
}
.passages details p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sponsor {
  min-height: 110px;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid #d6d9d3;
}
.sponsor span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
  .research-tools,
  .passages {
    padding: 1rem;
  }
  .filter-form label {
    max-width: 100%;
  }
}
.coverage-map svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  border: 1px solid #d6d9d3;
}
.coverage-map figcaption {
  font-size: 0.85rem;
  color: #536b65;
}
.adsbygoogle {
  display: block;
  min-height: 280px;
}
.advertising-block {
  min-height: 330px;
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid #d6d9d3;
}
.table-scroll {
  overflow-x: auto;
}
.metadata-comparison {
  margin: 1.5rem 0;
}
.metadata-comparison th,
.metadata-comparison td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid #d6d9d3;
  vertical-align: top;
}
.header nav {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .header nav {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}
.prose p,
.record-facts dd,
.cards > div {
  overflow-wrap: anywhere;
  min-width: 0;
}
button[data-share] {
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.research-tools p,
.record .abstract p,
.tags a {
  overflow-wrap: anywhere;
}
.tags a {
  max-width: 100%;
}
.card-body {
  min-width: 0;
}
.card-bottom span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
