/* Minimal academic portfolio — Md Sahidullah */
:root {
  --ink: #202b3a;
  --muted: #667085;
  --navy: #294766;
  --accent: #557ca5;
  --line: #e6eaf0;
  --soft: #f7f8fa;
  --white: #fff;
  --content: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 16px/1.75 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.container { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 790px; }
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a { color: #475467; font-size: 13px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--navy); text-decoration: none; }
.menu-toggle { display: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 6px; padding: 7px 12px; font: inherit; font-size: 13px; }
.section { padding: 76px 0; }
.section-soft { background: var(--soft); border-top: 1px solid #f0f2f5; border-bottom: 1px solid #f0f2f5; }
.hero { padding: 88px 0 82px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.28; letter-spacing: -.035em; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 52px); font-weight: 650; }
h2 { margin: 0 0 25px; font-size: clamp(25px, 3vw, 32px); font-weight: 650; }
h3 { font-size: 19px; }
.role { margin: 0; color: var(--navy); font-size: 19px; font-weight: 600; }
.affiliation { margin: 3px 0 20px; color: var(--muted); font-size: 15px; }
.intro { max-width: 680px; margin: 0 0 24px; color: #475467; font-size: 17px; line-height: 1.8; }
.hero-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; font-weight: 600; }
.portrait-wrap { justify-self: end; width: 220px; }
.portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; border-radius: 4px; }
.prose { color: #475467; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 0 0 10px; padding-left: 3px; }
.prose strong { color: #26364a; font-weight: 600; }
.prose h3 { margin-top: 30px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose a { overflow-wrap: anywhere; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.section-note { color: var(--muted); margin: -10px 0 28px; font-size: 14px; }
.publication-list ol { padding-left: 26px; }
.publication-list li { padding-left: 5px; margin-bottom: 15px; font-size: 14px; line-height: 1.7; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: white; padding: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (max-width: 900px) {
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 12px; }
  .hero-grid { gap: 42px; }
}
@media (max-width: 720px) {
  .container { width: min(var(--content), calc(100% - 36px)); }
  .nav-wrap { min-height: 64px; flex-wrap: wrap; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding: 0 0 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav.is-open { display: flex; }
  .hero { padding: 55px 0 58px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait-wrap { justify-self: start; width: 150px; grid-row: 1; }
  .intro { font-size: 16px; }
  .section { padding: 55px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .menu-toggle, .hero-links, .site-footer a { display: none !important; }
  .section { padding: 24px 0; break-inside: avoid; }
  body { font-size: 11pt; }
}
