/* Warm editorial stylesheet — dark red accent, colored sidebar */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f8f6f3;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #8b1a1a;
  --accent-light: #a52a2a;
  --accent-hover: #c0392b;
  --border: #e5e2dc;
  --badge-bg: #fce8e8;
  --badge-text: #8b1a1a;
  --pill-bg: #f5eeee;
  --pill-hover: #ebdcdc;
  --sidebar-bg: #2c1810;
  --sidebar-text: #f5f0eb;
  --sidebar-muted: #c4b5a8;
  --sidebar-link: #e8ddd2;
  --sidebar-link-hover: #ffffff;
  --sidebar-divider: rgba(255,255,255,0.12);
  --news-bg: #fdf6f0;
  --news-border: #f0d9c4;
  --news-accent: #8b1a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Two-column layout */
.layout {
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 28px 64px;
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* ===== LEFT SIDEBAR ===== */
.sidebar {
  flex: 0 0 240px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-radius: 10px 0 0 10px;
  padding: 28px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 18px;
}

.sidebar-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: center;
  color: var(--sidebar-text);
}

.sidebar-role {
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: var(--sidebar-muted);
  text-align: center;
  line-height: 1.4;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar-links li {
  margin-bottom: 2px;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sidebar-link);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-links a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--sidebar-link-hover);
  text-decoration: none;
}

.sidebar-links svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border-radius: 0 10px 10px 0;
  border: 1px solid var(--border);
  border-left: none;
  padding: 28px 36px 36px;
}

/* Top Navigation */
.topnav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  font-weight: 500;
}

.topnav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.topnav a.active {
  color: var(--accent);
  font-weight: 600;
}

.topnav a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.bio p {
  margin: 0 0 13px;
}

/* ===== SECTIONS ===== */
section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.section-header h2 {
  margin-bottom: 0;
}

.section-more {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== NEWS BANNER ===== */
.news-banner {
  background: var(--news-bg);
  border: 1px solid var(--news-border);
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid var(--news-accent);
}

.news-banner h2 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: var(--news-accent);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  gap: 14px;
  padding: 5px 0;
  align-items: baseline;
  font-size: 0.93rem;
}

.news-list li + li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-date {
  flex: 0 0 76px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--news-accent);
  font-variant-numeric: tabular-nums;
}

/* ===== PUBLICATIONS ===== */
.pub-year {
  margin: 22px 0 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.pub-year:first-of-type {
  margin-top: 6px;
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-item {
  padding: 13px 0 13px 14px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: border-left-color 0.2s ease;
}

.pub-item:hover {
  border-left-color: var(--accent);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  font-size: 0.97rem;
}

.pub-authors {
  margin-top: 3px;
  font-size: 0.89rem;
  color: var(--muted);
}

.pub-authors strong {
  color: var(--text);
  font-weight: 600;
}

.pub-meta {
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.pub-venue {
  font-style: italic;
}

.pub-award {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.82rem;
}

.pub-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-style: normal;
  margin-top: 2px;
}

.pub-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.pub-links a::before {
  content: "[";
  color: var(--muted);
  font-weight: 400;
}

.pub-links a::after {
  content: "]";
  color: var(--muted);
  font-weight: 400;
}

.pub-links a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.venue-badge {
  display: inline-block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
}

footer {
  margin-top: 36px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .layout {
    flex-direction: column;
    padding: 16px 12px 48px;
    gap: 0;
  }

  .sidebar {
    border-radius: 10px 10px 0 0;
    padding: 24px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .sidebar-photo {
    width: 120px;
    height: 120px;
  }

  .sidebar-info {
    text-align: center;
    width: 100%;
  }

  .sidebar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .sidebar-links a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .main {
    border-radius: 0 0 10px 10px;
    border-left: 1px solid var(--border);
    border-top: none;
    padding: 20px 18px 28px;
  }

  .topnav {
    justify-content: center;
  }

  .news-list li {
    flex-direction: column;
    gap: 1px;
    padding: 6px 0;
  }

  .pub-item {
    padding: 12px 14px;
  }
}
