:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #e5eaf1;
  --soft: #f7f9fc;
  --accent: #1769aa;
  --accent-dark: #124d7d;
  --max-reading: 860px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.7;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.safevantage-header {
  background: #fff;
  border-bottom: 0;
  text-align: center;
}

.header-inner {
  padding: 5.75rem 1.5rem 3.35rem;
}

.publication-title {
  max-width: 820px;
  margin: 0 auto 1.7rem !important;
  color: var(--ink) !important;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.15rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.055em;
  line-height: 1.08;
}

.title-project, .title-subtitle { display: block; }
.title-project {
  letter-spacing: -.06em;
  line-height: 1.18;
  padding: 0 .03em .1em;
  font-weight: 800;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 48%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-subtitle { margin-top: .28rem; font-size: .62em; font-weight: 700; letter-spacing: -.04em; line-height: 1.12; }

.publication-authors {
  max-width: 840px;
  margin: 0 auto;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.95;
}

.author-block { display: inline-block; white-space: nowrap; }

.affiliations {
  display: flex;
  max-width: 820px;
  margin: 1rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

.affiliations span { display: inline-block; }
.affiliations small { flex-basis: 100%; margin-top: .35rem; font-size: .78rem; }

.publication-links {
  display: flex;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
}

.publication-links .button { min-height: 2.55rem; padding: .4rem 1rem; font-weight: 600; }
.publication-links .icon { margin-right: .25rem; }

.teaser {
  padding: 3.3rem 1.5rem 4.7rem;
  background: #fff;
}

.video-section { padding: 0 1.5rem 1.5rem; background: #fff; }

.hero-figure {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-figure img, .figure-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(24, 47, 78, .12);
}

.hero-figure .figure-caption { margin-top: .9rem; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.video-panel { max-width: 1080px; margin: 3.4rem auto 0; }
.video-panel video { display: block; width: 100%; height: auto; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.video-credit { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.teaser-copy {
  max-width: 720px;
  margin: 1.7rem auto 0;
  color: var(--muted);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.32rem;
  line-height: 1.45;
  text-align: center;
}

.content-section { padding: 6.5rem 1.5rem; }
.section-tint { background: #fff; border-top: 0; border-bottom: 0; }
.reading-column { max-width: var(--max-reading); }

.content-section h2 {
  margin: 0 0 1.9rem;
  color: var(--ink);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.prose { color: #334155; font-size: 1.06rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

.figure-panel { margin: 3.25rem 0 0; }
.figure-panel figcaption { margin-top: .85rem; color: var(--muted); font-size: .91rem; line-height: 1.55; }

.results-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 3.5rem 1.5rem; margin: 3rem 0 2rem; }
.results-figures .figure-panel { min-width: 0; margin: 0; }
.results-figures .figure-panel img { height: auto; object-fit: contain; background: #fff; }

.resource-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.resource-links .button { font-weight: 600; }

.citation-section { padding-top: 4.5rem; padding-bottom: 5.5rem; }
.citation-section > .container > p { color: var(--muted); }
pre { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
pre code { color: #334155; font-family: 'Castoro', Georgia, serif; font-size: .9rem; line-height: 1.65; }

.site-footer { padding: 2.5rem 1.5rem; border-top: 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer-title { margin: 0; color: var(--ink); font-family: 'Google Sans', sans-serif; font-size: 1.25rem; font-weight: 700; }
.site-footer-copy { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; }

@media screen and (max-width: 768px) {
  .header-inner { padding-top: 4rem; }
  .publication-title { font-size: clamp(2.15rem, 10vw, 3.55rem) !important; }
  .publication-authors { font-size: 1rem; line-height: 1.8; }
  .affiliations { display: block; font-size: .84rem; }
  .affiliations span { display: block; margin-bottom: .35rem; }
  .teaser { padding-top: 2.25rem; padding-bottom: 3.75rem; }
  .teaser-copy { font-size: 1.12rem; }
  .content-section { padding-top: 4.6rem; padding-bottom: 4.6rem; }
  .results-figures { grid-template-columns: 1fr; }
  .results-figures { gap: 2.75rem; }
  .footer-inner { display: block; }
  .site-footer nav { margin-top: 1.25rem; }
}
