:root {
  --ink: #182124;
  --muted: #58676b;
  --paper: #f8faf8;
  --white: #ffffff;
  --line: #dbe3df;
  --line-dark: #c3cfca;
  --accent: #176b63;
  --accent-dark: #0d4b46;
  --accent-soft: #e3f1ed;
  --navy: #17313a;
  --sand: #f1eee6;
  --max: 1180px;
  --measure: 760px;
  --radius: 6px;
  --shadow: 0 16px 40px rgba(21, 48, 52, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #df9f34; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.025em; }
h1 { margin: 0 0 1.15rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 7vw, 5.7rem); font-weight: 500; }
h2 { margin: 3.2rem 0 1rem; font: 500 clamp(1.65rem, 3vw, 2.35rem)/1.2 Georgia, "Times New Roman", serif; }
h3 { margin: 2rem 0 .65rem; font-size: 1.13rem; letter-spacing: 0; }
p, ul, ol { margin-top: 0; }
main { min-height: 55vh; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; color: #fff; background: var(--navy); }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(248,250,248,.97); }
.header-inner { display: flex; align-items: center; gap: 2rem; width: min(calc(100% - 2.2rem), 1360px); min-height: 88px; margin: auto; }
.brand { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; color: var(--navy); font-weight: 750; line-height: 1.05; text-decoration: none; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-size: .66rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { display: block; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 6px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; flex: 1; }
.primary-nav a { padding: .55rem .54rem; border-radius: 4px; color: #34484d; font-size: .76rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav-toggle { display: none; margin-left: auto; padding: .55rem .8rem; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--white); font: inherit; font-size: .9rem; }
.breadcrumbs { width: min(calc(100% - 2.2rem), var(--max)); margin: 1.25rem auto 0; font-size: .82rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; list-style: none; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: .55rem; color: #93a19d; }
.breadcrumbs a { color: var(--muted); }
.page, .hero-inner, .section-inner { width: min(calc(100% - 2.2rem), var(--max)); margin-inline: auto; }
.page { padding: 3rem 0 6rem; }
.prose { max-width: var(--measure); }
.page-header { max-width: 900px; margin-bottom: 2.8rem; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.lede { color: #354b50; font: 400 clamp(1.16rem, 2.2vw, 1.45rem)/1.55 Georgia, "Times New Roman", serif; }
.eyebrow { display: block; margin-bottom: .85rem; color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(130deg, #f8faf8 0%, #f8faf8 61%, #e6f1ed 61%, #edf4f0 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; min-height: 620px; padding: 5.5rem 0; }
.hero-copy p { max-width: 750px; color: #35484c; font: 400 clamp(1.2rem, 2.5vw, 1.6rem)/1.5 Georgia, "Times New Roman", serif; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border: 1px solid var(--accent); border-radius: 4px; color: #fff; background: var(--accent); font-size: .9rem; font-weight: 750; text-decoration: none; }
.button:hover { color: #fff; background: var(--accent-dark); }
.button.secondary { color: var(--accent-dark); background: transparent; }
.button.secondary:hover { background: var(--accent-soft); }
.hero-aside { position: relative; padding: 2rem; border: 1px solid rgba(23,107,99,.25); border-radius: var(--radius); background: rgba(255,255,255,.7); box-shadow: var(--shadow); }
.hero-aside::before { content: ''; position: absolute; top: -16px; left: 28px; width: 56px; height: 3px; background: var(--accent); }
.hero-aside h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.hero-aside dl { margin: 0; }
.hero-aside dt { margin-top: 1.1rem; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-aside dd { margin: .25rem 0 0; }
.definition-band { padding: 5rem 0; color: #fff; background: var(--navy); }
.definition-band .eyebrow { color: #8ed0c5; }
.definition-band h2 { margin: 0 0 1.3rem; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
.canonical-definition { max-width: 990px; font: 400 clamp(1.35rem, 3vw, 2rem)/1.45 Georgia, "Times New Roman", serif; }
.simple-definition { max-width: 850px; margin-top: 1.7rem; color: #cbd8d8; }
.section { padding: 5.5rem 0; }
.section.alt { border-block: 1px solid var(--line); background: var(--white); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { min-height: 220px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card h3 { margin-top: .3rem; font: 500 1.45rem Georgia, serif; }
.card p { color: var(--muted); font-size: .94rem; }
.card a.more { font-size: .86rem; font-weight: 750; }
.number { color: #88a29c; font: 700 .75rem system-ui; letter-spacing: .08em; }
.definition-box, .note, .status-panel { margin: 1.8rem 0; padding: 1.3rem 1.45rem; border-left: 4px solid var(--accent); background: var(--accent-soft); }
.definition-box p:last-child, .note p:last-child, .status-panel p:last-child { margin-bottom: 0; }
.status-panel { border: 1px solid var(--line); border-left-width: 4px; background: var(--white); }
.status-badge { display: inline-flex; align-items: center; padding: .35rem .65rem; border: 1px solid currentColor; border-radius: 999px; color: var(--accent-dark); background: #fff; font-size: .73rem; font-weight: 800; letter-spacing: .03em; }
.status-established-concept { color: #2b5f3b; }
.status-emerging-concept { color: #7a5518; }
.status-proposed-term { color: #62488a; }
.status-hypothesis { color: #9b4b2f; }
.status-speculative { color: #6e5d63; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.sidebar { position: sticky; top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.sidebar h2 { margin: 0 0 .8rem; font: 700 .72rem system-ui; letter-spacing: .1em; text-transform: uppercase; }
.sidebar a { display: block; padding: .32rem 0; font-size: .88rem; }
.metadata-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2.5rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.metadata-list div { padding: 1rem; background: var(--white); }
.metadata-list dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.metadata-list dd { margin: .35rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.term-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.term-card h2, .term-card h3 { margin: .65rem 0 .5rem; font: 500 1.38rem Georgia, serif; }
.term-card p { margin-bottom: .7rem; color: var(--muted); font-size: .9rem; }
.alphabet { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5rem 0 2rem; }
.alphabet a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-size: .82rem; font-weight: 800; text-decoration: none; }
.taxonomy-tree { max-width: 900px; padding: clamp(1.3rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.taxonomy-root { margin-bottom: 1.5rem; padding: 1.2rem; color: #fff; background: var(--navy); }
.taxonomy-root h2 { margin: 0; color: #fff; font-size: 1.6rem; }
.taxonomy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.taxonomy-branch { padding: 1rem; border-left: 3px solid var(--accent); background: var(--paper); }
.taxonomy-branch h3 { margin-top: 0; }
.comparison-table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .9rem; }
.comparison-table th, .comparison-table td { padding: .9rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--navy); background: var(--accent-soft); }
.source-list { padding-left: 1.3rem; }
.source-list li { margin-bottom: .8rem; }
.citation-tabs { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: .84rem; overflow-wrap: anywhere; }
.faq-item { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 .7rem; font: 500 1.45rem Georgia, serif; }
.search-form { display: flex; gap: .6rem; max-width: 780px; margin: 1.5rem 0 2.5rem; }
input, textarea, select { width: 100%; min-height: 46px; padding: .7rem .8rem; border: 1px solid var(--line-dark); border-radius: 4px; color: var(--ink); background: var(--white); font: inherit; }
textarea { min-height: 170px; resize: vertical; }
.search-form button { flex: 0 0 auto; border: 0; cursor: pointer; }
.search-result { max-width: 820px; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.search-result h2 { margin: .3rem 0; font-size: 1.5rem; }
.search-result p { color: var(--muted); }
.empty-state { max-width: 720px; padding: 2rem; border: 1px solid var(--line); background: var(--white); }
.results-count { color: var(--muted); }
.filter-row { display: flex; gap: 1rem; align-items: center; max-width: 520px; margin: 1.5rem 0 2rem; }
.filter-row label { flex: 0 0 auto; font-weight: 750; }
.bibliography-item { max-width: 900px; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.bibliography-item h2 { margin: 0 0 .45rem; font: 500 1.35rem Georgia, serif; }
.bibliography-item p { margin-bottom: .45rem; }
.source-meta { color: var(--muted); font-size: .85rem; }
.contact-layout { gap: clamp(2rem, 5vw, 4rem); }
.contact-card { min-width: 0; padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid #2c5958; border-radius: var(--radius); color: #e4efec; background: linear-gradient(135deg, #17313a, #164f49); box-shadow: var(--shadow); }
.contact-card-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.8rem; color: #a9d9cb; font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-card h2 { max-width: 490px; margin: 0 0 1rem; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.contact-card > p { max-width: 480px; }
.contact-address { display: block; width: fit-content; max-width: 100%; margin: 1.7rem 0; color: #fff; font-size: clamp(1rem, 1.8vw, 1.4rem); font-weight: 600; overflow-wrap: anywhere; text-decoration-color: #83bdb2; text-underline-offset: .3em; }
.contact-address:hover { color: #b9e8da; }
.contact-email-button { gap: 1.5rem; border-color: #e8f2ed; color: #143d38; background: #e8f2ed; }
.contact-email-button:hover { border-color: #fff; color: #143d38; background: #fff; }
.contact-card .contact-card-hint { margin: 1rem 0 0; color: #bdd4cd; font-size: .78rem; }
.contact-guidance { padding-top: .4rem; }
.contact-guidance h2 { font-size: 1.65rem; }
.contact-guidance p { color: var(--muted); font-size: .94rem; }
.contact-guidance .source-meta { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.taxonomy-root a { color: #fff; }
.first-heading { margin-top: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.prose, .term-card, .card { min-width: 0; overflow-wrap: break-word; }
.callout { display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center; margin-top: 4rem; padding: 2rem; color: #fff; background: var(--navy); }
.callout h2 { margin: 0 0 .5rem; color: #fff; }
.callout p { margin: 0; color: #cbd8d8; }
.site-footer { padding: 4rem 0 0; color: #c9d5d5; background: #10272e; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; width: min(calc(100% - 2.2rem), var(--max)); margin: auto; }
.site-footer h2 { margin: 0 0 .8rem; color: #fff; font: 800 .7rem system-ui; letter-spacing: .11em; text-transform: uppercase; }
.site-footer a { display: block; margin-bottom: .4rem; color: #d7e4e2; font-size: .86rem; }
.footer-brand { font: 500 1.35rem Georgia, serif !important; text-decoration: none; }
.site-footer p { max-width: 420px; font-size: .88rem; }
.footer-status { color: #90aaa8; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #69b5a9; }
.footer-bottom { margin-top: 3rem; padding: 1rem max(1.1rem, calc((100% - var(--max)) / 2)); border-top: 1px solid #29434a; color: #8fa3a5; font-size: .75rem; }

@media (max-width: 1120px) {
  .header-inner { flex-wrap: wrap; padding-block: 1rem; }
  .js .nav-toggle { display: block; }
  .primary-nav { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .js .primary-nav { display: none; position: absolute; top: 100%; right: 1.1rem; left: 1.1rem; flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
  .js .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .7rem; font-size: .9rem; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero-inner, .section-heading, .two-col { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding: 4rem 0; }
  .hero { background: linear-gradient(170deg, #f8faf8 0%, #f8faf8 72%, #e6f1ed 72%); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand small { display: none; }
  .hero-actions, .search-form, .filter-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .card-grid, .term-grid, .taxonomy-grid, .metadata-list { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .comparison-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
