:root {
  color-scheme: light;
  --background: #f6f7f9;
  --surface: #ffffff;
  --text: #242b38;
  --muted: #5c6879;
  --accent: #285b91;
  --line: #e2e7ed;
  --soft: #eef4fa;
  --tag-text: #305b84;
  --submission-bg: #f4f1ec;
  --submission-text: #746046;
  --shadow: 0 2px 8px rgb(24 42 64 / 2%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0c1421;
  --surface: #101d2f;
  --text: #e5eaf1;
  --muted: #a4b2c6;
  --accent: #a0c5ee;
  --line: #223147;
  --soft: #192d44;
  --tag-text: #b4d2f3;
  --submission-bg: #2b2927;
  --submission-text: #d2bfa6;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.profile { position: relative; display: flex; align-items: center; gap: 28px; padding-block: 48px 34px; }
.portrait { width: 176px; height: 176px; flex-shrink: 0; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.profile-text { min-width: 0; padding-right: 35px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 650; margin: 0 0 3px; }
h1 { font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -1.1px; line-height: 1.25; font-weight: 700; margin: 0 0 9px; }
.role { margin: 0; font-size: 16px; }
.university { font-weight: 600; }
.separator { padding-inline: 5px; color: var(--muted); }
.advisors { margin: 3px 0 12px; font-size: 14px; color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 9px 21px; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; }
.profile-links svg { width: 16px; height: 16px; }
.theme-toggle { position: absolute; top: 47px; right: 0; width: 40px; height: 40px; display: grid; place-items: center; padding: 9px; background: var(--surface); color: var(--accent); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 20px; height: 20px; }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
main.container { padding-top: 26px; }
.panel { padding: 25px 29px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; box-shadow: var(--shadow); }
h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.2px; color: var(--accent); margin: 0 0 17px; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.55; font-weight: 650; margin: 0; }
p { margin: 0 0 12px; }
.panel > p:last-child { margin-bottom: 0; }
.research-panel h2 { margin-bottom: 18px; }
.research-interests { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.interest-grid { display: flex; flex-wrap: wrap; gap: 9px; max-width: 100%; list-style: none; padding: 0; margin: 0; }
.interest-card { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; color: var(--text); line-height: 1.5; }
.primary-interests .interest-card { min-height: 44px; padding: 9px 13px; font-size: 14px; font-weight: 600; background: var(--soft); }
.secondary-interests .interest-card { min-height: 38px; padding: 8px 11px; gap: 7px; font-size: 12.5px; font-weight: 500; }
.interest-card svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent); stroke-width: 1.65; }
.secondary-interests svg { width: 17px; height: 17px; }
.section-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.publications-list { list-style: none; padding: 0; margin: 0; }
.publication { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 24px; align-items: start; padding-block: 21px; border-bottom: 1px solid var(--line); }
.publication:last-child { border: 0; padding-bottom: 0; }
.publication-main { min-width: 0; }
.publication-title { font-size: 16px; line-height: 1.55; }
.publication-title h3 { display: inline; }
.title-ending { white-space: nowrap; }
.venue { justify-self: end; color: var(--tag-text); background: var(--soft); font-size: 12.5px; line-height: 1.6; letter-spacing: .1px; border-radius: 5px; padding: 5px 9px; text-align: right; margin-top: 2px; font-weight: 650; }
.submission { background: var(--submission-bg); color: var(--submission-text); }
.venue > span { display: block; }
.authors { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.8; }
.authors strong { color: var(--text); font-weight: 600; }
.paper-link { display: inline-block; margin-left: 6px; vertical-align: 1px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.paper-link:hover { background: var(--soft); text-decoration: none; border-color: var(--accent); }
.entry + .entry { margin-top: 22px; }
.entry-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.institution { display: flex; align-items: center; gap: 10px; min-width: 0; }
.institution-logo { flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; background: transparent; }
.institution-logo-cmi { display: flex; align-items: center; overflow: hidden; }
.institution-logo-cmi img { flex-shrink: 0; width: 102px; height: 22.5px; max-width: none; }
.institution-logo-iisc { object-fit: cover; }
[data-theme="dark"] .institution-logo-cmi, [data-theme="dark"] .institution-logo-iisc { filter: brightness(0) invert(1); }
.entry p { margin: 2px 0 0; font-size: 14px; }
.entry > p { margin-left: 46px; }
.entry .date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.muted { color: var(--muted); }
.position { font-style: italic; }
.degree-separator { display: inline-block; padding: 0 9px; font-style: normal; color: var(--muted); }
.contact-panel { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.contact-panel h2 { margin-bottom: 12px; }
.contact-panel p { margin-bottom: 4px; font-size: 14px; }
.email-link { overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; color: var(--muted); font-size: 11px; padding-block: 6px 28px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.skip-link { position: fixed; z-index: 10; top: -100px; left: 16px; background: var(--surface); padding: 8px 16px; border: 1px solid var(--accent); }
.skip-link:focus { top: 12px; }
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .profile { align-items: flex-start; gap: 21px; padding-block: 32px 25px; }
  .portrait { width: 128px; height: 128px; }
  .profile-text { padding-right: 0; }
  .eyebrow { margin-top: 3px; font-size: 10px; }
  h1 { padding-right: 33px; font-size: 29px; }
  .role { font-size: 14px; }
  .advisors { font-size: 13px; }
  .theme-toggle { top: 29px; width: 34px; height: 34px; padding: 7px; }
  .profile-links { gap: 8px 15px; }
  .panel { padding: 22px; }
  .publication { grid-template-columns: 1fr; gap: 10px; }
  .venue { justify-self: start; text-align: left; margin-top: 0; }
  .venue > span { display: inline; }
  .venue > span + span::before { content: ' · '; }
  .entry-heading { flex-direction: column; align-items: flex-start; gap: 0; }
  .entry .date { margin-left: 46px; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 450px) {
  .profile { flex-direction: column; gap: 19px; }
  .portrait { width: 136px; height: 136px; }
  h1 { font-size: 31px; }
  .profile-text { width: 100%; }
  .eyebrow { margin-top: 0; }
  .role .separator { padding-inline: 2px; }
  .panel { padding: 21px 19px; border-radius: 9px; }
  body { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme="dark"] { --background: #fff; --surface: #fff; --text: #111; --muted: #444; --accent: #222; --line: #ddd; --soft: #eee; --tag-text: #222; --submission-bg: #eee; --submission-text: #444; }
  .theme-toggle, .skip-link, .site-footer a { display: none; }
  .container { width: 100%; }
  .profile { padding-top: 0; }
  .panel { box-shadow: none; }
  .publication, .entry { break-inside: avoid; }
}
