*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm, welcoming palette */
  --bg: #FAF7F2;           /* warm parchment — inviting, not clinical */
  --text: #2C2926;          /* warm near-black — softer on the eyes than pure black */
  --muted: #6B6360;         /* warm gray with brown undertone */
  --accent: #7B3B3A;        /* warm garnet/rosewood — approachable, not aggressive */
  --accent-hover: #944847;  /* lighter warm garnet for hover states */
  --accent-light: rgba(123, 59, 58, 0.07);
  --border: #E5DDD5;        /* warm border — subtle, not sterile */
  --card-bg: #FEFBF6;       /* warm cream for cards */
  --max-w: 860px;
}

html { font-size: 18px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'EB Garamond', Georgia, serif;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.site-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-title:hover { color: var(--accent); }

nav { display: flex; gap: 2rem; }

nav a {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

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

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ── Main container ── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
  width: 100%;
}

/* ── Featured banner ── */
.featured-banner {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.featured-banner:hover {
  box-shadow: 0 2px 12px rgba(123, 59, 58, 0.06);
}

.featured-banner .label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
}

.featured-banner .featured-title {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  font-style: italic;
  transition: color 0.2s ease;
}

.featured-banner .featured-title:hover { color: var(--accent-hover); }

.featured-banner .featured-meta {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  margin-top: 0.15rem;
}

/* ── Home layout centering ── */
.home-layout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 56px - 60px);
}

/* ── Bio section ── */
.bio-section {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 3.5rem;
  align-items: center;
}

.bio-text h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.bio-text h2 {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 1.8rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.bio-text p { margin-bottom: 1rem; color: var(--text); }

.bio-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bio-text a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.bio-text ul {
  list-style: none;
  padding: 0;
}

.bio-text ul li {
  padding: 0.25rem 0;
  padding-left: 1.1rem;
  position: relative;
  font-style: italic;
  color: var(--muted);
}

.bio-text ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.bio-photo img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(44, 41, 38, 0.08);
}

/* ── Page header ── */
.page-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 500;
}

.page-header p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Publications ── */
.pub-list { list-style: none; }

.pub-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-title {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.3rem;
  transition: color 0.2s ease;
}

.pub-title:hover { color: var(--accent-hover); }

.pub-authors {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.pub-authors strong { color: var(--text); }

.pub-venue {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
}

.pub-year {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.pub-abstract {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
  display: none;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

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

.pub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  margin-top: 0.4rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pub-toggle:hover { color: var(--accent-hover); }

/* ── Section labels ── */
.section-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 2.5rem 0 1rem;
}

/* ── Teaching ── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.course-card:hover {
  box-shadow: 0 3px 14px rgba(44, 41, 38, 0.07);
  transform: translateY(-1px);
}

.course-code {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.course-name {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
  font-size: 0.97rem;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.contact-label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
}

footer p {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Conference Timeline ── */
.conf-timeline {
  border-top: 1px solid var(--border);
}

.conf-year-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.conf-year {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.conf-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conf-list li {
  font-size: 0.97rem;
  color: var(--text);
  padding: 0.18rem 0;
  font-style: italic;
}

.conf-list li + li {
  margin-top: 0.25rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .bio-section { grid-template-columns: 1fr; }
  .bio-photo { order: -1; max-width: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .header-inner { height: auto; padding: 0.8rem 0; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav a.active::after { display: none; }
}
