:root {
  --ink: #1b1f27;
  --ink-soft: #4a5063;
  --muted: #757c8f;
  --line: #e6e8ee;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --accent: #3454d1;
  --accent-dark: #263c9c;
  --accent-tint: #eef1fc;
  --radius: 14px;
  --max-width: 840px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Hero */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(27, 31, 39, 0.12);
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-text h1 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-text h2 {
  margin: 0.25rem 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-summary {
  margin: 0 0 1.4rem;
  max-width: 56ch;
  color: var(--ink-soft);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.btn-secondary:hover {
  background: #e2e7fa;
  color: var(--accent-dark);
}

.icon-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

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

/* Sections */

.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section-title {
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 68ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

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

.about-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  max-width: 68ch;
}

.about-content li {
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.about-content li:last-child {
  margin-bottom: 0;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.skill-group h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.skill-group p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Experience / Education entries */

.entry {
  margin-bottom: 2.2rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.6rem;
}

.entry-head h4 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.entry-sub {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.entry-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.entry-group {
  margin: 1rem 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.entry ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.entry li {
  margin-bottom: 0.4rem;
}

.entry li:last-child {
  margin-bottom: 0;
}

.entry-compact {
  margin-bottom: 1.6rem;
}

.entry-detail {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Publications */

.publications-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.publications-list li {
  margin-bottom: 0.6rem;
}

/* Fun facts */

.fun-facts {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.fun-facts li {
  margin-bottom: 0.5rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 3rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */

@media screen and (max-width: 640px) {
  .hero {
    padding: 2.75rem 0 2.25rem;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .entry-head {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Print */

@media print {
  body {
    background: #fff;
  }

  .hero {
    padding-top: 0;
  }

  .btn,
  .icon-link {
    display: none;
  }

  .section {
    padding: 1.2rem 0;
    break-inside: avoid;
  }
}
