/* ============================================================
   Dr. Priti Mendiratta Arora — personal site
   Palette: ink #1B2A4A, oxblood #7A2E2E, gold #B8933D,
            paper #F5F2EA, paper-dim #EDE8DC, line #D9D2C0
   Type: IBM Plex Serif (display) / IBM Plex Sans (body/UI)
   ============================================================ */

:root {
  --ink: #1b2a4a;
  --ink-soft: #3d4a68;
  --oxblood: #7a2e2e;
  --gold: #b8933d;
  --gold-soft: #d9bd7d;
  --paper: #f5f2ea;
  --paper-dim: #ede8dc;
  --line: #d9d2c0;
  --white: #fffdf8;
  --max-w: 780px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

a {
  color: var(--oxblood);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 46, 46, 0.3);
  transition: border-color 0.15s ease, color 0.15s ease;
}
a:hover { border-color: var(--oxblood); color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- signature motif: the cycle line ---------- */
.cycle-rule {
  width: 100%;
  height: 22px;
  display: block;
  margin: 2.5rem 0;
}
.cycle-rule path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
}

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.site-title {
  font-family: "IBM Plex Serif", serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-bottom: none;
}
.site-title .devanagari-mark {
  color: var(--oxblood);
  margin-right: 0.4em;
  font-weight: 400;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: -0.15rem -0.55rem;
}
nav.main-nav a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0.55rem 2px;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--oxblood);
  border-bottom-color: var(--gold);
}

/* ---------- layout ---------- */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ---------- hero (about page) ---------- */
.hero {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 1.9rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Serif", serif;
  font-size: 2.1rem;
  font-weight: 600;
  border: 3px solid var(--gold-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero h1 {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.hero .role {
  font-size: 1rem;
  color: var(--oxblood);
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.hero .affil {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.social-row {
  display: flex;
  gap: 0.9rem;
  margin: 1.4rem 0 0;
  font-size: 0.85rem;
}
.social-row a {
  border-bottom: none;
  color: var(--ink-soft);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}
.social-row a:hover { color: var(--oxblood); border-color: var(--gold); }

.bio p { margin: 0 0 1.1rem; }

.pull-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.8rem 0;
  font-family: "IBM Plex Serif", serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- section blocks ---------- */
section.block { margin-bottom: 2.6rem; }
section.block h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--oxblood);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
section.block h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.82rem;
  padding: 0.32rem 0.7rem;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* highlight card (award / current focus) */
.highlight-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.1rem 1.3rem;
  border-radius: 2px;
}
.highlight-card .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
  font-weight: 600;
}
.highlight-card p { margin: 0.35rem 0 0; font-size: 0.94rem; }

/* ---------- publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.9rem;
}
.pub-item:first-child { padding-top: 0; }
.pub-num {
  font-family: "IBM Plex Serif", serif;
  color: var(--gold);
  font-size: 0.95rem;
  padding-top: 0.1rem;
}
.pub-title { font-size: 0.98rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.pub-meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.25rem; }
.pub-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--oxblood);
  padding: 0.08rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  position: relative;
  top: -1px;
}
.award-note { color: var(--oxblood); font-size: 0.85rem; margin-top: 0.25rem; font-style: italic; }

/* ---------- CV page ---------- */
.cv-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.cv-entry:first-child { padding-top: 0; }
.cv-period {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-family: "IBM Plex Serif", serif;
  padding-top: 0.1rem;
}
.cv-role { font-weight: 600; font-size: 0.98rem; }
.cv-org { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.15rem; }
.cv-detail { font-size: 0.87rem; color: var(--ink-soft); margin-top: 0.35rem; }

.two-col-list {
  columns: 2;
  column-gap: 2rem;
  font-size: 0.92rem;
  padding-left: 1.1rem;
  margin: 0;
}
.two-col-list li { margin-bottom: 0.5rem; break-inside: avoid; }

@media (max-width: 600px) {
  .two-col-list { columns: 1; }
  .hero { grid-template-columns: 76px 1fr; gap: 1.2rem; }
  .avatar { width: 76px; height: 76px; font-size: 1.5rem; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.2rem; }
  .pub-item { grid-template-columns: 1.6rem 1fr; }
}

/* ---------- download button ---------- */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper) !important;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.download-btn:hover { background: var(--oxblood); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.6rem 1.5rem 2.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
