/* IBM Plex, served from this site (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  --bg: #fbfbfa; --panel: #ffffff; --ink: #12130f; --ink-2: #4a4b43; --ink-3: #7d7e74;
  --line: #e3e2d9; --line-2: #cfcec2; --accent: #256abf; --accent-ink: #ffffff;
  --track: #c2410c; --m5: #0f766e; --m10: #7c4bb8; --code: #f1f0ea;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15161a; --panel: #1c1e22; --ink: #f2f1ea; --ink-2: #c3c4b9; --ink-3: #8c8d83;
    --line: #2c2e33; --line-2: #3c3f45; --accent: #6da7ec; --accent-ink: #0b1220;
    --track: #fb923c; --m5: #2dd4bf; --m10: #c4a3f0; --code: #23252a;
  }
}
:root[data-theme="dark"] {
  --bg: #15161a; --panel: #1c1e22; --ink: #f2f1ea; --ink-2: #c3c4b9; --ink-3: #8c8d83;
  --line: #2c2e33; --line-2: #3c3f45; --accent: #6da7ec; --accent-ink: #0b1220;
  --track: #fb923c; --m5: #2dd4bf; --m10: #c4a3f0; --code: #23252a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd { font: 0.88em var(--mono); background: var(--code); border-radius: 3px; padding: 1px 5px; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; }
pre { font: 14px/1.5 var(--mono); background: var(--code); padding: 14px 16px; border-radius: 4px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 740px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 620px) {
  .site-head .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .site-nav { margin-left: 0; width: 100%; gap: 16px; flex-wrap: wrap; }
  .site-nav .btn { display: none; }
}

/* buttons */
.btn { display: inline-block; font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 4px;
  text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: var(--panel); }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { opacity: 0.88; }
.btn.small { padding: 8px 13px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-note { font-size: 13.5px; color: var(--ink-3); }

/* sections */
.hero { padding: 64px 0 36px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.015em; max-width: 820px; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 720px; margin: 0 0 28px; }
.shot { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.shot-hero { margin: 8px 0 0; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h2 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 30px 0 8px; }
p { margin: 0 0 14px; }
.eyebrow { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 10px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-2); }
.swatch { display: inline-block; width: 22px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; padding-left: 46px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font: 600 14px/30px var(--mono); text-align: center; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: -1px; font: 400 20px var(--mono); color: var(--ink-3); }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* docs pages */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 44px 0 64px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14.5px; }
.toc p { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; } }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.015em; }
.doc h2 { margin-top: 48px; padding-top: 8px; scroll-margin-top: 76px; }
.doc h3 { scroll-margin-top: 76px; }
.doc .lede { font-size: 18px; color: var(--ink-2); }
.doc figure { margin: 22px 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 14px 0 20px; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
td:first-child { white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.note { border-left: 3px solid var(--line-2); padding: 4px 0 4px 16px; color: var(--ink-2); margin: 18px 0; }
.formula { font: 15px/1.7 var(--mono); background: var(--code); padding: 14px 16px; border-radius: 4px; overflow-x: auto; white-space: nowrap; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--ink-2); }
.site-foot p { margin: 0 0 6px; }

.qlist { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 8px; }

/* hero: six color modes */
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.map { display: block; border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  overflow: hidden; text-decoration: none; color: var(--ink); }
.map span { display: block; font-weight: 600; font-size: 14px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.map img { width: 100%; height: auto; display: block; }
.map:hover { border-color: var(--ink-3); }
.maps-note { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 700px) { .maps { grid-template-columns: repeat(2, 1fr); gap: 10px; } .map span { font-size: 13px; padding: 7px 9px; } }

/* numbered legend under the feature screenshot */
.marks { counter-reset: m; list-style: none; padding: 0; margin: 0 0 30px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 12px 28px; font-size: 14.5px; color: var(--ink-2); }
.marks li { counter-increment: m; position: relative; padding-left: 34px; }
.marks li::before { content: counter(m); position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: #c2410c; color: #fff; font: 600 13px/23px var(--sans); text-align: center; }
.marks strong { color: var(--ink); }
@media (max-width: 860px) { .marks { grid-template-columns: 1fr; } }

.mapfig { margin: 0; }
.mapfig figcaption { font-size: 14px; color: var(--ink-2); margin-top: 9px; line-height: 1.55; }

/* the section after the hero maps gets the same rule as the others, with more air */
.maps ~ section:first-of-type { border-top: 1px solid var(--line); margin-top: 56px; }
