@font-face {
  font-family: "Google Sans";
  src: url("static/GoogleSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("static/GoogleSans-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --bg: #f5f1ea;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --line: rgba(23, 23, 23, 0.1);
  --line-strong: rgba(23, 23, 23, 0.18);
  --text: #171717;
  --text-soft: #4d4d4d;
  --text-muted: #7a726b;
  --accent: #0f62fe;
  --accent-soft: rgba(15, 98, 254, 0.08);
  --shadow-soft: rgba(0, 0, 0, 0.05) 0 16px 34px -24px, rgba(0, 0, 0, 0.07) 0 0 0 1px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.08), transparent 23rem),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 40rem);
  color: var(--text);
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.page {
  width: min(1120px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 20px 0 72px;
}
.eyebrow, .site-nav, .header-meta, .paper-date, .links, .meta {
  font-family: "Google Sans", system-ui, sans-serif;
}
.eyebrow, .paper-date {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--line);
}
h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 640;
}
.hero-copy {
  margin: 14px 0 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.76;
}
.topbar-side {
  display: grid;
  gap: 16px;
  justify-items: end;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.site-nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
}
.site-nav-link.is-active {
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 0 0 1px var(--line-strong), 0 10px 20px -18px rgba(0,0,0,0.35);
}
.header-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stat {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 1px var(--line);
}
.stat small {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.paper-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}
.paper-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 22px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.paper-card:first-child { border-top: 0; }
.paper-main h2 {
  margin: 6px 0 0;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 620;
}
.abstract {
  margin: 14px 0 0;
  max-width: 780px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.76;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.meta span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(23,23,23,0.04);
  box-shadow: 0 0 0 1px rgba(23,23,23,0.06);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.category-tag {
  background: var(--accent-soft);
  color: #174ea6;
  box-shadow: 0 0 0 1px rgba(15,98,254,0.12);
}
.links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 86px;
}
.links a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.links a::after { content: "↗"; margin-left: 4px; font-size: 10px; }
.empty {
  border-radius: 18px;
  padding: 18px 20px;
  color: var(--text-muted);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 960px) {
  .topbar, .paper-card {
    grid-template-columns: 1fr;
  }
  .topbar-side, .site-nav, .header-meta {
    justify-items: start;
    justify-content: start;
  }
  .links {
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .page {
    width: min(1120px, calc(100vw - 20px));
    padding: 16px 0 48px;
  }
  .empty, .stat {
    border-radius: 16px;
  }
}
