:root {
  --ink: #172026;
  --muted: #5e6a73;
  --line: #dbe3ea;
  --surface: #f5f8fa;
  --surface-strong: #eaf1f6;
  --accent: #0d6e6e;
  --accent-dark: #084c4c;
  --warm: #f6c56f;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(13, 110, 110, 0.92), rgba(23, 32, 38, 0.88)),
    url("assets/figures/framework.jpg") center / cover;
  color: var(--white);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 600;
}

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

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

.hero-content {
  width: min(1040px, calc(100% - 40px));
  margin: auto;
  padding: 42px 0 72px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(1.85rem, 4.1vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.subtitle {
  max-width: 780px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.32rem);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 34px 0 8px;
  font-weight: 700;
}

.affiliation,
.note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.note {
  margin-top: 4px;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.button.primary {
  border-color: var(--warm);
  background: var(--warm);
  color: #172026;
}

.button.muted {
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

main {
  background: var(--white);
}

.section,
.teaser-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.teaser-section {
  width: min(980px, calc(100% - 40px));
  padding: 28px 0 8px;
}

.wide-media,
.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.wide-media img,
.media-frame img {
  background: var(--white);
}

.qualitative-figure figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  background: var(--white);
}

.teaser-caption {
  max-width: 920px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  text-align: center;
}

.section {
  padding: 74px 0;
}

.section-heading {
  max-width: 820px;
}

.section-heading.full-width {
  max-width: 100%;
}

.section-heading.full-width .body-text {
  max-width: 100%;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.2;
}

.body-text {
  max-width: 920px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
}

.highlights article {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 34px;
}

.split.reverse {
  grid-template-columns: 1.04fr 0.96fr;
}

.method-section {
  display: grid;
  gap: 24px;
}

.method-media img {
  max-width: 1120px;
  margin: 0 auto;
}

.qualitative {
  padding-top: 38px;
}

.qualitative-figure img {
  max-width: 100%;
  margin: 0 auto;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.result-grid .media-frame {
  display: flex;
  align-items: center;
}

.result-item {
  margin: 0;
}

.result-item figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.quantitative {
  padding-top: 38px;
}

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

.table-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
}

.table-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.93rem;
}

.table-scroll {
  overflow-x: auto;
}

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

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

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

.best td {
  color: var(--accent-dark);
  font-weight: 800;
  background: rgba(13, 110, 110, 0.07);
}

.table-figures {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.table-figure {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
}

.table-figure img {
  max-width: 100%;
  margin: 0 auto;
  background: var(--white);
}

.table-figure.compact img {
  max-width: min(720px, 100%);
}

.table-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.citation {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 24px;
  align-items: start;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 12px 34px rgba(23, 32, 38, 0.08);
}

footer {
  padding: 30px 20px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

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

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 40px;
  }

  .section {
    padding: 52px 0;
  }

  .highlights,
  .split,
  .split.reverse,
  .result-grid,
  .table-grid,
  .citation {
    grid-template-columns: 1fr;
  }

  .highlights article {
    min-height: auto;
  }
}

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

  h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.55rem);
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  pre {
    font-size: 0.78rem;
  }
}
