:root {
  --ink: #181512;
  --muted: #665f57;
  --line: #ddd7cd;
  --paper: #f7f4ed;
  --card: #fff;
  --navy: #2b2f6f;
  --orange: #c4471c;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.72 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 90px;
}
main:not(.docs-layout) {
  max-width: 960px;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
h2 {
  scroll-margin-top: 100px;
  margin: 52px 0 16px;
  font-size: 32px;
  line-height: 1.2;
}
.lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 21px;
}
.cta {
  display: inline-block;
  margin: 4px 0 12px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
  font-weight: 700;
}
article {
  max-width: 760px;
}
article p,
article li {
  color: #4f4942;
}
pre {
  margin: 0;
  overflow: auto;
  white-space: pre;
  font:
    13px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
code:not(pre code) {
  background: #e9e4db;
  padding: 2px 5px;
  font-size: 0.9em;
}
.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related a {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.related small {
  margin-bottom: 4px;
  color: var(--orange);
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.docs-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.docs-toc {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  padding-top: 8px;
}
.docs-toc span,
.doc-type {
  color: var(--orange);
  font:
    800 11px ui-monospace,
    monospace;
  letter-spacing: 0.14em;
}
.docs-toc a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.docs-toc a:hover {
  color: var(--ink);
}
.docs-content {
  min-width: 0;
}
.outcome {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 30px 0 8px;
  border: 1px solid #cdd2e2;
  background: #f0f1f8;
  padding: 18px;
}
.outcome span {
  color: var(--muted);
}
article h2 > span {
  display: inline-block;
  margin-right: 8px;
  color: var(--orange);
  font:
    700 13px ui-monospace,
    monospace;
}
.code-block {
  margin: 20px 0 24px;
  border: 1px solid #30364f;
  background: #171a2d;
  color: #eef0ff;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #30364f;
  padding: 9px 14px;
  color: #aeb7d7;
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
}
.code-head button {
  border: 0;
  background: transparent;
  color: #d8def5;
  cursor: pointer;
  font: inherit;
}
.code-block pre {
  padding: 20px;
}
.tok-key,
.tok-cmd {
  color: #ff79c6;
}
.tok-str {
  color: #f1fa8c;
}
.tok-num {
  color: #bd93f9;
}
.tok-fn {
  color: #50fa7b;
}
.tok-type {
  color: #8be9fd;
}
.callout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  margin: 20px 0;
  border-left: 3px solid var(--orange);
  background: #f0ebe1;
  padding: 16px;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}
.status-grid div {
  display: grid;
  gap: 3px;
  background: #fff;
  padding: 14px;
}
.status-grid b {
  color: var(--orange);
  font:
    800 15px ui-monospace,
    monospace;
}
.status-grid span {
  color: var(--muted);
  font-size: 12px;
}
.checklist {
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}
.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #20744f;
  font-weight: 900;
}
.independence-notice {
  max-width: 900px;
  margin: 34px 0 42px;
  border: 1px solid #d8c7b8;
  border-left: 4px solid var(--orange);
  background: #fffaf4;
  padding: 24px 26px;
}
.independence-notice h2 {
  margin: 7px 0 14px;
  font-size: 27px;
}
.independence-notice p {
  margin: 10px 0;
  color: #4f4942;
  font-size: 14px;
  line-height: 1.65;
}
.independence-notice a {
  color: var(--navy);
  font-weight: 700;
}
.browser-lab {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  margin: 42px 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.browser-lab h2,
.downloads h2 {
  margin: 7px 0 10px;
}
.browser-lab p {
  color: var(--muted);
}
#python-lab {
  display: grid;
  gap: 13px;
}
#python-lab label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
#python-lab select,
#python-lab textarea {
  width: 100%;
  border: 1px solid #bfc4d1;
  background: #fff;
  padding: 11px;
  font: 15px/1.5 inherit;
}
#python-lab button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 13px;
  font: 700 15px inherit;
  cursor: pointer;
}
#python-lab button:disabled {
  opacity: 0.6;
}
#python-lab-status {
  margin: 0;
  font-size: 12px;
  text-align: center;
}
#python-lab-result {
  margin: 0;
  background: #eef5f1;
  color: #173d2c;
  padding: 15px;
  white-space: pre-wrap;
}
.downloads {
  max-width: 960px;
  margin: 48px 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.download-grid a {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}
.download-grid a:hover {
  border-color: var(--navy);
}
.download-grid strong {
  font:
    700 15px ui-monospace,
    monospace;
}
.download-grid span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.download-grid .notebook {
  background: #f0f1f8;
  border-color: #cdd2e2;
}
@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-toc {
    display: none;
  }
  .status-grid {
    grid-template-columns: 1fr 1fr;
  }
  .outcome,
  .callout {
    grid-template-columns: 1fr;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .browser-lab {
    grid-template-columns: 1fr;
  }
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  main {
    width: calc(100% - 28px);
    padding-top: 42px;
  }
  h1 {
    font-size: 44px;
  }
  .lead {
    font-size: 19px;
  }
  .code-block {
    margin-left: -14px;
    margin-right: -14px;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  .browser-lab {
    margin-inline: -14px;
    padding: 20px;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}
