:root{
  --bg:#0b0e14;
  --panel:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:#1f2937;
  --link:#38bdf8;
  --main: #1DA1F2;
  --nav-text: #1DA1F2;
  --nav-hover: #ffffff;
  --blue-light: #4FB6F6;
  --blue-soft: #7CCBFA;
  --blue-dark: #0D8AD1;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-header{
  border-bottom: 1px solid var(--line);
  background: rgba(11,14,20,0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand{
  color: var(--text);
  text-decoration:none;
  font-weight: 650;
}

.nav a{
  color: var(--nav-text);
  text-decoration:none;
  margin-left: 18px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav a:hover{ color: var(--nav-hover); }

.nav a.active{
  color: var(--nav-hover);
  font-weight: 600;
}

/* --- Home hero layout --- */
.hero{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
}

.hero-photo{
  width: 160px;
  height: 160px;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(15,23,42,0.6);
}

.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Small identity line under name */
.tagline{
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 1.02rem;
}

/* Compact list styling (Education etc.) */
.compact-list{
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}
.compact-list li{
  margin: 0.35rem 0;
  color: var(--text);
}
.compact-list .where{
  color: var(--muted);
}

/* Quick links row */
.quicklinks{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.9rem;
}
.quicklinks a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(15,23,42,0.35);
}
.quicklinks a:hover{
  border-color: var(--link);
}

/* Responsive: stack photo above text on small screens */
@media (max-width: 640px){
  .hero{
    grid-template-columns: 1fr;
  }
  .hero-photo{
    width: 140px;
    height: 140px;
  }
}


.content{
  padding: 34px 0 46px;
}

h1{ font-size: 2.1rem; margin: 0 0 0.3rem; }
h2{ margin-top: 2rem; }
h3{ margin-top: 1.4rem; }
p{ margin: 0.65rem 0; }

a{ color: var(--link); }
hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 22px 0;
}

.card{
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.pillar-row {
    margin: 70px 0;
}

.pillar-title-row {
    text-align: center;
    font-size: 1.4em;
    font-weight: 600;
    color: #1DA1F2;   /* theme color */
    margin-bottom: 18px;
}

.pillar-figure-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pillar-figure-row img {
    max-width: 720px;
    width: 100%;
    height: auto;
}

.pillar-gap {
    margin: 10px 0 10px 0;
    padding: 14px 20px;
    text-align: center;
    font-style: italic;
    font-size: 0.8em;
    color: #b0cde8;              /* soft blue-gray */
}

.figure-img {
    width: 100%;
    max-width: 100px;
    display: block;
    margin: 0 auto;
}

/* Publication icons */
.icon-journal{ color: var(--main); }
.icon-conf{ color: var(--blue-light); }
.icon-book{ color: var(--blue-dark); }
.icon-preprint{ color: var(--blue-soft); }
.icon-thesis{ color: var(--main); }
