:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --background: #101311;
  --surface: #181c19;
  --surface-raised: #202521;
  --line: #343b35;
  --text: #f4f7f3;
  --muted: #aeb7ae;
  --green: #77e28b;
  --amber: #f2bd68;
  --red: #ff7d73;
  --blue: #84b9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 19, 17, 0.94);
  backdrop-filter: blur(14px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.intro {
  min-height: calc(100vh - 64px);
  padding: 72px 5vw 56px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  width: min(1180px, 100%);
  margin: 0 auto 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: 58px;
  line-height: 1.04;
}

.lede {
  max-width: 720px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.55;
}

.install-row {
  display: flex;
  width: min(720px, 100%);
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.install-row code {
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  padding: 0 18px;
  color: var(--amber);
  white-space: nowrap;
}

button,
select {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--text);
  font: inherit;
}

button {
  min-height: 36px;
  padding: 0 16px;
  cursor: pointer;
}

.install-row button {
  align-self: stretch;
  border-width: 0 0 0 1px;
  border-radius: 0;
}

button:hover,
button:focus-visible,
select:focus-visible {
  border-color: var(--green);
  outline: 2px solid transparent;
}

.facts {
  display: grid;
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.facts li {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.facts strong,
.facts span {
  display: block;
}

.facts strong {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
}

.facts span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.workbench {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.workbench-toolbar,
.workbench-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 20px;
  padding: 8px 14px;
}

.workbench-toolbar {
  border-bottom: 1px solid var(--line);
}

.workbench-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.workbench-toolbar select {
  min-height: 34px;
  padding: 0 30px 0 10px;
}

.toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.worker-status {
  margin-left: auto;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

#editor {
  width: 100%;
  height: 350px;
}

.workbench-footer {
  min-height: 38px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.compatibility {
  padding: 88px 5vw;
  background: #f2f4ef;
  color: #181b18;
}

.compatibility .eyebrow {
  color: #397247;
}

.section-heading,
.code-columns {
  width: min(1180px, 100%);
  margin: 0 auto;
}

h2 {
  max-width: 720px;
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.code-columns {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.code-columns > div {
  min-width: 0;
  border-top: 3px solid #397247;
  background: #ffffff;
}

.code-columns > div:last-child {
  border-top-color: #c45b4e;
}

.code-columns h3 {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid #d9ddd7;
  font-size: 16px;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 22px 20px;
  color: #26322a;
  font-size: 14px;
  line-height: 1.65;
}

.reference-band {
  display: grid;
  padding: 0 5vw;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.reference-band a {
  min-width: 0;
  padding: 30px 24px;
  border-left: 1px solid var(--line);
}

.reference-band a:last-child {
  border-right: 1px solid var(--line);
}

.reference-band a:hover,
.reference-band a:focus-visible {
  background: var(--surface);
}

.reference-band strong,
.reference-band span {
  display: block;
}

.reference-band span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .wordmark span:last-child {
    display: none;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
  }

  .intro {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .intro-copy {
    margin-bottom: 24px;
  }

  h1 {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .lede {
    font-size: 18px;
  }

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

  .facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .workbench-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .workbench-toolbar label:not(.toggle) {
    justify-content: space-between;
  }

  .workbench-toolbar select {
    width: 62%;
  }

  .worker-status {
    margin: 0;
  }

  #editor {
    height: 250px;
  }

  h2 {
    font-size: 34px;
  }

  .code-columns,
  .reference-band {
    grid-template-columns: 1fr;
  }

  .reference-band a,
  .reference-band a:last-child {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
