:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --paper-bright: #faf9f5;
  --ink: #151712;
  --muted: #676b61;
  --dim: #81857b;
  --line: rgba(21, 23, 18, 0.14);
  --amber: #d97922;
  --forest: #27372e;
  --green: #3e704c;
  --cyan: #294a55;
  --red: #a7483d;
  --bg: var(--paper);
  --panel: var(--paper-bright);
  --panel-2: #e8e5dc;
  --radius: 22px;
  --sans: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 92% 7%, rgba(217, 121, 34, 0.08), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  content: "";
  background: url("/images/backgrounds/rocky-mountain-usgs-topo.png") center top / cover no-repeat;
  filter: saturate(0.68) sepia(0.08);
  opacity: 0.18;
}
body > * {
  position: relative;
  z-index: 1;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 240, 233, 0.9);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--forest);
}
.brand .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.back-link,
.back {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover,
.back:hover { color: var(--ink); }

.hero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(68px, 9vw, 118px) clamp(58px, 8vw, 92px);
}
.hero h1,
h1 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.06em;
}
.eyebrow,
.kicker {
  color: var(--amber);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { background: currentColor; }
.tagline,
.hero-tagline {
  color: var(--forest);
  font-family: var(--display);
  font-weight: 650;
}
.intro,
.hero-intro,
.lede { color: var(--muted); }
.intro strong,
.hero-intro strong,
.lede strong { color: var(--ink); }

.button,
.file-action,
.license-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.button:hover,
.file-action:hover,
.license-actions a:hover { border-color: var(--amber); }
.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
}
.button.primary:hover { background: var(--forest); }
.artifact-note { color: var(--dim); }

.station-card,
.mode-card,
.status-demo,
.tool,
.radio-card,
.release,
.callout,
.mini-card,
.field-card,
.performance article,
.credit-card,
.license-panel,
.license-item,
.file-card,
.data-card,
.contact,
.toc {
  border-color: var(--line);
  border-radius: var(--radius);
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: none;
}
.station-head,
.station-node,
.status-title,
.status-row,
.release-fact,
.spec,
.summary-item,
th,
td { border-color: var(--line); }
.station-head p,
.station-node span,
.mode-card > p,
.step span,
.section-head p,
.tool p,
.radio-card p,
.release-copy p,
.callout,
.mini-card p,
.field-card p,
.performance p,
.credit-card p,
.license-panel > p,
.license-item p,
.policy-section p,
.policy-section li { color: var(--muted); }
.station-node b,
.outcome-num,
.section-number,
.maker,
.radio-level,
.status-row b,
.metric,
.effective { color: var(--amber); }

.spec-strip,
.summary {
  border-color: var(--line);
  border-radius: var(--radius);
  background: rgba(250, 249, 245, 0.82);
}
.spec span,
.summary-item span { color: var(--muted); }
.spec strong,
.summary-item b { color: var(--ink); }

.section {
  border-color: var(--line);
  background: transparent;
}
.section:nth-of-type(even) { background: rgba(250, 249, 245, 0.52); }
.section-head h2,
.article .section-head h2,
.policy-section h2 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.045em;
}
.outcome,
.part,
.photo-card,
.build-phase,
.warning,
.step-warning,
.table-wrap {
  border-color: var(--line);
  background: var(--paper-bright);
}
.outcome h3,
.mode-card h3,
.tool h3,
.radio-card h3,
.mini-card h3,
.field-card h3,
.policy-section h3 { color: var(--ink); }

.status-title {
  background: var(--forest);
  color: var(--paper-bright);
}
.status-row.next { background: rgba(217, 121, 34, 0.08); }
.status-row.safety { background: rgba(62, 112, 76, 0.08); }
.status-row strong { color: var(--ink); }
.status-row span { color: var(--muted); }
.automation-note {
  border-color: rgba(217, 121, 34, 0.32);
  background: rgba(217, 121, 34, 0.07);
  color: var(--muted);
}
.automation-note strong { color: var(--ink); }

.hero-visual,
.kit-photo {
  border-radius: var(--radius);
  background: var(--forest);
  box-shadow: 0 22px 50px rgba(31, 32, 27, 0.16);
}
.figure-label,
.kit-caption {
  background: rgba(21, 23, 18, 0.86);
  color: var(--paper-bright);
}
.article-grid { border-color: var(--line); }
.toc {
  border: 1px solid var(--line);
}
.toc strong { color: var(--ink); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--amber); }
.article > section { border-color: var(--line); }
.part-meta,
.part-note,
.goal-copy,
.prose,
.steps > li { color: var(--muted); }
.part-name,
.group-title,
.phase-head h3 { color: var(--ink); }
.buy-link,
.credit-link,
.credit-origin,
.policy-section a { color: var(--amber); }
code,
.checksum {
  border-color: var(--line);
  background: #e8e5dc;
  color: var(--forest);
}
table { border-color: var(--line); background: var(--paper-bright); }
th { background: #e8e5dc; color: var(--ink); }
td { color: var(--muted); }

.project-placeholder {
  min-height: calc(100vh - 170px);
}
.project-placeholder .hero {
  display: grid;
  min-height: 560px;
  align-items: end;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(42px, 8vw, 110px);
}
.project-placeholder h1 {
  max-width: 9ch;
  margin: 20px 0 24px;
  font-size: clamp(3.8rem, 8.5vw, 7.4rem);
  line-height: 0.93;
}
.project-placeholder .project-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}
.project-status {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.project-status strong {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.05em;
}
.project-status span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 24px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.84rem;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer div { display: flex; flex-wrap: wrap; gap: 22px; }

@media (max-width: 820px) {
  .hero,
  .project-placeholder .hero { grid-template-columns: 1fr; }
  .project-placeholder .hero { min-height: 0; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-item + .summary-item { border-left: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 580px); }
  .brand > span:last-child { display: none; }
  .hero { padding-block: 52px 42px; }
  .footer { align-items: flex-start; flex-direction: column; }
  .summary { grid-template-columns: 1fr; }
}

@media print {
  .topbar { position: static; }
  body { background: #fff; }
}
