:root {
  --bg: #f3f6f7;
  --text: #22282d;
  --muted: #65727d;
  --accent: #0f5f73;
  --bar: #2a9d8f;
  --rule: #d5dfe3;
  --max: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161a1d;
    --text: #e4e9ec;
    --muted: #9aa7b0;
    --accent: #6cc4d6;
    --bar: #4cc2b2;
    --rule: #2a3238;
  }
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Top nav */
header { padding: 12px 0; }
nav { display: flex; justify-content: center; flex-wrap: wrap; }
nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Content */
main { padding: 24px 0 56px; }

h1, h2, h3, .sidebar-name {
  font-family: "Lora", Georgia, serif;
  line-height: 1.3;
}
h1 { font-size: 1.7rem; margin: 0 0 20px; }
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-left: 10px;
  border-left: 4px solid var(--bar);
}
h2:first-child { margin-top: 0; }
h3 { font-size: 1rem; margin: 0 0 4px; }

p { margin: 0 0 12px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.subtitle { color: var(--muted); margin-bottom: 24px; }

/* Home: sidebar + content */
.home-panels {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}
.sidebar {
  padding-right: 32px;
  border-right: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.sidebar img {
  display: block;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 12px;
}
.sidebar-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.sidebar p { margin-bottom: 10px; }
.main-content { text-align: justify; }
.main-content h2 { text-align: left; }
@media (max-width: 720px) {
  .home-panels { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
  .sidebar img { max-width: 240px; }
}

/* Papers */
.paper { margin-bottom: 20px; }
.paper h3 { font-family: "Roboto", system-ui, sans-serif; font-weight: 400; }
.paper h3 a, .paper h3 { color: var(--accent); }
.paper .authors, .paper .venue { margin: 0; font-size: 1rem; }
.paper .venue { font-style: italic; }
.paper .links { margin-top: 2px; }
.paper .links a { margin-right: 8px; }
.paper details { margin-top: 6px; font-size: 0.95rem; text-align: justify; }
.paper summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }

ul.plain { padding-left: 18px; margin: 0 0 14px; }

footer {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
