:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f3f7fb;
  --surface: #dce6f0;
  --ink: #203247;
  --action: #245a87;
  --muted: color-mix(in srgb, var(--ink) 82%, var(--paper));
  --rule: color-mix(in srgb, var(--ink) 22%, var(--surface));
  --page-gutter: clamp(16px, 5vw, 72px);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
p { max-width: 64ch; }
p + p { margin-top: .8em; }
a { color: var(--action); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }

.page-width {
  width: min(1200px, calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 8px auto auto var(--page-gutter);
  padding: 8px 16px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
}
.site-header { border-bottom: 1px solid var(--rule); }
.brand { display: block; width: 116px; flex: none; }
.site-header nav, .site-footer nav, .help nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 clamp(16px, 3vw, 32px);
}
.site-header nav a, .site-footer nav a, .help nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.site-header nav a, .site-footer nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a[aria-current="page"] {
  color: var(--action);
  text-decoration: underline;
}

.hero, .feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero { padding-block: clamp(32px, 5vw, 64px); }
h1, h2 {
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { max-inline-size: 15ch; font-size: clamp(2.375rem, 4.15vw, 3.875rem); }
h2 { font-size: clamp(1.625rem, 2.45vw, 2.375rem); }
.tagline { margin-top: 24px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 650; }
.lede { margin-top: 12px; max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.125rem); }
.actions { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: 24px; }
.button, .text-action { display: inline-flex; align-items: center; min-height: 48px; font-weight: 650; }
.button {
  justify-content: center;
  column-gap: .3em;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--action);
  color: var(--paper);
  text-decoration: none;
}
.button:hover { background: color-mix(in srgb, var(--action) 70%, var(--ink)); }
.compatibility { margin-top: 16px; color: var(--muted); }

.hero-displays { width: 100%; aspect-ratio: 1; }
.showcase-keypress { transform: translate(-50%, -50%); }

.feature {
  padding-block: clamp(40px, 6.5vw, 96px);
  border-top: 1px solid var(--rule);
}
.feature h2 { max-width: 21ch; }
.feature h2 + p, .help h2 + p { margin-top: 12px; }
.layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 3vw, 32px); }
.layouts svg { width: 100%; }
.layouts figcaption, .monitor-move figcaption { margin-top: 8px; font-weight: 650; }
.layouts svg, .monitor-move svg { fill: none; stroke: var(--ink); stroke-width: 2; }
.layouts rect, .monitor-move rect { fill: var(--surface); }
.tile-active { fill: var(--ink); stroke: none; }
.tile-ghost { stroke-dasharray: 4 4; }
.move-arrow { stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; }
.monitor-move { width: 100%; max-width: 480px; justify-self: center; }
.monitor-move figcaption { display: flex; justify-content: space-between; }

.key-chord { white-space: nowrap; }
.direction-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.direction-keys li { white-space: nowrap; }
kbd {
  display: inline-block;
  padding: 0 .35em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 4px;
  font: inherit;
  font-weight: 650;
}
.install-section {
  border-block: 1px solid var(--rule);
  background: var(--surface);
}
.install-section .install-guide {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  border: 0;
}
.install-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 36px);
}
.install-method {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
}
.install-method h3 { margin: 0; line-height: 1.2; }
.install-command {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.install-notes p { max-width: 75ch; }
.install-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.8em;
}
.install-steps li { padding-left: .35em; }
.install-steps li::marker { font-weight: 750; }

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-block: 24px;
}
.site-footer .brand { width: 96px; }
.footer-credit { justify-self: center; color: var(--muted); font-size: .875rem; text-align: center; }

.help { max-width: 800px; padding-top: clamp(32px, 6vw, 72px); }
.help nav { margin-top: 12px; }
.help section { padding-block: 32px; border-bottom: 1px solid var(--rule); }
.shortcut-reference {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: 12px 24px;
  margin-block: 16px;
}

@media (max-width: 820px) {
  .site-footer { display: flex; }
  .footer-credit { text-align: start; }
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 32px; }
  .layouts { max-width: 520px; }
  .monitor-move { justify-self: start; }
  .install-methods { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .shortcut-reference { grid-template-columns: 1fr; gap: 4px; }
  .shortcut-reference dd + dt { margin-top: 8px; }
}
