/* Extra styling for the minimal black-and-white look.
   Main colors and fonts live in theme.scss. */

body { line-height: 1.65; }

/* Links: black with a thin underline, grey on hover */
main.content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main.content a:hover { color: #6B6B6B; }

/* Menu: quiet, the current page is bold */
.navbar .navbar-brand .navbar-title {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
}
.navbar .nav-link {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}
.navbar .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 992px) {
  .navbar .navbar-nav.me-auto { margin-left: auto !important; margin-right: auto !important; gap: 1.25rem; }
}

/* Section headings with a thin line underneath */
main.content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid #1A1A1A;
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
}

/* Home page sidebar: photo, name, plain stacked links */
div.quarto-about-trestles .about-entity .about-image {
  filter: grayscale(100%);
}
div.quarto-about-trestles .about-entity .about-links {
  flex-direction: column;
  align-items: center;
  row-gap: 0.4rem;
}
div.quarto-about-trestles .about-entity .about-link {
  border: none;
  padding: 0;
  color: #1A1A1A;
  font-size: 0.98rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
div.quarto-about-trestles .about-entity .about-link:hover { color: #6B6B6B; }
div.quarto-about-trestles .about-contents h2 {
  border-bottom: 1px solid #1A1A1A;
}
.affiliation { color: #6B6B6B; }

/* Publication and teaching rows: thumbnail on the left, text on the right */
.item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #E6E6E6;
}
.item:last-of-type { border-bottom: none; }
.item p { margin: 0; }
.item img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #E6E6E6;
  filter: grayscale(100%);
}
.item-text { flex: 1; }
.item-title { font-weight: 600; }
.item-meta { color: #6B6B6B; font-size: 0.95rem; }

@media (max-width: 576px) {
  .item { flex-direction: column; }
  .item img { width: 100%; height: auto; }
}

/* Timeline style used on About, Experience and Teaching pages */
.timeline-item {
  border-left: 2px solid #E6E6E6;
  padding: 0 0 1.5rem 1.25rem;
  margin-left: 0.25rem;
}
.timeline-item .when { color: #6B6B6B; font-size: 0.9rem; }

.pronounce { color: #6B6B6B; font-style: italic; }

/* Breathing room above the photo on phones */
@media (max-width: 991px) {
  div.quarto-about-trestles .about-entity { margin-top: 1.5rem; }
}

/* ---------- Home page: photo and introduction ---------- */
.hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.hero-photo p { margin: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.hero-text { display: flex; flex-direction: column; justify-content: center; }
.hero-name {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  border: none;
}
.hero-role {
  display: block;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6B6B6B;
}
.hero-text p { font-size: 1.08rem; max-width: 34em; }
.hero-links { margin-top: 1.75rem; }
.hero-links p { margin: 0 0 0.6rem; display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.hero-links a { color: #1A1A1A; }
.hero-links a:hover { color: #6B6B6B; }
.hero-links .bi { font-size: 1.35rem; }
.hero-links a:has(.bi) { text-decoration: none; }
.hero-email { font-size: 0.95rem; }

/* center the photo and introduction on the screen */
body.home #quarto-content {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}
body.home .hero { width: 100%; }

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 1.25rem 2.5rem;
  }
  .hero-photo img { width: 220px; margin: 0 auto; }
  body.home #quarto-content { min-height: 0; display: block; }
}

/* ---------- Contact page: centered with icons ---------- */
body.contact-page #title-block-header { display: none; }
.contact {
  text-align: center;
  margin: 4.5rem auto 5rem;
  max-width: 640px;
}
.contact-kicker {
  display: block;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6B6B6B;
  margin-bottom: 1rem;
}
.contact-headline {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  border: none;
}
.contact-intro p {
  font-size: 1.12rem;
  color: #3A3A3A;
  max-width: 30em;
  margin: 0 auto;
}
main.content a.contact-email {
  display: inline-block;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  text-underline-offset: 7px;
  margin: 2rem 0 2.75rem;
}
.contact-icons p {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin: 0;
}
main.content a.contact-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: #1A1A1A;
  text-decoration: none;
}
.contact-icon .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid #1A1A1A;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.contact-icon .label {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6B6B6B;
}
main.content a.contact-icon:hover .icon { background-color: #1A1A1A; color: #FFFFFF; }
main.content a.contact-icon:hover .label { color: #1A1A1A; }
.contact-note {
  display: block;
  margin-top: 3rem;
  color: #6B6B6B;
  font-size: 0.95rem;
}
@media (max-width: 576px) {
  .contact { margin-top: 2.5rem; }
  .contact-icons p { gap: 1.25rem 1.5rem; }
}
