:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1f1d1a;
  --muted: #6b665e;
  --accent: #8a3b12;
  --rule: #e4e0d8;
  --card: #f6f6f4;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 680px;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--rule);
  font-family: Inter, system-ui, sans-serif;
}
.site-title { font-weight: 500; font-size: 17px; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a.active { color: var(--text); }

main { padding: 40px 0 56px; }

h1 { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 0 0 20px; }
h2 { font-size: 22px; font-weight: 600; margin: 44px 0 12px; }
h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }

blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--rule); color: var(--muted); font-style: italic; }
code { font-size: 0.85em; background: var(--card); padding: 2px 5px; border-radius: 4px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.date, .meta { color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 14px; white-space: nowrap; }
.meta a { color: var(--muted); text-decoration: none; }

.paper { padding: 24px; background: var(--card); border-radius: 8px; margin-bottom: 20px; }
.paper p { margin: 8px 0; }
.authors, .venue { color: var(--muted); font-size: 16px; margin: 2px 0 !important; }
.paper-links { font-family: Inter, system-ui, sans-serif; font-size: 15px; }
.paper-links a { margin-right: 16px; }


@media (max-width: 520px) {
  body { font-size: 17px; }
  h1 { font-size: 28px; }
  .post-list li { flex-direction: column; gap: 2px; }
}
