/* ===========================================================
   Randy C. Hoover — research site
   "Contour" — light, editorial, journal-like.
   Bone-white ground, ink-black text, a single pine-teal accent;
   ochre reserved for contour-line motifs and small kickers.
   =========================================================== */

:root {
  --paper: #f6f7f5;
  --paper-2: #eef0ec;
  --surface: #ffffff;
  --ink: #1b2320;
  --ink-soft: #5b6960;
  --ink-faint: #8b968f;
  --line: #dbe0da;
  --line-strong: #c3ccc4;
  --teal: #1f6f6b;
  --teal-dark: #164f4c;
  --teal-soft: #e3efed;
  --ochre: #a67c2e;
  --ochre-soft: #f3ead6;
  --max: 1080px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header / nav ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  height: 46px;
  width: auto;
  display: block;
}

.brand small {
  font-family: "Public Sans", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand:hover { text-decoration: none; color: var(--ink); }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

nav.primary-nav a:hover {
  color: var(--ink);
  text-decoration: none;
  background: var(--paper-2);
}

nav.primary-nav a.active {
  color: var(--teal);
  background: var(--teal-soft);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--paper);
  padding: 36px 0 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  opacity: 0.6;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-areas:
    "intro   photo"
    "content photo";
  column-gap: 44px;
  row-gap: 0;
  align-items: center;
}

.hero-intro { grid-area: intro; }
.hero-content { grid-area: content; }

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--ochre);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 { margin-bottom: 8px; }

.hero .role {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero .contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.hero .contact-list li { padding: 3px 0; }
.hero .contact-list a { color: var(--ink); font-weight: 500; }
.hero .contact-list a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--teal);
}

.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); text-decoration: none; color: #fff; }

.btn.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink-faint); color: var(--ink); }

.hero-photo {
  grid-area: photo;
  position: relative;
}

.hero-photo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.hero-photo-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 72px;
  height: 72px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: contain;
}

/* ---------- sections ---------- */

main { display: block; }

.section { padding: 54px 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 30px; }

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ochre);
  margin-bottom: 8px;
  display: block;
}

.section-head p { max-width: 62ch; }

.bio p:last-child { margin-bottom: 0; }

.interests-line {
  border-left: 3px solid var(--teal);
  background: var(--teal-soft);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 1.02rem;
}

/* ---------- news timeline ---------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li { position: relative; padding: 0 0 26px 28px; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--teal);
}

.timeline .date {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ochre);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.timeline .entry { color: var(--ink); margin: 0; }

.more-news summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal);
  margin: 4px 0 24px;
  list-style: none;
}

.more-news summary::-webkit-details-marker { display: none; }
.more-news summary:hover { color: var(--teal-dark); }

/* ---------- research cards ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.project-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 26px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.project-icon {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
}

.project-icon svg { width: 50px; height: 50px; color: var(--teal); }

.project-card h3 { margin-bottom: 8px; }

.project-card p:last-child { margin-bottom: 0; }

.project-card .placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ---------- people ---------- */

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

.person-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.avatar {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.person-card h4 {
  font-family: "Newsreader", serif;
  color: var(--ink);
  font-size: 1.04rem;
  margin: 0 0 3px;
}

.person-role {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.person-detail { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

.alumni-list { border-top: 1px solid var(--line); }

.alumni-row {
  display: grid;
  grid-template-columns: 42px 1.4fr 2fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.alumni-row .avatar { width: 38px; height: 38px; font-size: 0.82rem; }

.alumni-row h4 {
  font-family: "Newsreader", serif;
  color: var(--ink);
  font-size: 1rem;
  margin: 0 0 2px;
}

.alumni-row .person-role { margin-bottom: 0; }
.alumni-row .person-detail { font-size: 0.86rem; }

/* ---------- publications ---------- */

.pub-year { margin-top: 40px; }
.pub-year:first-of-type { margin-top: 0; }

.pub-year h2 {
  font-size: 1.28rem;
  border-bottom: 2px solid var(--ochre-soft);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.pub-list { list-style: none; margin: 0; padding: 0; }

.pub-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.97rem;
}

.pub-list li:last-child { border-bottom: none; }

.pub-list .venue { color: var(--ink-soft); font-style: italic; }

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 34px 0;
  margin-top: 0;
  font-size: 0.86rem;
}

footer.site-footer a { color: var(--ink); }
footer.site-footer a:hover { color: var(--teal); }

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- table-scroll (mobile-safe wide content) ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "photo"
      "content";
    row-gap: 20px;
  }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-icon { width: 68px; height: 68px; }
  .project-icon svg { width: 36px; height: 36px; }
  .people-grid { grid-template-columns: 1fr; }
  .alumni-row { grid-template-columns: 38px 1fr; }
  .alumni-row .person-detail { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header .wrap { height: 60px; }
  .brand small { display: none; }
  nav.primary-nav ul { gap: 0; }
  nav.primary-nav a { padding: 7px 9px; font-size: 0.85rem; }
  .section { padding: 40px 0; }
  footer.site-footer .wrap { flex-direction: column; }
}
