:root {
  color-scheme: light;
  --ink: #17201f;
  --muted: #586461;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d8ded9;
  --teal: #0f766e;
  --red: #c43d32;
  --gold: #b7791f;
  --green: #47743a;
  --shadow: 0 18px 40px rgba(23, 32, 31, 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, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-nav {
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(216, 222, 217, 0.85);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  min-height: 58px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 15, 14, 0.84), rgba(10, 15, 14, 0.44)),
    url("assets/gifs/safety_filter_cbf.gif") center / cover no-repeat;
  color: #fffdf7;
  display: grid;
  min-height: 74vh;
  padding: 84px max(20px, calc((100vw - 1180px) / 2)) 54px;
}

.hero-content {
  max-width: 860px;
  min-width: 0;
}

.eyebrow {
  color: #f0c16a;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 14px;
}

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

h1 {
  font-size: 3.2rem;
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero p {
  color: #f3f1e8;
  font-size: 1.18rem;
  max-width: 680px;
}

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

.action-link {
  align-items: center;
  background: #fffdf7;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.action-link.secondary {
  background: transparent;
  border-color: rgba(255, 253, 247, 0.68);
  color: #fffdf7;
}

.stats {
  background: #eaf2ed;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stats-inner {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 20px;
}

.stat {
  border-left: 4px solid var(--teal);
  padding-left: 14px;
}

.stat:nth-child(2) {
  border-color: var(--red);
}

.stat:nth-child(3) {
  border-color: var(--gold);
}

.stat:nth-child(4) {
  border-color: var(--green);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.15;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 0.94rem;
  margin-top: 3px;
}

.section {
  padding: 70px 20px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.section-heading {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.5fr);
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.run-panel {
  background: #17201f;
  color: #f5f1e8;
}

.run-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.58fr);
}

.run-grid h2 {
  font-size: 2rem;
  line-height: 1.16;
}

.run-grid p {
  color: #d6ddd8;
}

pre {
  background: #0d1110;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
}

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

.loop-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.loop-card img {
  aspect-ratio: 16 / 10;
  background: #f3f5f2;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.loop-card figcaption {
  padding: 16px;
}

.loop-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.loop-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.loop-card a {
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

.loop-card a:hover {
  text-decoration: underline;
}

.path-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.path-list a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  min-height: 58px;
  padding: 16px;
  text-decoration: none;
}

.path-list a:hover {
  border-color: var(--teal);
}

.site-footer {
  background: #17201f;
  color: #dce3df;
  padding: 34px 20px;
}

.site-footer .section-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #f5f1e8;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 920px) {
  .hero {
    min-height: 68vh;
  }

  h1 {
    font-size: 2.4rem;
  }

  .stats-inner,
  .gallery,
  .path-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading,
  .run-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 66vh;
    padding-top: 58px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .stats-inner,
  .gallery,
  .path-list {
    grid-template-columns: 1fr;
  }

  .site-footer .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
