:root {
  --bg: #fff8ea;
  --surface: #fff8ea;
  --text: #1f2428;
  --muted: #5b646e;
  --line: #d8d8d8;
  --accent: #0b3a5b;
  --accent-soft: #eaf0f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", Georgia, serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: #182027;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  margin-top: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.container {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 860px;
}

.site-header {
  background: rgba(255, 248, 234, 0.96);
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
}

.brand a {
  color: var(--text);
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 0.96rem;
  padding-bottom: 0.15rem;
  text-decoration: none;
}

.nav-list a.active,
.nav-list a:hover {
  border-bottom-color: var(--accent);
}

.hero {
  animation: fadeSlide 0.45s ease-out;
  margin-bottom: 2rem;
  padding: 3rem 0 1.25rem;
}

.hero.compact {
  padding-top: 2.1rem;
}

.kicker {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
}

.subtitle-small {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.welcome-title {
  color: #0b3a5b;
  font-size: clamp(2rem, 4.4vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.grid-two {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr 1fr;
}

.intro-layout {
  align-items: start;
  animation: fadeSlide 0.45s ease-out;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 220px 1fr;
  margin-bottom: 2rem;
  padding: 2.2rem 0 1.4rem;
}

.photo-card {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 220px;
  overflow: hidden;
  width: 220px;
}

.cv-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cv-inline h2 {
  margin-bottom: 0;
}

.intro-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.25rem;
}

section {
  margin-bottom: 2rem;
}

.section-smaller h2 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.research-gap {
  margin-bottom: 3rem;
}

.meta-list,
.plain-list,
.timeline,
.pub-list {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline li {
  margin-bottom: 0.45rem;
}

.year {
  color: var(--muted);
  display: inline-block;
  min-width: 9rem;
}

.paper-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.project-list {
  font-size: 0.96rem;
}

.project-item {
  margin: 0 0 0.5rem;
}

.project-title {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  margin-right: 0.5rem;
  margin-top: 0;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
}

.button.secondary {
  background: var(--accent-soft);
  color: #12293b;
}

.photo-placeholder {
  align-items: center;
  background: repeating-linear-gradient(
    -45deg,
    #f0f3f6,
    #f0f3f6 12px,
    #e4e9ef 12px,
    #e4e9ef 24px
  );
  border: 1px dashed #9aa8b6;
  border-radius: 8px;
  color: #2f4a60;
  display: flex;
  font-weight: 600;
  justify-content: center;
  min-height: 250px;
  overflow: hidden;
  width: 100%;
}

.profile-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.pdf-frame-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem;
}

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2rem;
  padding: 1.1rem 0;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.7rem 0;
  }

  .grid-two,
  .intro-layout {
    grid-template-columns: 1fr;
  }

  .photo-card {
    height: 180px;
    width: 180px;
  }

  .year {
    display: block;
    min-width: auto;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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