:root {
  --bg: #07172b;
  --panel: #0d2036;
  --ink: #eef3f8;
  --muted: #bac9d9;
  --dim: #96aec5;
  --line: #ffffff25;
  --accent: #f8e7a1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Poppins, "PingFang SC", Verdana, "Helvetica Neue", sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px 20px; z-index: 10; background: white; color: #102c49; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.logo { flex-shrink: 0; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 24px; font-size: 12px; color: var(--muted); }
.intro { padding-block: 72px 54px; }
.eyebrow { margin: 0 0 14px; color: var(--dim); font-size: 10px; font-weight: 500; letter-spacing: .15em; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.intro-lead { margin-top: 23px; max-width: 750px; font-size: 21px; color: #dbe6f0; line-height: 1.5; }
.intro-description { max-width: 820px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.topic-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.topic-links a { padding: 5px 12px; border: 1px solid #abc1d245; border-radius: 3px; color: #c8d8e6; font-size: 11px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-block: 25px; border-top: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { font-size: 29px; font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.section-heading > p { font-size: 11px; color: var(--dim); }
.research-entry { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); align-items: center; gap: 46px; padding-block: 38px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.research-entry figure { min-width: 0; }
.figure-link { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #0a1b30; }
.figure-link img { width: 100%; height: auto; }
.paper-figure { background: white; }
.paper-figure img { max-height: 300px; object-fit: contain; }
figcaption { margin-top: 10px; color: var(--dim); font-size: 9px; line-height: 1.7; }
figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.entry-copy { min-width: 0; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 13px; font-size: 10px; color: var(--dim); }
.tag { font-size: 9px; letter-spacing: .07em; color: #afcbdc; }
h3 { max-width: 650px; margin-bottom: 16px; font-size: 25px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.entry-copy > p:not(.entry-meta):not(.citation) { font-size: 13px; color: var(--muted); }
.citation { margin-top: 14px; color: var(--dim); font-size: 10px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 11px 23px; align-items: center; margin-top: 20px; color: var(--accent); font-size: 11px; }
.entry-links a { border-bottom: 1px solid #f8e7a166; padding-bottom: 3px; }
.entry-links .primary-link { padding: 7px 12px; border: 1px solid #f8e7a166; border-radius: 3px; }
.research-section { padding-bottom: 38px; }
.tools-section { padding-block: 48px; background: var(--panel); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 23px 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }

@media (max-width: 920px) {
  .container { width: calc(100% - 56px); }
  .research-entry { grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 28px; }
  .site-header nav { gap: 15px; font-size: 11px; }
  h3 { font-size: 23px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .site-header { align-items: start; padding-block: 23px; gap: 20px; }
  .site-header nav { gap: 7px 14px; max-width: 245px; font-size: 10px; }
  .intro { padding-block: 48px 38px; }
  .intro-lead { font-size: 19px; }
  .intro-description { font-size: 13px; }
  .topic-links { gap: 8px; }
  .topic-links a { font-size: 10px; padding-inline: 9px; }
  .section-heading { display: block; padding-block: 23px; }
  .section-heading > p { margin-top: 14px; }
  h2 { font-size: 26px; }
  .research-entry { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 30px; }
  .paper-figure img { max-height: 360px; }
  h3 { font-size: 25px; }
  .entry-copy > p:not(.entry-meta):not(.citation) { font-size: 13px; }
  .research-section { padding-bottom: 22px; }
  .tools-section { padding-block: 30px; }
  .site-footer { flex-wrap: wrap; font-size: 9px; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
