:root {
  --ink: #14282b;
  --muted: #5f7172;
  --paper: #f5f1e8;
  --paper-strong: #fffdf8;
  --line: rgba(20, 40, 43, 0.14);
  --deep: #0d2f33;
  --teal: #187b78;
  --aqua: #8ed6c5;
  --coral: #e8795b;
  --shadow: 0 24px 70px rgba(13, 47, 51, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; border-radius: 999px; filter: blur(1px); pointer-events: none; z-index: -1; opacity: .55; }
.ambient-one { width: 480px; height: 480px; right: -220px; top: 80px; background: radial-gradient(circle, rgba(142,214,197,.55), transparent 67%); }
.ambient-two { width: 520px; height: 520px; left: -260px; top: 520px; background: radial-gradient(circle, rgba(232,121,91,.17), transparent 68%); }

.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: block; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--teal); }

.hero { min-height: 610px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 72px 82px; }
.eyebrow { margin: 0 0 16px; color: var(--teal); font: 700 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
h1, h2, h3 { margin-top: 0; line-height: 1.14; }
h1 { margin-bottom: 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 78px); font-weight: 500; letter-spacing: -.045em; }
h1 em { color: var(--teal); font-weight: 500; }
.hero-lead { max-width: 690px; margin: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--deep); color: white; box-shadow: 0 10px 24px rgba(13,47,51,.18); }
.button.primary:hover { background: var(--teal); }
.button.secondary { color: var(--deep); background: rgba(255,255,255,.5); border-color: var(--line); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }

.radar-card { position: relative; min-height: 420px; padding: 28px; border: 1px solid rgba(255,255,255,.5); border-radius: 36px; background: linear-gradient(145deg, rgba(13,47,51,.98), rgba(15,73,73,.94)); box-shadow: var(--shadow); overflow: hidden; color: white; }
.radar-orbit { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(142,214,197,.28); border-radius: 50%; left: 50%; top: 43%; transform: translate(-50%,-50%); }
.radar-orbit::before, .radar-orbit::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(142,214,197,.2); border-radius: 50%; }
.radar-orbit::after { inset: 32%; }
.radar-orbit span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 22px var(--aqua); }
.radar-orbit span:nth-child(1) { left: 15%; top: 22%; }
.radar-orbit span:nth-child(2) { right: 9%; top: 54%; background: var(--coral); box-shadow: 0 0 22px var(--coral); }
.radar-orbit span:nth-child(3) { left: 42%; bottom: 2%; }
.stat-grid { position: absolute; inset: auto 28px 28px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.stat-grid div { padding: 15px 12px; border-radius: 17px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.stat-grid strong, .stat-grid span { display: block; }
.stat-grid strong { font-size: 22px; }
.stat-grid span { color: rgba(255,255,255,.64); font-size: 11px; }

.section-block { padding-block: 80px; }
.section-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); font-weight: 500; letter-spacing: -.035em; }
.text-link { color: var(--teal); text-underline-offset: 5px; }
.report-card { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.78); box-shadow: 0 16px 40px rgba(13,47,51,.06); }
.report-date { padding-right: 32px; border-right: 1px solid var(--line); }
.report-date span, .report-date strong { display: block; }
.report-date span { color: var(--teal); font: 700 12px/1 ui-monospace, monospace; letter-spacing: .14em; }
.report-date strong { margin-top: 8px; font: 500 64px/1 Georgia, serif; }
.report-overview { margin: 0; color: var(--ink); white-space: pre-line; }
.highlights { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.highlights li { position: relative; padding-left: 22px; color: var(--muted); }
.highlights li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.library { border-top: 1px solid var(--line); }
.result-count { margin: 0; color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(200px, 1fr) 210px 220px 160px; gap: 12px; margin-bottom: 10px; }
.filters > label { min-width: 0; }
.filter-help { margin: 0 0 24px; font-size: 12px; color: var(--muted); }
.search-box { position: relative; }
input, select { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,248,.85); color: var(--ink); font: inherit; outline: none; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,123,120,.1); }
.search-box input { padding-right: 62px; }
kbd { position: absolute; right: 12px; top: 12px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--paper); font: 11px/1.4 ui-monospace, monospace; }
.paper-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.paper-card { min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.78); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.paper-card:hover { transform: translateY(-3px); border-color: rgba(24,123,120,.45); box-shadow: 0 18px 38px rgba(13,47,51,.08); }
.paper-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.paper-meta time { white-space: nowrap; padding-top: 5px; }
.paper-categories, .paper-topics { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.paper-category { padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; color: var(--teal); background: rgba(24,123,120,.09); font: inherit; font-weight: 700; cursor: pointer; }
.paper-category.pending { color: var(--muted); background: rgba(100,110,110,.08); cursor: default; }
.paper-topics { margin: 0 0 18px; }
.paper-topics[hidden] { display: none; }
.paper-topic-more { font-size: 11px; color: var(--muted); }
.paper-topic-more summary { padding: 4px; cursor: pointer; }
.paper-topic-more[open] { flex-basis: 100%; }
.paper-topic-more > div { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.paper-topic { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-family: inherit; font-size: 11px; line-height: 1.5; cursor: pointer; }
.paper-category:hover, .paper-topic:hover { border-color: var(--teal); color: var(--teal); }
.paper-category:focus-visible, .paper-topic:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.paper-card h3 { margin: 20px 0 14px; font-family: Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.paper-card h3 sup, .paper-card h3 sub { font-size: .68em; line-height: 0; }
.paper-summary { margin: 0 0 18px; color: var(--ink); }
.paper-credits { margin: auto 0 18px; padding: 13px 15px; display: grid; gap: 9px; border: 1px solid rgba(24,123,120,.12); border-radius: 13px; background: linear-gradient(135deg, rgba(24,123,120,.065), rgba(142,214,197,.035)); }
.paper-credits p { margin: 0; min-width: 0; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.5; }
.paper-field-label { color: var(--teal); font: 700 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; }
.paper-authors-value { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.paper-institution-value { min-width: 0; color: var(--deep); font-weight: 650; overflow-wrap: anywhere; }
.paper-authors-value { color: var(--muted); }
.paper-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.paper-links a { color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.paper-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.paper-links .source-link { padding: 3px 9px; border: 1px solid rgba(24,123,120,.2); border-radius: 999px; background: rgba(24,123,120,.07); font-size: 11px; letter-spacing: .02em; }
.paper-links .ccf-badge { padding: 3px 9px; border: 1px solid rgba(224,101,74,.28); border-radius: 999px; color: #b84f38; background: rgba(224,101,74,.08); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.paper-links .code-link { padding: 3px 9px; border: 1px solid rgba(13,47,51,.18); border-radius: 999px; color: var(--deep); background: rgba(13,47,51,.06); font-size: 11px; }
.load-wrap { margin-top: 28px; display: flex; justify-content: center; }
.empty { grid-column: 1/-1; padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; }
.footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 850px) {
  nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .radar-card { min-height: 330px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1/-1; }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-box { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1180px); }
  .topbar { min-height: 72px; }
  h1 { font-size: 43px; }
  .hero { padding-block: 52px 64px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid div { display: flex; justify-content: space-between; align-items: center; }
  .radar-card { min-height: 400px; }
  .section-block { padding-block: 58px; }
  .section-heading { align-items: start; flex-direction: column; }
  .report-card { grid-template-columns: 1fr; padding: 26px; }
  .report-date { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
  .report-date strong { font-size: 42px; }
  .filters, .paper-grid { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .paper-card { min-height: 0; }
  .footer { padding-block: 24px; align-items: start; flex-direction: column; }
}
