:root {
  --ink: #18211f;
  --muted: #51615b;
  --paper: #f4efe6;
  --panel: rgba(255, 252, 247, 0.78);
  --line: rgba(24, 33, 31, 0.12);
  --accent: #b55f3b;
  --accent-deep: #884226;
  --forest: #244137;
  --gold: #d6ba75;
  --shadow: 0 24px 60px rgba(28, 36, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 186, 117, 0.28), transparent 30%),
    linear-gradient(180deg, #efe7d7 0%, #f7f3ec 48%, #ebe3d4 100%);
  min-height: 100vh;
}

.backdrop {
  display: none;
}

.backdrop-one {
  width: 22rem;
  height: 22rem;
  top: -4rem;
  right: -4rem;
  border-radius: 48% 52% 58% 42%;
  background: rgba(36, 65, 55, 0.12);
}

.backdrop-two {
  width: 20rem;
  height: 20rem;
  bottom: 10rem;
  left: -6rem;
  border-radius: 61% 39% 45% 55%;
  background: rgba(181, 95, 59, 0.16);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.stable-panel {
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 247, 0.96);
}

.hero {
  padding: 1.8rem;
}

.hero-grid,
.section-head,
.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.eyebrow,
.section-label,
.meta {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.18rem;
}

.lede,
.body-copy,
.panel p,
.plain-list {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.filter:hover,
.link-row a:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--forest);
  color: #fff8ef;
}

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

.findings,
.stats,
.insight-grid,
.report-list,
.catalog-list {
  display: grid;
  gap: 1rem;
}

.findings {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.4rem;
}

.finding-card,
.stat-card,
.insight-card,
.stack-card,
.report-card,
.catalog-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.finding-card {
  padding: 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

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

.stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  padding: 1rem;
}

.stat-value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--forest);
}

.insight-card {
  padding: 1rem;
}

.insight-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(36, 65, 55, 0.1);
  color: var(--forest);
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.stat-label {
  color: var(--muted);
}

.stack-card,
.report-card,
.catalog-card {
  padding: 1rem;
}

.stack-card + .stack-card {
  margin-top: 0.9rem;
}

.plain-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.report-list,
.catalog-list {
  margin-top: 1rem;
}

.report-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.report-meta,
.catalog-topline,
.link-row,
.tag-row,
.catalog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.report-meta,
.catalog-meta,
.limit,
.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(214, 186, 117, 0.28);
  border: 1px solid rgba(136, 66, 38, 0.14);
  font-size: 0.82rem;
}

.catalog-filters {
  justify-content: flex-end;
}

.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.filter.active {
  background: var(--accent);
  color: #fff8ef;
  border-color: transparent;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.motion-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero-grid,
  .section-head,
  .catalog-head,
  .two-up {
    grid-template-columns: 1fr;
    display: grid;
  }

  .catalog-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1rem, 1140px);
    padding-top: 1rem;
  }

  .panel,
  .hero {
    padding: 1rem;
  }

  h1 {
    max-width: none;
  }
}
