:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #101010;
  --muted: #505050;
  --line: #1a1a1a;
  --soft: #f4f4f4;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

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

.inner {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}

.siteHeader {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.headerRow,
.footerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.headerRow {
  min-height: 68px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.sectionNav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.sectionNav a:hover,
.footerLinks a:hover,
.sectionFoot a:hover {
  text-decoration: underline;
}

.hero,
.band {
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 48px 0 56px;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

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

h1 {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
}

h2 {
  font-size: 32px;
  line-height: 1.15;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 40ch;
}

.heroMeta {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--muted);
}

.heroMeta a {
  text-decoration: underline;
}

.metaDivider {
  margin: 0 8px;
}

.ctaRow,
.citationActions,
.subActions,
.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ctaRow {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

.button.small {
  min-height: 38px;
  padding: 0 14px;
}

.desktopFrame {
  border: 1px solid var(--line);
  background: #fff;
}

.frameTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.previewLink {
  display: block;
  background: #fff;
}

.previewLink img {
  width: 100%;
  height: auto;
}

.subActions {
  margin-top: 12px;
}

.band {
  padding: 42px 0;
}

.sectionHeading {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.copyGrid,
.noteBlock {
  display: grid;
  gap: 16px;
}

.copyGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.citationBlock {
  border: 1px solid var(--line);
}

.inlineNote {
  max-width: 76ch;
  color: var(--muted);
}

.sectionLead {
  max-width: 70ch;
  margin-bottom: 18px;
  color: var(--muted);
}

.repoList {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.repoList li {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.repoList a {
  font-weight: 700;
}

.repoList span {
  color: var(--muted);
}

.sectionFoot {
  margin-top: 18px;
  color: var(--muted);
}

.citationActions {
  margin-bottom: 14px;
}

.citationBlock {
  padding: 16px;
  background: #fff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}

.siteFooter {
  padding: 22px 0 40px;
}

.siteFooter p,
.siteFooter a {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 1120px) {
  .heroGrid,
  .copyGrid,
  .repoList li {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }

  .headerRow,
  .footerRow {
    flex-direction: column;
    align-items: start;
    padding: 14px 0;
  }
}

@media (max-width: 720px) {
  .inner {
    width: min(var(--max), calc(100vw - 28px));
  }

  .hero {
    padding: 32px 0 40px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  .lede {
    font-size: 16px;
  }
}
