@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations"); } :root { color: #f2f2ef; background: #070707; font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif; font-synthesis: none; font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01"; text-rendering: optimizeLegibility; color-scheme: only dark; } * { box-sizing: border-box; } html { min-height: 100%; background: #070707; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { min-height: 100vh; min-height: 100dvh; margin: 0; } a { font: inherit; color: inherit; text-decoration: none; } .page { isolation: isolate; position: relative; display: grid; min-height: 100vh; min-height: 100dvh; grid-template-rows: auto minmax(17rem, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow-x: clip; background: #070707; } /* The show: messages, words and the head are drawn on one canvas behind the page. */ .stage { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; } .screen-glass { position: fixed; z-index: 25; inset: 0; width: 100%; height: 100%; pointer-events: none; } .page[data-screen-shattered] .header, .page[data-screen-shattered] .topbar, .page[data-screen-shattered] .hero__copy, .page[data-screen-shattered] .foot, .page[data-screen-shattered] .hero__action { opacity: 0; transition: opacity 40ms linear; } .show { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; container-type: size; pointer-events: none; } .show > * { /* Head box: 3.2 head radii (head, hair and halo); the canvas reads it to place the head. */ --box: clamp(9.5rem, min(32vw, 32vh, 62cqh), 20rem); } .show__head { width: var(--box); height: var(--box); flex: none; } .show__head img { display: block; width: 100%; height: 100%; transition: opacity 240ms ease-out; } .page[data-live] .show__head img { opacity: 0; } .keycap { position: relative; width: 7.75rem; height: 6.375rem; flex: none; margin-top: calc(var(--box) * -0.11); padding: 0; border: 0; border-radius: 1.25rem; background: none; color: rgba(246, 247, 250, 0.92); font: inherit; cursor: pointer; pointer-events: auto; user-select: none; -webkit-tap-highlight-color: transparent; transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s linear 0s; } .keycap:focus-visible { outline: 2px solid #a9b9ff; outline-offset: 6px; } .keycap__glow { position: absolute; inset: 0.625rem 0.75rem -0.25rem; border-radius: 1.125rem; background: radial-gradient(ellipse at 50% 85%, rgba(255, 164, 56, 0.52), rgba(255, 110, 32, 0.16) 58%, transparent 78%); filter: blur(8px); /* The pulse: --glow-pulse (0 dim, 1 bright) is set at 30 fps by OptionKey. */ opacity: calc(0.62 + 0.34 * var(--glow-pulse, 0)); transform: scale(calc(0.98 + 0.06 * var(--glow-pulse, 0))); } .keycap__well { position: absolute; inset: 0.25rem 0.25rem 0; border-radius: 1.125rem; background: #040406; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.82), 0 6px 16px rgba(0, 0, 0, 0.75), inset 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.07); } .keycap__cap { position: absolute; inset: 0 0.375rem 0.375rem; border-radius: 1rem; background: linear-gradient(180deg, #2a2d35 0%, #17191f 38%, #0e1014 82%, #08090c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 1px 0 0 rgba(255, 255, 255, 0.1), inset -1px 0 0 rgba(255, 255, 255, 0.08), inset 0 -3px 6px rgba(0, 0, 0, 0.88), 0 8px 18px rgba(0, 0, 0, 0.65); transform: translateY(var(--key-y, 0px)); transition: transform 110ms cubic-bezier(0.22, 1.35, 0.36, 1), box-shadow 120ms ease; } .keycap__dish { position: absolute; inset: 0.25rem 0.4375rem 0.75rem; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 0.625rem 0.75rem 0.5625rem; border-radius: 0.75rem; background: radial-gradient(120% 95% at 28% 18%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.28) 100%), linear-gradient(165deg, #1b1d24 0%, #121419 52%, #181a21 100%); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.26), inset 0 -1.5px 2px rgba(0, 0, 0, 0.65), inset 2px 0 3px rgba(0, 0, 0, 0.35), inset -2px 0 3px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.06); text-shadow: 0 0 10px rgba(255, 210, 145, 0.28); } .keycap__glyph { width: 1.375rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 200, 120, 0.25)); } .keycap__label { align-self: flex-start; /* The dish is a column with space-between: without the Mac's glyph above it, the label is the only child and would sit at the top. The auto margin keeps it on the bottom row, where the canvas shatter draws the legend. */ margin-top: auto; font-size: 0.9rem; font-weight: 540; line-height: 1; letter-spacing: -0.01em; } /* Linux's chord reads as a second, smaller legend beside the key's own. */ .keycap__chord { margin-left: 0.22rem; font-size: 0.72rem; font-weight: 500; color: rgba(246, 247, 250, 0.66); } .keycap__hint { position: absolute; bottom: -1.5rem; left: 50%; color: rgba(244, 244, 246, 0.48); font-size: 0.72rem; font-weight: 500; line-height: 1; white-space: nowrap; transform: translateX(-50%); transition: color 200ms ease; } .keycap__hint-touch { display: none; } @media (pointer: coarse) { .keycap__hint-fine { display: none; } .keycap__hint-touch { display: inline; } } @media (hover: hover) { .keycap:hover { --key-y: 1.5px; } .keycap:hover .keycap__hint { color: rgba(244, 244, 246, 0.82); } } .keycap:active, .keycap[data-pressed] { --key-y: 7px; } .keycap:active .keycap__glow, .keycap[data-pressed] .keycap__glow { opacity: 1; filter: blur(11px); transform: scale(1.22); transition: opacity 220ms ease; } .keycap:active .keycap__cap, .keycap[data-pressed] .keycap__cap { transform: translateY(var(--key-y, 0px)) scaleX(1.035) scaleY(0.935); transition: transform 45ms cubic-bezier(0.12, 0.9, 0.25, 1), box-shadow 55ms ease; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 3px rgba(0, 0, 0, 0.95), 0 2px 5px rgba(0, 0, 0, 0.82), 0 0 18px rgba(255, 152, 44, 0.35); } .keycap:active .keycap__dish, .keycap[data-pressed] .keycap__dish { box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.24), inset 0 -1.5px 3px rgba(255, 148, 42, 0.28), inset 2px 0 3px rgba(0, 0, 0, 0.4), inset -2px 0 3px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.08); text-shadow: 0 0 14px rgba(255, 200, 110, 0.58); } .keycap[data-gone] { --key-y: 6px; visibility: hidden; opacity: 0; transform: translateY(4px) scale(0.95); pointer-events: none; transition: opacity 320ms ease, transform 420ms cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s linear 420ms; } .page[data-key-exploded] .keycap { visibility: hidden; opacity: 0; pointer-events: none; transition: none; } .header__tools { display: flex; align-items: center; gap: 1rem; } .sound { display: grid; width: 2rem; height: 2rem; margin: -0.5rem 0; place-items: center; padding: 0; border: 0; border-radius: 999px; color: #9b9da3; background: none; cursor: pointer; transition: color 160ms ease; } .sound:hover { color: #f3f3f0; } .sound:focus-visible { outline: 2px solid #a9b9ff; outline-offset: 2px; } .sound svg { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; } .header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 88rem; margin: 0 auto; padding-top: clamp(1.5rem, 4vh, 2.75rem); padding-right: clamp(1.25rem, 4vw, 4rem); padding-left: clamp(1.25rem, 4vw, 4rem); } .wordmark { display: inline-flex; align-items: center; gap: 0.7rem; border-radius: 0.35rem; font-size: 0.8rem; font-weight: 620; letter-spacing: 0.15em; } .wordmark:focus-visible, .header__github:focus-visible, .download:focus-visible, .command__copy:focus-visible, .install button:focus-visible, .install a:focus-visible { outline: 2px solid #a9b9ff; outline-offset: 4px; } .wordmark__icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4.5; } .wordmark__core { fill: currentColor; stroke: none; } .header__github { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.35rem; color: #9b9da3; font-size: 0.8rem; transition: color 160ms ease; } .header__github:hover { color: #f3f3f0; } .header__github-icon { width: 1rem; height: 1rem; fill: currentColor; } .hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3vh, 2.2rem); width: 100%; padding: 1.5rem 1.25rem clamp(2rem, 7vh, 4.5rem); text-align: center; pointer-events: none; } .hero > * { pointer-events: auto; } .hero__copy { display: flex; width: fit-content; max-width: 100%; flex-direction: column; align-items: center; gap: 1rem; pointer-events: none; } .hero__word { display: inline-block; pointer-events: none; will-change: transform; transform-origin: 50% 58%; } h1, p { margin: 0; } h1 { max-width: 16ch; color: #f3f3f0; font-size: clamp(2.65rem, 6.5vw, 5.5rem); font-weight: 540; letter-spacing: -0.055em; text-wrap: balance; } .hero__copy p { max-width: 47ch; color: #9b9da3; font-size: clamp(1rem, 1.45vw, 1.12rem); line-height: 1.65; text-wrap: pretty; } /* The detected OS is the page's first guess with scripts. index.html's