:root {
  --background: #f9f9fb;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #5c5f66;
  --accent: #6757e8;
  --accent-strong: #4a3fc0;
  --border: #e5e7ef;
  --shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  --radius: 10px;
  --max-width: 1400px;
  --font-sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 1rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.intro {
  padding: 36px 0 24px;
}

.about-flex {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.profile-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.about-block h2 {
  font-family: var(--font-serif);
  margin: 0 0 0.5rem;
}

.about-block p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  margin: 0.35rem 0 0.2rem;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}

.lede {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.lede.compact {
  margin-bottom: 0.75rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin: 0.25rem 0 0.5rem;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 600;
}

.icon {
  font-size: 1rem;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
}

.link-btn:hover {
  color: var(--accent);
}

.copy-status {
  color: var(--accent);
  font-size: 0.9rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-row.compact {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(103, 87, 232, 0.08);
  color: var(--accent);
  border-color: rgba(103, 87, 232, 0.18);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(103, 87, 232, 0.14);
}

.btn.outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.avatar-frame {
  width: min(340px, 85vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(103, 87, 232, 0.2);
  box-shadow: var(--shadow);
}

.avatar-frame.round {
  width: 260px;
  margin: 0 auto 0.5rem;
}

.section {
  padding: 36px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0;
}

.separator {
  width: 82px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  margin: 14px auto 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0.4rem 0;
  color: var(--muted);
}

.highlight {
  font-weight: 600;
  color: #800000 !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(103, 87, 232, 0.12);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

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

.small {
  font-size: 0.92rem;
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(103, 87, 232, 0.15);
}

.award {
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
}

.award:last-child {
  border-bottom: none;
}

.award-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.link-inline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.contact-card {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-sans);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(103, 87, 232, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin: 0 auto 0.5rem;
  color: var(--accent);
}

.icon-circle svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-family: var(--font-sans);
}

.contact-value {
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.error-text {
  color: #b42318;
  margin-top: 0.75rem;
  text-align: center;
}

.project-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-body {
  display: grid;
  gap: 0.5rem;
  flex: 1;
}

.project-footer {
  margin-top: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(103, 87, 232, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.publication-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.publication-card {
  display: flex;
  flex-direction: column;
}

.publication-body {
  display: grid;
  gap: 0.4rem;
  flex: 1;
}

.publication-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .card-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.25rem;
  }

  .section {
    padding: 48px 0;
  }

  .action-row .btn {
    width: 100%;
    justify-content: center;
  }
}
