/* Shared by the landing page and the changelog: colors, the Download button and the tilted keyboard. */
/* Paper and ink sampled from Brand/logo.png */
:root {
  --paper: #f8f6f3; --ink: #2d2d2d; --muted: #85817b; --field: #e9e7e2;
  --case: #ece9e3; --cap-top: #fffefc; --cap-bottom: #f3f1ec; --cap-edge: #d6d1c7; --legend: #a8a39b;
  color-scheme: light;
}
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.handwritten { font: 600 21px/1 "Caveat", cursive; white-space: nowrap; }

.download { display: inline-block; padding: 13px 28px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: opacity .15s; }
.download:hover { opacity: .88; }

/* Keyboard: --u is one key width; the board is 14.5 keys wide. */
.stage {
  display: flex; justify-content: center; perspective: 1600px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent 92%); mask-image: linear-gradient(#000 35%, transparent 92%);
}
.kb {
  --u: calc(clamp(600px, 112vw, 1060px) / 14.5); /* on phones the board bleeds off both edges */
  --gap: calc(var(--u) * .1);
  height: fit-content; padding: calc(var(--u) * .22); border-radius: calc(var(--u) * .32); background: var(--case);
  box-shadow: inset 0 1px 0 #fff, 0 30px 60px -20px rgb(45 45 45 / .25);
  transform: rotateX(34deg); transform-origin: 50% 0; user-select: none; touch-action: none;
}
.row { display: flex; }
.key {
  width: calc(var(--w) * var(--u) - var(--gap)); height: calc(var(--u) - var(--gap)); margin: calc(var(--gap) / 2);
  padding: calc(var(--u) * .13) calc(var(--u) * .15); border-radius: calc(var(--u) * .14);
  background: linear-gradient(var(--cap-top), var(--cap-bottom)); color: var(--legend);
  font-size: calc(var(--u) * .19); line-height: 1; white-space: nowrap; overflow: hidden;
  box-shadow: 0 calc(var(--u) * .07) 0 var(--cap-edge), 0 calc(var(--u) * .1) calc(var(--u) * .16) rgb(45 45 45 / .1);
  transition: transform .07s ease-out, box-shadow .07s ease-out, color .07s;
}
.key.down {
  transform: translateY(calc(var(--u) * .055)); color: var(--ink);
  box-shadow: 0 calc(var(--u) * .015) 0 var(--cap-edge), 0 1px 2px rgb(45 45 45 / .08);
}
@media (prefers-reduced-motion: reduce) { .key { transition: none; } }
