/* Adnan Firoze, personal academic site. Plain CSS, no build step. */
:root {
  --text: #1d2125;
  --muted: #5a636d;
  --faint: #8a929a;
  --accent: #2e6b4f;
  --accent-soft: #eef4f0;
  --rule: #e4e7ea;
  --bg: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --width: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

/* Top navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav .brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text); }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { color: var(--muted); }
.nav ul a:hover { color: var(--accent); text-decoration: none; }

/* Intro */
.intro { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 52px 0 28px; align-items: start; }
.intro img.photo { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.intro .role { color: var(--muted); margin: 0 0 16px; font-size: 15.5px; }
.intro p { margin: 0 0 14px; }
.market {
  display: inline-block; margin: 4px 0 16px; padding: 6px 12px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 6px; font-size: 14.5px; font-weight: 500;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; font-weight: 500; }

/* Sections */
section { padding: 30px 0 10px; border-top: 1px solid var(--rule); margin-top: 26px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 18px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 19.5px; line-height: 1.35; margin: 0 0 4px; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); font-weight: 600; margin: 30px 0 12px; }
.lead { font-size: 17px; }

figure { margin: 18px 0 8px; }
figure img { border: 1px solid var(--rule); border-radius: 6px; }
figcaption { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 8px; }

.featured { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; align-items: center; margin: 8px 0 26px; padding: 20px; background: #f7f8f7; border: 1px solid var(--rule); border-radius: 8px; }
.featured .video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.featured iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured p { margin: 0 0 12px; font-size: 15px; }

/* News */
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 5px 0; }
.news .date { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }

/* Project cards */
.project { padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.project > img { margin: 0 auto 16px; max-height: 340px; width: auto !important; max-width: 100%; }
.project:last-of-type { border-bottom: none; }
.project img { border: 1px solid var(--rule); border-radius: 6px; width: 100%; }
.venue { color: var(--accent); font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 12px; font-weight: 600; border-radius: 999px; background: #fff4e0; color: #9a5b00; vertical-align: 1px; }
.project p { margin: 0 0 10px; font-size: 15.5px; }
.authors { color: var(--muted); font-size: 14px; margin: 0 0 8px !important; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns a {
  font-size: 13px; font-weight: 500; padding: 3px 10px;
  border: 1px solid #cfdad3; border-radius: 5px; color: var(--accent);
}
.btns a:hover { background: var(--accent-soft); text-decoration: none; }

ul.plain { padding-left: 20px; margin: 0 0 12px; }
ul.plain li { margin: 4px 0; }

/* Publications */
ol.pubs { padding-left: 0; list-style: none; margin: 0; counter-reset: pub; }
ol.pubs li { padding: 9px 0 9px 36px; position: relative; font-size: 15px; line-height: 1.55; }
ol.pubs li::before {
  counter-increment: pub; content: counter(pub);
  position: absolute; left: 0; top: 10px; width: 24px; text-align: right;
  color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums;
}
.pt { font-weight: 600; }
.pa { color: var(--muted); }
.pa b { color: var(--text); font-weight: 600; }
.pv { font-style: italic; }
.pl a { font-size: 13px; margin-right: 10px; }

/* Two column lists */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
dl.entries { margin: 0; }
dl.entries dt { font-weight: 600; margin-top: 12px; }
dl.entries dd { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--rule); margin-top: 40px; padding: 22px 0 40px; color: var(--faint); font-size: 13.5px; }

@media (max-width: 760px) {
  .nav ul { gap: 14px; font-size: 13px; }
  .nav .brand { display: none; }
  .intro { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }
  .intro img.photo { width: 140px; height: 140px; }
  .intro h1 { font-size: 32px; }
  .cols { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; padding: 14px; }
  .news li { grid-template-columns: 76px 1fr; }
}
