/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:        #F7F4EF;
  --bg-nav:    #FFFFFF;
  --surface:   #FFFFFF;
  --border:    #E2DDD6;
  --ink:       #1A1A18;
  --ink-mid:   #4A4843;
  --ink-light: #8A8580;
  --accent:    #7A6E5F;       /* warm taupe — used sparingly */
  --accent-hi: #C07A50;       /* terracotta for one highlight element only */

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 760px;
  --nav-h: 60px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--ink-mid);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent-hi); }

/* ─── Page wrapper ───────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ─── Home — hero ────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.hero-text .title {
  font-size: 0.9rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-text p {
  color: var(--ink-mid);
  font-size: 0.975rem;
  margin-bottom: 14px;
}
.hero-photo {
  width: 200px;
  height: 240px;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(8%);
}
.photo-placeholder {
  width: 200px;
  height: 240px;
  background: var(--border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

/* ─── Section divider ────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ─── Contact strip ──────────────────────────────────────── */
.contact-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.contact-strip a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.contact-strip a:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent-hi);
}

/* ─── Research page ──────────────────────────────────────── */
.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.research-section {
  margin-bottom: 48px;
}
.research-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-hi);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.paper {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.paper:last-child { border-bottom: none; }
.paper-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.paper-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.paper-title a:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent-hi);
}
.paper-meta {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 8px;
}
.paper-status {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--border);
  color: var(--ink-mid);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.paper-status.published {
  background: #EAF0E8;
  color: #3A6035;
}
.paper-abstract {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-top: 8px;
  line-height: 1.65;
}
.paper-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.paper-link {
  font-size: 0.78rem;
  color: var(--accent-hi);
  text-decoration: none;
  border: 1px solid var(--accent-hi);
  padding: 1px 8px;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}
.paper-link:hover {
  background: var(--accent-hi);
  color: #fff;
}
.paper-link-text {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-style: italic;
}
.paper-footnote {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 6px;
  font-style: italic;
}
.paper-status.ongoing {
  background: #EEF0F8;
  color: #3A4080;
}

/* ─── CV page ────────────────────────────────────────────── */
.cv-embed-wrap {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.cv-embed-wrap iframe {
  width: 100%;
  height: 900px;
  display: block;
  border: none;
}
.cv-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent-hi);
  color: var(--accent-hi);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-light);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-photo,
  .photo-placeholder {
    width: 140px;
    height: 168px;
    order: -1;
  }
  .hero-text h1 { font-size: 1.9rem; }
  .nav-links { gap: 16px; }
}
