:root {
  color-scheme: light;
  --navy: #102a3a;
  --navy-deep: #091d29;
  --surface: #f7f4ed;
  --paper: #fffdf8;
  --ink: #172126;
  --muted: #52636c;
  --copper: #8a7043;
  --line: #ccd3d2;
  --focus: #9a6a00;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--surface); }
body { margin: 0; color: var(--ink); background: linear-gradient(var(--navy) 0 5rem, var(--surface) 5rem) no-repeat; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.6; }
a { color: #174f68; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .7rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.public-header, .public-main, .public-footer { width: min(100% - 2rem, 74rem); margin-inline: auto; }
.public-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #35505e; color: #f4f0e7; }
.public-wordmark { color: inherit; font: 700 1.35rem Georgia, serif; text-decoration: none; }
.public-wordmark span, .eyebrow { color: #b59a68; }
.public-header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.public-header nav a { color: inherit; }
.public-main { min-height: calc(100vh - 12rem); padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.public-footer p { margin: 0; }
.info-content { max-width: 44rem; margin-top: 2rem; overflow-wrap: anywhere; }
.page-heading, .publication-detail { max-width: 52rem; }
.home-hero { max-width: 62rem; }
.home-hero h1 { max-width: 54rem; font-size: clamp(2.6rem, 5vw, 4rem); }
.home-hero .lead { margin-block: 1.25rem; }
.home-section { margin-top: clamp(4rem, 9vw, 8rem); }
.home-section > h2 { margin: 0 0 1.5rem; color: var(--navy); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 400; }
.hero-search { max-width: 46rem; margin-top: 2.5rem; }
.hero-search label { display: block; margin-bottom: .45rem; font-weight: 700; }
.hero-search div { display: grid; grid-template-columns: 1fr auto; }
.hero-search input { min-width: 0; }
.hero-search button { padding-inline: 1.5rem; }
.build-note { margin-top: 5rem; color: var(--muted); font-size: .85rem; }
.home-topics { margin-top: 3rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; }
.section-heading p { margin: .5rem 0 0; color: var(--muted); }
.section-heading .eyebrow { margin: 0 0 .5rem; }
.topic-scope-note { max-width: 56rem; color: var(--muted); font-size: .95rem; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.topic-grid > li { min-width: 0; }
.topic-card { display: flex; flex-direction: column; gap: .9rem; height: 100%; padding: 1.4rem; border: 1px solid var(--line); border-top: 3px solid var(--copper); background: var(--paper); text-decoration: none; overflow-wrap: anywhere; }
.topic-card:hover, .topic-card:focus-visible { border-color: var(--navy); }
.topic-card:hover h3, .topic-card:focus-visible h3 { text-decoration: underline; text-underline-offset: .18em; }
.topic-card h3 { margin: 0; color: var(--navy); font: 400 1.5rem/1.2 Georgia, serif; }
.topic-card p { margin: 0; color: var(--muted); }
.topic-card-meta { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--navy); font-size: .9rem; }
.topic-card-arrow { margin-left: auto; font-size: 1.25rem; }
.topic-group { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.topic-group-definition { max-width: 54rem; color: var(--muted); }
.topic-library-entry { margin-block: 2rem; padding: 1.5rem; border-left: 4px solid var(--copper); background: var(--paper); }
.topic-library-entry > p:first-child { margin-top: 0; }
.topic-library-entry > p:last-child { margin-bottom: 0; }
.library-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.8rem; padding: .65rem 1rem; border: 1px solid var(--navy); background: var(--navy); color: white; font-weight: 700; }
.library-link:hover { background: var(--navy-deep); }
.topic-children, .topic-publications { margin-top: 3rem; }
.active-topic-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 2rem; padding: 1rem 1.25rem; border-left: 4px solid var(--copper); background: var(--paper); }
.active-topic-filter p { margin: 0; }
.active-topic-filter + .search-panel { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1120px) { .home-topics .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.public-form { max-width: 46rem; margin-top: 3rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); }
.public-form > div { display: grid; gap: .4rem; margin-bottom: 1.25rem; }
.public-form textarea { width: 100%; min-height: 10rem; padding: .75rem; border: 1px solid #70818a; font: inherit; }
.public-form .helptext, .privacy-note { color: var(--muted); font-size: .85rem; }
.reference { overflow-wrap: anywhere; font-size: 1.2rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, serif; line-height: 1.12; }
h1 { max-width: 50rem; margin: 0; color: var(--navy); font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 400; letter-spacing: -.045em; }
.page-heading > p:last-child, .lead { color: var(--muted); font: 1.25rem/1.55 Georgia, serif; }
.search-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 3rem 2rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); }
.search-panel label { display: grid; min-width: 0; gap: .35rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.search-panel input, .search-panel select { width: 100%; min-width: 0; max-width: 100%; }
.search-wide { grid-column: 1 / -1; }
input, select, button { min-height: 2.8rem; padding: .6rem .75rem; border: 1px solid #70818a; border-radius: 0; background: white; color: var(--ink); font: inherit; }
button { align-self: end; background: var(--navy); color: white; cursor: pointer; font-weight: 700; }
.result-count, .meta, .breadcrumb { color: var(--muted); font-size: .85rem; }
.publication-list, .card-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.publication-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.publication-list h2 { margin: .2rem 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.publication-list p { max-width: 50rem; margin: .4rem 0; }
.empty { color: var(--muted); }
.breadcrumb { margin-bottom: 2rem; }
.lead { margin-block: 1.5rem 3rem; }
.prose { max-width: 44rem; font: 1.12rem/1.75 Georgia, serif; }
.provenance, .source-meta { margin-top: 3rem; padding: 1.5rem; border-left: 4px solid var(--copper); background: var(--paper); }
.topic-relations { margin-block: 2.5rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); }
.topic-relations h3 { margin-bottom: .25rem; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.topic-relations ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 0; }
dl { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: .5rem 1rem; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; }
.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.card-list li { background: var(--paper); }
.card-list a { min-height: 10rem; display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; text-decoration: none; }
.card-list strong { font: 1.5rem Georgia, serif; }
.card-list span { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
@media (max-width: 700px) {
  .public-header, .public-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 1rem; }
  body { background: linear-gradient(var(--navy) 0 8.5rem, var(--surface) 8.5rem) no-repeat; }
  .public-header { min-height: 8.5rem; }
  .search-panel, .card-list, .topic-grid { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  dd { margin-bottom: .7rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
