/* ==========================================================================
   Julia LaMotte, PhD, HSPP — site styles
   Quiet academic. Warm paper, serif display, sans body, one blue, one rust.
   No gradients. No shadows. Hairline borders only.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------
   Two accents total. Blue = navigation, action, quantity.
   Rust = small uppercase category labels only, never a large area.
   Everything else is warm grey. Do not add a third hue.
   ------------------------------------------------------------------------- */
:root {
  --paper:         oklch(98% 0.006 85);
  --surface:       #ffffff;

  --ink:           oklch(22% 0.01 85);
  --ink-strong:    oklch(20% 0.01 85);
  --ink-body:      oklch(28% 0.012 85);
  --ink-muted:     oklch(35% 0.015 85);
  --ink-soft:      oklch(45% 0.02 85);
  --ink-softer:    oklch(45% 0.015 85);

  --accent:        oklch(35% 0.08 235);
  --accent-hover:  oklch(30% 0.11 235);
  --link:          oklch(38% 0.09 235);
  --rust:          oklch(45% 0.1 40);

  --rule:          oklch(90% 0.008 85);
  --rule-soft:     oklch(93% 0.008 85);
  --border:        oklch(91% 0.008 85);
  --border-strong: oklch(80% 0.01 85);
  --border-hover:  oklch(72% 0.01 85);
  --placeholder:   oklch(93% 0.01 85);
  --selection:     oklch(85% 0.05 235);

  --nav-hover:     oklch(94% 0.008 85);
  --nav-ink:       oklch(32% 0.015 85);
  --header-bg:     oklch(98% 0.006 85 / 0.92);
  --header-rule:   oklch(88% 0.008 85);
  --footer-ink:    oklch(50% 0.015 85);

  --serif: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap:  1120px;
  --gutter: 32px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--selection); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

main { flex: 1; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 7px 0;
  font-size: 13.5px;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; color: #fff; }

/* --- Layout shell --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Sections are separated by a hairline, not by whitespace alone. */
.section       { padding: 8px 0 40px; }
.section-first { padding: 64px 0 24px; }
.section-last  { padding-bottom: 72px; }
.bordered      { border-top: 1px solid var(--rule); padding-top: 40px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-link { font-size: 13.5px; font-weight: 600; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--header-rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
}

/* The wordmark is the home link — there is no "Home" nav item. */
.wordmark {
  display: block;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
}
.wordmark-role {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Seven pills, one line, no wrap. */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.site-nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--nav-ink);
}
.site-nav a:hover { background: var(--nav-hover); color: var(--nav-ink); text-decoration: none; }
.site-nav a.is-active { background: var(--accent); color: #fff; }
.site-nav a.is-active:hover { background: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after  { position: absolute; top: 5px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--footer-ink);
}

/* --- Type ----------------------------------------------------------------- */
h1 { font-size: 36px; }
h2 { font-size: 21px; margin-bottom: 20px; }
.h2-lg { font-size: 26px; margin-bottom: 28px; }
.h2-center { text-align: center; }
h3 { font-size: 19px; margin-bottom: 16px; }
.h1-gap { margin-bottom: 36px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin-bottom: 14px;
}

.intro {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 70ch;
  margin: 16px 0 36px;
}

.summary-line {
  font-size: 15px;
  color: oklch(42% 0.015 85);
  margin-top: 14px;
}

.prose p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-body);
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 11px 20px;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  padding: 10px 19px;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--ink); }

.btn-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-title { font-size: 44px; line-height: 1.1; }
.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-top: 18px;
}

/* --- Portrait ------------------------------------------------------------- */
.portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 14px;
  background: var(--placeholder);
}
.portrait-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.about-portrait .portrait { border-radius: 12px; }

/* --- Stats ---------------------------------------------------------------- */
.stats-section { padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-value {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
  color: var(--accent);
}
.stat-label { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* --- Cards ---------------------------------------------------------------- */
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-tight { gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}
.card:hover { border-color: var(--border-strong); }
.program-card { padding: 24px; }
.grant-card { padding: 18px 20px; }

.card-year {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
  margin-bottom: 8px;
}
.grant-card .card-year { font-size: 12px; text-transform: none; letter-spacing: 0; }

.card-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--ink-strong);
  margin: 0 0 6px;
}
.program-card .card-title { font-size: 16px; }
.grant-card .card-title { font-size: 14px; }

.card-body { font-size: 13.5px; line-height: 1.5; color: var(--ink-softer); }
.program-card .card-body { font-size: 14px; line-height: 1.6; color: oklch(42% 0.015 85); }
.grant-card .card-body { font-size: 13px; }

/* --- List rows ------------------------------------------------------------
   A row is a grid: fixed meta column + 1fr. The meta width varies by list.
   ------------------------------------------------------------------------- */
.list > .row {
  display: grid;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.list > .row:last-child { border-bottom: 0; }

.row-narrow { grid-template-columns: 70px 1fr; }

/* Rows whose meta column holds multiple stacked years: center the award
   text between them instead of aligning to the first year's baseline. */
.row-meta-multi { align-items: center; }
.row-mid    { grid-template-columns: 110px 1fr; padding: 13px 0; }
.row-wide   { grid-template-columns: 100px 1fr; }
.media-row  { padding: 12px 0; }

.row-meta {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}
.row-wide .row-meta { font-size: 12.5px; }

.row-text { font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.row-wide .row-text { font-size: 14.5px; }
.media-row .row-text { font-size: 13.5px; }

/* Stacked rows: years above title above place. Used in About. */
.list > .row-stack {
  display: block;
  padding: 12px 0;
}
.row-stack .row-meta { display: block; font-size: 12.5px; }
.row-stack .row-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-strong);
  margin-top: 3px;
}
.row-stack .row-sub {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-softer);
  margin-top: 2px;
}

/* Clinical Experience keeps a fixed meta column beside the stacked title. */
.list-wide-meta > .row-stack {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 16px 0;
}
.list-wide-meta .row-meta { margin-top: 1px; }
.list-wide-meta .row-title { margin-top: 0; }

/* Book chapters / in-submission entries. */
.ref {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.ref:last-child { border-bottom: 0; }

/* --- Publications --------------------------------------------------------- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: pub;
}
.citation {
  counter-increment: pub;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-body);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-soft);
  overflow-wrap: anywhere;
}
.citation::before {
  content: counter(pub) ".";
  font-weight: 600;
  color: var(--ink-soft);
  margin-right: 8px;
}
.citation:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- Progressive disclosure ----------------------------------------------
   Without JS every list renders complete and the toggle is hidden, so the
   page never depends on script to show its content.
   ------------------------------------------------------------------------- */
html:not(.js) .list-toggle { display: none; }
html.js [data-collapsible]:not([data-expanded]) .is-extra { display: none; }
.list-toggle { margin-top: 20px; }

/* --- Two-column blocks ---------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  margin-top: 28px;
}

/* --- Mentorship roster ---------------------------------------------------- */
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.roster-item {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-body);
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.roster-years { font-weight: 600; color: var(--ink-soft); }

/* --- Contact -------------------------------------------------------------- */
/* The measure is capped, but the block still starts on the content column. */
.contact-section { padding-bottom: 80px; }
.contact-block {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  font-style: normal;
  color: var(--ink-body);
}
.contact-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

/* ==========================================================================
   Tablet — 640 to 1023px
   ========================================================================== */
@media (max-width: 1023px) {
  :root { --gutter: 24px; }

  .nav-toggle { display: flex; }

  /* Nav collapses to a full-width panel below the header. */
  .site-header { position: sticky; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--header-rule);
  }
  .site-nav.is-open { display: block; }
  .header-row { position: relative; }
  .site-nav ul {
    display: block;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 4px var(--gutter) 12px;
  }
  .site-nav li + li { border-top: 1px solid var(--rule-soft); }
  .site-nav a {
    padding: 14px 0;
    font-size: 16px;
    border-radius: 0;
    background: none;
  }
  .site-nav a:hover { background: none; }
  .site-nav a.is-active,
  .site-nav a.is-active:hover { background: none; color: var(--accent); }

  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { max-width: 420px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }

  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 > :last-child { grid-column: 1 / -1; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-portrait { max-width: 280px; }

  .roster { grid-template-columns: 1fr; gap: 0; }

}

/* ==========================================================================
   Phone — under 640px
   ========================================================================== */
@media (max-width: 639px) {
  :root { --gutter: 20px; }

  .hero-title { font-size: 32px; }
  h1 { font-size: 27px; }
  h2, .h2-lg { font-size: 20px; }
  .hero-lede { font-size: 16px; }

  .section       { padding: 8px 0 32px; }
  .section-first { padding: 40px 0 24px; }
  .section-last  { padding-bottom: 48px; }
  .bordered      { padding-top: 32px; }
  .hero          { padding: 40px 0 32px; }
  .stats-section { padding: 36px 0; }

  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-3 > :last-child { grid-column: auto; }

  .hero-portrait, .about-portrait { max-width: 320px; }

  /* Rows lose the fixed meta column; the year moves above the text. */
  .list > .row,
  .list-wide-meta > .row-stack {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .list > .row .row-meta,
  .list-wide-meta > .row-stack .row-meta {
    display: block;
    font-size: 12.5px;
    margin-bottom: 4px;
  }

  .btn-row .btn { flex: 1 1 auto; text-align: center; padding-top: 13px; padding-bottom: 13px; }
  .list-toggle { width: 100%; padding-top: 13px; padding-bottom: 13px; }
}

/* Under 360px the subtitle would wrap badly; the name never drops. */
@media (max-width: 359px) {
  .wordmark-role { display: none; }
}

/* ==========================================================================
   Print — the site replaces the PDF, but make a printed page behave.
   ========================================================================== */
@media print {
  .site-header, .site-footer, .skip-link, .list-toggle, .nav-toggle { display: none !important; }
  html.js [data-collapsible] .is-extra { display: revert !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero-grid, .about-grid, .two-col, .card-grid, .stats-grid, .roster { grid-template-columns: 1fr; }
  .card { border: 1px solid #ccc; }
  a { color: #000; }
}
