@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:       #f2ede4;
  --cream-dark:  #e8e2d8;
  --cream-mid:   #ebe5da;
  --ink:         #1a1a1a;
  --ink-light:   #444444;
  --ink-muted:   #555555;
  --ink-faint:   #777777;
  --green:       #2d6a4f;
  --green-light: #3a8a66;
  --border:      #ccc7bb;
  --border-light:#d8d3c8;
  --serif:       'EB Garamond', Georgia, serif;
  --display:     'Playfair Display', Georgia, serif;
  --btn-navy:    #1e3a5f;
  --btn-navy-hover: #16304f;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ─── Navigation ───────────────────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 52px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 0.5px solid var(--border);
}

.nav-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

.nav-name:hover { text-decoration: none; color: var(--ink); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); text-decoration: none; }

/* ─── Hero (Home Page) ─────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: calc(100vh - 63px);
  align-items: stretch;
}

.hero-left {
  padding: 60px 56px 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.greeting {
  font-family: var(--display);
  font-style: italic;
  font-size: 27px;
  color: var(--green);
  margin-bottom: 32px;
  min-height: 38px;
  transition: opacity 0.35s ease;
}

.hero-bio {
  font-size: 26px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 400;
}

.hero-bio p { margin-bottom: 24px; }
.hero-bio p:last-child { margin-bottom: 0; }

.hero-links {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-links a {
  font-size: 17px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-links a:hover { color: var(--green-light); }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 52px 40px 24px;
}

.hero-right img {
  width: 100%;
  max-width: 380px;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
}

/* ─── Page Layout (inner pages) ───────────────────────────────── */
.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 52px 80px;
}

.page-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 40px;
}

/* ─── Section Divider ──────────────────────────────────────────── */
.section-divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 52px;
}

/* ─── Research Sections ────────────────────────────────────────── */
.research-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 52px 80px;
}

.research-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 36px;
}

.subsection-label {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}

/* ─── Paper Entry ──────────────────────────────────────────────── */
.paper {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--border-light);
}

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

.paper-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.paper-title {
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
  min-width: 200px;
}

.paper-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 0.5px solid var(--border);
  color: var(--ink-muted);
  background: var(--cream-dark);
  font-family: var(--serif);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 3px;
  flex-shrink: 0;
}

.paper-authors {
  font-size: 15px;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.paper-authors strong {
  font-weight: 500;
  color: var(--ink);
}

.paper-venue {
  font-size: 14.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.paper-venue a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paper-venue a:hover { color: var(--green); }

.paper-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Abstract button — outlined style */
.btn-abstract {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 0.5px solid var(--ink-muted);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-abstract:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-abstract.open {
  border-color: var(--green);
  color: var(--green);
}

/* Paper / PDF / DOI button — filled navy */
.btn-paper {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 5px 14px;
  border: none;
  background: var(--btn-navy);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-paper:hover {
  background: var(--btn-navy-hover);
  color: #ffffff;
  text-decoration: none;
}

/* Abstract text panel */
.abstract-panel {
  display: none;
  margin-top: 14px;
  padding: 16px 20px;
  background: var(--cream-mid);
  border-left: 2px solid var(--green);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-light);
}

.abstract-panel.open { display: block; }

/* ─── Research report entries (no abstract button) ─────────────── */
.report {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border-light);
}

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

.report-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.report-meta {
  font-size: 14.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin-bottom: 10px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 24px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--green); }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    height: 340px;
  }

  .hero-left {
    padding: 40px 24px;
  }

  .hero-bio { font-size: 21px; }

  .site-nav { padding: 16px 24px; }
  .nav-links { gap: 18px; }

  .section-divider { margin: 0 24px; }
  .research-wrap { padding: 36px 24px 60px; }
  .page-wrap { padding: 36px 24px 60px; }
  .site-footer { padding: 20px 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 14px; }
  .hero-bio { font-size: 19px; }
  .greeting { font-size: 22px; }
}
