:root {
  --bg: #ffffff;
  --text: #202020;
  --muted: #686868;
  --line: #e7e7e7;
  --accent: #2457c5;
  --soft: #f6f6f6;
  --content: 760px;
}

:root[data-theme='dark'] {
  --bg: #111111;
  --text: #eeeeee;
  --muted: #aaaaaa;
  --line: #2c2c2c;
  --accent: #8aafff;
  --soft: #1a1a1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
code { font-size: .9em; }

.container {
  width: min(calc(100% - 64px), var(--content));
  margin-inline: auto;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 7px 9px;
  background: var(--bg);
  border: 1px solid var(--line);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  color: var(--text);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: .88rem;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn,
.menu-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover,
.menu-btn:hover { background: var(--soft); color: var(--text); }
.menu-btn { display: none; }

/* Typography */
.eyebrow,
.kicker {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
h1, h2, h3 {
  color: var(--text);
  font-weight: 650;
}
h1 {
  margin: 7px 0 14px;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: -.025em;
}
h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -.015em;
}
h3 {
  margin: 3px 0 6px;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
}
p { margin-top: 0; }
.muted { color: var(--muted); }

/* Home */
.hero { padding: 52px 0 38px; }
.hero-grid { display: block; }
.hero-card { display: none; }
.hero-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 1rem;
}
.hero-copy strong { color: var(--text); font-weight: 600; }
.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: .92rem;
}
.btn:hover { text-decoration: underline; }
.btn-primary,
.btn-secondary { background: transparent; color: var(--accent); border: 0; }

.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: block;
  margin-bottom: 22px;
}
.section-head .eyebrow { margin-bottom: 4px; }
.section-head p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid-3,
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-block; margin-top: 7px; font-size: .9rem; font-weight: 600; }

/* Keep the summary feature, but make it plain text rather than cards. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 0; background: transparent; border: 0; }
.stat strong { display: block; font-size: .95rem; font-weight: 650; }
.stat span { display: block; margin-top: 2px; color: var(--muted); font-size: .78rem; line-height: 1.35; }

.timeline { display: grid; }
.timeline-item {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline-date { color: var(--muted); font-size: .86rem; }
.timeline-body h3 { margin: 0 0 3px; }
.timeline-body p { margin: 0; color: var(--muted); }

.band {
  padding: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 0;
}
.band h2 { margin-bottom: 8px; }
.band p { max-width: 690px; margin: 0; color: var(--muted); }
.band .btn { margin-top: 10px; }

/* Interior pages */
.page-hero { padding: 48px 0 30px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.research-layout { display: block; }
.sticky-card {
  position: static;
  margin-bottom: 30px;
  padding: 0;
  border: 0;
}
.list-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.list-clean li {
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: .88rem;
}
.research-layout > div {
  display: grid;
  gap: 24px;
}
.research-layout > div > div[style] { display: none !important; }

/* Publications */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 26px;
}
.search {
  flex: 1 0 100%;
  min-height: 38px;
  margin-bottom: 3px;
  padding: 0 10px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
}
.search:focus { border-color: var(--muted); }
.chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  cursor: pointer;
}
.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.pub-list { display: grid; gap: 0; }
.pub-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.pub-card:first-child { padding-top: 0; }
.pub-card:last-child { border-bottom: 0; }
.pub-year { font-size: .92rem; font-weight: 650; }
.pub-type { margin-top: 1px; color: var(--muted); font-size: .72rem; }
.pub-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.42;
  letter-spacing: 0;
}
.pub-authors,
.pub-venue,
.pub-summary { margin: 3px 0; color: var(--muted); }
.pub-authors,
.pub-venue { font-size: .92rem; }
.pub-summary { font-size: .94rem; }
.pub-venue { color: var(--text); font-weight: 500; }
.pub-status {
  display: inline;
  margin-left: 6px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 500;
}
.pub-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 8px; }
.pub-links a { font-size: .85rem; font-weight: 600; }
.pdf-view-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.pdf-view-button:hover { text-decoration: underline; }
.work-list .pdf-view-button {
  margin-left: .2rem;
  vertical-align: baseline;
}
.empty-state { display: none; padding: 16px 0; color: var(--muted); text-align: left; }

/* Footer */
.footer {
  margin-top: 38px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer small { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px; }
.footer-links a { color: var(--muted); font-size: .82rem; }
.note { padding: 10px 0; color: var(--muted); }

/* Tablet: use nearly all of the viewport. */
@media (max-width: 900px) {
  .container {
    width: calc(100% - 36px);
    max-width: none;
  }
  .hero { padding-top: 46px; }
}

/* Phone: full-width feeling with only a small gutter. */
@media (max-width: 680px) {
  .container { width: calc(100% - 24px); }
  .nav-wrap { min-height: 54px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    padding: 8px 12px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; }
  .menu-btn { display: grid; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.22rem; }
  .hero { padding: 40px 0 32px; }
  .section { padding: 34px 0; }
  .section-tight { padding: 22px 0; }
  .page-hero { padding: 40px 0 26px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 15px 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 3px; }
  .pub-card { grid-template-columns: 1fr; gap: 3px; }
  .pub-year { display: inline; }
  .pub-type { display: inline; margin-left: 7px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 2rem;
    align-items: start;
}

.about-copy h1 {
    margin-top: 0;
}

.about-copy h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.about-photo-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-photo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    border: 1px solid var(--border, #d8d8d8);
}

@media (max-width: 820px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .about-photo-wrap {
        order: -1;
        justify-content: center;
    }

    .about-photo {
        width: 250px;
        height: 250px;
    }
}

/* Home / About additions */
.role-list {
  list-style: none;
  padding: 0;
  margin: 7px 0 8px;
  color: var(--muted);
}
.role-list li { margin: 2px 0; }
.role-list strong { color: var(--text); font-weight: 600; }

/* Research */
.research-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: .86rem;
}
.research-sections {
  display: grid;
  gap: 34px;
}
.research-sections article + article {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.research-sections h2 { margin: 5px 0 9px; }
.research-sections p { color: var(--muted); }
.work-list {
  margin: 13px 0 0;
  padding-left: 18px;
}
.work-list li {
  margin: 8px 0;
  color: var(--muted);
}
.work-list strong { color: var(--text); font-weight: 600; }
.output-line { margin: 10px 0 0; color: var(--muted); }
.maintenance-note { margin: 0; }

/* Outdoors */
.outdoor-summary p { margin: 0 0 9px; color: var(--muted); }
.outdoor-summary strong { color: var(--text); font-weight: 600; }
.album-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.album-head h2 { margin-bottom: 5px; }
.album-head p { margin: 0; color: var(--muted); }
.album-controls { display: flex; gap: 6px; flex: 0 0 auto; }
.album-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.album-button:hover { background: var(--soft); }
.album-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding: 0 0 12px;
}
.album-item {
  flex: 0 0 min(620px, 88%);
  margin: 0;
  scroll-snap-align: start;
}
.album-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: var(--soft);
}
.album-item figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
  font-size: .82rem;
}
.album-item figcaption span { color: var(--muted); text-align: right; }
.album-note { margin: 6px 0 0; font-size: .8rem; }
.outdoor-log { margin-top: 18px; }

@media (max-width: 680px) {
  .album-head { align-items: flex-start; }
  .album-item { flex-basis: 92%; }
  .album-item figcaption { flex-direction: column; gap: 1px; }
  .album-item figcaption span { text-align: left; }
}
