/* Base — always dark */
:root {
  color-scheme: dark;
  --text: #e2e8f0;
  --text-light: #a0aec0;
  --accent: #90cdf4;
  --accent-light: #63b3ed;
  --bg: #1a202c;
  --bg-alt: #2d3748;
  --border: #2d3748;
  --max-width: 780px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  background: var(--bg);
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .site-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

nav a {
  margin-left: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}
nav a:hover, nav a.active {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Profile */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.profile img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text h1 {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.profile-text .title {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.profile-text p {
  margin-bottom: 0.5rem;
}

.contact-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.contact-links a {
  color: var(--text-light);
}

/* Section headings */
h2 {
  font-size: 1.35rem;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
  margin: 2rem 0 1.25rem;
}

h2:first-of-type {
  margin-top: 0;
}

/* Year sub-headings */
h3 {
  font-size: 1.05rem;
  color: var(--text-light);
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

/* Publication items */
.pub {
  margin-bottom: 1.25rem;
  padding-left: 0;
}

.pub .pub-title {
  font-weight: 600;
  color: var(--text);
}

.pub .pub-authors {
  color: var(--text-light);
  font-size: 0.95rem;
}

.pub .pub-journal {
  font-style: italic;
  font-size: 0.95rem;
}

.pub .pub-links {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.pub .pub-links a {
  margin-right: 0.75rem;
}

.pub .pub-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

.pub .pub-year {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Collapsible abstract */
.pub .abstract {
  margin-top: 0.4rem;
}
.pub .abstract > summary {
  cursor: pointer;
  display: inline-block;
  list-style: none;
  user-select: none;
  font-size: 0.82rem;
  color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.6rem;
}
.pub .abstract > summary::-webkit-details-marker { display: none; }
.pub .abstract > summary::before { content: "▸ "; }
.pub .abstract[open] > summary::before { content: "▾ "; }
.pub .abstract > summary:hover {
  color: var(--accent);
  border-color: var(--accent-light);
}
.pub .abstract p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 0.5rem;
  border-left: 2px solid var(--border);
  padding-left: 0.8rem;
}

/* Data page */
.data-item {
  margin-bottom: 1.5rem;
}

.data-item h3 {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-size: 1.05rem;
}

.data-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-links {
    justify-content: center;
  }
  .profile img {
    width: 130px;
    height: 130px;
  }
}
