/* The app's own tokens (src/styles.css), so the site and the app look like the same product.
   The theme follows the visitor's system setting. */
:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --panel: #ffffff;
  --text: #1b1f24;
  --muted: #59616b;
  --line: #d9dce0;
  --line-strong: #c3c8ce;
  --accent: #2c5a8c;
  --accent-hover: #244d79;
  --on-accent: #ffffff;
  --link: #2c5a8c;
  --code-bg: #eceef0;
  --focus: #3b78c4;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-display:
    "Segoe UI Variable Display", "Segoe UI", system-ui, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", "Liberation Mono", ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15181c;
    --panel: #1c2025;
    --text: #e4e7eb;
    --muted: #9aa3ad;
    --line: #2c3239;
    --line-strong: #3b434c;
    --accent: #4f87c7;
    --accent-hover: #6297d1;
    --on-accent: #0d1116;
    --link: #6aa2e0;
    --code-bg: #121417;
    --focus: #6aa2e0;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 16px;
  margin-top: 28px;
}
p {
  margin: 0 0 16px;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
  font-size: 0.875em;
}
code {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  font-size: 1em;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
}

.wrap {
  max-width: 1048px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  z-index: 1;
}
.skip:focus {
  top: 12px;
}

/* Header */
.hero {
  padding-top: 72px;
}
.hero-icon {
  display: block;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.2;
}
.tagline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
  margin: 4px 0 20px;
}
.lead {
  font-size: 18px;
  max-width: 36em;
  margin-bottom: 28px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.cta-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.cta-other {
  margin: 12px 0 48px;
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-hover);
}

/* Screenshots: the app's window, shown as it is. */
.shot {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

/* Sections */
.section {
  padding-top: 96px;
}
.prose p {
  max-width: 40em;
  font-size: 18px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 12fr);
  gap: 40px;
  align-items: start;
}
.step + .step {
  margin-top: 64px;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 15px;
}
.step-text {
  padding-top: 8px;
}
#how > .figure {
  margin-top: 80px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}
.features strong {
  display: block;
}

.figure {
  margin: 0;
}
.figure .shot {
  margin: 0 auto;
}
.figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Download */
.release-line {
  color: var(--muted);
}
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 32px;
}
.platform h3 {
  font-size: 24px;
}
.requires {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0 24px;
}
.file + .file {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.file-note {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 12px;
}
.link-strong {
  font-weight: 600;
}
.file-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0;
  font-size: 14px;
}
.file-meta[hidden] {
  display: none;
}
.file-meta dt {
  color: var(--muted);
}
.file-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hash code {
  word-break: break-all;
  font-size: 13px;
}
.copy {
  margin-left: 4px;
  min-height: 28px;
  padding: 2px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
}
.copy:hover {
  background: var(--code-bg);
}
.status {
  min-height: 1.6em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Install */
.install {
  max-width: 46em;
}
.install + .install {
  margin-top: 48px;
}
.install h3 {
  margin-bottom: 12px;
}
.howto {
  padding-left: 1.4em;
  margin: 0 0 16px;
}
.howto li {
  padding-left: 4px;
  margin-bottom: 12px;
}
.howto li p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq {
  max-width: 46em;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details > :not(summary) {
  margin-top: 0;
}
.faq details > :last-child {
  margin-bottom: 20px;
}
.faq ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

/* Footer */
.foot {
  margin-top: 96px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot p {
  margin: 0;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .tagline {
    font-size: 22px;
  }
  .lead {
    font-size: 17px;
  }
  .cta .button {
    width: 100%;
  }
  .section {
    padding-top: 72px;
  }
  h2 {
    font-size: 26px;
  }
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .step + .step {
    margin-top: 48px;
  }
  #how > .figure {
    margin-top: 56px;
  }
  .features,
  .platforms {
    grid-template-columns: minmax(0, 1fr);
  }
  .platforms {
    gap: 40px;
  }
  .file .button {
    width: 100%;
  }
}
