/* Renaissance Research Institute — site styles */
:root {
  --bg: #fafbfc;
  --bg-alt: #f1f4f7;
  --ink: #1f2a3a;        /* body text, 13.6:1 on white */
  --ink-soft: #4b5563;   /* secondary text, 7.5:1 */
  --navy: #14213d;       /* header */
  --navy-text: #e8edf3;
  --accent: #0f6e6e;     /* teal: 6.1:1 on white */
  --accent-dark: #0b5555;
  --rule: #d5dbe3;
  --ph-bg: #fff3a8;
  --ph-border: #a17c00;
  --measure: 70ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  text-wrap: pretty;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; color: var(--navy); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); font-weight: 600; margin-top: 1.8em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.4em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
p, ul, ol, dl { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* Placeholders */
.ph {
  display: inline-block;
  background: var(--ph-bg);
  color: #3b2f00;
  border: 2px dashed var(--ph-border);
  padding: 0.1em 0.45em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  line-height: 1.4;
}
.ph-inline { font-size: 0.7rem; padding: 0.05em 0.35em; vertical-align: middle; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 4px; }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { background: var(--navy); color: var(--navy-text); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.wordmark { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.01em; }
.logo { height: 2.5rem; width: auto; display: block; }
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45);
  padding: 0.55rem 0.9rem; border-radius: 4px; font: inherit; font-size: 1rem; cursor: pointer; min-height: 44px;
}
.nav-toggle:hover { border-color: #fff; }
.nav-toggle-bar { width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; max-width: none; }
.site-nav a { color: var(--navy-text); text-decoration: none; display: inline-block; padding: 0.5rem 0; border-bottom: 2px solid transparent; min-height: 44px; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.site-nav a:focus-visible { outline-color: #fff; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  /* Menu collapses only when JS is available; without JS the links stay visible. */
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 0.5rem; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0; border-bottom: 0; }
}

/* Sections */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 4rem); border-bottom: 1px solid var(--rule); }
.eyebrow { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 1rem; }
.lede { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 2rem; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.page-head h1 { margin-bottom: 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.two-col { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 48rem) { .two-col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; } }
.prose { max-width: var(--measure); }
.note { color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; }
.address { font-style: normal; }

/* Buttons */
.button {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 4px; font-weight: 600; min-height: 44px; line-height: 1.5;
  border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button-secondary { background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--accent); color: #fff; }

/* Figures / portrait placeholders */
.figure, .portrait {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  border: 1px solid var(--rule); border-radius: 4px;
  background: repeating-linear-gradient(135deg, #eef1f5 0 10px, #e6eaef 10px 20px);
}
.figure { aspect-ratio: 4 / 3; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 16rem; }

/* Facts list */
.facts { display: grid; gap: 1rem; }
.facts div { display: grid; gap: 0.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; }
@media (min-width: 48rem) { .facts div { grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; align-items: baseline; } }

/* Profile */
.profile { display: grid; gap: 2rem; margin-bottom: 3.5rem; }
@media (min-width: 48rem) { .profile { grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; } }
.role { color: var(--ink-soft); margin-top: -0.4em; }
.profile ul { padding-left: 1.2rem; }
.profile li { margin-bottom: 0.35em; }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-text); padding-block: 3rem 2.5rem; margin-top: 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe3e3; }
.site-footer a:focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr); gap: 3rem; } }
.footer-name { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal p { margin-bottom: 0.9em; max-width: none; }
.site-footer .ph { color: #3b2f00; }

@media (prefers-reduced-motion: no-preference) {
  a, .button, .nav-toggle { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer nav, .nav-toggle, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* Initials block (in place of a headshot) */
.portrait-initials {
  background: var(--navy); border-color: var(--navy); color: #fff;
  font-size: 3.5rem; font-weight: 600; letter-spacing: 0.04em; aspect-ratio: 1 / 1; max-width: 12rem;
}
.board { padding-left: 1.2rem; }
