:root {
  color-scheme: dark;
  --bg: #000;
  --paper: #080808;
  --line: #252525;
  --soft: #141414;
  --text: #f6f6f2;
  --muted: #9a9a94;
  --green: #3fb950;
  --cyan: #76d8f6;
  --paragraph: #e5e5df;
  --note: #0f0f0f;
  --image-placeholder: #050505;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html.light {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --line: #d0d7de;
  --soft: #eef2f7;
  --text: #1f2328;
  --muted: #656d76;
  --green: #1a7f37;
  --cyan: #0969da;
  --paragraph: #24292f;
  --note: #f6f8fa;
  --image-placeholder: #eaeef2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  min-height: 100vh;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-color: var(--line);
  background: var(--paper);
}

.top {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 36px;
  object-fit: contain;
}

.top a.link {
  color: var(--muted);
  font-size: 14px;
}

.top a.link:hover {
  color: var(--text);
}

main {
  padding: 44px 32px 80px;
}

.back {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.back:hover {
  color: var(--cyan);
}

.hero {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.eyebrow {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 18px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
  max-width: 870px;
}

.lede {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  max-width: 760px;
  margin: 24px 0 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  border: 1px solid var(--line);
  border-color: var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: var(--soft);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-color: var(--line);
  border-radius: 14px;
  display: block;
  background: var(--image-placeholder);
}

.body {
  max-width: 790px;
  margin: 44px auto 0;
  font-size: 18px;
  line-height: 1.78;
}

.body h2 {
  margin: 42px 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.body p {
  margin: 14px 0;
  color: var(--paragraph);
}

.body a {
  color: var(--green);
}

html:not(.light) .body a {
  color: var(--paragraph);
}

.body .note {
  margin: 34px 0;
  border: 1px solid var(--line);
  background: var(--note);
  border-radius: 14px;
  padding: 22px;
  color: var(--muted);
}

.body-figure {
  margin: 34px 0;
}

.body-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--image-placeholder);
}

.body-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.next {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.next a:hover {
  color: var(--cyan);
}

@media (max-width: 760px) {
  .top {
    padding: 0 20px;
  }

  main {
    padding: 30px 20px 64px;
  }

  .brand {
    font-size: 20px;
  }

  h1 {
    font-size: 42px;
  }
}
