:root {
  --ink: #18232d;
  --muted: #667481;
  --line: #dce4e9;
  --paper: #ffffff;
  --wash: #f5f8fa;
  --accent: #31758e;
  --accent-dark: #24596d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #f3f7f9 0, #fff 470px);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 92px 20px 68px; text-align: center; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.subtitle {
  max-width: 820px;
  margin: 22px auto 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.35;
}

.authors { margin: 17px 0 26px; color: var(--muted); font-size: .98rem; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 7px rgb(26 52 64 / 7%);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

a.project-link:hover { transform: translateY(-2px); border-color: #9eb8c3; box-shadow: 0 7px 18px rgb(26 52 64 / 11%); }
.project-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.project-link svg .fill { fill: currentColor; stroke: none; }
.project-link small { color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .02em; }
.project-link.pending { color: #596772; cursor: default; }
.hf-icon { font-size: 1.12rem; line-height: 1; filter: saturate(.82); }

section { margin: 0 auto 78px; }

h2 {
  margin: 0 0 24px;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.figure-frame {
  padding: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 15px 40px rgb(36 64 76 / 9%);
}

.figure-frame img { display: block; width: 100%; height: auto; }

.caption {
  max-width: 920px;
  margin: 16px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .96rem;
  line-height: 1.55;
}

.abstract {
  max-width: 920px;
  padding: 50px 56px;
  background: var(--wash);
  border-left: 3px solid var(--accent);
  border-radius: 3px 10px 10px 3px;
}

.abstract h2 { margin-bottom: 18px; text-align: left; }
.abstract p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.82; text-align: justify; }

footer { padding: 28px 20px 38px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: .78rem; letter-spacing: .06em; }

@media (max-width: 640px) {
  main { width: min(100% - 24px, 1120px); }
  .hero { padding: 65px 4px 50px; }
  .eyebrow { max-width: 340px; margin-inline: auto; font-size: .62rem; line-height: 1.5; }
  h1 { font-size: clamp(3rem, 16vw, 4rem); }
  .subtitle { font-size: 1.18rem; }
  .links { gap: 7px; }
  .project-link { padding: 8px 10px; }
  .project-link small { display: none; }
  section { margin-bottom: 56px; }
  .figure-frame { padding: 6px; border-radius: 7px; }
  .caption { padding: 0 4px; font-size: .86rem; }
  .abstract { padding: 34px 24px; }
  .abstract p { font-size: 1rem; line-height: 1.72; text-align: left; }
}
