:root {
  --color-text: #1f2933;
  --color-muted: #5b6470;
  --color-accent: #2b4571;
  --color-accent-strong: #1a3055;
  --color-link: #2b4571;
  --color-link-hover: #b93030;
  --color-rule: #d8dde4;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fa;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --max-width-prose: 40rem;
  --max-width-wide: 64rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* ---- a11y skip link ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; color: #fff; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-accent-strong);
  line-height: 1.25;
  margin: 2em 0 0.6em;
}
h1 {
  font-size: 1.4rem;
  margin-top: 0;
  letter-spacing: 0.12em;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.4em;
}
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }

/* ---- site header ---- */
.site-header {
  background: var(--color-bg-soft);
}
.site-header__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header__brand { display: block; text-decoration: none; color: inherit; }
.site-header__logo {
  display: block;
  width: 240px;
  height: auto;
  max-width: 100%;
}
.site-nav {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  border-top: 1px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
}
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav__link {
  display: inline-block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--color-link-hover); }
.site-nav__link--current {
  border-bottom-color: var(--color-link-hover);
  color: var(--color-accent-strong);
}

/* ---- main content ---- */
.content {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.content--home {
  max-width: var(--max-width-wide);
  position: relative;
}
.content--home::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  width: 240px;
  height: 80%;
  background-image: url("/images/vitae-symbol.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.content--home > * { position: relative; z-index: 1; }

.content p, .content li { margin-block: 0.6em; }
.content ul { padding-left: 1.25rem; }

.content blockquote {
  border-left: 3px solid var(--color-accent);
  margin: 1.5em 0;
  padding: 0.25em 0 0.25em 1em;
  color: var(--color-muted);
  font-style: italic;
  background: var(--color-bg-soft);
}

.aims {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}
.aims li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  border-top: 1px solid var(--color-rule);
}
.aims li:first-child { border-top: 0; }
.aims li::before {
  content: "◆";
  color: var(--color-link-hover);
  position: absolute;
  left: 0;
  top: 0.6rem;
  font-size: 0.85rem;
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--color-rule);
  margin-top: 3rem;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}
.site-footer a { color: var(--color-muted); }
.site-footer p {
  margin: 0 auto;
  max-width: var(--max-width-wide);
  line-height: 1.8;
}

/* ---- homepage update notice (user-edited copy) ---- */
.site-notice {
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-link-hover);
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ---- mission page section dividers (item 3) ---- */
.content h2[id^="section"] {
  border-top: 1px solid var(--color-rule);
  padding-top: 1.5em;
  margin-top: 2.75em;
}

/* ---- goals page phase headers (Round 2 item 9b) ---- */
.page-goals h2 {
  border-top: 1px solid var(--color-rule);
  padding-top: 1.25em;
  margin-top: 2.5em;
  letter-spacing: 0.03em;
}
.page-goals h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 2em;
}

/* ---- section TOC panel (mission page) ---- */
.section-toc {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-soft);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.section-toc__label {
  font-weight: 600;
  color: var(--color-accent-strong);
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-toc ol { margin: 0; padding-left: 1.25rem; }
.section-toc li { margin: 0.2em 0; }

/* ---- hover anchor affordance for subheadings with IDs ---- */
.content h2[id], .content h3[id] { position: relative; }
.content h2[id]::before, .content h3[id]::before {
  content: "#";
  position: absolute;
  left: -0.9em;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: normal;
}
.content h2[id]:hover::before, .content h3[id]:hover::before { opacity: 0.55; }

/* ---- officers grid (about page) ---- */
.officers {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.officers dt { font-weight: 600; }
.officers dd { margin: 0; color: var(--color-muted); }

/* ---- mission page citation de-emphasis (item 6) ---- */
.content a[href*="pubmed.ncbi.nlm.nih.gov"] {
  color: var(--color-muted);
  text-decoration: underline dotted;
}
.content a[href*="pubmed.ncbi.nlm.nih.gov"]:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

@media (max-width: 40rem) {
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .site-header__logo { width: 200px; }
  body { font-size: 16px; }
  .officers { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .officers dt { margin-top: 0.6rem; }
  .officers dt:first-of-type { margin-top: 0; }
  .content h2[id]::before, .content h3[id]::before { display: none; }
}
