@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* One quiet design system. Research depth is available on demand. */
:root {
  --paper: #f6f5f0;
  --surface: #fffefa;
  --ink: #1d3028;
  --muted: #52685a;
  --line: #d7ded4;
  --forest: #1e4435;
  --highlight: #994c32;
  --focus: #bb6741;
  --content: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.skip { position: fixed; left: 1rem; top: -100px; padding: .65rem 1rem; z-index: 99; background: #fff; }
.skip:focus { top: 1rem; }
.section-wrap { max-width: calc(var(--content) + 64px); padding: 0 32px; margin: 0 auto; }
.site-header {
  height: 73px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 max(32px, calc((100vw - var(--content)) / 2));
  background: rgba(246, 245, 240, .98);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: baseline; gap: .48rem; font-size: 1.38rem;
  font-weight: 700; letter-spacing: -.07em; text-decoration: none; white-space: nowrap; }
.brand-mark { color: var(--highlight); font-size: 1.3rem; align-self: center; line-height: 1; }
.brand-suffix { font-size: .68rem; letter-spacing: .01em; font-weight: 500; color: #52665a; }
.site-header nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2.15rem); }
.site-header nav a { font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, footer a:hover { color: var(--highlight); }
.nav-repo { color: var(--muted); }

/* Homepage: a single invitation, followed by three routes. */
.hero { max-width: calc(var(--content) + 64px); margin: 0 auto; padding: clamp(4.5rem, 8vw, 8rem) 32px 0; }
.hero-inner { max-width: 870px; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: var(--muted);
  letter-spacing: .13em; font-size: .69rem; line-height: 1.5; font-weight: 700; }
.eyebrow-mark { display: inline-block; width: 9px; height: 9px; background: var(--highlight); border-radius: 50%; }
.eyebrow-divider { color: #52675b; }
.hero h1, h2, h3, h4 { margin: 0; }
.hero h1 { margin: 1.15rem 0 1.4rem; font: 400 clamp(4.3rem, 8.6vw, 8.5rem)/.96 'DM Serif Display', Georgia, serif; letter-spacing: -.058em; }
.hero h1 em { color: #56735e; font-weight: 400; }
.hero-intro { max-width: 660px; color: #53645a; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.6; margin: 0 0 2.4rem; }
.hero-search { max-width: 740px; }
.hero-search > label { display: block; margin-bottom: .6rem; color: #516358; font-size: .72rem; font-weight: 700; }
.hero-search-field { display: flex; align-items: center; border: 1px solid #a5b6a6; background: var(--surface);
  min-height: 64px; padding-left: 1.05rem; }
.hero-search-field:focus-within { box-shadow: 0 0 0 2px #a8b8a8; }
.search-symbol { font-size: 1.6rem; line-height: 1; color: var(--muted); padding: 0 .45rem 0 0; }
.hero-search-field input { min-width: 0; flex: 1; width: 100%; background: transparent; border: 0; padding: .9rem .5rem; font-size: .96rem; color: var(--ink); }
.hero-search-field input:focus { outline: none; }
.hero-search-field button { background: var(--forest); color: #fff; padding: 1.2rem 1.6rem; border: 0; margin: 5px; align-self: stretch; font-size: .84rem; font-weight: 700; }
.hero-search-field button:hover { background: #35614c; }
.hero-search-hint { font-size: .73rem; color: #52665a; margin: .75rem 0 0; }

.hero-prompts { margin-top: clamp(3.3rem, 6vw, 5.6rem); border-top: 1px solid var(--line); padding-top: 1.25rem; }
.hero-prompts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.hero-prompts-head h2 { font-size: .85rem; font-weight: 700; letter-spacing: -.01em; }
.hero-prompts-head > span { font-size: .59rem; font-weight: 700; letter-spacing: .1em; color: #52665a; }
.prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prompt-grid a { min-width: 0; background: #efefe9; display: flex; align-items: start; flex-direction: column;
  min-height: 155px; padding: 1.25rem; text-decoration: none; position: relative; transition: background .15s; }
.prompt-grid a:hover, .prompt-grid a:focus-visible { background: #e5eae1; }
.prompt-grid a > span:first-child { font-size: .62rem; letter-spacing: .1em; font-weight: 700; color: #52665a; }
.prompt-grid a strong { font: 400 clamp(1.18rem, 2vw, 1.55rem)/1.16 'DM Serif Display', Georgia, serif;
  letter-spacing: -.02em; padding: .7rem 1.5rem .5rem 0; }
.prompt-grid .prompt-arrow { position: absolute; right: 1rem; bottom: .85rem; color: #526c57; }

/* The catalog is the main body, not the fifth feature block. */
.catalog-section { padding-top: clamp(4.5rem, 7vw, 7rem); padding-bottom: 5rem; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; }
.catalog-heading h2, .section-divider h2 { font: 400 clamp(2.6rem, 4.6vw, 4.2rem)/1 'DM Serif Display', Georgia, serif; letter-spacing: -.045em; }
.catalog-heading h2 { margin-top: .6rem; }
.catalog-heading > p { max-width: 350px; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.eyebrow-dark { margin: 0; }
.catalog-controls { display: flex; align-items: start; gap: 1rem; padding: 1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-controls > label { width: min(250px, 37%); flex: 0 0 auto; font-size: .73rem; font-weight: 700; color: var(--muted); }
.catalog-controls select { width: 100%; display: block; background: var(--surface); color: var(--ink);
  border: 1px solid #c6d2c6; padding: .75rem .8rem; font-size: .81rem; margin-top: .3rem; }
.advanced-filters { position: relative; flex: 1; min-width: 0; }
.advanced-filters summary { cursor: pointer; font-size: .78rem; font-weight: 700; color: #52665a;
  padding: 1.2rem .8rem; list-style: none; }
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary span { margin-left: .5rem; }
.advanced-filters[open] summary span { display: inline-block; transform: rotate(45deg); }
.advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem;
  position: absolute; left: 0; top: calc(100% - 2px); z-index: 10; width: min(540px, 78vw);
  padding: 1.25rem; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(30, 50, 37, .09); }
.advanced-grid label { font-size: .7rem; font-weight: 700; }
.advanced-grid select { width: 100%; margin: .3rem 0 0; }
.filter-note { font-size: .73rem; color: var(--muted); padding: .5rem 1rem; background: var(--surface); border: 1px solid var(--line); margin: 0; }
.reset-filters { margin-left: auto; padding: .85rem .45rem; color: #4e6557; background: none; border: 0;
  text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
.catalog-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.1rem 0; color: #607265; }
.catalog-meta p { margin: 0; font-size: .78rem; }
.catalog-meta > span { font-size: .59rem; letter-spacing: .11em; font-weight: 700; }
.records { border-top: 1px solid var(--line); }
.record { border-bottom: 1px solid var(--line); }
.record > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: 1.2rem; padding: 1.1rem .25rem; }
.record > summary::-webkit-details-marker { display: none; }
.record-summary-main { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.record-name { font: 400 clamp(1.13rem, 1.8vw, 1.47rem)/1.25 'DM Serif Display', Georgia, serif; letter-spacing: -.018em; }
.record-summary-text { font-size: .76rem; line-height: 1.5; color: #65736a; overflow-wrap: anywhere; }
.record-kind { font-size: .66rem; color: #52665a; white-space: nowrap; padding: .3rem .5rem; border: 1px solid var(--line); }
.record-toggle { font-size: 1.2rem; font-weight: 400; color: #58715e; }
.record[open] .record-toggle { transform: rotate(45deg); }
.record > summary:hover .record-name { text-decoration: underline; text-decoration-color: #9cbaa0; text-underline-offset: 4px; }
.record-content { margin: 0 0 1.35rem; background: #ecefe9; padding: 1.1rem 1.35rem 1.3rem;
  border-left: 2px solid #a7bba8; max-width: 840px; }
.record-content h4 { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #546b5d; margin: 1.1rem 0 .35rem; }
.record-content p, .record-content li, .record-content dd { font-size: .84rem; color: #41554a; line-height: 1.65; }
.record-content p { margin: .3rem 0; }
.record-content ul { padding-left: 1.1rem; }
.record-content a { overflow-wrap: anywhere; }
.record-content dt { font-weight: 700; font-size: .8rem; margin-top: .5rem; }
.record-content dd { margin: .2rem 0 0; }
.record-at-glance { max-width: 670px; }
.record-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0; }
.record-actions button, .record-actions a { text-decoration: none; border: 1px solid #a8b9aa; color: #264b35;
  background: transparent; font-size: .75rem; font-weight: 700; padding: .6rem .8rem; display: inline-block; cursor: pointer; }
.record-actions button:hover, .record-actions a:hover { background: #dce7db; }
.record-actions button[aria-pressed="true"] { background: #d0ddcb; }
.record-actions button:disabled { opacity: .45; cursor: not-allowed; }
.record-depth { margin-top: 1rem; border-top: 1px solid #c9d6c9; border-bottom: 1px solid #c9d6c9; padding: .65rem 0; }
.record-depth > summary { cursor: pointer; font-weight: 700; color: #315440; font-size: .79rem; }
.record-depth > div { padding: .75rem .2rem .35rem; }
.citation-meta { font-size: .73rem; color: #6a7a6d; margin-top: .2rem; }
.claim-review-leads { border-top: 1px solid var(--line); margin: 1.4rem 0; }
.claim-review-leads small { display: block; font-size: .72rem; color: var(--muted); }
.pagination { display: flex; justify-content: center; align-items: center; gap: .7rem; margin-top: 2rem; font-size: .78rem; }
.pagination button { border: 1px solid #a9bbae; padding: .7rem 1rem; color: var(--ink); background: transparent; }
.pagination button:disabled { opacity: .4; }
.empty { padding: 2rem 0; color: var(--muted); }
.catalog-integrity { color: var(--muted); font-size: .72rem; max-width: 800px; margin-top: 2rem; }
.catalog-integrity span { color: var(--highlight); margin-right: .4rem; }
.comparison-tools { padding: .7rem 1rem; margin: .5rem 0 1rem; background: #e3ece1; }
.public-comparison-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.public-comparison-toolbar p { margin: 0; font-size: .77rem; }
.public-comparison-toolbar button { border: 0; background: transparent; text-decoration: underline; color: #315340; }
.public-comparison { margin: 1rem 0; border: 1px solid var(--line); padding: 1.2rem; background: var(--surface); }
.public-comparison h2 { font: 400 2rem 'DM Serif Display', Georgia, serif; }
.public-comparison > p { max-width: 700px; color: var(--muted); font-size: .8rem; }
.comparison-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.comparison-card { min-width: 0; background: var(--surface); padding: 1.1rem; overflow-wrap: anywhere; }
.comparison-card h3 { font: 400 1.5rem 'DM Serif Display', Georgia, serif; }
.comparison-card p, .comparison-card li, .comparison-card dd { font-size: .79rem; }
.comparison-card h4 { margin: 1.2rem 0 .25rem; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.comparison-card ul { padding-left: 1.2rem; }
.comparison-citations small { display: block; font-size: .7rem; color: var(--muted); }

/* Secondary experiences exist, but are no longer the homepage. */
.secondary-tools { padding-top: 1rem; padding-bottom: clamp(4rem, 7vw, 7rem); }
.section-divider { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.section-divider span { font-size: .65rem; color: var(--muted); letter-spacing: .1em; font-weight: 700; }
.section-divider h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.secondary-tool { scroll-margin-top: 100px; }
.secondary-tool > details { border-bottom: 1px solid var(--line); }
.secondary-tool > details > summary { display: grid; grid-template-columns: 48px 1fr 34px; gap: 1rem;
  align-items: center; list-style: none; cursor: pointer; padding: 1.7rem .25rem; }
.secondary-tool > details > summary::-webkit-details-marker { display: none; }
.tool-index { font-size: .7rem; color: var(--highlight); font-weight: 700; }
.tool-title { display: flex; flex-direction: column; gap: .35rem; }
.tool-title strong { font: 400 clamp(1.36rem, 2.2vw, 1.75rem) 'DM Serif Display', Georgia, serif; }
.tool-title small { color: var(--muted); font-size: .76rem; }
.tool-toggle { text-align: right; font-size: 1.4rem; color: #6a816e; }
.secondary-tool details[open] > summary .tool-toggle { transform: rotate(45deg); }
.secondary-tool-body { padding: 0 0 2.5rem; }
.tool-caveat { color: var(--muted); max-width: 740px; font-size: .8rem; line-height: 1.6; margin: 0 0 1.3rem; }
#discovery-status { color: var(--muted); font-size: .78rem; margin-bottom: .75rem; }
#discovery-choices:focus, #discovery-stage:focus { outline-offset: 5px; }
.discovery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.discovery-choice, .discovery-choice-wild { min-height: 195px; background: var(--surface); color: var(--ink); border: 0; padding: 1.2rem; gap: .3rem; }
.discovery-choice:hover { background: #ebf0e9; transform: none; box-shadow: none; }
.discovery-choice::before { display: none; }
.discovery-choice-number { font-size: .6rem; }
.discovery-choice-glyph { font-size: 1.1rem; margin: 0; }
.discovery-choice strong { font: 400 1.5rem/1.12 'DM Serif Display', Georgia, serif; }
.discovery-choice-description { font-size: .76rem; }
.discovery-choice-action { font-size: .68rem; padding-top: .65rem; }
.discovery-choice-wild { grid-column: span 1; display: flex; }
.discovery-choice-wild .discovery-choice-glyph { position: static; }
.discovery-choice-wild .discovery-choice-number, .discovery-choice-wild strong,
.discovery-choice-wild .discovery-choice-description, .discovery-choice-wild .discovery-choice-action { color: inherit; }
.discovery-stage { margin-top: 1.5rem; border-color: var(--line); }
.discovery-stage-grid { grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr); }
.discovery-stage .discovery-reveal { padding: 1.4rem; }
.discovery-stage .discovery-reveal h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.discovery-stage .discovery-scene { min-height: 350px; }
.atlas-section { background: none; padding: 0; color: inherit; border: 0; }
.atlas-section .atlas-explorer { margin: 0; }
.atlas-section .atlas-status { color: #c0d8c5; }

.editorial-note { display: flex; gap: 1rem; align-items: start; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); }
.editorial-note > span { color: var(--highlight); font-size: 1.4rem; }
.editorial-note p { max-width: 850px; color: var(--muted); margin: 0; font-size: .8rem; line-height: 1.65; }
.editorial-note strong { color: var(--ink); }
.editorial-note a { font-weight: 700; text-underline-offset: 3px; }
footer { background: #e9ede6; padding: 2.75rem 32px 1.5rem; border-top: 1px solid var(--line); }
.footer-inner, .footer-small { max-width: var(--content); margin: auto; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-inner .brand { font-size: 1.2rem; }
.footer-inner p { color: var(--muted); font-size: .77rem; margin: .3rem 0 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: start; }
.footer-inner nav a { font-size: .77rem; text-decoration: none; font-weight: 600; }
.footer-small { color: #52665a; font-size: .59rem; letter-spacing: .1em; border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 2.5rem; }

@media (max-width: 760px) {
  .site-header { height: auto; min-height: 66px; padding: .9rem 20px; flex-wrap: wrap; }
  .brand { font-size: 1.2rem; }
  .brand-suffix { display: none; }
  .site-header nav { gap: .85rem; }
  .site-header nav a { font-size: .7rem; }
  .hero { padding: 4rem 20px 0; }
  .section-wrap { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(3.55rem, 12vw, 6rem); }
  .hero-prompts { margin-top: 3rem; }
  .catalog-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .catalog-controls { flex-wrap: wrap; }
  .advanced-filters { flex: 1 1 42%; }
  .advanced-grid { position: static; margin: 0; width: 100%; box-shadow: none; grid-template-columns: 1fr; padding: 1rem; }
  .catalog-controls > label { flex: 1 1 38%; width: auto; }
  .record > summary { grid-template-columns: 1fr auto; }
  .record-kind { grid-column: 1; grid-row: 2; width: fit-content; }
  .record-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .comparison-columns { grid-template-columns: 1fr; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-choice-wild { grid-column: span 2; }
}
@media (max-width: 510px) {
  .site-header nav { width: 100%; justify-content: space-between; }
  .site-header nav a { font-size: .72rem; }
  .site-header .nav-repo { display: none; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 4.2rem); }
  .hero-intro { font-size: 1rem; margin-bottom: 1.8rem; }
  .hero-search-field { min-height: 57px; }
  .hero-search-field button { padding: 1rem .8rem; font-size: .75rem; }
  .hero-search-field input { font-size: .84rem; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-grid a { min-height: 112px; }
  .hero-prompts-head > span { display: none; }
  .catalog-section { padding-top: 4rem; }
  .catalog-meta > span { display: none; }
  .record-content { padding: 1rem; }
  .record-summary-text { max-width: 260px; }
  .section-divider { flex-direction: column; gap: .8rem; }
  .secondary-tool > details > summary { grid-template-columns: 24px 1fr 24px; gap: .75rem; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-choice-wild { grid-column: span 1; }
  .discovery-stage-grid { grid-template-columns: 1fr; }
  .discovery-stage .discovery-scene { min-height: 180px; }
  .footer-inner nav { flex-direction: column; gap: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
