:root {
  --bg: #f6efe8;
  --bg-soft: rgba(255, 255, 255, 0.56);
  --surface: rgba(255, 250, 246, 0.76);
  --surface-strong: #fffaf4;
  --text: #2b2430;
  --muted: #6e6470;
  --line: rgba(71, 48, 65, 0.12);
  --accent: #a03d58;
  --accent-strong: #7f2741;
  --accent-soft: #f4d9d3;
  --highlight: #d78356;
  --onco-bg: #f5fbf8;
  --onco-surface: #ffffff;
  --onco-line: rgba(31, 84, 67, 0.14);
  --onco-accent: #1f8f6b;
  --onco-accent-strong: #166a50;
  --onco-tint: #dff4ea;
  --shadow: 0 24px 60px rgba(68, 38, 56, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 131, 86, 0.22), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(160, 61, 88, 0.14), transparent 18%),
    linear-gradient(180deg, #fdf7f2 0%, #f6efe8 44%, #f2e7de 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding-bottom: 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  box-shadow: 0 0 0 8px rgba(160, 61, 88, 0.08);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy span {
  font-size: 0.76rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  display: block;
  padding: 24px 0 12px;
}

.hero-copy,
.hero-panel,
.card,
.footer {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at right top, rgba(244, 217, 211, 0.72), transparent 36%),
    linear-gradient(135deg, rgba(255, 251, 247, 0.96), rgba(255, 246, 239, 0.88));
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -12% -24% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 131, 86, 0.22), transparent 70%);
}

.eyebrow,
.section-kicker,
.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.hero h1,
.section-heading h2 {
  margin: 14px 0 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
}

.hero h1 span {
  display: block;
  color: rgba(43, 36, 48, 0.72);
}

.lead,
.card p,
.sources li,
.footer p,
.intro-grid p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.lead {
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #fff7f3;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.microcopy {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.92), rgba(250, 238, 232, 0.92)),
    var(--surface);
}

.hero-panel-section {
  padding-top: 0;
}

.hero-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.signal-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.tool-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--onco-line);
  background:
    radial-gradient(circle at top right, rgba(31, 143, 107, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(245, 251, 248, 0.96), rgba(255, 255, 255, 0.98));
}

.tool-card h3 {
  margin: 10px 0 12px;
  font-size: 1.35rem;
}

.tool-card .signal-label {
  color: var(--onco-accent);
}

.signal-card p {
  margin-bottom: 0;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.text-link {
  font-weight: 700;
  color: var(--onco-accent-strong);
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.stat-grid div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.stat-grid dt {
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.stat-grid dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
}

.section-heading.compact h2 {
  max-width: none;
}

.intro-band,
.band {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 248, 243, 0.72);
  box-shadow: var(--shadow);
}

.intro-grid,
.columns-2,
.content-grid,
.question-grid {
  display: grid;
  gap: 18px;
}

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

.content-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.promo-grid {
  align-items: stretch;
}

.promo-card {
  border-color: var(--onco-line);
  background:
    radial-gradient(circle at top right, rgba(31, 143, 107, 0.12), transparent 34%),
    linear-gradient(180deg, var(--onco-bg), var(--onco-surface));
}

.promo-card h3,
.promo-card li,
.promo-card p {
  color: #21473a;
}

.promo-card .button-primary {
  background: linear-gradient(135deg, var(--onco-accent) 0%, var(--onco-accent-strong) 100%);
}

.promo-card .button-secondary {
  border-color: var(--onco-line);
  background: var(--onco-tint);
}

#oncofiles .section-kicker {
  color: var(--onco-accent);
}

.compact-actions {
  margin-top: 24px;
}

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

.card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.feature-list,
.list-card ul,
.sources ul {
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.feature-list li,
.list-card li,
.sources li {
  color: var(--muted);
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(244, 217, 211, 0.9), transparent 36%),
    rgba(255, 249, 246, 0.9);
}

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

.timeline-step {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.step-index {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}

.question-card {
  min-height: 100%;
}

.question-card p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 16px 0 0;
}

.sources a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

.citation-card {
  margin-top: 18px;
  background: rgba(255, 252, 248, 0.88);
}

.source-note {
  margin: 0 0 12px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.footer {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 244, 0.84);
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 720ms ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 120ms;
}

.reveal:nth-child(3) {
  animation-delay: 180ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .timeline,
  .intro-grid,
  .columns-2,
  .question-grid,
  .hero-panel-layout {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 248, 242, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-copy {
    min-height: auto;
    padding: 24px 20px;
  }
}

@media (min-width: 1200px) {
  .hero-copy {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .topbar {
    top: 10px;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-copy span {
    display: none;
  }

  .hero-copy,
  .hero-panel,
  .intro-band,
  .band,
  .card,
  .footer {
    padding: 22px;
  }

  .hero h1 {
    max-width: none;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button,
  .nav-toggle span {
    transition: none;
  }
}
