/* Modern stylesheet for rashisht1.github.io */

:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --text: #1f2933;
  --text-muted: #5b6770;
  --accent: #0f62fe;
  --accent-soft: #e8f0fe;
  --border: #e4e7eb;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151a;
    --surface: #1a2028;
    --text: #e6e9ec;
    --text-muted: #9aa5b1;
    --accent: #6ea8ff;
    --accent-soft: #1d2c45;
    --border: #2a323c;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.site-name:hover {
  text-decoration: none;
  color: var(--accent);
}

nav.site-nav {
  display: flex;
  gap: 0.25rem;
}

nav.site-nav a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

nav.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

nav.site-nav a.current {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Layout ---- */

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---- Profile hero ---- */

.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.profile img {
  width: 200px;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.profile h1 {
  margin: 0 0 0.25rem;
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.profile .devanagari {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.profile .tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ---- Sections ---- */

section {
  margin-top: 2.5rem;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ---- Publications ---- */

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.pub .pub-title {
  font-weight: 600;
  font-size: 1.02rem;
}

.pub .pub-authors {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 0.15rem;
}

.pub .pub-venue {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-style: italic;
  margin-top: 0.1rem;
}

.pub .pub-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.1rem;
}

.pub-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.tag {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
}

.tag:hover {
  text-decoration: none;
  filter: brightness(0.93);
}

/* ---- Email ---- */

.email-line {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.email-line img {
  vertical-align: middle;
  max-height: 1.4em;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile img {
    width: 180px;
  }

  .profile-links {
    justify-content: center;
  }

  .site-header .inner {
    flex-direction: column;
    gap: 0.4rem;
    padding-bottom: 0.6rem;
  }
}
