:root {
  --ink: #3f3f3f;
  --heading: #242424;
  --muted: #707070;
  --link: #1788c2;
  --link-dark: #0b6798;
  --line: #e3e3e3;
  --soft: #f7f7f7;
  --paper: #ffffff;
  --max-width: 1080px;
  --content-width: 820px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

strong {
  color: var(--heading);
  font-weight: 650;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.3;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 1.8rem;
  font-weight: 650;
}

h2 {
  margin: 2.6rem 0 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
  font-weight: 650;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

p,
ul {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid rgba(23, 136, 194, 0.3);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: #fff;
  background: var(--link-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.masthead {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 4.25rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-title {
  flex: 0 0 auto;
  color: var(--heading);
  font-size: 1rem;
  font-weight: 700;
}

.site-title:hover {
  color: var(--heading);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  padding: 1.45rem 0 1.25rem;
  border-bottom: 2px solid transparent;
  color: #555;
  font-size: 0.88rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--link);
  color: var(--heading);
  text-decoration: none;
}

.home-layout {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: 2.6rem 0 5rem;
  gap: 3.2rem;
}

.author-profile {
  align-self: start;
  color: var(--muted);
  font-size: 0.82rem;
}

.author-photo {
  width: 138px;
  height: 138px;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.author-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
}

.author-profile h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0;
  font-size: 1.02rem;
}

.author-bio {
  margin-bottom: 1rem;
  line-height: 1.5;
}

.author-details,
.author-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-details {
  margin-bottom: 1rem;
}

.author-details li,
.author-links li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.author-details li + li,
.author-links li + li {
  margin-top: 0.3rem;
}

.profile-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  height: 0.72rem;
  color: var(--link);
}

.profile-icon svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.author-details li:nth-child(1) .profile-icon {
  color: #d64b45;
}

.author-details li:nth-child(2) .profile-icon {
  color: #00529b;
}

.author-details li:nth-child(3) .profile-icon {
  color: #4b8b3b;
}

.author-links li:nth-child(1) .profile-icon {
  color: #d34f45;
}

.author-links li:nth-child(2) .profile-icon {
  color: #24292f;
}

.author-links li:nth-child(3) .profile-icon {
  color: #0a66c2;
}

.author-links li:nth-child(4) .profile-icon {
  color: #4285f4;
}

.author-links li:nth-child(5) .profile-icon {
  color: #a6ce39;
}

.author-links li:nth-child(6) .profile-icon {
  color: #7651a8;
}

.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #555;
}

.author-links a:hover .profile-icon {
  color: var(--link);
}

.author-links a:hover {
  color: var(--link);
}

.page-content {
  min-width: 0;
  max-width: var(--content-width);
}

.page-content > :first-child {
  margin-top: 0;
}

.intro {
  margin-bottom: 1.15rem;
  font-size: 1rem;
}

.research-interests {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.research-interests li + li {
  margin-top: 0.25rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2.6rem;
  padding-bottom: 0.45rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-heading a {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

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

.compact-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.95rem 0;
  gap: 1rem;
  border-bottom: 1px solid #ededed;
}

.compact-entry-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.compact-entry-main > div {
  min-width: 0;
}

.institution-mark {
  display: grid;
  width: 48px;
  height: 42px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: #f8f9fa;
  place-items: center;
  transition: background-color 160ms ease, transform 160ms ease;
}

.institution-mark:hover {
  background: #f0f5f8;
  text-decoration: none;
  transform: translateY(-1px);
}

.institution-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.institution-mark img[src$="/uf.png"] {
  width: 82%;
  height: 82%;
}

.institution-mark img[src$="/uiowa.png"] {
  transform: scale(1.2);
}

.institution-mark img[src$="/argonne.png"] {
  width: 92%;
  height: 92%;
}

.compact-entry h3 {
  margin-bottom: 0.15rem;
}

.compact-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.compact-entry p a {
  color: #59646a;
  font-weight: 550;
}

.compact-entry p a:hover {
  color: var(--link);
}

.entry-date {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.research-list {
  display: grid;
  gap: 0.75rem;
}

.research-item {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--link);
  background: var(--soft);
}

.research-item p {
  margin: 0.25rem 0 0;
  color: #626262;
  font-size: 0.88rem;
}

/* Compact image-and-description rows adapted from the cloned publication sample. */
.entry-list {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.visual-entry {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  align-items: center;
  min-height: 120px;
  margin-bottom: 1.65rem;
  gap: 1.55rem;
}

.entry-figure {
  position: relative;
  width: 178px;
  height: 118px;
}

.entry-figure img {
  width: 100%;
  height: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

.entry-figure--contain img {
  padding: 7px;
  object-fit: contain;
}

.publication-list .visual-entry {
  grid-template-columns: 164px minmax(0, 1fr);
}

.publication-list .entry-figure {
  width: 164px;
  height: 108px;
}

.publication-list .entry-figure img {
  padding: 7px;
  object-fit: contain;
}

.entry-badge {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: -4px;
  display: inline-block;
  min-width: 64px;
  padding: 0.18rem 0.55rem;
  border-radius: 2px;
  color: #fff;
  background: var(--link);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.entry-copy {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.entry-title {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--link);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.entry-authors,
.entry-venue,
.entry-description,
.entry-links {
  margin: 0;
}

.entry-venue {
  color: #555;
  font-style: italic;
}

.entry-description {
  margin-top: 0.3rem;
  color: #626262;
  font-size: 0.84rem;
}

.entry-links {
  margin-top: 0.28rem;
  font-size: 0.78rem;
}

.entry-links a + a::before {
  margin-inline: 0.4rem;
  color: #a0a0a0;
  content: "·";
}

.page-layout {
  width: min(calc(100% - 2rem), 920px);
  min-height: calc(100vh - 9rem);
  margin-inline: auto;
  padding: 2.8rem 0 5rem;
}

.page-lead {
  max-width: 720px;
  margin: -0.55rem 0 2rem;
  color: var(--muted);
}

.notice {
  margin: 0 0 2rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #d2a455;
  background: #faf8f3;
  color: #686868;
  font-size: 0.82rem;
}

.group-title {
  margin-top: 2.8rem;
}

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

.experience-entry {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  padding: 1.15rem 0;
  gap: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.experience-entry h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.05rem;
}

.experience-entry h3 {
  margin: 0.15rem 0 0.4rem;
  color: #555;
  font-size: 0.86rem;
}

.experience-entry p,
.experience-entry ul {
  margin: 0.35rem 0 0;
  font-size: 0.87rem;
}

.experience-entry ul {
  padding-left: 1.1rem;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.4rem 0 1.25rem;
  gap: 1rem;
}

.document-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--link);
  border-radius: 4px;
  background: #fff;
}

.document-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.08rem;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  gap: 0.5rem;
}

.cv-contact-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
}

.cv-detail-heading {
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.cv-detail-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.32rem;
}

.cv-detail-heading p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cv-publication-list {
  margin: 0;
  padding-left: 1.25rem;
}

.cv-publication-list li {
  padding: 0.65rem 0 0.65rem 0.25rem;
  border-bottom: 1px solid #ededed;
  font-size: 0.86rem;
}

.button {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--link);
  border-radius: 3px;
  color: var(--link);
  font-size: 0.8rem;
  font-weight: 650;
}

.button:hover,
.button--primary {
  color: #fff;
  background: var(--link);
  text-decoration: none;
}

.cv-section > h2 {
  margin-top: 2.25rem;
}

.cv-skill-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  padding: 0.55rem 0;
  border-bottom: 1px solid #ededed;
  gap: 1rem;
  font-size: 0.86rem;
}

.pdf-panel {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: var(--soft);
}

.pdf-panel iframe {
  display: block;
  width: 100%;
  height: 860px;
  border: 0;
}

.pdf-fallback {
  margin: 0;
  padding: 0.6rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 4.2rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #888;
  font-size: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.not-found {
  display: grid;
  min-height: 80vh;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  font-size: 3rem;
}

@media (max-width: 760px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem 0;
    gap: 0.35rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    gap: 1.25rem;
  }

  .site-nav a {
    padding: 0.35rem 0 0.55rem;
    white-space: nowrap;
  }

  .home-layout {
    grid-template-columns: 1fr;
    padding-top: 1.8rem;
    gap: 2rem;
  }

  .author-profile {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem 1.2rem;
  }

  .author-photo {
    grid-row: 1 / span 3;
    width: 108px;
    height: 108px;
    margin: 0;
  }

  .author-profile h2,
  .author-bio,
  .author-details {
    grid-column: 2;
  }

  .author-bio,
  .author-details {
    margin: 0;
  }

  .author-links {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .author-links li + li {
    margin: 0;
  }

  .page-layout {
    padding-top: 2rem;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .visual-entry {
    grid-template-columns: 145px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }

  .entry-figure {
    width: 145px;
    height: 98px;
  }

  .publication-list .visual-entry {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .publication-list .entry-figure {
    width: 140px;
    height: 94px;
  }

  .entry-description {
    display: none;
  }

  .experience-entry,
  .cv-skill-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .pdf-panel iframe {
    height: 560px;
  }
}

@media (max-width: 430px) {
  .visual-entry {
    grid-template-columns: 1fr;
  }

  .publication-list .visual-entry {
    grid-template-columns: 1fr;
  }

  .entry-figure {
    width: 178px;
    height: 118px;
  }

  .publication-list .entry-figure {
    width: 164px;
    height: 108px;
  }

  .entry-description {
    display: block;
  }

  .compact-entry {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .compact-entry-main + .entry-date {
    padding-left: 3.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
