/* ============================================================
   Aditya Akella — 2026 site
   Dark, minimal, mobile-first
   ============================================================ */

:root {
  --bg:        #111111;
  --surface:   #1a1a1a;
  --border:    #2a2a2a;
  --text:      #e0e0e0;
  --muted:     #888888;
  --accent:    #bf5700;   /* UT burnt orange */
  --link:      #d47840;
  --link-hover:#e8a06a;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:      "SF Mono", "Fira Mono", Consolas, monospace;
  --max-w:     780px;
  --nav-h:     52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  padding-top: var(--nav-h);
}

/* ── Links ─────────────────────────────────────────── */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

/* ── Nav ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 100;
}

.nav-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand:hover { color: #fff; text-decoration: none; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.2s;
}

/* mobile nav drawer */
@media (max-width: 600px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #1c1c1c;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: var(--text);
    font-size: 1rem;
  }
  .nav-links li a:hover { background: var(--surface); }
}

/* ── Page container ─────────────────────────────────── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ── Bio section ────────────────────────────────────── */
.bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.bio-photo {
  flex-shrink: 0;
  width: 140px;
}
.bio-photo img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bio-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.bio-text .bio-title {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.bio-text p {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.bio-contact {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 540px) {
  .bio { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
  .bio-contact { text-align: left; }
}

/* ── Section headers ─────────────────────────────────── */
h2.section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
h2.section-title:first-of-type { margin-top: 0; }

/* ── Highlights table ────────────────────────────────── */
.highlights {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}
.highlights td {
  padding: 0.55rem 0;
  vertical-align: top;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.highlights td:first-child {
  white-space: nowrap;
  color: var(--muted);
  padding-right: 1.5rem;
  font-size: 0.82rem;
  min-width: 88px;
}
.highlights tr:last-child td { border-bottom: none; }

/* ── Publications table (index, recent) ─────────────── */
.pub-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}
.pub-list td {
  padding: 0.6rem 0;
  vertical-align: top;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pub-list td.venue {
  white-space: nowrap;
  color: var(--muted);
  padding-right: 1.5rem;
  font-size: 0.8rem;
  min-width: 80px;
  padding-top: 0.7rem;
}
.pub-list td .ptitle {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}
.pub-list td .authors {
  color: var(--muted);
  font-size: 0.83rem;
}
.pub-list tr:last-child td { border-bottom: none; }

/* ── Full publications page ──────────────────────────── */
.year-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.pub-item {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--border);
  font-size: 0.88rem;
}
.pub-item:last-of-type { border-bottom: none; }

.pub-item .paper-title {
  font-weight: 600;
  color: #fff;
}
.pub-item .pub-meta {
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 0.15rem;
}
.pub-item .best-paper {
  color: #e57c3a;
  font-style: italic;
  font-weight: 600;
}
.pub-item a.pdf-link {
  font-size: 0.78rem;
  color: var(--link);
  border: 1px solid var(--link);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 0.4rem;
  white-space: nowrap;
  vertical-align: middle;
}
.pub-item a.pdf-link:hover {
  background: var(--link);
  color: var(--bg);
  text-decoration: none;
}

/* ── Two-column simple table (awards, teaching, service) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.info-table td {
  padding: 0.55rem 0;
  vertical-align: top;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.info-table td.label {
  white-space: nowrap;
  color: var(--muted);
  padding-right: 1.5rem;
  font-size: 0.85rem;
  min-width: 70px;
}
.info-table tr:last-child td { border-bottom: none; }

/* teaching sub-section label */
.subsection {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 0.5rem;
}

/* ── Utilities ───────────────────────────────────────── */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
