:root {
  --accent: #0800c6;
  --text: #333;
  --muted: #000;
  --bg: #ffffff;
  --light: #f6f8fb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Nunito",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(207, 7, 47, 1) 0%, #0800c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 600;
  background: linear-gradient(135deg, rgba(207, 7, 47, 1) 0%, #0800c6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3 {
  color: var(--accent);
  font-size: 1.02rem;
  margin-bottom: 8px;
  font-weight: 600;
}

p {
  margin-bottom: 18px;
  color: var(--muted);
}

.section {
  padding: 80px 0;
  border-top: 1px solid #eee;
}

.section-muted {
  background: var(--light);
}

.publication {
  margin-bottom: 40px;
}

.publication a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

a {
  text-decoration: none;
  border-bottom: 1px solid rgba(8, 0, 198, 0.12);
  padding-bottom: 2px;
  transition:
    border-color 140ms ease,
    border-width 140ms ease,
    opacity 140ms ease;
}

a:hover,
a:focus {
  border-bottom-color: rgba(8, 0, 198, 0.32);
  outline: none;
}

footer {
  text-align: center;
  padding: 60px 0;
  font-size: 0.9rem;
  color: #888;
}

.pub-status {
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 8px;
  color: var(--muted);
  opacity: 0.75;
}

/* Mobile / small-screen responsive tweaks */
@media (max-width: 700px) {
  .container {
    padding: 40px 16px;
  }

  .section {
    min-height: 65vh;
    padding: 40px 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --light: #151922;
    --text: #e6e8ee;
    --muted: #cfd3dc;
    --accent: #6b7cff;
  }

  body {
    background: var(--bg);
  }

  .section {
    border-top: 1px solid #242a35;
  }

  a {
    color: var(--accent);
    border-bottom: 2px solid rgba(107, 124, 255, 0.5);
  }

  a:hover,
  a:focus {
    border-bottom-color: rgba(107, 124, 255, 0.8);
  }

  h1,
  h2 {
    background: linear-gradient(135deg, #ff4b6e 0%, #6b7cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

}

.page-nav {
  border-bottom: 1px solid #eee;
}

.page-nav .container {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand-link {
  font-weight: 700;
  color: var(--accent);
  border-bottom: 0;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.96rem;
}

.hero-v2 {
  text-align: left;
  padding: 80px 0 56px;
  border-top: 0;
}

.hero-v2 .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0;
}

.hero-v2 h1 {
  font-size: 2.65rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

.hero-v2 .lead {
  font-size: 1.22rem;
  max-width: 680px;
  margin-bottom: 24px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-links a,
.profile-links a {
  color: var(--accent);
  font-weight: 700;
}

.portrait {
  width: 220px;
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.hero-portrait {
  display: block;
}

.hero-portrait-mobile {
  display: none;
}

.intro-grid,
.focus-grid,
.profile-grid {
  display: grid;
  gap: 28px;
}

.intro-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
}

.fact-list {
  list-style: none;
  display: grid;
  gap: 13px;
  color: var(--muted);
}

.fact-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-item {
  border-top: 3px solid rgba(8, 0, 198, 0.16);
  padding-top: 16px;
}

.publication-list {
  display: grid;
  gap: 26px;
}

.publication-group {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid #e5e8ef;
}

.publication-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.group-label {
  color: var(--accent);
  font-weight: 800;
}

.publication.compact {
  margin-bottom: 24px;
}

.publication.compact:last-child {
  margin-bottom: 0;
}

.profile-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

@media (max-width: 760px) {
  .page-nav .container,
  .intro-grid,
  .focus-grid,
  .publication-group,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .page-nav .container {
    display: grid;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-v2 {
    padding-top: 42px;
  }

  .hero-v2 .container {
    grid-template-columns: 1fr;
  }

  .hero-v2 h1 {
    font-size: 2.15rem;
  }

  .hero-portrait {
    display: none;
  }

  .hero-portrait-mobile {
    display: block;
    float: right;
    margin: 4px 0 10px 18px;
  }

  .portrait {
    width: 96px;
    height: 96px;
    object-fit: cover;
    object-position: 47% 34%;
    border-radius: 50%;
  }
}

@media (prefers-color-scheme: dark) {
  .page-nav {
    border-bottom-color: #242a35;
  }

  .publication-group {
    border-top-color: #242a35;
  }

  .focus-item {
    border-top-color: rgba(107, 124, 255, 0.35);
  }
}
