:root {
  --bg: #16171b;
  --panel: #202228;
  --panel-2: #2a2d35;
  --line: #353944;
  --text: #ece8e4;
  --muted: #a8a4a0;
  --ember: #ff7a30;
  --ember-deep: #d62839;
  --focus: #ffd27a;
  --ok: #4cc38a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* A class that sets display must not win over the hidden attribute. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}

main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }

a { color: var(--focus); }

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 34px; letter-spacing: -0.01em; }
h2 { font-size: 23px; margin-bottom: 12px; }
h3 { font-size: 18px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.brand img { width: 52px; height: 52px; }
.say { color: var(--muted); font-size: 15px; margin-top: 2px; }
.lead { font-size: 19px; color: var(--text); margin: 16px 0 28px; }

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 14px;
  margin-bottom: 18px;
}

.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 14px; }
.num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}

.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--ember), #e8562f);
  color: #1b0f08; font-weight: 700; font-size: 18px;
  text-decoration: none; border: 0; border-radius: 10px;
  padding: 14px 22px; cursor: pointer;
}
.button:hover { filter: brightness(1.06); }
.button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fine { color: var(--muted); font-size: 14px; margin-top: 10px; }

kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; font: 14px "Segoe UI", system-ui, sans-serif;
}
b.ui { background: var(--panel-2); border-radius: 6px; padding: 1px 7px; font-weight: 600; }

.note {
  border-left: 3px solid var(--ember); background: #26211f;
  padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 10px 0 14px;
}

/* A drawing of Windows' warning, to show where to click. */
.warn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 16px; }
.warn {
  background: #1f4e9c; color: #fff; border-radius: 8px; padding: 14px 14px 12px;
  font-size: 13.5px; line-height: 1.4; position: relative;
}
.warn .title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.warn .link { text-decoration: underline; }
.warn .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.warn .btn { border: 1px solid #fff; padding: 4px 12px; border-radius: 3px; }
.warn .hit { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.warn .tag {
  position: absolute; top: -10px; left: -8px; background: var(--focus); color: #1b0f08;
  font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px;
}

.login { max-width: 420px; margin: 12vh auto 0; padding: 0 16px; }
.login form { display: grid; gap: 12px; margin-top: 20px; }
.login label { color: var(--muted); font-size: 15px; }
.login input {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.error { color: #ff9a8a; min-height: 1.5em; margin: 0; }

/* P6.5: the public download page (home.html). */
main.wide { max-width: 980px; }
.hero { padding: 12px 0 8px; }
.tagline { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 22px 0 8px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 6px; }
.badge {
  border: 1px solid var(--ember); color: var(--ember); border-radius: 999px;
  padding: 3px 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
section.beta { border: 2px solid var(--ember); background: #26211f; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 22px; }
.features h3 { margin-top: 6px; }
.features p { color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.shots figcaption { color: var(--muted); font-size: 14px; margin: 8px 2px 4px; }
ul.plain { padding-left: 20px; margin: 0 0 12px; }
ul.plain li { margin-bottom: 8px; }
.notes { white-space: pre-line; }
.placeholder { background: #4a3a12; color: var(--focus); border-radius: 4px; padding: 0 4px; }

.site-footer { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
main.wide + .site-footer { max-width: 980px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.site-footer a[aria-current] { color: var(--text); text-decoration: none; }

/* The legal pages and the known limitations (made by tools/pages.mjs). */
main.doc { max-width: 760px; }
main.doc h1 { margin: 18px 0 14px; }
main.doc h2 { margin: 28px 0 10px; }
main.doc ul, main.doc ol { padding-left: 22px; margin: 0 0 12px; }
main.doc li { margin-bottom: 6px; }
main.doc code { background: var(--panel-2); border-radius: 5px; padding: 1px 5px; font-size: 15px; }
.brand.small { text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand.small img { width: 32px; height: 32px; }
blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--panel); border-radius: 0 10px 10px 0; }
blockquote p { margin: 0; }
blockquote.draft { border: 2px solid var(--ember); background: #26211f; border-radius: 10px; }
.table { overflow-x: auto; margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .warn-pair { grid-template-columns: 1fr; }
  section { padding: 18px 16px 10px; }
  .features { grid-template-columns: 1fr; }
  .tagline { font-size: 22px; }
}
