/* Minimal single-page academic profile — edit index.html for content */

:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2563eb;
  --border: #e5e5e5;
  --card: #ffffff;
  /* Photo scales down to fit inside this box while keeping aspect ratio (no stretch / no crop). */
  --photo-max-width: 28rem;
  --photo-max-height: 20rem;
  --content-max-width: 60rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.site-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* Logo + name: two columns (grid is robust; inline grid in HTML backs up if css path breaks, e.g. file://). */
.title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 0.35rem;
  min-width: 0;
}

.title-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
}

.title-row h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
}

.site-header .tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.site-header nav {
  margin-top: 1.25rem;
}

.photo-section {
  margin: 0 0 2.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  margin: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.photo-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--photo-max-width));
  max-height: min(40vh, var(--photo-max-height));
  margin-inline: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--accent);
}

section {
  margin-bottom: 2.75rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro p {
  margin: 0 0 1rem;
}

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

.info-grid {
  display: grid;
  gap: 0.65rem 0;
  font-size: 0.95rem;
}

.info-grid dt {
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.info-grid dd {
  margin: 0 0 0.85rem;
  padding: 0;
}

.info-grid dd:last-child {
  margin-bottom: 0;
}

/* Google Scholar: icon only (no anchor text); label stays in <dt>. */
.scholar-icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.scholar-icon-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.scholar-icon-link svg {
  display: block;
}

.papers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.paper {
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.paper h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.paper .meta {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Coauthor homepage links: keep text black like surrounding author list. */
.paper .meta a,
.paper .meta a:visited {
  color: var(--fg);
}

.paper .meta a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.paper .author-asterisk-note {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.paper .links {
  font-size: 0.875rem;
}

.paper .links span {
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 480px) {
  .info-grid {
    grid-template-columns: 7.5rem 1fr;
  }

  .info-grid dt {
    margin-bottom: 0;
  }

  .info-grid dd {
    margin-bottom: 0.65rem;
  }
}
