:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --ink: #17201c;
  --muted: #667069;
  --line: #d9d4c7;
  --accent: #1f6f50;
  --accent-dark: #154b39;
  --soft: #e9efe5;
  --shadow: 0 18px 45px rgba(23, 32, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 212, 199, 0.82);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
}

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

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

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-top: 44px;
  padding-bottom: 44px;
}

.eyebrow,
.panel-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.04rem;
  font-weight: 800;
}

.lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: #37413b;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--accent-dark);
}

.hero-panel {
  align-self: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.hero-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-strip {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.split-section p,
.finding p {
  color: #3f4842;
  font-size: 1.04rem;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.method-steps article,
.application-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.method-steps span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.method-steps p,
.application-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.application {
  border-top: 1px solid var(--line);
}

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

.figures {
  width: min(1220px, calc(100% - 40px));
}

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

figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.featured-figure {
  grid-column: 1 / -1;
}

figure img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.presentation {
  border-top: 1px solid var(--line);
}

.presentation-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.presentation-heading p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
}

.presentation-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.presentation-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 860px);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.text-button {
  border-color: transparent;
  color: var(--accent-dark);
}

.finding {
  margin-bottom: 56px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.finding h2 {
  max-width: 850px;
}

.finding p {
  max-width: 840px;
}

.caution {
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.footer {
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
}

.footer p {
  width: min(1120px, 100%);
  margin: 0 auto;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #ece7da;
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .section {
    width: min(100% - 28px, 1120px);
    padding: 56px 0;
  }

  .hero,
  .split-section,
  .application-grid,
  .figure-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 3.35rem);
  }

  .metric-strip {
    width: min(100% - 28px, 1120px);
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .figures {
    width: min(100% - 28px, 1220px);
  }

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

  .presentation-viewer {
    height: 68vh;
    min-height: 480px;
  }

  .finding {
    width: min(100% - 28px, 1120px);
    margin-bottom: 36px;
  }
}

@media (max-width: 460px) {
  .actions,
  .presentation-actions {
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .method-steps article,
  .application-grid article,
  .finding {
    padding: 20px;
  }

  figure img {
    padding: 10px;
  }
}
