:root {
  --ink: #17212b;
  --muted: #5c6670;
  --line: #d8dde2;
  --panel: #f3f5f6;
  --paper: #ffffff;
  --accent: #c7252d;
  --accent-dark: #921b22;
  --steel: #2f4858;
  --gold: #e5b028;
  --max: 1120px;
  --edge: max(20px, calc((100% - var(--max)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px var(--edge);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  letter-spacing: 0;
}

.brand-text {
  font-size: 18px;
}

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

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--panel);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.hero-media {
  min-height: 540px;
  background: var(--panel);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px var(--edge) 64px 52px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
}

.intro-grid,
.resources {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.copy {
  color: var(--muted);
  font-size: 18px;
}

.copy p:last-child {
  margin-bottom: 0;
}

.feature-band {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 42px clamp(20px, 4vw, 48px);
  background: var(--steel);
  color: #fff;
  min-width: 0;
}

.feature:nth-child(2) {
  background: #263946;
}

.feature:nth-child(3) {
  background: #20313d;
}

.feature p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
}

.number {
  display: block;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: start;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.stat-panel {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-panel div {
  padding: 22px;
  background: var(--panel);
}

.stat-panel strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 20px 42px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
}

.formula-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 82px 20px 42px;
}

.formula-hero-copy {
  min-width: 0;
  max-width: 980px;
}

.formula-hero h1 {
  max-width: 940px;
  font-size: clamp(42px, 6.4vw, 76px);
}

.formula-page {
  max-width: 920px;
  padding-top: 28px;
}

.article {
  max-width: 850px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.article a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article h2 {
  color: var(--ink);
  margin-top: 42px;
  font-size: 29px;
}

.article h2:first-child {
  margin-top: 0;
}

.formula-article {
  max-width: none;
  padding-top: 0;
}

.article-block {
  padding: 0 0 34px 28px;
  border-left: 3px solid var(--line);
}

.article-block + .article-block {
  padding-top: 8px;
}

.article-block h2 {
  position: relative;
  margin-top: 0;
}

.article-block h2::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 8px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.article-lede {
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: var(--panel);
  margin-bottom: 34px;
}

.article-lede h2::before {
  display: none;
}

.article-quote {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: #fff;
  margin: 0 0 34px;
}

.article-quote h2::before {
  display: none;
}

.article-block p:last-child {
  margin-bottom: 0;
}

.parts-layout {
  display: block;
  padding-top: 46px;
}

.parts-note {
  position: sticky;
  top: 96px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.parts-note p {
  color: var(--muted);
}

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

.parts-list section,
.callout,
.gallery-coming,
.resource-placeholder,
.resource-link {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
}

.parts-list section {
  padding: 24px;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.parts-list section:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.parts-list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}

.parts-list h3::before {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 32px;
  border-radius: 2px;
  background: var(--accent);
}

.parts-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.parts-list li + li {
  margin-top: 7px;
}

.callout {
  padding: 32px;
}

.callout p {
  max-width: 780px;
  color: var(--muted);
  margin-bottom: 0;
}

.build-note {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.build-note p:last-child {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 24px;
  align-items: start;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 6px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 16px;
  color: var(--muted);
}

.gallery-coming {
  padding: 24px;
}

.gallery-coming p {
  color: var(--muted);
  margin-bottom: 0;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-link,
.resource-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  text-decoration: none;
}

.resource-link {
  background: #fff;
}

.resource-link span,
.resource-placeholder span {
  color: var(--muted);
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px var(--edge);
  color: var(--muted);
  background: var(--ink);
  width: 100%;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

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

  .site-nav a {
    padding: 13px 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    min-height: 360px;
    order: 2;
  }

  .hero-content {
    padding: 44px 20px 34px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 29px;
  }

  .lead {
    font-size: 19px;
  }

  .intro-grid,
  .split,
  .parts-layout,
  .gallery-grid,
  .resources,
  .build-note {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 32px 20px;
  }

  .parts-note {
    position: static;
  }

  .parts-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 20px;
  }

  .page-hero {
    padding-top: 54px;
  }

  .formula-hero {
    padding-top: 54px;
  }

  .article-block,
  .article-lede,
  .article-quote {
    padding-left: 22px;
    padding-right: 20px;
  }

  .article-block h2::before {
    left: -31px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 16px;
  }

  .brand-mark {
    width: 42px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .resource-link,
  .resource-placeholder {
    flex-direction: column;
    gap: 6px;
  }

  .resource-link span,
  .resource-placeholder span {
    text-align: left;
  }
}
