/* The look of ztos.online: hairline, square, greyscale, light type. The only
   colour on these pages comes from real renders and from the demos' phones. */
:root {
  --paper: #f2f2f2; --panel: #fff; --ink: #181818; --mute: #595959; --faint: #dcdcdc; --line: #868686;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #121212; --panel: #1a1a1a; --ink: #eaeaea; --mute: #9d9d9d; --faint: #2c2c2c; --line: #6b6b6b; }
}
:root[data-theme="dark"] { --paper: #121212; --panel: #1a1a1a; --ink: #eaeaea; --mute: #9d9d9d; --faint: #2c2c2c; --line: #6b6b6b; }
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; font-weight: 350; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { font-weight: 300; font-stretch: 90%; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 3rem 0 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
h3 { font-size: 1.35rem; margin: 1.9rem 0 0.6rem; scroll-margin-top: 1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { max-width: 68ch; padding-left: 1.25rem; margin: 0 0 1em; }
li { margin-bottom: 0.35rem; }
b, strong { font-weight: 500; }
code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
pre { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.5; background: var(--panel); border: 1px solid var(--line); padding: 0.85rem 1rem; overflow-x: auto; margin: 0 0 1.1em; max-width: 100%; }
pre code { font-size: inherit; overflow-wrap: normal; }
pre .c { color: var(--mute); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 1.5rem 1.25rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.wordmark { font-weight: 400; font-stretch: 90%; font-size: 1.5rem; letter-spacing: -0.02em; text-decoration: none; display: block; margin-bottom: 1.25rem; }
.wordmark span { color: var(--mute); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; }
.sidebar a.n { display: block; text-decoration: none; padding: 0.35rem 0.75rem; transition: background-color 120ms linear, color 120ms linear; }
.sidebar a.n:hover, .sidebar a.n[aria-current="page"] { background: var(--ink); color: var(--paper); }
.side-foot { margin-top: auto; padding-top: 1.25rem; font-size: 0.9375rem; color: var(--mute); }
.side-foot a { display: block; margin-top: 0.3rem; }
.menu { display: none; }
main { min-width: 0; max-width: 1020px; padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 5rem; }
.lead { font-size: 1.22rem; }
.foot { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.9375rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; border: 1px solid var(--line); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--faint); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 500; border-bottom: 1px solid var(--line); }
.note { border: 1px solid var(--line); background: var(--panel); padding: 0.85rem 1rem; margin: 0 0 1.25em; max-width: 72ch; }
.note p:last-child { margin: 0; }
.gap { border: 1px dashed var(--line); padding: 0.85rem 1rem; margin: 0 0 1.25em; max-width: 72ch; }
.gap > b:first-child { display: block; }
.gap p:last-child, .gap ul:last-child { margin-bottom: 0; }
.tag { display: inline-block; border: 1px solid var(--line); padding: 0.05rem 0.45rem; font-size: 0.8125rem; vertical-align: 0.1em; font-weight: 400; }
.tag.dashed { border-style: dashed; color: var(--mute); }
.btn { font: inherit; font-weight: 400; font-size: 1rem; display: inline-block; cursor: pointer; text-decoration: none; line-height: 1.2; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--paper); border: 1px solid var(--line); transition: background-color 120ms linear, color 120ms linear; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.875rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--panel); margin-bottom: 1.5em; }
.cards a { display: block; padding: 0.9rem 1rem; text-decoration: none; border: 0 solid var(--faint); border-width: 0 1px 1px 0; }
.cards a:hover { background: var(--ink); color: var(--paper); }
.cards b { display: block; }
.cards span { font-size: 0.9375rem; }
/* renders */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 0.75rem; margin: 0 0 1em; align-items: start; }
.shots figure { margin: 0; }
.shots img, .strip img { border: 1px solid var(--line); width: 100%; height: auto; }
figcaption { font-size: 0.8125rem; color: var(--mute); margin-top: 0.3rem; }
.strip { overflow-x: auto; margin: 0 0 1em; }
.strip img { width: auto; max-width: none; height: 300px; }
.tall { max-height: 560px; overflow-y: auto; border: 1px solid var(--line); }
.tall img { border: 0; }
/* language tabs */
.langs { margin: 0 0 1.25em; }
.langs [role=tablist] { display: flex; flex-wrap: wrap; }
.langs [role=tab] { font: inherit; font-size: 0.875rem; cursor: pointer; background: transparent; color: var(--ink); padding: 0.3rem 0.75rem; border: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.langs [role=tab][aria-selected=true] { background: var(--ink); color: var(--paper); }
.langs pre { margin: 0; }
.no-js-label { display: none; }
/* demos */
.demos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 0 0 1.25em; align-items: start; }
.demos.wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.demo { min-width: 0; }
.demo > h4 { margin: 0 0 0.4rem; font-weight: 400; font-size: 0.9375rem; overflow-wrap: anywhere; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.4rem; }
.demo-bar input { flex: 1 1 100%; min-width: 0; width: 100%; accent-color: var(--ink); margin: 0.25rem 0 0; }
.demo-bar .read { font-family: var(--mono); font-size: 0.72rem; color: var(--mute); }
.phone { position: relative; overflow: hidden; width: 100%; max-width: 280px; border: 1px solid var(--line); touch-action: none; user-select: none; -webkit-user-select: none; }
.screen { position: absolute; left: 0; top: 0; width: 360px; transform-origin: 0 0; overflow: hidden; font-family: "Segoe UI", "Selawik", "Helvetica Neue", Arial, sans-serif; }
.metro .screen, .phone.metro .screen { background: #000; color: #fff; }
.r { position: absolute; left: 0; width: 360px; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; transform-origin: 0 50%; }
.phone .mt { font-size: 48px; font-weight: 300; }
.mr .rt { font-size: 21px; font-weight: 300; }
.rs { font-size: 13px; color: #0a6cff; }
.rt.pad { display: block; padding: 18px; font-size: 28px; }
.tile { position: absolute; background: #0050ef; color: #fff; font-size: 27px; display: flex; align-items: flex-end; padding: 6px 9px; overflow: hidden; backface-visibility: visible; }
.tile.dim { background: #262626; color: #d9d9d9; }
.tile.flat { background: transparent; border: 2px solid #fff; font-size: 14px; align-items: center; justify-content: center; }
.mini .tile { font-size: 21px; }
.scrim { position: absolute; inset: 0; background: #000; }
.tk { position: absolute; left: 150px; top: 44px; width: 52px; height: 32px; background: #3a3e47; overflow: hidden; }
.tkf { position: absolute; inset: 0; background: #0050ef; }
.kn { position: absolute; left: 0; top: 3px; width: 26px; height: 26px; background: #fff; }
.phone.metro .tk { width: 54px; height: 24px; top: 48px; outline: 2px solid #fff; overflow: visible; background: #333; }
.phone.metro .tkf { inset: 4px; }
.phone.metro .kn { width: 12px; height: 26px; top: -1px; }
.tm { position: absolute; left: 0; top: 0; width: 360px; height: 60px; background: #0050ef; color: #fff; font-weight: 600; font-size: 15px; padding: 24px 16px 0; }
.dot { position: absolute; left: 0; top: 4px; width: 4px; height: 4px; background: #0050ef; }
.list { position: absolute; left: 0; top: 0; width: 360px; }
.curves { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; margin: 0 0 1.25em; }
.curves figure { margin: 0; }
.curves svg { width: 100%; height: auto; aspect-ratio: 1; overflow: visible; }
@media (max-width: 860px) {
  .layout { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0.9rem 1rem; display: block; }
  .wordmark { margin: 0; }
  .menu { display: block; margin-top: 0.6rem; }
  .menu summary { cursor: pointer; list-style: none; border: 1px solid var(--line); padding: 0.4rem 0.75rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .desk { display: none; }
  .side-foot { display: none; }
  main { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .strip img { height: 240px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.only { border-left: 1px solid var(--line); padding-left: 0.75rem; }
.piv { position: absolute; left: 13px; top: 20px; white-space: nowrap; font-size: 48px; font-weight: 300; color: #666; }
.piv span { margin-right: 16px; }
.piv span.on { color: #fff; }
.cap { position: absolute; left: 16px; top: 12px; font-size: 11.5px; font-weight: 600; }
.tabbody { position: absolute; left: 0; top: 108px; width: 360px; }
td code, th code { overflow-wrap: break-word; }
