:root {
  --bg: #f8f7f3;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #0b3d62;
  --border: #e5e3dd;
  --link: #1565c0;
  --sand: #ab8b5c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --card: #1f2226;
    --text: #e6e6e6;
    --muted: #9aa0a6;
    --accent: #7fb2e0;
    --border: #2c3036;
    --link: #6cb4ff;
    --sand: #d9b98a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}
.header {
  padding: 32px 24px 16px; max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.header h1 {
  margin: 0; color: var(--accent);
  font-size: 52px; font-weight: 800; letter-spacing: -0.01em;
}
.header-date {
  font-size: 30px; font-weight: 700; color: var(--sand);
  white-space: nowrap;
}
.subtitle { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.toc {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 10px 24px; max-width: 1200px; margin: 0 auto;
  display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px;
}
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

section {
  max-width: 1200px; margin: 56px auto 0; padding: 0 24px;
}
section:first-of-type { margin-top: 40px; }
section h2 {
  font-size: 30px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin: 0 0 18px;
}
.sec-subtitle { color: var(--muted); font-size: 13px; margin: -8px 0 18px; }
.empty { color: var(--muted); font-style: italic; padding: 16px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.12s ease;
}
.item:hover { transform: translateY(-2px); }
.item .thumb { display: block; background: var(--border); overflow: hidden; aspect-ratio: 16/9; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.item .meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item .meta .source { font-weight: 600; color: var(--accent); }
.item .meta .lang { text-transform: uppercase; opacity: 0.7; }
.item .meta .paywall-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  background: #c62828;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}
@media (prefers-color-scheme: dark) {
  .item .meta .paywall-badge { background: #ef5350; color: #17191c; }
}
.item h3 { margin: 4px 0 6px; font-size: 15px; line-height: 1.35; }
.item h3 a { color: var(--text); text-decoration: none; }
.item h3 a:hover { color: var(--link); }
.item .summary { margin: 0; font-size: 13.5px; color: var(--text); }
.item .summary.journal-note { color: var(--muted); font-style: italic; }

.paper-list { list-style: none; padding: 0; margin: 0; }
.paper-list li {
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px;
}
.paper-title a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.paper-title a:hover { color: var(--link); }
.paper-meta { font-size: 13px; color: var(--muted); margin: 5px 0; }
.paper-authors { font-size: 13px; color: var(--muted); margin: 2px 0 6px; font-style: italic; }
.paper-abstract { font-size: 14px; margin: 6px 0 0; color: var(--text); line-height: 1.5; }

.notas {
  max-width: 1200px; margin: 80px auto 0; padding: 0 24px;
  color: var(--muted); font-size: 12px;
}
.notas h3 {
  margin: 0 0 8px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 12px;
}
.notas p, .notas ul { margin: 4px 0; }
.notas ul { padding-left: 18px; }
.notas li { margin: 2px 0; }

.footer {
  max-width: 1200px; margin: 32px auto 0; padding: 16px 24px 24px;
  border-top: 1px solid var(--border); color: var(--muted); font-size: 12px;
}
@media (max-width: 640px) {
  .header { padding: 20px 16px 12px; }
  .header h1 { font-size: 36px; }
  .header-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .header-date { font-size: 22px; }
  section { padding: 0 12px; margin-top: 44px; }
  section h2 { font-size: 24px; }
  .notas { margin-top: 60px; padding: 0 12px; }
  .grid { grid-template-columns: 1fr; }
}
