:root {
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --soft: #f6f8fb;
  --white: #ffffff;
  --blue: #2468a7;
  --teal: #1f8a78;
  --amber: #b87514;
  --red: #c74b3f;
  --shadow: 0 14px 42px rgba(24, 33, 47, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.nav,
.hero,
.section,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  padding: 54px 0 46px;
  text-align: center;
}

.venue,
.eyebrow,
.card-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.venue {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 920px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.82rem, 4.1vw, 3.05rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.smallcaps {
  font-variant: small-caps;
}

.subtitle {
  max-width: 780px;
  margin: 18px auto 16px;
  color: #314156;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.4;
}

.authors {
  margin: 18px auto 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.authors a {
  font-weight: 700;
}

.authors sup,
.affiliations sup {
  margin-left: 1px;
  color: var(--teal);
  font-size: 0.72em;
  font-weight: 800;
  line-height: 0;
}

.affiliations {
  margin: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}

.button,
.copy-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button {
  padding: 0 18px;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.button:hover,
.copy-button:hover,
.inline-link:hover {
  border-color: #9ba8b6;
  box-shadow: 0 8px 24px rgba(24, 33, 47, 0.09);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-stats div {
  min-width: 0;
  padding: 20px 12px;
  background: var(--white);
}

.hero-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 78px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 100%;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.text-block {
  max-width: 100%;
  color: #2f3e50;
  font-size: 1.05rem;
}

.text-block p {
  margin: 0 0 18px;
}

.wide-figure,
.image-panel,
.finding figure {
  margin: 0;
}

.wide-figure,
.image-panel {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.figure-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

figcaption {
  padding: 12px 16px 0;
  border-top: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.paradigm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.card,
.finding,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card {
  padding: 24px;
}

.card h3,
.finding h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.card p,
.finding p {
  margin: 0;
  color: #344457;
}

.card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #344457;
}

.card li + li {
  margin-top: 6px;
}

.accent-blue {
  border-top: 4px solid var(--blue);
}

.accent-amber {
  border-top: 4px solid var(--amber);
}

.accent-red {
  border-top: 4px solid var(--red);
}

.split,
.dataset-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.dataset-layout {
  grid-template-columns: 1fr;
  gap: 34px;
}

.dataset-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(24, 33, 47, 0.06);
}

.dataset-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.dataset-summary div {
  padding: 18px 12px;
  background: #fbfcfd;
  text-align: center;
}

.dataset-summary strong {
  display: block;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.05rem;
  line-height: 1;
}

.dataset-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.composition-table {
  display: grid;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.composition-table > div {
  display: grid;
  grid-template-columns: 1.1fr 72px 1.65fr;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.composition-table > div:last-child {
  border-bottom: 0;
}

.composition-head {
  background: #eef3f7;
  color: #27364a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.composition-table strong {
  color: var(--teal);
  font-size: 1.25rem;
}

.composition-table span {
  min-width: 0;
}

.composition-table span:first-child {
  font-weight: 760;
}

.composition-table span:last-child,
.phase-list {
  color: #344457;
}

.phase-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.phase-list p {
  margin: 0;
}

.inline-link {
  min-height: 48px;
  padding: 0 18px;
  width: fit-content;
}

.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th {
  background: #eef3f7;
  color: #27364a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

tr:last-child td {
  border-bottom: 0;
}

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

.finding {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.text-findings .finding {
  min-height: 230px;
  border-top: 4px solid rgba(31, 138, 120, 0.55);
}

.finding .finding-stat {
  margin: 0;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.finding figure {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-top {
  margin-top: 28px;
}

.citation-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 10px 30px rgba(24, 33, 47, 0.06);
}

.copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding: 0 12px;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  color: #243244;
  font: 0.91rem/1.55 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.footer {
  padding: 28px 0 46px;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 15, 23, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 88vh;
  width: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-stats,
  .paradigm-grid,
  .split,
  .dataset-layout,
  .finding-grid {
    grid-template-columns: 1fr;
  }

  .finding {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero,
  .section,
  .footer {
    width: min(100% - 28px, 1120px);
  }

  .band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .inline-link {
    width: 100%;
  }

  .dataset-summary,
  .composition-table > div {
    grid-template-columns: 1fr;
  }

  .composition-head {
    display: none !important;
  }

  pre {
    padding: 64px 18px 20px;
    font-size: 0.78rem;
  }
}
