/* Parked's own Fluent tokens (src/index.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: #f3f3f3;
  --layer: #f9f9f9;
  --text: #1b1b1b;
  --muted: #5d5d5d;
  --stroke: rgb(0 0 0 / 0.0803);
  --stroke-strong: rgb(0 0 0 / 0.1622);
  --control: #fdfdfd;
  --control-hover: #f6f6f6;
  --accent: #005fb8;
  --accent-hover: #1a6fbf;
  --on-accent: #ffffff;
  --link: #005fb8;
  --code-bg: rgb(0 0 0 / 0.0373);
  --focus: #1b1b1b;

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #202020;
    --layer: #282828;
    --text: #ffffff;
    --muted: #c5c5c5;
    --stroke: rgb(255 255 255 / 0.0837);
    --stroke-strong: rgb(255 255 255 / 0.14);
    --control: #2d2d2d;
    --control-hover: #323232;
    --accent: #60cdff;
    --accent-hover: #5ab9e6;
    --on-accent: #000000;
    --link: #60cdff;
    --code-bg: rgb(255 255 255 / 0.0605);
    --focus: #ffffff;
  }
}

*, *::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(--layer);
  border: 1px solid var(--stroke);
  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(--stroke-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--control);
  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(--layer);
  border: 1px solid var(--stroke-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: 34em; 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);
  border: 1px solid rgb(0 0 0 / 0.08);
}
.button.primary:hover { background: var(--accent-hover); text-decoration: none; }
.button.primary:active { opacity: 0.9; }

/* Screenshots: the app's window, shown as it is. */
.shot {
  display: block;
  border: 1px solid var(--stroke-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(--stroke-strong);
  border-radius: 50%;
  font-size: 15px;
}
.step-text { padding-top: 8px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
  margin: 0 0 48px;
  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(--stroke);
}
.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(--control);
  border: 1px solid var(--stroke-strong);
  border-radius: 4px;
  cursor: pointer;
}
.copy:hover { background: var(--control-hover); }
.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; }
.install .shot { margin: 8px 0 20px; }
#install > .figure { margin-top: 64px; }

/* FAQ */
.faq { max-width: 46em; border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.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(--stroke);
  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; }
  .features, .platforms { grid-template-columns: minmax(0, 1fr); }
  .platforms { gap: 40px; }
  .file .button { width: 100%; }
}
