/* ---------------------------------------------------------------
   Nehar Poddar — personal site
   Minimal, content-first, single stylesheet, no build step.
------------------------------------------------------------------*/

:root {
  --bg: #fffefc;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #1957c2;
  --accent-soft: #eef3fc;
  --mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wrap { animation: none; }
}

/* -------------------- typography -------------------- */

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: 30px; margin: 0 0 6px; }

h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 26px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: 10px auto 0;
}

h3 {
  font-family: var(--display);
  font-size: 17px;
  color: var(--accent);
  margin: 26px 0 8px;
}

p { margin: 0 0 16px; }

.lead {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  margin: 4px 0 14px;
}

blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
}

blockquote p { margin: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.25s ease;
}

a:hover { background-size: 100% 1.5px; }

strong { color: var(--text); font-weight: 700; }

.muted { color: var(--muted); }

small, .small { font-size: 13px; color: var(--muted); }

code, .mono { font-family: var(--mono); font-size: 0.9em; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

/* -------------------- intro / hero (About page) -------------------- */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin: 0 0 28px;
}

.intro img.headshot {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
}

.intro h1 {
  font-size: 34px;
}

.intro .tagline { color: var(--muted); font-size: 16px; margin: 0; max-width: 480px; }

.contact-line {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

.contact-line a { color: var(--muted); }
.contact-line a:hover { color: var(--accent); }

.contact-line .sep { margin: 0 8px; color: var(--line); }

/* -------------------- entries (experience / education) -------------------- */

.entry {
  display: flex;
  gap: 16px;
  margin: 0 -10px 22px;
  padding: 10px;
  align-items: flex-start;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.entry:hover { background: var(--accent-soft); }

.entry-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: #fafafa;
}

.entry-body { flex: 1; min-width: 0; }

.entry-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.entry-org { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 3px; }

.entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.entry-meta .mono,
.edu-date.mono {
  font-size: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}

.entry-body ul { margin-bottom: 0; }
.entry-body ul li { font-size: 16px; }

/* -------------------- education -------------------- */

.edu-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.edu-row:last-child { border-bottom: none; }

.edu-degree { font-family: var(--display); font-weight: 600; font-size: 16px; }

.edu-school { color: var(--muted); font-size: 13px; }
.edu-school::before { content: " · "; color: var(--line); }

.edu-date { color: var(--muted); font-size: 13px; white-space: nowrap; flex-shrink: 0; }

/* -------------------- publications -------------------- */

.pub-list {
  max-height: 520px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 6px;
  margin-bottom: 10px;
}

.pub {
  display: flex;
  gap: 16px;
  margin: 0 -10px 26px;
  padding: 10px;
  align-items: flex-start;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.pub:hover { background: var(--accent-soft); }

.pub-list .pub:last-child { margin-bottom: 10px; }

.pub-thumb,
.pub-thumb-spacer {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.pub-thumb {
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fafafa;
}

.pub-body { flex: 1; min-width: 0; }

.pub-title { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 3px; }

.pub-venue { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

.pub-authors { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

.pub-desc { font-size: 16px; margin-bottom: 8px; }

.pub video {
  width: 100%;
  max-width: 460px;
  border-radius: 8px;
  margin-top: 10px;
  display: block;
  border: 1px solid var(--line);
}

/* -------------------- gallery strip (robots) -------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 14px 0 8px;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fafafa, #efefef);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery img:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--accent);
  box-shadow:
    0 18px 32px -14px rgba(25, 87, 194, 0.35),
    0 6px 12px -6px rgba(0, 0, 0, 0.18);
}

.gallery figcaption {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  text-align: center;
  margin-top: 10px;
}

.gallery-desc {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.4;
}

/* -------------------- skills table -------------------- */

.skills-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 16px;
}

.skills-row .label {
  font-weight: 600;
  min-width: 150px;
  flex-shrink: 0;
}

/* -------------------- buttons -------------------- */

.cv-download {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  background-image: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cv-download:hover {
  background: var(--text);
  color: #fff;
}

/* -------------------- footer -------------------- */

.site-footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* -------------------- responsive -------------------- */

@media (max-width: 480px) {
  .wrap { padding: 32px 18px 48px; }
  .intro { gap: 8px; }
  .intro img.headshot { width: 92px; height: 92px; }
  .intro h1 { font-size: 26px; }
  .entry, .pub { flex-direction: column; }
  .entry-thumb, .pub-thumb { width: 100%; height: 160px; }
  .pub-thumb-spacer { display: none; }
  .pub-list { padding: 14px 14px 4px; max-height: 60vh; }
  .skills-row { flex-direction: column; gap: 2px; }
  .skills-row .label { min-width: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery img { height: 180px; }
}

@media (min-width: 481px) and (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 220px; }
}

@media (min-width: 701px) and (max-width: 860px) {
  .gallery img { height: 240px; }
}
