:root {
  color-scheme: light;
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-strong: #f0f5f2;
  --ink: #20252b;
  --muted: #65717d;
  --line: #dce3de;
  --accent: #0e766f;
  --accent-strong: #064f49;
  --warm: #b45f3a;
  --soft: #e7efe9;
  --shadow: 0 18px 50px rgba(24, 32, 40, 0.08);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 118, 111, 0.1), transparent 28rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 44%, #ffffff 100%);
  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;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--warm);
}

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

button {
  font: inherit;
}

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: fixed;
  top: 0.8rem;
  transform: translateY(-200%);
  z-index: 30;
}

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

.sr-only {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, 0.82);
  border-bottom: 1px solid rgba(220, 227, 222, 0.78);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  min-height: 72px;
  padding: 0 1.4rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 750;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-strong);
}

.nav-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  width: 2.5rem;
}

.nav-toggle span:not(.sr-only) {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 1.1rem;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-5px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 1.4rem;
}

.hero {
  align-items: center;
  display: flex;
  min-height: min(680px, calc(100vh - 72px));
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-profile {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  padding: clamp(1.75rem, 3.5vw, 2.6rem);
  width: 100%;
}

.hero-media,
.hero-details {
  display: grid;
}

.hero-media {
  align-content: center;
  gap: 1.25rem;
}

.hero-details {
  gap: 1.15rem;
}

.avatar {
  align-items: center;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(14, 118, 111, 0.92), rgba(180, 95, 58, 0.9)),
    var(--accent);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 800;
  justify-content: center;
  overflow: hidden;
  width: min(100%, 21rem);
}

.avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.avatar span {
  transform: translateY(-0.02em);
}

.eyebrow {
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 780;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.02;
  margin: 0;
  max-width: none;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.1;
  margin: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
}

.role {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  margin: 0;
  max-width: 44rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.icon-link {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 650;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.hero-intro {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.5;
  margin: 0;
  max-width: 48rem;
  overflow-wrap: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.15rem;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.8rem;
  max-width: 720px;
}

.section-heading.with-note {
  align-items: end;
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  max-width: none;
}

.section-note {
  color: var(--muted);
  margin: 0;
  max-width: 360px;
}

.body-copy {
  color: var(--muted);
  display: grid;
  font-size: 1.08rem;
  gap: 1rem;
  max-width: 780px;
}

.about-section .body-copy {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  width: 100%;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.body-copy p {
  margin: 0;
  max-width: 780px;
}

.about-stats {
  display: grid;
  gap: 1rem;
  grid-template-rows: 1fr 1fr auto;
}

.stat-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  min-height: 10.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.stat-card p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  margin: 0;
}

.stat-card strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 3.65rem);
  line-height: 1;
}

.last-update {
  align-self: end;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  max-width: none;
  text-align: right;
}

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

.pub-summary {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.publication-list {
  display: grid;
  gap: 0.95rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.publication-groups {
  display: grid;
  gap: 0.95rem;
}

.publication-year {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.year-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 0 0 0.7rem;
  text-align: left;
  width: 100%;
}

.year-label {
  font-size: 1.05rem;
  font-weight: 760;
}

.year-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.publication-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 32, 40, 0.05);
  padding: 1rem 1.15rem;
}

.publication-item h3 {
  margin-bottom: 0.55rem;
}

.publication-item p {
  color: var(--muted);
  margin: 0;
}

.pub-meta {
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.research-item,
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(24, 32, 40, 0.05);
}

.research-item {
  min-height: 15rem;
  padding: 1.15rem;
}

.topic-number {
  color: var(--accent);
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.research-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.featured-tools {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.tool-card {
  align-items: start;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  min-height: 11rem;
  padding: 1rem;
}

.tool-card img {
  aspect-ratio: 1;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  padding: 0.25rem;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.tool-card a {
  font-weight: 750;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 780px;
  width: 100%;
}

caption {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
}

tbody th {
  color: var(--ink);
  min-width: 150px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--muted);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 180px;
}

.link-list a {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  text-decoration: none;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1.5rem 1.4rem 2rem;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero-profile {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    max-width: 30ch;
  }

  .research-grid,
  .featured-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 0.8rem 1.4rem 1rem;
    position: absolute;
    right: 0;
    top: 72px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .avatar {
    width: min(100%, 10rem);
  }

  .section-heading.with-note {
    align-items: start;
    flex-direction: column;
  }

  .about-section .body-copy {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    min-height: 8.5rem;
  }

  .research-grid,
  .featured-tools {
    grid-template-columns: 1fr;
  }

  .research-item,
  .tool-card {
    min-height: 0;
  }

  .footer {
    align-items: start;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 12rem;
  }

  .hero-actions,
  .profile-links {
    flex-direction: column;
  }

  .button,
  .icon-link {
    width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }
}
