:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #171a1f;
  --muted: #626a73;
  --line: #dfe5e0;
  --teal: #1f6158;
  --red: #a83246;
  --gold: #b88422;
  --shadow: 0 18px 45px rgba(23, 26, 31, 0.08);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(31, 97, 88, 0.16);
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(31, 97, 88, 0.28);
  border-radius: 8px;
  background: var(--surface);
  color: var(--teal);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.brand-text {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.35rem 0.62rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(31, 97, 88, 0.09);
  color: var(--teal);
  outline: none;
}

main {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.intro-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover {
  background: #174d46;
}

.button-secondary {
  border-color: rgba(23, 26, 31, 0.16);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(168, 50, 70, 0.38);
  color: var(--red);
}

.profile-figure {
  margin: 0;
}

.profile-figure img {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card,
.project-card {
  min-height: 150px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topic-card h3,
.project-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.25;
}

.topic-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

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

.publication-list li {
  padding-left: 0.25rem;
}

.project-list {
  display: grid;
  gap: 1rem;
}

.contact-section {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.85rem 1rem;
  }

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

  .site-nav a {
    padding: 0.25rem 0.38rem;
    font-size: 0.86rem;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 0;
  }

  .profile-figure {
    order: -1;
  }

  .profile-figure img {
    width: min(68vw, 260px);
    margin-right: auto;
    margin-left: 0;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.8rem 0;
  }

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

@media (max-width: 480px) {
  main,
  .site-footer {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .intro-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
