:root {
  --bg: #f3ecde;
  --bg-warm: #efe4d1;
  --paper: #fbf7ef;
  --paper-deep: #f1e6d4;
  --ink: #3f342b;
  --ink-soft: #67574a;
  --line: rgba(90, 67, 45, 0.14);
  --line-strong: rgba(90, 67, 45, 0.26);
  --olive: #6f7b58;
  --moss: #86976b;
  --terracotta: #bc7b58;
  --clay: #9e6046;
  --ochre: #c8a35e;
  --shadow: 0 28px 60px rgba(113, 81, 43, 0.12);
  --shadow-soft: 0 14px 28px rgba(113, 81, 43, 0.09);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 163, 94, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(188, 123, 88, 0.16), transparent 24%),
    linear-gradient(180deg, #f6f0e3 0%, #f0e6d6 48%, #f4ecdf 100%);
  font-family: "Work Sans", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(80, 58, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 58, 39, 0.02) 1px, transparent 1px);
  background-size: 100% 36px, 36px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45));
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(249, 242, 231, 0.98), rgba(239, 228, 209, 0.98));
  box-shadow: var(--shadow-soft);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #f8efe0, #e2d0af);
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-copy {
  display: grid;
}

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

.brand-copy small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover,
.text-link:hover {
  color: var(--clay);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 42px;
}

.hero-copy,
.hero-dossier,
.info-panel,
.folder-tree,
.bundle-note,
.timeline-step,
.download-card,
.chart-card,
.verify-card,
.preview-switcher,
.verification-banner,
.results-topline .finding-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(242, 232, 215, 0.95));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 123, 88, 0.28), transparent 62%);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  font-size: 0.73rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 1.04;
  font-weight: 400;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
}

.lede,
.section-heading p,
.download-card p,
.timeline-step p,
.verify-card li,
.bundle-note p,
.dossier-card p,
.info-panel p {
  color: var(--ink-soft);
}

.lede {
  max-width: 60ch;
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--clay));
  color: #fff9f5;
}

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

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

.hero-metrics div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(90, 67, 45, 0.1);
}

.hero-metrics dt {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-metrics dd {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.hero-dossier {
  display: grid;
  gap: 16px;
  padding: 14px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(247, 239, 226, 0.9), rgba(236, 222, 198, 0.88));
}

.dossier-card {
  padding: 22px;
  border-radius: 22px;
  position: relative;
}

.dossier-card-primary {
  transform: rotate(-1.8deg);
}

.dossier-card-secondary {
  transform: rotate(1.4deg);
}

.dossier-card-tertiary {
  transform: rotate(-0.8deg);
}

.dossier-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
}

.hash {
  margin: 10px 0 18px;
  color: var(--ink-soft);
  font-family: "Source Serif 4", serif;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.dossier-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.section {
  margin-top: 42px;
  padding: 26px 0 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 62ch;
  margin: 0;
}

.intro-grid,
.verify-grid,
.downloads-grid,
.results-topline,
.chart-grid,
.source-route-grid {
  display: grid;
  gap: 18px;
}

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

.info-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.source-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251, 247, 239, 0.96), rgba(242, 232, 215, 0.95));
  box-shadow: var(--shadow);
}

.source-card p {
  color: var(--ink-soft);
}

.route-steps {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.bundle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.folder-tree,
.bundle-note,
.preview-switcher,
.verification-banner {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.folder-group + .folder-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.folder-group h3 {
  margin-bottom: 8px;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(90, 67, 45, 0.08);
}

.file-row:last-child {
  border-bottom: 0;
}

.file-row strong {
  display: block;
}

.file-row small {
  color: var(--ink-soft);
}

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

.timeline-step {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(111, 123, 88, 0.12);
  color: var(--olive);
  font-weight: 700;
}

.downloads-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.download-card {
  padding: 20px;
  border-radius: 18px;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 123, 88, 0.12);
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.file-size {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--clay);
  text-decoration: none;
  font-weight: 600;
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.preview-tab {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.preview-tab.is-active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff9f5;
}

.preview-panel {
  display: none;
}

.preview-panel.is-active {
  display: block;
}

.preview-panel-head {
  margin-bottom: 16px;
}

.preview-panel-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(90, 67, 45, 0.12);
  background: rgba(255, 252, 247, 0.62);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(90, 67, 45, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: rgba(111, 123, 88, 0.08);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

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

.excerpt-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(90, 67, 45, 0.1);
}

.excerpt-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.results-topline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.finding-card {
  padding: 20px;
  border-radius: 18px;
}

.finding-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.finding-card strong {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
}

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

.chart-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.chart-head p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.metric-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.metric-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(111, 123, 88, 0.12);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--moss), var(--terracotta));
}

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

.test-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.62);
  border: 1px solid rgba(90, 67, 45, 0.1);
}

.test-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

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

.verify-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.verify-card ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.verification-banner {
  margin-top: 18px;
  font-size: 1rem;
}

@media (max-width: 1080px) {
  .hero,
  .bundle-layout,
  .method-timeline,
  .downloads-grid,
  .results-topline,
  .verify-grid,
  .intro-grid,
  .chart-grid,
  .source-route-grid {
    grid-template-columns: 1fr;
  }

  .excerpt-grid,
  .tests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .topbar {
    position: static;
    border-radius: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    gap: 12px;
  }

  .hero-copy,
  .folder-tree,
  .bundle-note,
  .preview-switcher,
  .verification-banner,
  .chart-card,
  .verify-card,
  .download-card,
  .timeline-step,
  .info-panel {
    padding: 18px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}
