@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Layout: one paper business card on a desk. The card's own text is the level: letters are breakable bricks, links are solid blocks. */
:root {
  --desk: #d9dbd8;
  --desk-ink: #4a4f52;
  --paper: #fbfbf9;
  --ink: #17191b;
  --ink-soft: #5b6064;
  --spot: #2447d6;
  --shadow: rgba(20, 24, 28, 0.18);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --desk: #1d2022; --desk-ink: #9aa1a6; --paper: #eeede8; --shadow: rgba(0, 0, 0, 0.55); color-scheme: dark } }
:root[data-theme="dark"] {
  --desk: #1d2022; --desk-ink: #9aa1a6; --paper: #eeede8; --shadow: rgba(0, 0, 0, 0.55); color-scheme: dark }

html, body { background: var(--desk); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding-inline: 16px; padding-block: 32px; box-sizing: border-box; overflow-x: hidden; }
.stage { width: min(600px, 100%); display: grid; gap: 14px; container-type: inline-size; font: 13px/1.4 var(--mono); }

.card {
  position: relative;
  aspect-ratio: 7 / 4;
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 1px 1px var(--shadow), 0 10px 30px -8px var(--shadow);
  padding: 7cqw 8cqw 6.5cqw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.card.shake { animation: shake 160ms; }
@keyframes shake { 30% { transform: translateY(1px); } 70% { transform: translateY(-1px); } }
.domain { position: absolute; top: 6.5cqw; left: 8cqw; font: 500 2.5cqw/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-soft); margin: 0; }
.name { font: 800 12cqw/1 var(--display); font-stretch: 125%; letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.role { font: 400 4.2cqw/1 var(--display); margin: 3.2cqw 0 0; color: var(--ink); }
.links { list-style: none; padding: 0; margin: 6cqw 0 0; display: flex; flex-wrap: wrap; gap: 0 5cqw; font: 500 3.1cqw/1 var(--mono); }
.links a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; text-decoration-color: var(--ink-soft); display: inline-block; padding: 0.4em 0; }
.links a:hover { color: var(--spot); text-decoration-color: currentColor; }
.links a:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }
.links a.bump { animation: bump 220ms ease-out; }
@keyframes bump { 40% { transform: translateY(-0.7em); } }
.ch { display: inline-block; }
.bl { display: inline-block; width: 0; height: 0; }
.ch.gone { visibility: hidden; }
.ch.bump { animation: bump 220ms ease-out; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#player { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
#player i { position: absolute; inset: 0; background: var(--spot); border-radius: 18% 18% 8% 8%; transform-origin: 50% 100%; transition: transform 90ms; }
#player i::after { content: ""; position: absolute; top: 24%; right: 18%; width: 22%; height: 16%; background: var(--paper); }
#player.left i::after { right: auto; left: 18%; }
#player.look-up i::after { top: 8%; }
#player.look-down i::after { top: 46%; }
#player i::after { transition: top 160ms; animation: blink 5.2s infinite; }
@keyframes blink { 0%, 95%, 100% { transform: none; } 97% { transform: scaleY(0.15); } }
@media (prefers-reduced-motion: reduce) { #player i::after { animation: none; } }
#player.squash i { transform: scale(1.18, 0.78); }
#player.stretch i { transform: scale(0.86, 1.14); }

.lift { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 240ms; }
.lift.on { opacity: 1; }
.lift .cable { position: absolute; left: 50%; top: 0; width: 1px; background: var(--ink-soft); }
.lift .car { position: absolute; left: 0; top: 0; box-sizing: border-box; background: var(--paper); border: 1px solid var(--ink-soft); border-bottom: 0; border-radius: 2px 2px 0 0; }
.lift .car::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: 0; height: var(--floor, 3px); background: var(--ink); }
.ding { position: absolute; font: 500 2.2cqw/1 var(--mono); color: var(--ink-soft); pointer-events: none; animation: ding 1s ease-out forwards; white-space: nowrap; }
@keyframes ding { from { opacity: 0; transform: translate(-50%, 0); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -2.5cqw); } }
@media (prefers-reduced-motion: reduce) { .ding { animation: none; opacity: 0; } }
.debris { position: absolute; left: 0; top: 0; pointer-events: none; white-space: pre; will-change: transform; z-index: 5; }
.debris.home { transition: transform 700ms cubic-bezier(.2,.8,.2,1); }

.below { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 36px; font: 13px/1.4 var(--mono); color: var(--desk-ink); }
.below p { margin: 0; min-width: 0; }
kbd { font: inherit; border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; opacity: 0.85; }
button { font: inherit; color: var(--desk-ink); background: transparent; border: 1px solid currentColor; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--spot); outline-offset: 2px; }

.pad { display: none; gap: 10px; justify-content: space-between; touch-action: none; }
.pad button { width: 64px; height: 56px; padding: 0; display: grid; place-items: center; -webkit-user-select: none; user-select: none; touch-action: none; }
.pad button.on { background: var(--desk-ink); color: var(--desk); }
.pad .lr { display: flex; gap: 10px; }
.pad .jump { width: 96px; }
.touch .pad { display: flex; }
.touch .keys { display: none; }
:not(.touch) > .stage .taps { display: none; }
.touch .taps { display: inline; }
