:root {
  --ink: #12201c;
  --muted: #5d6b66;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dce3dd;
  --green: #1e5f4d;
  --green-dark: #123e34;
  --green-soft: #e4efe6;
  --orange: #e8793d;
  --blue: #3d6f98;
  --shadow: 0 24px 70px rgba(24, 58, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

nav a,
footer a {
  transition:
    color 160ms ease,
    transform 160ms ease;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--green);
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 0;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, 90vw);
  height: 420px;
  background:
    radial-gradient(circle at 38% 42%, rgba(232, 121, 61, 0.13), transparent 38%),
    radial-gradient(circle at 62% 40%, rgba(30, 95, 77, 0.2), transparent 48%);
  filter: blur(28px);
  transform: translateX(-50%);
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-divider {
  width: 28px;
  height: 1px;
  background: var(--green);
  opacity: 0.45;
}

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

h1 {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.2vw, 6.35rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  display: block;
  color: var(--green);
  font-style: italic;
}

.hero-lede {
  position: relative;
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.authors {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  max-width: 850px;
  margin: 31px auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.authors span:not(:last-child)::after {
  content: "·";
  position: relative;
  left: 9px;
  color: #9ca9a3;
}

.affiliations {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 720;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(30, 95, 77, 0.22);
}

.button-secondary {
  background: var(--white);
  border-color: var(--line);
}

.button-ghost {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 25%, transparent);
}

.hero-figure {
  position: relative;
  margin-top: 62px;
  padding: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-figure img {
  width: 100%;
  border-radius: 12px;
}

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

.overview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px 90px;
}

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

.section-heading.compact {
  margin-bottom: 38px;
}

.section-kicker {
  justify-content: flex-start;
  margin-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.abstract {
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.8;
}

.contribution-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contribution-card {
  min-height: 260px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
}

.contribution-card h3 {
  margin: 35px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.contribution-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.framework-section {
  padding-top: 40px;
}

.paper-figure {
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(24, 58, 47, 0.08);
}

.paper-figure img {
  width: 100%;
  border-radius: 10px;
}

.paper-figure figcaption {
  padding: 18px 8px 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.results-band {
  padding: 112px 20px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 45%),
    var(--green-dark);
}

.results-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-heading.light {
  color: var(--white);
}

.section-heading.light .section-kicker {
  color: #9ad7be;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
}

.metric {
  min-height: 210px;
  padding: 32px 28px;
  background: rgba(10, 47, 38, 0.78);
}

.metric-value {
  margin-bottom: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  letter-spacing: -0.05em;
}

.metric-value span {
  margin-left: 7px;
  color: #9ad7be;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.metric-label {
  margin-bottom: 5px;
  font-weight: 720;
}

.metric-delta {
  margin-bottom: 0;
  color: #9ad7be;
  font-size: 0.82rem;
}

.qualitative-section {
  padding-bottom: 72px;
}

.paper-figure.qualitative {
  padding: 24px;
}

.citation-section {
  padding-top: 72px;
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #e8f0eb;
  background: #14231f;
  border-radius: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.65;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

footer p {
  margin: 0;
}

footer a {
  flex: 0 0 auto;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  nav {
    gap: 16px;
    font-size: 0.78rem;
  }

  .hero {
    width: min(100% - 28px, 1180px);
    padding-top: 66px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.6rem);
  }

  .hero-figure {
    margin-top: 46px;
    padding: 9px;
    border-radius: 16px;
  }

  .section {
    width: min(100% - 30px, 1080px);
    padding: 88px 0;
  }

  .overview-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .abstract {
    margin-top: 4px;
  }

  .contribution-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .contribution-card {
    min-height: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  footer {
    width: min(100% - 30px, 1080px);
  }
}

@media (max-width: 520px) {
  nav a:nth-child(2) {
    display: none;
  }

  .eyebrow {
    gap: 8px;
    font-size: 0.68rem;
  }

  .authors {
    font-size: 0.92rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button-primary {
    grid-column: 1 / -1;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 170px;
  }

  pre {
    padding: 20px;
    font-size: 0.72rem;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
