:root {
  color-scheme: light;
  --ink: #171717;
  --soft-ink: #50545a;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #d7d9dc;
  --red: #c7433a;
  --blue: #245c92;
  --green: #4c7a55;
  --gold: #b47b26;
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.13);
}

* {
  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;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 22px clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
  font-weight: 620;
}

.site-nav a {
  color: rgba(23, 23, 23, 0.74);
}

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

.hero {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 82svh;
  overflow: hidden;
  padding: 110px clamp(20px, 5vw, 64px) 72px;
  position: relative;
}

#matter-map {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero::after {
  background: rgba(251, 250, 247, 0.58);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.kicker,
.section-label {
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
  margin: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(62px, 12vw, 164px);
  line-height: 0.94;
  margin-bottom: 26px;
}

.hero-copy {
  color: var(--ink);
  font-size: clamp(22px, 3.2vw, 39px);
  font-weight: 520;
  line-height: 1.16;
  margin-bottom: 34px;
  max-width: 700px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 720;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(120px, 210px) minmax(0, 1fr);
  padding: clamp(64px, 10vw, 118px) clamp(20px, 5vw, 64px);
}

.section-body {
  max-width: 980px;
}

.section h2 {
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.02;
  margin-bottom: 26px;
  max-width: 920px;
}

.section p {
  color: var(--soft-ink);
  font-size: clamp(18px, 2vw, 23px);
  max-width: 780px;
}

.intro p + p {
  margin-top: 18px;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.steps article,
.example-panel {
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.07);
}

.steps article {
  min-height: 235px;
  padding: 22px;
}

.steps span {
  color: var(--blue);
  display: block;
  font-size: 13px;
  font-weight: 780;
  margin-bottom: 34px;
}

.steps h3 {
  font-size: 23px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.steps p {
  font-size: 16px;
}

.quick-start .section-body > p {
  max-width: 760px;
}

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

.quick-step,
.quick-reference > div {
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(23, 23, 23, 0.07);
}

.quick-step {
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto 1fr;
  min-height: 260px;
  padding: 22px;
}

.quick-step span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 780;
}

.quick-step h3,
.quick-reference h3 {
  font-size: 22px;
  line-height: 1.12;
  margin: 0;
}

pre {
  background: #171717;
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

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

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

.quick-reference > div {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.quick-note {
  border-left: 4px solid var(--gold);
  margin-top: 24px;
  padding-left: 18px;
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
}

.example-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.panel-row {
  align-items: center;
  background: var(--white);
  display: grid;
  gap: 12px;
  grid-template-columns: 14px 1fr;
  min-height: 72px;
  padding: 16px 18px;
}

.panel-row p {
  color: var(--ink);
  font-size: 17px;
  font-weight: 690;
  margin: 0;
}

.dot {
  background: var(--line);
  border-radius: 50%;
  display: block;
  height: 12px;
  width: 12px;
}

.dot.active {
  background: var(--gold);
}

.panel-row.muted p {
  color: var(--soft-ink);
}

.panel-row.resolved .dot {
  background: var(--green);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
  display: flex;
  font-size: 15px;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 64px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 730;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    position: absolute;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    min-height: 82svh;
    padding-top: 132px;
  }

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

  .steps,
  .quick-grid,
  .quick-reference,
  .split {
    grid-template-columns: 1fr;
  }

  .steps article {
    min-height: auto;
  }

  .steps span {
    margin-bottom: 18px;
  }

  .quick-step {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-nav {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 42px);
  }

  .hero-copy {
    font-size: 21px;
    max-width: 330px;
    overflow-wrap: break-word;
  }

  .section h2 {
    font-size: 26px;
    line-height: 1.08;
    max-width: 330px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
