/* Typography and CSS variables */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0e1420;
  --muted: #5b667a;
  --brand: #2c6bed; /* academic blue */
  --accent: #2fb88f; /* supportive green */
  --border: #e6eaf2;
  --shadow: 0 8px 24px rgba(16, 26, 48, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1100px;
}

html, body { height: 100%; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.65;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(44,107,237,0.06), transparent),
              radial-gradient(900px 500px at 90% -20%, rgba(47,184,143,0.05), transparent),
              var(--bg);
  color: var(--text);
}

.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.flow > * + * { margin-top: 1rem; }
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, rgba(10,20,40,0.02), rgba(10,20,40,0) 60%), var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.skip-link { position: absolute; left: -1000px; top: -1000px; } 
.skip-link:focus { left: 1rem; top: 1rem; background: var(--panel); color: var(--text); padding: .5rem .75rem; border-radius: var(--radius-sm); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #ffffff; font-weight: 800; box-shadow: var(--shadow); }
.nav a { color: #334052; text-decoration: none; margin-left: 1rem; font-weight: 600; letter-spacing: .1px; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }

/* Hero */
.hero { padding: 72px 0; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.subtitle { color: #4a5970; font-weight: 700; letter-spacing: .2px; }
.lede { font-size: 1.05rem; color: var(--muted); }
.hero-media { text-align: center; }
.hero-media img { max-width: 280px; width: 100%; height: auto; border-radius: 12px; background: #f2f5fa; border: 1px solid var(--border); filter: drop-shadow(0 10px 30px rgba(0,0,0,.08)); object-fit: contain; }
.icon-links { display: inline-flex; gap: .75rem; margin-top: .8rem; align-items: center; }
.icon-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #ffffff; box-shadow: var(--shadow); }
.icon-links a:hover { background: #f7f9fc; }
.icon-links img { width: 22px; height: 22px; }

.cta-row { display: flex; gap: .75rem; margin-top: 1rem; }
.btn { display: inline-block; padding: .6rem .9rem; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: #1b2433; background: #ffffff; box-shadow: var(--shadow); }
.btn:hover { background: #f7f9fc; }
.btn.primary { background: linear-gradient(135deg, rgba(44,107,237,.1), rgba(47,184,143,.1)); border: 1px solid #dbe3f0; }
.btn.ghost { background: transparent; box-shadow: none; }

/* Cards and grid */
.grid { display: grid; gap: 1rem; }
.projects { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.meta { color: var(--muted); }

.students, .students-preview { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.student-card { display: grid; grid-template-columns: 64px auto; gap: .9rem; align-items: center; padding: .8rem; border: 1px solid var(--border); background: #ffffff; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.student-card:hover { border-color: #d1d9e8; background: #fdfefe; }
.student-card img { width: 64px; height: 64px; border-radius: 50%; background: #f2f5fa; border: 1px solid var(--border); object-fit: cover; }
.student-card h3 { margin: 0; font-size: 1.05rem; }
.student-card p { margin: .15rem 0 0 0; color: var(--muted); }

/* Publication list */
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pub-list li { background: var(--panel); border: 1px solid var(--border); padding: .9rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.pub-title { display: block; font-weight: 700; }
.pub-authors, .pub-venue { display: block; color: var(--muted); }
.pub-link { margin-left: .5rem; color: var(--brand); text-decoration: none; }
.pub-link:hover { text-decoration: underline; }

/* Publication with thumbnail */
.pub-item { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; align-items: start; }
.pub-thumb { width: 100%; height: 120px; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; background: #f2f5fa; }
.pub-summary { color: var(--muted); margin-top: .25rem; }

/* Project card thumbnail */
.card-thumb { width: 100%; height: 140px; object-fit: cover; border: 1px solid var(--border); border-radius: 10px; background: #f2f5fa; margin-bottom: .6rem; }

@media (max-width: 700px) {
  .pub-item { grid-template-columns: 1fr; }
  .pub-thumb { height: 180px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fbfcfe; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; color: #66748c; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; text-align: center; }
}
