@font-face {
	font-family: "Departure Mono";
	src: url("./departure-mono.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light;
	--desktop: #888;
	--pane: #ccc;
	--ink: #202020;
	--edge: #555;
	--bar: #0c0c0c;
	--control: #b9b9b9;
	background: var(--desktop);
	color: var(--ink);
	font: clamp(18px, 1.05rem + 0.3vw, 20px)/1.45 "Departure Mono", "Courier New", monospace;
	scroll-padding-block: 12px;
}

[hidden] {
	display: none !important;
}

.workstation-window {
	border: 2px solid var(--edge);
	background: var(--pane);
	box-shadow: 1px 1px var(--desktop), -1px -1px #a7a7a7;
}

.title-bar {
	padding: 0.375rem 0.5rem;
	border-bottom: 1px solid var(--edge);
	background: var(--bar);
	color: #fff;
	text-align: center;
}

.workstation-button {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--edge);
	border-radius: 0;
	background: var(--control);
	box-shadow: inset 1px 1px #e5e5e5, inset -1px -1px var(--desktop);
	color: inherit;
	font: inherit;
	cursor: pointer;
	touch-action: manipulation;
}

.workstation-button:active {
	box-shadow: inset 1px 1px var(--desktop);
}

.workstation-button:disabled {
	color: var(--edge);
	cursor: default;
}

.workstation-button:focus-visible,
.shoe-button:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.shoe-cue {
	margin: 0 0 0.5rem;
}

.shoe-button {
	display: block;
	width: min(100%, 223px);
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: url("./mac-pointer.png") 1 0, pointer;
	touch-action: manipulation;
}

.shoe-frames {
	display: block;
	aspect-ratio: 446 / 299;
	background: url("./ballet-shoes-frames.png") 0 0 / 600% 100% no-repeat;
	image-rendering: pixelated;
}

.clacking .shoe-frames {
	animation: heel-clack 2700ms steps(6, jump-none) both;
}

@keyframes heel-clack {
	to { background-position-x: 100%; }
}

.command {
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.command input {
	display: block;
	box-sizing: border-box;
	width: calc(100% - 1ch);
	min-width: 0;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: none;
	background: transparent;
	color: inherit;
	font: inherit;
}

.command input[data-custom-caret] {
	caret-color: transparent;
}

.command-mirror,
.command-cursor {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: max-content;
	white-space: pre;
	pointer-events: none;
}

.command-mirror {
	visibility: hidden;
}

.command-cursor {
	animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
	50% { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
	.command-cursor,
	.clacking .shoe-frames { animation: none; }
}
