/*
 * GT-1 Gapless Blind Test. The device is laid out in the mockup's units (704 x 506) and
 * scaled as one piece.
 */
:root {
  --paper: #e9e7e0;
  --ink: #2c2b27;
  --ink2: #6f6e67;
  --ink3: #9b9a92;
  --accent: #ef6a1e;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --dot: "Doto", monospace;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s: 1;
}
* {
  box-sizing: border-box;
}
html {
  background: #dcd9d0;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 70% at 18% 0%, #f4f2ec 0%, rgba(244, 242, 236, 0) 55%),
    radial-gradient(140% 90% at 50% 110%, #c9c5ba 0%, rgba(201, 197, 186, 0) 60%),
    linear-gradient(180deg, #e6e3db 0%, #dcd9d0 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .44 0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.room {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 96px;
}
.stage {
  position: relative;
  width: calc(704px * var(--s));
  height: calc(540px * var(--s));
  flex: none;
}
.device {
  position: absolute;
  left: 0;
  top: 0;
  width: 704px;
  height: 540px;
  transform: scale(var(--s));
  transform-origin: 0 0;
}
.device button {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.device :focus {
  outline: none;
}
.device :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.pointer .device :focus-visible {
  outline: none;
}

.shadow {
  position: absolute;
  left: 18px;
  top: 452px;
  width: 668px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(50, 42, 30, 0.42), rgba(50, 42, 30, 0) 70%);
  filter: blur(6px);
}
.chassis {
  position: absolute;
  left: 0;
  top: 0;
  width: 704px;
  height: 506px;
  border-radius: 28px;
  background: linear-gradient(180deg, #bdb9ae 0%, #a9a598 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 3px rgba(40, 34, 24, 0.25),
    0 22px 40px -12px rgba(40, 34, 24, 0.45);
}
.face {
  position: absolute;
  left: 0;
  top: 0;
  width: 704px;
  height: 494px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f1efea 0%, #e6e4dd 55%, #dedbd3 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.6);
}
.face::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .49 0 0 0 0 .46 0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
}
.screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbfaf7 0%, #d4d1c8 55%, #b4b0a5 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -0.5px 1px rgba(0, 0, 0, 0.2);
}
.screw::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  height: 1.2px;
  background: rgba(70, 64, 52, 0.55);
  border-radius: 1px;
  transform: rotate(var(--r, 30deg));
}

.head {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 18px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  margin-left: 14px;
  font: 800 17px/1 var(--sans);
  font-stretch: 125%;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.logo b {
  color: var(--accent);
}
.logo small {
  font: 600 8px var(--mono);
  letter-spacing: 2.4px;
  margin-left: 6px;
  vertical-align: 3px;
  color: var(--ink2);
}
.model {
  margin: 0;
  font: 600 8px var(--mono);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ink2);
  padding-left: 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.14);
  height: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.model em {
  font-style: normal;
  color: var(--ink);
}
.leds {
  margin-left: auto;
  display: flex;
  gap: 16px;
}
.led {
  font: 600 8.5px var(--mono);
  letter-spacing: 1.8px;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.led i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7c3b8;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.25),
    0 1px 0 #fff;
}
.led.on i {
  background: radial-gradient(circle at 40% 35%, #ffd2b0, #ef6a1e 55%, #c44b0c);
  box-shadow:
    0 0 6px 1px rgba(239, 106, 30, 0.55),
    0 0 0 0.5px rgba(120, 40, 0, 0.5);
}
.led.on {
  color: var(--ink);
}

.bezel {
  position: absolute;
  left: 18px;
  top: 52px;
  width: 668px;
  height: 276px;
  border-radius: 18px;
  background: linear-gradient(180deg, #cfccc3, #e9e7e1);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.9);
}
.screen {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 660px;
  height: 268px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 100% at 30% 0%, #1f1d18 0%, #121110 60%, #0d0c0a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 10px 24px rgba(0, 0, 0, 0.6);
}
.screen canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 660px;
  height: 268px;
}
.screen .glare,
.lcd .glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.screen .glare {
  background:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.025) 32%,
      rgba(255, 255, 255, 0) 33%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 30%);
}
.screen-next {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 5px 9px !important;
  border-radius: 4px;
  background: var(--accent) !important;
  color: #fff8f2 !important;
  font: 700 8px/1 var(--mono) !important;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(239, 106, 30, 0.45);
}
.screen-next[hidden] {
  display: none;
}

.legend {
  position: absolute;
  font: 600 8.5px/1 var(--mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink2);
  white-space: nowrap;
}
.legend i {
  font-style: normal;
  color: var(--ink3);
  margin-right: 6px;
}
.rule {
  position: absolute;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.well {
  position: absolute;
  border-radius: 19px;
  padding: 4px;
  background: linear-gradient(180deg, #c9c5bb, #d9d6ce);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.95);
}
.key {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  text-align: left;
  background: linear-gradient(180deg, #fbfaf7 0%, #efede8 60%, #e4e2db 100%) !important;
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -3px 0 rgba(0, 0, 0, 0.05),
    0 5px 0 #c3bfb4,
    0 6px 1px rgba(0, 0, 0, 0.18),
    0 12px 16px -6px rgba(40, 34, 24, 0.45);
  transform: translateY(-5px);
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    opacity 0.2s;
}
.key::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 11px;
  pointer-events: none;
  background: radial-gradient(90% 80% at 50% 40%, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 70%);
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.8),
    inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.key:active:not([aria-disabled="true"]),
.key.down {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1.5px 0 #fff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.05),
    0 1px 0 #c3bfb4,
    0 2px 2px rgba(0, 0, 0, 0.18);
}
.key[aria-disabled="true"] {
  cursor: default;
}
.key[aria-disabled="true"] .kbig,
.key[aria-disabled="true"] .kl {
  opacity: 0.4;
}
.key.orange {
  background: linear-gradient(180deg, #ff8a45 0%, #f2702a 55%, #e3601b 100%) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 220, 190, 0.9),
    inset 0 -3px 0 rgba(0, 0, 0, 0.08),
    0 5px 0 #b44a10,
    0 6px 1px rgba(0, 0, 0, 0.2),
    0 12px 18px -6px rgba(180, 70, 10, 0.55);
}
.key.orange.down {
  box-shadow:
    inset 0 1.5px 0 rgba(255, 220, 190, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 1px 0 #b44a10,
    0 2px 3px rgba(0, 0, 0, 0.2);
}
.key.orange::after {
  background: radial-gradient(
    90% 80% at 50% 40%,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0) 70%
  );
  box-shadow:
    inset 0 -1px 0 rgba(255, 200, 160, 0.5),
    inset 0 1px 1px rgba(120, 40, 0, 0.15);
}
.kl {
  position: absolute;
  left: 14px;
  top: 13px;
  font: 600 8px/1 var(--mono);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink3);
}
.kbig {
  position: absolute;
  left: 13px;
  bottom: 10px;
  font: 800 40px/1 var(--sans);
  font-stretch: 110%;
  letter-spacing: -1px;
  color: var(--ink);
}
.kicon {
  position: absolute;
  right: 14px;
  bottom: 15px;
  width: 14px;
  height: 14px;
  fill: var(--ink);
}
.kled {
  position: absolute;
  right: 13px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfcbc1;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
}
.key.on .kled {
  background: radial-gradient(circle at 40% 35%, #ffd2b0, #ef6a1e 55%, #c44b0c);
  box-shadow: 0 0 6px 1px rgba(239, 106, 30, 0.6);
}
.key.orange .kl {
  color: rgba(255, 240, 228, 0.85);
}
.key.orange .kbig {
  color: #fff8f2;
}
.key.orange .kled {
  background: #fff3e8;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
}

.lcd {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(130% 120% at 20% 0%, #1f1d18, #0f0e0c 70%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 6px 14px rgba(0, 0, 0, 0.55);
}
.lcd .glare {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%);
}
.lcd .big {
  position: absolute;
  font: 800 42px/1 var(--dot);
  color: #f1efe8;
  letter-spacing: 1px;
}
.lcd .big span {
  color: rgba(241, 239, 232, 0.28);
}
.lcd .mid {
  position: absolute;
  font: 800 30px/1 var(--dot);
  color: var(--accent);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(239, 106, 30, 0.45);
}
.pips {
  position: absolute;
  display: flex;
  gap: 4px;
}
.pips i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(241, 239, 232, 0.12);
}
.pips i.w {
  background: #f1efe8;
}
.pips i.x {
  background: transparent;
  box-shadow: inset 0 0 0 1.2px rgba(241, 239, 232, 0.5);
}
.pips i.n {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(239, 106, 30, 0.7);
}
.print {
  position: absolute;
  font: 500 7.5px/1.5 var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(233, 231, 224, 0.42);
  white-space: nowrap;
}
.print.hot {
  color: var(--accent);
}

/* ---------- notes under the device ---------- */
.notes {
  width: min(980px, 100%);
  margin-top: 8px;
}
.lede {
  margin: 0 auto 28px;
  max-width: 640px;
  min-height: 2.6em;
  text-align: center;
  font:
    400 22px/1.3 "Instrument Serif",
    Georgia,
    serif;
  color: var(--ink);
}
.lede b {
  font-weight: 400;
  color: var(--accent);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (max-width: 760px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.cols h2 {
  margin: 0 0 8px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink3);
}
.cols p {
  margin: 0;
  font: 400 14px/1.55 var(--sans);
  color: var(--ink2);
}
.cols code {
  font: 500 12px var(--mono);
  color: var(--ink);
}
.link {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .key {
    transition: none;
  }
}
