/* ─────────────────────────────────────────────
   Arti Agarwal — Academic Site
   Palette: warm ivory · charcoal · sage green
   Type: Lora (serif) + Source Sans 3 (sans)
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --bg:        #faf8f4;
  --surface:   #f2f0eb;
  --text:      #1c1c1c;
  --text-soft: #5a5a5a;
  --accent:    #5c7a5e;      /* sage green — nods to env. research */
  --accent-lt: #dde8de;
  --border:    #dedad3;
  --max-w:     760px;
  --nav-h:     64px;
}

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

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

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

/* ── Nav ───────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── Main container ────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
}

/* ── Home hero ─────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.home-hero img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-lt);
  margin-top: 0.3rem;
}

.hero-text h1 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-text .affiliation {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-style: italic;
}

.hero-text p {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.hero-text a:hover {
  text-decoration: underline;
}

/* ── Home nav links grid ───────────────────── */
.home-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.home-link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.home-link-card:hover {
  border-color: var(--accent);
  background: var(--accent-lt);
  transform: translateY(-2px);
}



.card-icon {
  display: flex;
  align-items: center;
  color: var(--accent);
}
.card-icon svg { width: 16px; height: 16px; stroke-width: 2; }

.home-link-card .card-arrow {
  margin-left: auto;
  color: var(--accent);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.home-link-card .card-arrow svg { width: 15px; height: 15px; }

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

.page-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.page-header .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.page-header h1 {
  font-family: 'Lora', serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ── Prose content ─────────────────────────── */
.prose p {
  margin-bottom: 1.15rem;
  color: var(--text);
  font-size: 0.97rem;
}

.prose em { font-style: italic; }
.prose strong { font-weight: 600; }

/* ── Section blocks ────────────────────────── */
.section {
  margin-bottom: 2.8rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── Interest tags ─────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  background: var(--accent-lt);
  color: var(--accent);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Publication entries ───────────────────── */
.pub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.pub-item {
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.93rem;
  line-height: 1.7;
}

.pub-item .pub-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.pub-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.pub-item a:hover { text-decoration: underline; }

/* ── Book card ─────────────────────────────── */
.book-card {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

.book-cover {
  width: 90px;
  flex-shrink: 0;
  background: var(--accent-lt);
  border-radius: 4px;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.book-meta h2 {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.book-meta .book-subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.book-meta p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── Placeholder ───────────────────────────── */
.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.93rem;
}
.placeholder-box .ph-icon { margin-bottom: 0.75rem; display: flex; justify-content: center; }
.placeholder-box .ph-icon svg { width: 28px; height: 28px; color: var(--text-soft); stroke-width: 1.5; }
.placeholder-box p { max-width: 360px; margin: 0 auto; }

/* ── Footer ────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 580px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-hero img {
    margin: 0 auto;
  }
  .home-links {
    grid-template-columns: 1fr;
  }
  .book-card {
    flex-direction: column;
  }
  .nav-links { gap: 1.1rem; }
}
