/* ===================================================================
   Imran Jahid Khan — academic website
   Plain CSS, no build step. Edit freely.
   =================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #1a1d21;
  --text-muted: #5b6470;
  --accent: #1f6feb;
  --accent-soft: #e8f0fe;
  --border: #e4e7ec;
  --max-width: 1080px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #e6edf3;
    --text-muted: #9aa5b1;
    --accent: #4f9bff;
    --accent-soft: #16243d;
    --border: #232a33;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 48px;
  text-align: center;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  background: var(--surface);
}

.name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin: 20px 0 6px;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0 0 4px;
  font-weight: 500;
  color: var(--text);
}

.affiliation {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.links a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.links svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* ---------- Content ---------- */
.content { min-width: 0; }

section { margin-bottom: 44px; }

h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

p { margin: 0 0 14px; }

.muted { color: var(--text-muted); font-size: 0.95rem; }

/* Research interests */
.interests {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.interests li {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.96rem;
}
.interests span {
  color: var(--text);
  font-weight: 600;
}

/* Contact list */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.contact-list strong { color: var(--text); }

/* Publications */
.pubs { padding-left: 0; list-style: none; margin: 0; }
.pubs li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pubs li:last-child { border-bottom: none; }
.pub-title { font-weight: 600; }
.pub-authors { font-size: 0.93rem; }
.pub-venue { font-size: 0.92rem; color: var(--text-muted); font-style: italic; }
.pub-meta-links { font-size: 0.88rem; margin-top: 4px; }

/* News */
.news { list-style: none; padding: 0; margin: 0; }
.news li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}
.news li:last-child { border-bottom: none; }
.news time {
  flex-shrink: 0;
  width: 56px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 20px;
  }
  .sidebar {
    position: static;
    top: auto;
  }
  .avatar { width: 140px; height: 140px; }
  .links {
    flex-flow: row wrap;
    justify-content: center;
  }
  .links a { flex: 0 1 auto; }
  .interests { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
