@font-face {
  font-family: Manrope;
  src: url('./assets/manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #18181b;
  --muted: #6b6b71;
  --line: #e4e4e7;
  --action: #202024;
  --accent: #303034;
  --mint: #f2f2f4;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: Manrope, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button, a, summary {
  touch-action: manipulation;
}

:where(button, a, summary):focus-visible {
  outline: 2px solid #687b98;
  outline-offset: 5px;
}

::selection {
  background: #ffe1d5;
  color: #222226;
}

p, h1, h2, h3 {
  margin: 0;
}

.container {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}

.mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 10px;
  left: 20px;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.8px;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 60px;
  height: 40px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav .nav-section {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  color: var(--muted);
}

.github-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
}

.github-link .icon {
  width: 13px;
  height: 13px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
}

.language-switch button {
  transition: transform 140ms var(--ease-out);
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.language-switch button[aria-pressed='true'] {
  background: #ededf0;
  color: #252529;
}

.hero {
  display: grid;
  grid-template-columns: .95fr 1.12fr;
  align-items: center;
  gap: 45px;
  padding-block: 82px 68px;
}

.hero-copy {
  padding-bottom: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.hero-copy > .eyebrow {
  color: var(--muted);
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6b8d6a;
}

h1 {
  margin-top: 25px;
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.3;
}

.accent-text {
  color: var(--ink);
}

.hero-description {
  max-width: 410px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 23px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  transition: transform 140ms var(--ease-out);
}

.button-primary {
  background: var(--action);
  color: #ffffff;
  box-shadow: inset 0 1px 0 #ffffff14, 0 3px 4px #18181b12;
}

.button-primary .icon {
  width: 17px;
  height: 17px;
}

.button:active, .demo-mode:active, .language-switch button:active {
  transform: scale(.98);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.download-note {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 12px;
}

.hero-proof > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-proof .icon {
  width: 13px;
  height: 13px;
  color: var(--action);
}

.interactive-demo {
  min-width: 0;
}

.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
}

.demo-heading > .mono {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .05em;
}

.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--action);
}

.key-stage {
  position: relative;
  isolation: isolate;
  height: 390px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f1f1f3;
  background-image: radial-gradient(ellipse at 50% 40%, #fff, #ededf0);
  border: 1px solid #e8e8ec;
}

.key-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: radial-gradient(ellipse at 46% 42%, #ffffff00, #f1f1f3d9);
}

.stage-ruler {
  position: absolute;
  inset: 20px 22px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.keyboard-deck {
  position: absolute;
  left: 52px;
  top: 67px;
  width: 420px;
  height: 290px;
  transform: rotate(-7deg);
}

.neighbor-key {
  position: absolute;
  width: 77px;
  height: 76px;
  padding: 8px 9px 12px;
  border: 1px solid #d5d5d9;
  border-radius: 12px;
  background: linear-gradient(160deg, #f6f6f7 30%, #e2e2e6);
  box-shadow: 0 6px 0 #d0d0d5, 0 7px 0 #bdbdc4, 0 13px 12px #17171f16;
  user-select: none;
}

.neighbor-key > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid #ffffff;
  border-bottom-color: #eeeeef;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff, #f2f2f4);
  box-shadow: inset 0 2px 4px #ffffff90;
  color: #8a8a93;
  font-size: 20px;
  font-weight: 500;
}

.neighbor-key > b {
  position: absolute;
  top: 19px;
  right: 20px;
  font-size: 17px;
  color: #8a8a93;
  font-weight: 400;
}

.key-tab {
  top: 0;
  left: 0;
  width: 131px;
}

.key-tab > span, .key-shift > span {
  justify-content: flex-start;
  align-items: flex-end;
  padding: 9px 13px;
  font-size: 12px;
}

.key-q {
  top: 0;
  left: 141px;
}

.key-w {
  top: 0;
  left: 228px;
}

.key-e {
  top: 0;
  left: 315px;
}

.key-perspective {
  position: absolute;
  left: 0;
  top: 88px;
  z-index: 2;
}

.caps-key {
  display: block;
  position: relative;
  width: 178px;
  height: 107px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  transition: transform 140ms var(--ease-out);
}

.caps-key.is-pressed {
  transform: translateY(3px) scale(.98);
}

.key-face {
  display: block;
  width: 100%;
  height: 100%;
}

.caps-artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.key-a {
  top: 94px;
  left: 190px;
  height: 94px;
  width: 82px;
}

.key-s {
  top: 94px;
  left: 282px;
  height: 94px;
  width: 82px;
}

.key-shift {
  top: 214px;
  left: 0;
  width: 190px;
  height: 70px;
}

.key-z {
  top: 214px;
  left: 200px;
  height: 70px;
}

.key-x {
  top: 214px;
  left: 287px;
  height: 70px;
}

.stage-output {
  position: absolute;
  top: 205px;
  right: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 124px;
  padding: 10px 14px;
  border: 1px solid #dedee3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 6px 0 #d6d6dc, 0 15px 22px #17171b13;
  transform: rotate(5deg);
}

.output-name {
  font-size: 12px;
  letter-spacing: .16em;
  color: #85858c;
}

.output-symbol {
  display: grid;
  place-items: center;
  height: 54px;
  font-size: 39px;
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--action);
}

.output-caption {
  font-size: 12px;
  color: var(--muted);
}

.interactive-demo[data-mode='hold'] .output-symbol {
  font-size: 24px;
  letter-spacing: 0;
  white-space: nowrap;
}

.interactive-demo[data-mode='hold'] .stage-output {
  background: #eef1f5;
  border-color: #c4cbd5;
}

.demo-selection {
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc(50% - 5px);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 3px #18181b14, 0 0 0 1px #18181b04;
  transition: transform 160ms var(--ease-out);
}

.interactive-demo[data-mode='hold'] .demo-selection {
  transform: translateX(calc(100% + 2px));
}

.demo-controls {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 12px;
  padding: 4px;
  border: 1px solid #e2e2e7;
  border-radius: 11px;
  background: #ededf0;
}

.demo-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: transform 140ms var(--ease-out);
}

.demo-mode[aria-pressed='true'] {
  color: var(--ink);
}

.mode-result {
  font-size: 12px;
  font-weight: 700;
}

.mode-result > span {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
}

.demo-instruction {
  margin-top: 11px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.principles-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  border-block: 1px solid var(--line);
  font-size: 12px;
}

.principles-strip > p {
  color: var(--muted);
}

.principles-strip > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.strip-divider {
  color: #b3b3ba;
  font-size: 12px;
}

.section-space {
  margin-top: 88px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 32px;
}

.section-eyebrow {
  margin-bottom: 14px;
  font-size: 12px;
}

.section-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #d6d6dc;
  color: var(--action);
  font-size: 12px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(27px, 2.8vw, 35px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.45;
  text-wrap: pretty;
}

.section-description {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.mapping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mapping-card {
  padding: 29px 34px 25px;
  border: 1px solid #e4e4e8;
  border-radius: 12px;
}

.tap-card {
  background: #f4f4f6;
}

.hold-card {
  background: #232326;
  border-color: #232326;
  color: #fafafa;
}

.mapping-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.hold-card .mapping-heading {
  color: #b7b7c0;
}

.mapping-diagram {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-block: 32px 35px;
}

.small-key {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 100px;
  height: 56px;
  border: 1px solid #d6d6dc;
  border-radius: 9px;
  background: linear-gradient(#ffffff, #ededf1);
  box-shadow: 0 4px 0 #d4d4db;
  color: #62626b;
  font-size: 12px;
}

.result-key {
  min-width: 69px;
  font-size: 20px;
  color: var(--action);
}

.diagram-arrow {
  width: 22px;
  height: 22px;
  color: #96969f;
}

.hold-card .small-key {
  color: #f3f3f6;
  background: linear-gradient(#4c4c54, #393940);
  border-color: #74747e;
  box-shadow: 0 4px 0 #151518;
}

.modifier-keys {
  display: flex;
  gap: 7px;
}

.modifier-keys span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 49px;
  border: 1px solid #d6d6df;
  border-radius: 8px;
  background: #f5f5f8;
  box-shadow: 0 4px 0 #b1b1bd;
  color: #323239;
  font-size: 25px;
}

h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.5;
}

.mapping-card > p {
  margin-top: 10px;
  min-height: 80px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hold-card > p {
  color: #c1c1c9;
}

.mapping-footnote {
  display: block;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #dfdfe5;
  color: var(--muted);
  font-size: 12px;
}

.hold-card .mapping-footnote {
  border-color: #4d4d55;
  color: #bcbcc6;
}

.product-section {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  align-items: center;
  gap: 76px;
}

.product-image {
  position: relative;
  overflow: hidden;
  padding: 35px 0;
  border: 1px solid #e2e2e8;
  border-radius: 13px;
  background: #f0f0f3;
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
}

.image-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.product-copy h2 {
  font-size: 30px;
}

.product-intro {
  margin-block: 18px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.product-feature {
  display: flex;
  gap: 14px;
  margin-top: 21px;
}

.product-feature > .icon {
  margin-top: 3px;
  color: var(--action);
  width: 17px;
  height: 17px;
}

.product-feature h3 {
  font-size: 15px;
}

.product-feature p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.install-section {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.install-section .section-heading {
  margin-bottom: 38px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border: 1px solid #dedee4;
  border-radius: 9px;
  background: #f3f3f6;
  color: var(--action);
  font-size: 12px;
}

.install-steps h3 {
  font-size: 16px;
}

.install-steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.step-detail {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
}

.faq-section {
  display: grid;
  grid-template-columns: .9fr 1.3fr;
  gap: 70px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.faq-intro .text-link {
  margin-top: 20px;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 65px;
  padding-block: 18px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list details > p {
  padding: 0 28px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.closing-section {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 88px;
  padding: 44px;
  border-radius: 13px;
  background: #232326;
  color: #ffffff;
}

.closing-symbol {
  display: block;
  flex-shrink: 0;
  width: 110px;
  height: 80px;
}

.closing-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-section .eyebrow {
  color: #b9b9c3;
  font-size: 12px;
}

.closing-section h2 {
  margin-top: 5px;
  font-size: 28px;
}

.closing-section p:last-child {
  margin-top: 8px;
  color: #b9b9c3;
  font-size: 12px;
}

.closing-section .button {
  margin-left: auto;
  flex-shrink: 0;
  background: #ffffff;
  color: #232326;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 52px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-size: 15px;
  gap: 9px;
}

.footer-brand .brand-mark {
  width: 48px;
  height: 34px;
}

.site-footer p {
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div > p {
  margin-top: 9px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.footer-links .icon {
  width: 15px;
  height: 15px;
}

html:lang(en) h1 {
  font-size: clamp(42px, 4.4vw, 61px);
  line-height: 1.18;
  font-weight: 650;
}

html:lang(en) .hero-description {
  font-size: 15px;
}

html:lang(en) .product-copy h2 {
  font-size: 27px;
}

html.keyboard-input button, html.keyboard-input .button, html.keyboard-input .demo-selection {
  transition: none;
}

html.keyboard-input button:active, html.keyboard-input .button:active {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover, .main-nav a:hover, .footer-links a:hover {
    color: var(--action);
    text-decoration: underline;
    text-underline-offset: 5px;
  }
  .button-primary:hover {
    background: #3b3b40;
  }
  .closing-section .button:hover {
    background: #ededf2;
  }
  .demo-mode:hover {
    color: var(--ink);
  }
}

@media (max-width: 1100px) {
  .container {
    width: calc(100% - 72px);
  }
  .hero {
    gap: 30px;
    padding-block: 66px 58px;
  }
  h1 {
    font-size: 51px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-proof {
    gap: 12px;
  }
  .keyboard-deck {
    left: 18px;
    top: 79px;
    transform: rotate(-7deg) scale(.92);
    transform-origin: top left;
  }
  .key-stage {
    height: 370px;
  }
  .interactive-demo[data-mode='hold'] .output-symbol {
    font-size: 22px;
  }
  .stage-output {
    top: 203px;
    right: 14px;
    width: 116px;
    height: 114px;
  }
  .product-section {
    gap: 45px;
  }
  .product-copy h2 {
    font-size: 27px;
  }
  .mapping-card {
    padding-inline: 27px;
  }
  .mapping-diagram {
    gap: 18px;
  }
  .modifier-keys {
    gap: 5px;
  }
  .modifier-keys span {
    width: 34px;
    height: 44px;
    font-size: 22px;
  }
  .closing-section h2 {
    font-size: 25px;
  }
}

@media (max-width: 850px) {
  .container {
    width: calc(100% - 48px);
  }
  .site-header {
    gap: 23px;
  }
  .main-nav {
    gap: 20px;
  }
  .hero {
    grid-template-columns: .95fr 1fr;
    gap: 23px;
  }
  h1 {
    font-size: 43px;
  }
  html:lang(en) h1 {
    font-size: 43px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-actions {
    gap: 7px 15px;
    margin-top: 23px;
  }
  .hero-proof {
    margin-top: 18px;
    gap: 11px;
  }
  .hero-proof > span {
    font-size: 12px;
  }
  .demo-heading > .mono {
    font-size: 12px;
  }
  .demo-live {
    font-size: 12px;
  }
  .key-stage {
    height: 348px;
  }
  .keyboard-deck {
    left: 18px;
    top: 85px;
    transform: rotate(-7deg) scale(.78);
  }
  .stage-output {
    top: 193px;
    right: 13px;
    width: 104px;
    height: 110px;
    padding-inline: 12px;
  }
  .output-symbol {
    font-size: 33px;
  }
  .interactive-demo[data-mode='hold'] .output-symbol {
    font-size: 20px;
  }

  .demo-instruction {
    font-size: 12px;
  }
  .principles-strip {
    flex-direction: column;
    gap: 9px;
    text-align: center;
  }
  .section-space {
    margin-top: 76px;
  }
  .section-description {
    max-width: 240px;
  }
  .mapping-card {
    padding-inline: 23px;
  }
  .mapping-diagram {
    gap: 12px;
  }
  .small-key {
    min-width: 80px;
    font-size: 12px;
  }
  .result-key {
    min-width: 65px;
    font-size: 20px;
  }
  .modifier-keys {
    gap: 4px;
  }
  .modifier-keys span {
    width: 27px;
    height: 38px;
    font-size: 21px;
  }
  .mapping-card > p {
    min-height: 70px;
  }
  .product-section {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .product-image {
    padding-block: 60px;
  }
  .product-copy h2 {
    font-size: 25px;
  }
  html:lang(en) .product-copy h2 {
    font-size: 24px;
  }
  .install-steps {
    gap: 28px;
  }
  .faq-section {
    gap: 35px;
  }
  .closing-section {
    padding: 35px;
    gap: 24px;
    flex-wrap: wrap;
  }
  .closing-symbol {
    width: 90px;
    height: 66px;
  }
  .closing-section h2 {
    font-size: 24px;
  }
  .closing-section .button {
    margin-left: 114px;
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 40px);
  }
  .site-header {
    gap: 15px;
    padding-block: 16px;
  }
  .brand {
    font-size: 17px;
    gap: 9px;
  }
  .brand-mark {
    width: 50px;
    height: 34px;
  }

  .main-nav {
    gap: 0;
  }
  .main-nav .nav-section {
    display: none;
  }
  .github-link {
    justify-content: center;
    min-width: 44px;
  }
  .github-link > span {
    display: none;
  }
  .github-link .icon {
    width: 18px;
    height: 18px;
  }
  .language-switch {
    gap: 0;
  }
  .language-switch button {
    min-width: 44px;
    min-height: 44px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 39px;
    padding-block: 45px 33px;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-copy > .eyebrow {
    font-size: 12px;
  }
  h1 {
    margin-top: 20px;
    font-size: clamp(43px, 9.9vw, 64px);
  }
  html:lang(en) h1 {
    font-size: clamp(40px, 9.5vw, 61px);
  }
  .hero-description {
    max-width: 410px;
    margin-top: 20px;
    font-size: 15px;
  }
  .hero-actions {
    gap: 20px;
    margin-top: 24px;
  }
  .hero-proof {
    margin-top: 21px;
    gap: 19px;
  }
  .hero-proof > span {
    font-size: 12px;
  }
  .interactive-demo {
    width: min(100%, 490px);
    margin-inline: auto;
  }
  .demo-heading > .mono {
    font-size: 12px;
  }
  .demo-live {
    font-size: 12px;
  }
  .key-stage {
    height: 337px;
  }
  .keyboard-deck {
    left: 24px;
    top: 78px;
    transform: rotate(-7deg) scale(.82);
  }
  .stage-output {
    width: 112px;
    height: 115px;
    right: 17px;
    top: 182px;
  }

  .demo-instruction {
    font-size: 12px;
  }
  .principles-strip {
    padding-block: 16px;
    font-size: 12px;
  }
  .principles-strip > div {
    gap: 10px;
    justify-content: center;
  }
  .section-space {
    margin-top: 61px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 23px;
  }
  .section-description {
    max-width: 100%;
  }
  .section-eyebrow {
    font-size: 12px;
  }
  h2 {
    font-size: 27px;
  }
  .mapping-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .mapping-card {
    padding: 24px;
  }
  .mapping-diagram {
    gap: 21px;
  }
  .small-key {
    min-width: 100px;
    font-size: 12px;
  }
  .result-key {
    min-width: 69px;
    font-size: 20px;
  }
  .modifier-keys span {
    width: 35px;
    height: 43px;
    font-size: 23px;
  }
  .mapping-card > p {
    min-height: 0;
    font-size: 14px;
  }
  .mapping-footnote {
    font-size: 12px;
  }
  .product-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .product-image {
    padding-block: 25px;
  }
  .image-caption {
    padding-top: 17px;
  }
  .product-copy h2, html:lang(en) .product-copy h2 {
    font-size: 28px;
  }
  .product-intro {
    font-size: 14px;
  }
  .product-feature h3 {
    font-size: 15px;
  }
  .product-feature p {
    font-size: 14px;
  }
  .install-section {
    padding-top: 34px;
  }
  .install-section .section-heading {
    gap: 5px;
    margin-bottom: 25px;
  }
  .install-steps {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .install-steps li {
    padding-left: 51px;
    position: relative;
  }
  .step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
  }
  .install-steps h3 {
    padding-top: 3px;
  }
  .install-steps p {
    margin-top: 8px;
    font-size: 14px;
  }
  .step-detail {
    margin-top: 9px;
    font-size: 12px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 34px;
  }
  .faq-intro .text-link {
    margin-top: 9px;
  }
  .faq-list summary {
    font-size: 14px;
  }
  .faq-list details > p {
    font-size: 14px;
  }
  .closing-section {
    margin-top: 60px;
    padding: 28px;
    gap: 21px;
  }
  .closing-symbol {
    width: 90px;
    height: 66px;
  }
  .closing-section > div {
    width: 100%;
  }
  .closing-section h2 {
    font-size: 25px;
  }
  .closing-section .button {
    margin-left: 0;
  }
  .site-footer {
    margin-top: 38px;
    padding-block: 25px;
    gap: 18px 20px;
  }
  .site-footer > div:first-child {
    width: 100%;
  }
  .footer-links {
    gap: 19px;
    font-size: 12px;
  }
}

@media (min-width: 450px) and (max-width: 680px) {
  .keyboard-deck {
    left: 42px;
    top: 83px;
    transform: rotate(-7deg) scale(.95);
  }
  .key-stage {
    height: 380px;
  }
  .stage-output {
    top: 210px;
    width: 115px;
    height: 118px;
  }
}

@media (max-width: 380px) {
  .container {
    width: calc(100% - 32px);
  }
  .site-header {
    gap: 6px;
  }
  .brand {
    font-size: 14px;
    gap: 6px;
  }
  .brand-mark {
    width: 40px;
    height: 32px;
  }

  .language-switch button {
    min-width: 44px;
  }
  .hero-actions {
    gap: 13px;
  }
  .hero-proof {
    gap: 12px;
  }
  .hero-proof > span {
    font-size: 12px;
  }
  .keyboard-deck {
    left: 17px;
    top: 77px;
    transform: rotate(-7deg) scale(.73);
  }
  .key-stage {
    height: 309px;
  }
  .stage-output {
    top: 169px;
    width: 100px;
    height: 110px;
    right: 13px;
    padding-inline: 10px;
  }
  .output-symbol {
    font-size: 30px;
  }
  .output-caption {
    font-size: 12px;
  }
  .interactive-demo[data-mode='hold'] .output-symbol {
    font-size: 19px;
  }

  .demo-heading > .mono {
    font-size: 12px;
  }
  .mapping-card {
    padding-inline: 20px;
  }
  .hyper-diagram {
    gap: 11px;
  }
  .hyper-diagram .small-key {
    min-width: 78px;
    font-size: 12px;
  }
  .modifier-keys span {
    width: 28px;
    height: 39px;
    font-size: 20px;
  }
  .closing-section {
    padding: 25px;
  }
  .closing-section h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button, .caps-key, .demo-mode, .language-switch button, .demo-selection {
    transition: none;
  }
  .button:active, .caps-key.is-pressed, .demo-mode:active, .language-switch button:active {
    transform: none;
  }
}
