/* Modern minimal — Priyank Gandhi */
:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #5e5e5e;
  --rule: #e6e6e6;
  --accent: #cc0033; /* Rutgers scarlet */
  --accent-soft: #fbeaee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header / nav */
header.site {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 24px;
  margin-bottom: 56px;
}

header.site .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand .subtitle {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  font-size: 15px;
}

nav.primary a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color .15s, border-color .15s;
}

nav.primary a:first-child { margin-left: 0; }

nav.primary a:hover { color: var(--ink); }

nav.primary a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Hero with photo */
.hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 8px;
}
.hero .photo {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: var(--accent-soft) center/cover no-repeat;
  background-image: url('priyank-gandhi-IMG_3712_2.jpg');
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero .photo { width: 140px; height: 140px; }
}

/* Link row */
.links {
  margin: 20px 0 8px;
  font-size: 15px;
}
.links a {
  margin-right: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.links a:hover { color: var(--accent); text-decoration: none; }

/* Typography */
h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.2;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lede {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
}

.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* Contact card */
.contact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 16px;
  font-size: 15px;
  color: var(--muted);
  margin: 24px 0 8px;
}
.contact dt { color: var(--muted); }
.contact dd { margin: 0; color: var(--ink); }

/* Publications list */
ol.pubs, ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pub;
}

ol.pubs li {
  counter-increment: pub;
  padding: 16px 0 16px 36px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

ol.pubs li::before {
  content: counter(pub) ".";
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

ol.pubs li:last-child { border-bottom: none; }

.pub-title { font-weight: 600; color: var(--ink); }
.pub-title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
.pub-title a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.pub-authors { color: var(--muted); font-size: 15px; }
.pub-venue { font-style: italic; color: var(--muted); font-size: 15px; }
.pub-status {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: 6px;
  font-weight: 600;
}

/* Course list */
.courses { margin-bottom: 24px; }
.course-level {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* CV sections */
.cv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.cv-row:last-child { border-bottom: none; }
.cv-row .year { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cv-row .detail { color: var(--ink); }
.cv-row .detail .sub { color: var(--muted); font-size: 15px; display: block; }

/* Footer */
footer.site {
  margin-top: 96px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}

footer.site .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  header.site { margin-bottom: 36px; }
  header.site .container { flex-direction: column; align-items: flex-start; }
  nav.primary a { margin-left: 0; margin-right: 18px; }
  .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dt { font-size: 13px; }
  .cv-row { grid-template-columns: 1fr; gap: 2px; }
}
