/* The keyboard page (#394), in the product page's palette (`index.html`), on system fonts. */
:root {
  --bg: #fff; --surface: #fafbfc; --sunken: #f0f2f5; --ink: #141a22; --muted: #596473; --line: #d2d8e0;
  --field-line: #7d8693;
  --accent: #3346c9; --on-accent: #ffffff; --ok: #2c7a4b; --error: #c0362c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1015; --surface: #151920; --sunken: #10141a; --ink: #e5e8ee; --muted: #96a0ad; --line: #29303a;
    --field-line: #6b7480;
    --accent: #8e9cff; --on-accent: #0e1116; --ok: #5fc48a; --error: #ff7d72;
    color-scheme: dark;
  }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main {
  max-width: 640px; margin: 32px auto; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
}
@media (max-width: 700px) { main { margin: 0; border-radius: 0; border: 0; padding: 16px; } }
/* The site's footer (`_includes/site-footer.html`): where Sleevesight is made, the licence and the
   source, what the site does not do and the version the page was last brought up to. */
footer { max-width: 640px; margin: 0 auto 32px; padding: 0 24px; font-size: 14px; color: var(--muted); }
footer a { color: inherit; }
footer p { margin: 0 0 4px; }
footer .made-in { margin-bottom: 12px; }
/* A link off the site: an arrow, and "(external site, opens in a new tab)" for a screen reader (`made-in.html`). */
.ext { vertical-align: -.02em; margin-left: .15em; }
.ext-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) { footer { margin: 0; padding: 16px; border-top: 1px solid var(--line); } }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
ol { padding-left: 1.4em; }
li { margin: 16px 0; }
.code { margin-top: 12px; width: 232px; max-width: 100%; }
.code svg { display: block; width: 100%; height: auto; border-radius: 8px; }
button {
  font: inherit; padding: 8px 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Text fields: a sunken well, as the product page's, and an edge of at least 3:1 on the box and the
   well (`--field-line`: 3.6:1 and 3.3:1 on light, 3.7:1 and 3.9:1 on dark), so they show on any
   ground. */
#text {
  font: 16px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; width: 100%; box-sizing: border-box;
  padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--sunken); color: var(--ink);
}
/* Masked without a password field, which a browser would offer to save. */
#text.masked { -webkit-text-security: disc; }
.show { display: inline-block; margin-top: 8px; color: var(--muted); }
.error { color: var(--error); }
.ok { color: var(--ok); }
.note { color: var(--muted); font-size: 15px; }
[hidden] { display: none !important; }
