:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --paper: #fffefa;
  --ink: #171717;
  --muted: #66645f;
  --line: #ded9cd;
  --accent: #274f8f;
  --accent-soft: #edf2fb;
  --shadow: 0 18px 44px rgba(58, 53, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(248, 247, 243, 0.92), rgba(248, 247, 243, 1)),
    repeating-linear-gradient(90deg, rgba(39, 79, 143, 0.03) 0 1px, transparent 1px 84px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.25rem;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
}

.brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.15rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  margin: 0 auto;
  max-width: 1040px;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.venue,
.section-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.8vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 1.15rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.32;
  margin-bottom: 0.55rem;
}

.authors {
  font-size: clamp(1rem, 2vw, 1.22rem);
  margin: 0 auto 0.45rem;
  max-width: 900px;
}

.affiliations,
.prose p,
.section p,
figcaption {
  color: var(--muted);
}

.affiliations {
  margin-bottom: 1.8rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  gap: 0.45rem;
  font-weight: 800;
  padding: 0.72rem 1.15rem;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.button.disabled {
  cursor: default;
  opacity: 0.72;
}

.section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 4.4rem 1.25rem;
}

.figure-section {
  padding-top: 3rem;
}

.two-column {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
}

.prose {
  font-size: 1.04rem;
}

.contribution-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1rem;
}

.contribution-grid article,
.paper-figure,
pre,
.resource {
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contribution-grid article {
  border-radius: 1rem;
  padding: 1.35rem;
}

.section-intro {
  max-width: 720px;
}

.figure-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 1.8rem;
}

.result-card {
  align-items: center;
  background: rgba(255, 254, 250, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  padding: 1rem;
}

.result-card.reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.result-card.reverse .result-text {
  order: 2;
}

.result-card.reverse .paper-figure {
  order: 1;
}

.result-card.wide {
  align-items: start;
  grid-template-columns: 1fr;
}

.result-text {
  padding: 0.5rem 0.65rem;
}

.result-kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.paper-figure {
  border-radius: 1rem;
  margin: 0;
  overflow: hidden;
}

.paper-figure.wide {
  grid-column: 1 / -1;
}

.paper-figure img {
  background: #ffffff;
  padding: 1rem;
  width: 100%;
}

.paper-figure figcaption {
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  padding: 0.95rem 1.05rem 1.05rem;
}

.paper-figure figcaption strong {
  color: var(--ink);
}

pre {
  border-radius: 1rem;
  margin: 0;
  overflow-x: auto;
  padding: 1.2rem;
}

pre code {
  color: #242424;
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
}

.resources {
  padding-top: 2rem;
}

.resource-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.3rem;
}

.resource {
  border-radius: 1rem;
  display: block;
  padding: 1.1rem;
}

.resource span,
.resource strong {
  display: block;
}

.resource span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.25rem;
}

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

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 1rem auto 0;
  max-width: 1120px;
  padding: 2rem 1.25rem 3rem;
}

.footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .two-column,
  .contribution-grid,
  .result-card,
  .result-card.reverse,
  .figure-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .result-card.reverse .result-text,
  .result-card.reverse .paper-figure {
    order: initial;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 1rem;
  }

  .nav {
    display: block;
  }

  .nav-links {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}
