/* ---------- Tokens ----------
   Refined dark, minimal. One neutral palette, one accent, generous whitespace.
   Designed to read as "serious researcher, 2026" without decorative motion.
-------------------------------- */
:root {
  --bg:           #0b0c0e;
  --bg-elev:      #111316;
  --grid:         #16181c;
  --text:         #e6e4df;
  --text-dim:     #a4a39d;
  --text-mute:    #6e6d68;
  --rule:         #1f2125;
  --accent:       #e8a87c;   /* warm amber, used sparingly */
  --accent-soft:  #f1c7a8;
  --focus:        #8ab4ff;

  --maxw:         640px;
  --gutter:       clamp(20px, 4vw, 32px);

  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Very subtle radial vignette + a near-imperceptible grain.
     Keeps the page from feeling like a flat black rectangle without
     drawing attention to itself. */
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(232,168,124,0.05), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(138,180,255,0.03), transparent 70%);
  background-attachment: fixed;
}

::selection { background: rgba(232,168,124,0.25); color: var(--text); }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: var(--accent); border-color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

p { margin: 0; }

/* ---------- Layout ---------- */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.avatar {
  width: 110px;
  height: 110px;
  /* Rounded square; ratio (~18%) matches the favicon's corner radius so
     the tab icon and the hero portrait read as the same visual system. */
  border-radius: 20px;
  object-fit: cover;
  /* A faint ring that picks up the accent without shouting. */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 0 0 4px rgba(232,168,124,0.06);
  margin-bottom: 6px;
}

.name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
}

.role {
  color: var(--text-dim);
  font-size: 0.975rem;
}
.role-current { color: var(--text); font-weight: 500; }
.sep { color: var(--text-mute); margin: 0 0.4em; }

.affiliations {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.affiliations li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: baseline;
}
.aff-degree { color: var(--text); font-weight: 400; }
.aff-where  { color: var(--text-dim); }
.aff-year   {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ---------- Links / nav ---------- */
.links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9rem;
}
.links a {
  border-bottom: none;
  color: var(--text-dim);
  padding: 2px 0;
}
.links a:hover { color: var(--accent); }
.links .cv-link {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

/* ---------- Intro ---------- */
.intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}
.intro .interests {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.intro .interests .label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--rule);
}

/* ---------- Publications ---------- */
.pubs h2 {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

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

.pub {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.pub-body { display: flex; flex-direction: column; gap: 6px; }

.pub-title {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  border-bottom: none;
}
.pub-title:hover { color: var(--accent); }

.pub-authors {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.pub-authors strong { color: var(--text); font-weight: 500; }

.pub-meta {
  font-size: 0.8rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.pub-venue { color: var(--text-dim); font-style: italic; font-family: var(--font-sans); }
.pub-doi,
.pub-meta a {
  color: var(--text-mute);
  border-bottom: none;
}
.pub-meta a:hover { color: var(--accent); }

.pubs-more {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .page { gap: 44px; padding-top: 48px; }
  .affiliations li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .aff-year { margin-top: 2px; }
  .pub { grid-template-columns: 1fr; gap: 8px; }
  .pub-year { padding-top: 0; }
}

/* ---------- Reduced motion is respected by default; we add no animations. ---------- */
