/* ---------- Base ---------- */
:root {
  --max: 1050px;
  --pad: 24px;
  --accent: #a64b00;
  --accent-bg: #f6e5d7;
  --accent-border: #dfc0a8;
  --page-canvas: #f1f0ed;
  --page-surface: #fffefa;
  --panel-radius: 18px;
  --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-reading: 'STIX Two Text', Georgia, serif;
}

body {
  margin: 0;
  font: 16px/1.65 var(--font-ui);
  color: #111;
  background: var(--page-canvas);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  transition: color 150ms, border-bottom-color 150ms;
}

a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

h1 { margin: 14px 0 6px; font-size: 24px; }

h2 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
}

.main > section {
  margin: 0 0 72px;
}

.meta, .muted { color: #555; }

/* Accent left border on main section headings */
.main section:not(.bio-card) h2 {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

/* ---------- Bio Card ---------- */
.bio-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto 72px;
  padding: 26px 30px;
  border: 1px solid var(--accent-border);
  border-radius: var(--panel-radius);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent-bg) 60%, var(--page-surface)) 0%, var(--accent-bg) 60%, color-mix(in srgb, var(--accent-bg) 98%, var(--accent)) 100%);
  color: #292d29;
  box-shadow: 0 14px 32px rgba(32, 24, 20, 0.18);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.bio-card::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%);
  opacity: 0;
  filter: blur(40px);
  transition: opacity 320ms ease;
  pointer-events: none;
}

.bio-card:hover,
.bio-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(32, 24, 20, 0.28);
}

.bio-card:hover::before,
.bio-card:focus-within::before {
  opacity: 0.25;
}

.bio-card h2 {
  font-size: 1.35rem;
}

.bio-card p {
  margin: 0 0 16px;
}

@media (prefers-reduced-motion: reduce) {
  .bio-card,
  .bio-card::before {
    transition-duration: 0ms !important;
  }
}

/* ---------- Homepage Layout ---------- */
.wrap {
  max-width: var(--max);
  margin: 48px auto 40px;
  padding: var(--pad);
  display: grid;
  gap: 32px;
  grid-template-columns: 280px 1fr;
}

.home-site .main {
  min-width: 0;
  padding: 32px;
  background: var(--page-surface);
  border-radius: var(--panel-radius);
}

.home-site .main > section:last-child {
  margin-bottom: 0;
}

.sidebar {
  position: sticky;
  top: var(--pad);
  align-self: start;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--panel-radius);
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 600px) {
  .home-site .wrap {
    margin: 20px auto;
    padding: 12px;
  }
  .home-site .main { padding: 24px 20px; }
  .home-site .bio-card { padding: 22px 20px; }
}

/* ---------- Sidebar ---------- */
.contact { margin: 10px 0; }

.links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.links .sep {
  color: #ccc;
}

.sidebar-posts {
  margin-top: 32px;
}

.sidebar-posts h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.sidebar-posts ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

/* ---------- News ---------- */
.news,
.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.date {
  display: inline-block;
  width: 90px;
  color: #666;
}

/* ---------- Publications ---------- */
.pubs > li.pub {
  padding: 10px 0;
  font-family: var(--font-reading);
  font-size: 15px;
}

.pub-title {
  display: block;
  line-height: 1.5;
}

.pub-meta {
  display: block;
  color: #999;
  font-size: 13px;
}

/* ---------- Research Tracks ---------- */
.track-thumb {
  display: block;
  width: 100%;
  max-width: 340px;
  border: 0;
  border-radius: 6px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.track-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.track strong {
  font-weight: 600;
}

.track:not(:first-child) {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}
