:root {
  color-scheme: light;
  --text: #30343b;
  --muted: #68707d;
  --accent: #2376b7;
  --border: #e6e9ed;
  --surface: #f7f8fa;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button { font: inherit; }
sup { font-size: .65em; line-height: 0; vertical-align: super; }

.container { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.reading-container { width: min(890px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 8px 16px; background: #fff; }
.skip-link:focus { top: 8px; }
.site-header { border-bottom: 1px solid #f0f1f3; }
.navigation { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { color: var(--text); font-weight: 750; font-size: 18px; letter-spacing: -.5px; }
.wordmark span { color: var(--accent); }
.navigation-links { display: flex; gap: 28px; font-size: 14px; }
.navigation-links a { color: var(--muted); }
.navigation-links a:hover { color: var(--accent); }

.hero { padding-top: 68px; padding-bottom: 36px; text-align: center; }
h1 { max-width: 1050px; margin: 0 auto 32px; font-size: clamp(30px, 4.05vw, 48px); line-height: 1.19; font-weight: 750; letter-spacing: -1.55px; text-wrap: balance; }
.project-name { color: var(--accent); }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 19px; line-height: 1.9; }
.authors span, .affiliations span { white-space: nowrap; }
.authors sup { margin-left: 2px; }
.affiliations { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-top: 13px; font-size: 16px; }
.affiliations sup { margin-right: 3px; }
.correspondence { margin: 11px 0 0; color: var(--muted); font-size: 14px; }
.correspondence sup { margin-right: 2px; }

.resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.resource-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 8px 19px; border: 1px solid var(--text); border-radius: 24px; background: var(--text); color: #fff; font-size: 15px; line-height: 1.4; transition: background .15s ease, border-color .15s ease; }
.resource-link:hover { background: #1b2027; border-color: #1b2027; text-decoration: none; }
.resource-link[aria-disabled="true"] { background: #f0f2f5; color: #6b7280; border-color: #e6e9ed; cursor: default; }
.resource-link svg, .copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resource-link .filled-icon { fill: currentColor; stroke: none; }
.hugging-face-icon { font-size: 19px; line-height: 1; }

.section { padding-top: 48px; padding-bottom: 52px; }
h2 { margin: 0 0 27px; text-align: center; font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.6px; }
.overview-section { padding-top: 24px; }
.overview-figure { margin: 0; }
.placeholder { border: 1px dashed #d8dde5; border-radius: 8px; background: #fafbfc; }
.overview-placeholder { min-height: 290px; }
.overview-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.overview-figure figcaption { margin-top: 16px; text-align: left; color: var(--muted); font-size: 15px; line-height: 1.65; }

.abstract-section { padding: 47px 0 50px; background: var(--surface); }
.abstract-section h2 { margin-bottom: 23px; }
.abstract-section p { margin: 0; font-size: 17px; line-height: 1.85; text-align: justify; }
.abstract-section strong { color: #202731; font-weight: 700; }
.leaderboard-placeholder { min-height: 235px; }

.citation-section { padding-top: 8px; padding-bottom: 56px; }
.citation-heading { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.citation-heading h2 { margin: 0; text-align: left; }
.copy-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d8dde5; border-radius: 6px; padding: 6px 11px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; }
.copy-button:hover:enabled { background: var(--surface); }
.copy-button:disabled { color: #7c8490; background: #fafbfc; cursor: default; }
.citation-block { min-height: 130px; margin: 0; padding: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; white-space: pre; tab-size: 2; }
.citation-block code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 14px; line-height: 1.7; }
.copy-status { min-height: 22px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 29px 0 32px; border-top: 1px solid var(--border); background: #fafbfc; text-align: center; }
.site-footer p { margin: 0; font-size: 15px; font-weight: 650; }
.site-footer .footer-note { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }

@media (max-width: 720px) {
  .navigation { flex-direction: column; justify-content: center; gap: 9px; padding-block: 15px; }
  .navigation-links { flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; }
  .hero { padding-top: 43px; padding-bottom: 25px; }
  h1 { margin-bottom: 24px; letter-spacing: -.85px; line-height: 1.25; }
  .authors { font-size: 17px; gap: 1px 9px; }
  .affiliations { gap: 3px 15px; font-size: 14px; }
  .correspondence { font-size: 13px; }
  .resources { margin-top: 24px; gap: 8px; }
  .resource-link { min-height: 41px; padding: 8px 14px; font-size: 14px; }
  .section { padding-top: 32px; padding-bottom: 36px; }
  h2 { font-size: 27px; margin-bottom: 21px; }
  .overview-placeholder { min-height: 190px; }
  .abstract-section { padding-block: 35px; }
  .abstract-section p { text-align: left; font-size: 16px; line-height: 1.8; }
  .leaderboard-placeholder { min-height: 190px; }
  .citation-section { padding-top: 2px; }
  .citation-block { min-height: 115px; padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .resource-link { transition: none; }
}
