:root {
  color-scheme: light;
  --bg: #fbfcfb;
  --ink: #171b1f;
  --muted: #5d6670;
  --soft: #eef2f4;
  --line: #d9e0e5;
  --surface: #ffffff;
  --green: #0b7f64;
  --blue: #2356b8;
  --amber: #b86f20;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(217, 224, 229, 0.72);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  flex: 0 0 auto;
  font-size: 0.98rem;
  font-weight: 850;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--blue);
}

main,
footer {
  width: calc(100vw - 40px);
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  padding: clamp(48px, 8vw, 96px) 0 36px;
  text-align: center;
}

.venue,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0 auto 18px;
  font-size: clamp(3.25rem, 9vw, 7.7rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.title-line,
.title-subtitle {
  display: block;
}

.title-subtitle {
  margin-top: 12px;
  color: #263038;
  font-size: clamp(1.9rem, 4vw, 3.9rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.authors {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 820;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.affiliations {
  margin-bottom: 0;
  color: #53606a;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  max-width: 100%;
}

.actions a,
.resource-list a,
.resource-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 820;
  overflow: hidden;
  text-align: center;
  white-space: normal;
}

.actions a:hover,
.resource-list a:hover {
  border-color: rgba(35, 86, 184, 0.45);
  color: var(--blue);
}

.hero-figure,
.wide-figure,
.figure-row figure,
.table-gallery figure,
.paper-snapshot {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure {
  margin: 42px 0 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 1125 / 367;
  object-fit: contain;
  background: #ffffff;
}

figcaption {
  padding: 13px 16px 15px;
  border-top: 1px solid var(--line);
  color: #58636e;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.section {
  padding: clamp(44px, 7vw, 82px) 0;
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

.intro-grid p {
  max-width: 760px;
}

.paper-snapshot {
  max-height: 620px;
}

.paper-snapshot img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.045);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 28px;
  margin-bottom: 42px;
  border: 1px solid rgba(11, 127, 100, 0.3);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.feature-grid p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.wide-figure {
  margin: 24px 0 16px;
}

.wide-figure img {
  width: 100%;
  background: #ffffff;
}

.figure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.figure-row figure {
  margin-bottom: 0;
}

.figure-row img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #ffffff;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 16px;
}

.metric-strip div {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
}

.metric-strip div:nth-child(2) {
  border-left-color: var(--blue);
}

.metric-strip div:nth-child(3) {
  border-left-color: var(--amber);
}

.metric-strip span,
.resource-list span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-strip strong {
  display: block;
  margin: 10px 0 4px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.metric-strip p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.table-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.table-gallery figure {
  margin-bottom: 0;
}

.table-gallery img {
  width: 100%;
  height: 280px;
  padding: 10px;
  object-fit: contain;
  background: #ffffff;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-list a,
.resource-list div {
  display: block;
  min-height: 112px;
  padding: 20px;
}

.resource-list strong {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

pre {
  margin: 20px 0 0;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11161a;
  color: #eff6f4;
  font-size: 0.94rem;
  line-height: 1.6;
}

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

footer {
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

footer p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .top-nav {
    display: none;
  }

  main,
  footer {
    width: calc(100vw - 28px);
    max-width: 720px;
  }

  .hero {
    text-align: left;
  }

  .actions {
    justify-content: flex-start;
  }

  .intro-grid,
  .feature-grid,
  .figure-row,
  .metric-strip,
  .table-gallery,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .feature-index {
    margin-bottom: 22px;
  }

  .paper-snapshot {
    max-height: 520px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 56px;
    padding: 0 14px;
  }

  main,
  footer {
    width: calc(100vw - 20px);
    max-width: 520px;
  }

  h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.15rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .title-subtitle {
    font-size: clamp(1.28rem, 6vw, 1.75rem);
    line-height: 1.12;
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.55rem);
  }

  .actions a {
    flex: 1 1 100%;
    justify-content: center;
  }

  figcaption {
    font-size: 0.86rem;
  }

  .table-gallery img {
    height: auto;
  }
}
