/* S2 project page — adapted from the Nerfies template. */

:root {
  --accent: #2c5282;
  --accent-soft: #ebf5ff;
  --accent-border: #bee3f8;
  --warm-soft: #fffaf0;
  --warm-border: #fbd38d;
  --warm-accent: #8b5a00;
  --muted: #4a5568;
  --bg-alt: #f7fafc;
  --rule: #e2e8f0;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: #1f2937;
}

/* Typography */
.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.section .title {
  font-family: 'Google Sans', sans-serif;
}

/* Hero buttons */
.publication-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Teaser video */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser video,
.teaser img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.hero.publication-header .hero-body {
  padding-bottom: 1rem;
}

/* Small-caps brand mark for "S2" inside running text */
.dnerf {
  font-variant: small-caps;
}

/* Section rhythm */
section.section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

section.section.section-alt {
  background-color: var(--bg-alt);
}

/* TL;DR / headline stat banner */
.tldr-banner {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 0 auto;
  max-width: 880px;
}

.tldr-stat {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tldr-stat .arrow {
  color: #f6ad55;
  margin: 0 0.4em;
}

.tldr-stat .gain {
  color: #f6ad55;
}

.tldr-caption {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* Two-column idea cards */
.idea-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .idea-cards {
    grid-template-columns: 1fr;
  }
}

.idea-card {
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: white;
}

.idea-card.specify {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.idea-card.see {
  background: var(--warm-soft);
  border-color: var(--warm-border);
}

.idea-card .idea-label {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.idea-card.specify .idea-label { color: var(--accent); }
.idea-card.see .idea-label { color: var(--warm-accent); }

.idea-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.idea-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #2d3748;
  margin: 0;
}

/* Figures with captions */
.figure-block {
  margin: 1.5rem auto;
  max-width: 100%;
}

.figure-block img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.figure-caption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.7rem;
  line-height: 1.5;
}

.figure-caption strong {
  color: #1a202c;
}

/* Result stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

.stat-cell {
  text-align: center;
  padding: 1.25rem 1rem;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.stat-cell .stat-num {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
}

.stat-cell .stat-num .baseline {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.4rem;
}

.stat-cell .stat-label {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Task grid */
.task-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .task-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.task-grid figure {
  margin: 0;
}

.task-grid img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

.task-grid figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Section intro paragraph */
.section-intro {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2d3748;
  text-align: center;
}

.section-intro.left {
  text-align: left;
}

/* Pull quote / callout */
.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.55;
  color: #1a365d;
}

.callout strong {
  color: var(--accent);
}

/* BibTeX */
#BibTeX pre {
  font-size: 0.92rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}

/* Footer */
footer.footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--bg-alt);
}
