:root {
  --bg: #fffdf8;
  --bg-soft: #fff7ea;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --line: #eadfce;
  --ink: #28333b;
  --muted: #5f6d76;
  --accent: #de7f57;
  --accent-soft: #ffe5d7;
  --accent-two: #69ab93;
  --accent-three: #87a9d8;
  --shadow: 0 18px 42px rgba(40, 51, 59, 0.08);
  --radius-surface: 18px;
  --radius-pill: 999px;
  --space-2xs: 0.3rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --anchor-offset: 6.3rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Avenir Next", "Nunito Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.65;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: var(--radius-pill);
  filter: blur(38px);
}

.bg-glow-one {
  width: min(38rem, 75vw);
  height: min(38rem, 75vw);
  top: -9rem;
  left: -10rem;
  background: radial-gradient(circle at center, rgba(255, 189, 152, 0.34), rgba(255, 189, 152, 0));
}

.bg-glow-two {
  width: min(34rem, 68vw);
  height: min(34rem, 68vw);
  right: -7rem;
  top: 25vh;
  background: radial-gradient(circle at center, rgba(136, 182, 222, 0.24), rgba(136, 182, 222, 0));
}

.container {
  width: min(1160px, calc(100% - 2.6rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0.92), rgba(255, 253, 248, 0.72));
  border-bottom: 1px solid rgba(234, 223, 206, 0.7);
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-cta {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
  line-height: 1.1;
  box-shadow: none;
}

main {
  padding-bottom: clamp(2.4rem, 4vw, 4rem);
}

.page {
  padding-top: clamp(2.6rem, 5.5vw, 4.2rem);
}

.hero {
  margin-top: clamp(1.8rem, 4.2vw, 3rem);
  padding: clamp(1.3rem, 2.8vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 234, 0.82));
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  max-width: 22ch;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #835948;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(222, 127, 87, 0.36);
  border-radius: var(--radius-pill);
  background: rgba(255, 229, 215, 0.46);
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.2;
}

h1 {
  margin: var(--space-md) 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 19ch;
}

.lead {
  margin: var(--space-md) 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-md);
  flex-wrap: wrap;
}

.social-links {
  margin: var(--space-sm) 0 0;
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.social-links-lg {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  width: auto;
}

.social-btn {
  text-decoration: none;
  color: #6d3c28;
  border: 1px solid rgba(222, 127, 87, 0.45);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  padding: 0.48rem 0.82rem 0.48rem 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-links-lg .social-btn {
  width: auto;
  justify-content: flex-start;
  padding: 0.42rem 0.74rem 0.42rem 0.46rem;
  font-size: 0.92rem;
  line-height: 1.2;
}

.social-btn:hover,
.social-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(135, 169, 216, 0.7);
  box-shadow: 0 10px 22px rgba(40, 51, 59, 0.12);
  outline: none;
}

.social-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(140deg, #da7a52, #c56743);
  flex-shrink: 0;
}

.social-icon svg {
  width: 0.88rem;
  height: 0.88rem;
  fill: currentColor;
}

.social-icon-orcid {
  background: #8bcf55;
  font-family: "Avenir Next", "Nunito Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.btn {
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.68rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, #da7a52, #c56743);
  box-shadow: 0 10px 24px rgba(197, 103, 67, 0.24);
}

.btn-ghost {
  color: #87462c;
  border: 1px solid rgba(222, 127, 87, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

.quick-facts {
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-xs);
}

.quick-facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  padding: var(--space-sm) var(--space-md);
  width: fit-content;
  max-width: 100%;
}

.quick-facts a {
  color: #7e4a2f;
  font-weight: 600;
}

.section {
  margin-top: clamp(2.2rem, 4.2vw, 3.4rem);
}

.section-head h2,
.cv-section h2,
.legal-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.section-head p {
  color: var(--muted);
  margin: var(--space-xs) 0 0;
  max-width: 74ch;
}

.card-grid {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-surface);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow);
}

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

.card p {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
}

.timeline {
  margin-top: var(--space-lg);
  display: grid;
  gap: var(--space-md);
}

.timeline-item {
  border: 1px solid var(--line);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 242, 0.9));
  border-radius: var(--radius-surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.timeline-date {
  margin: 0;
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4f7d6e;
  background: rgba(105, 171, 147, 0.17);
  border: 1px solid rgba(105, 171, 147, 0.36);
  border-radius: var(--radius-pill);
  padding: 0.23rem 0.55rem;
}

.timeline-item h3 {
  margin: var(--space-sm) 0 0;
  font-size: 1.18rem;
}

.timeline-meta {
  margin: var(--space-xs) 0 0;
  color: var(--muted);
}

.timeline-item ul,
.cv-entry ul,
.compact-list {
  margin: var(--space-sm) 0 0;
  padding-left: var(--space-lg);
}

.compact-list li + li {
  margin-top: var(--space-xs);
}

.compact-list a {
  color: #7e4a2f;
  font-weight: 600;
}

.contact-grid {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-md);
}

.contact-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(236, 244, 253, 0.65));
  padding: var(--space-lg);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--shadow);
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(135, 169, 216, 0.7);
  outline: none;
}

.contact-card h3 {
  margin: 0;
}

.contact-card p {
  margin: var(--space-xs) 0 0;
  color: var(--muted);
}

.page-intro {
  margin-bottom: var(--space-xl);
}

.cv-section,
.legal-section {
  margin-top: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.cv-entry + .cv-entry {
  border-top: 1px solid rgba(234, 223, 206, 0.8);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
}

.cv-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  align-items: baseline;
  justify-content: space-between;
}

.cv-head h3 {
  margin: 0;
  font-size: 1.13rem;
  flex: 1 1 20rem;
}

.cv-head p {
  margin: 0;
  color: var(--muted);
}

.legal p,
.cv-section p {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
}

.legal a {
  color: #7e4a2f;
}

.meta-note {
  margin-top: 0;
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(234, 223, 206, 0.95);
  margin-top: var(--space-2xl);
}

.footer-wrap {
  padding: var(--space-md) 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-wrap nav {
  display: flex;
  gap: var(--space-md);
}

.footer-wrap nav a {
  color: #6d3c28;
  text-decoration: none;
}

.footer-wrap nav a:hover,
.footer-wrap nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.reveal {
  animation: rise 700ms ease both;
}

.card,
.timeline-item,
.contact-card,
.cv-section,
.legal-section {
  animation: rise 700ms ease both;
}

.card-grid .card:nth-child(2),
.timeline .timeline-item:nth-child(2),
.contact-grid .contact-card:nth-child(2) {
  animation-delay: 90ms;
}

.card-grid .card:nth-child(3),
.timeline .timeline-item:nth-child(3),
.contact-grid .contact-card:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 980px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  :root {
    --anchor-offset: 6.6rem;
  }

  .page {
    padding-top: 2.5rem;
  }

  .container {
    width: min(1160px, calc(100% - 1.5rem));
  }

  .nav-wrap {
    align-items: center;
    flex-direction: row;
    gap: var(--space-sm);
  }

  .brand {
    font-size: 1.04rem;
  }

  .nav-cta {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.86rem;
  }

  .hero {
    margin-top: var(--space-lg);
    padding: var(--space-lg) var(--space-md);
  }

  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(1.75rem, 8vw, 2.28rem);
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .nav-cta {
    width: auto;
  }

  .hero-actions {
    width: 100%;
  }

  .social-btn {
    width: auto;
    justify-content: flex-start;
  }

  .section-head h2,
  .cv-section h2,
  .legal-section h2 {
    font-size: 1.42rem;
  }

  .timeline-item,
  .cv-section,
  .legal-section {
    padding: var(--space-md);
  }

  .quick-facts li {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
