@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}
/* Older pages' names for the token roles in tokens.css. */
:root {
  font-family: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  color: var(--e-text);
  background: var(--e-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: var(--e-text);
  --muted: var(--e-text-muted);
  --line: var(--e-line);
  --paper: var(--e-bg);
}
:root:has(.e-page) {
  /* Light only until design-system has dark tokens (web#6). */
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
/* iPhone Safari counts 100vh with its toolbars hidden: a 100vh page scrolls while it is empty. dvh follows the
   visible screen. No bounce when there is nothing to scroll, no double-tap zoom, no grey flash on a tap (web#48). */
html {
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  /* viewport-fit=cover: keep content clear of the notch in landscape. */
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid oklch(0.205 0 none);
  outline-offset: 2px;
}
h1,
h2,
p {
  margin: 0;
}
.wordmark {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.16px;
  color: var(--ink);
}
.small-wordmark {
  font-size: 20px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
input,
textarea,
select {
  width: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow:
    oklch(0.145 0 0 / 0.1) 0 0 0 1px,
    rgba(0, 0, 0, 0.05) 0 1px 2px;
  color: var(--ink);
  background: white;
  padding: 8px 16px;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  line-height: 21px;
}
.primary,
.secondary,
.choice {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  min-height: 40px;
}
.primary {
  color: var(--ink);
  background: white;
  border: 0;
  box-shadow:
    oklch(0.145 0 0 / 0.1) 0 0 0 1px,
    rgba(0, 0, 0, 0.05) 0 1px 2px;
}
.secondary {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}
.choice {
  color: var(--ink);
  background: white;
  border: 1px solid #c8d1ca;
  font-size: 14px;
  padding: 7px 12px;
}
.small {
  justify-self: start;
  padding: 8px 14px;
}
.form-status {
  min-height: 21px;
  color: #9b342c;
  font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* /help: the body of one help post, rendered from jpls93/blog. Plain text, lists, tables and links. */
/* min-width: 0 lets the article shrink to the page column: a grid item is never narrower than its widest child,
   so without it the table pushed the article past a 375 px phone and Chrome widened the page. */
.help-article { max-width: 44rem; min-width: 0; line-height: 1.65; }
/* A long link in a paragraph or list item (Sources) breaks anywhere, so its width never sizes the page column.
   Table cells keep whole words: the table scrolls in its own box instead. */
.help-article p, .help-article li { overflow-wrap: anywhere; }
.help-article h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.help-article a { color: inherit; text-underline-offset: 0.2em; }
.help-article table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 0.95rem; }
.help-article th, .help-article td { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }

/* On a phone the comparison table stacks: one block per row, the first cell as its heading, and each other cell
   after its column header (data-label, set by labelCells). Nothing is cut off and nothing scrolls sideways. */
@media (max-width: 600px) {
  .help-article table, .help-article tbody, .help-article tr, .help-article td { display: block; }
  .help-article table { overflow: visible; }
  .help-article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .help-article tr { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 0.5rem; padding: 0.5rem 0.75rem; margin: 0 0 0.75rem; }
  .help-article td { border: 0; padding: 0.15rem 0; }
  .help-article td:first-child { font-weight: 600; padding-bottom: 0.35rem; }
  .help-article td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; }
}

/* /downloads: the command block and the version line under it. min-width 0 keeps the stack column from growing
   to the command's width, so the command wraps inside its block (docs/pitfalls.md, web#25). */
.downloads-ready { display: grid; gap: 0.5rem; min-width: 0; }
.downloads-ready p { margin: 0; overflow-wrap: anywhere; }
.downloads-ready[hidden] { display: none; }
/* /downloads: the line under the title that names the recommended computer (web#38). */
.downloads-note { margin: 0; }
