/* Base styles, palette and typography.
   The palette is modelled on late-90s multimedia software: a dark graphite-blue
   chassis, silver bevelled panels, a green LCD and saturated track colours. */

:root {
  --chassis: #1c2030;
  --chassis-hi: #3a4260;
  --chassis-lo: #0b0d14;
  --chassis-deep: #181c29;
  --panel: #aab0c0;
  --panel-hi: #e4e8f1;
  --panel-lo: #5f6578;
  --panel-text: #141826;
  --lcd-bg: #0b170d;
  --lcd-fg: #a6ff70;
  --lcd-dim: #2c5226;
  --lcd-amber: #ffb43a;
  --accent: #ff8a00;
  --accent-hi: #ffc266;
  --rec: #ff2d2d;
  --play: #3dff6e;
  --text: #e9edf7;
  --text-dim: #a2abc4;
  --focus: #ffe14d;
  --vinyl: #0d0d10;
  --font-ui: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif;
  --font-lcd: "Lucida Console", "Courier New", "DejaVu Sans Mono", monospace;
  --radius: 3px;
  --tt: min(32vw, 380px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #0a0c12;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h2,
h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

a {
  color: var(--accent-hi);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 4px;
  border: 1px solid var(--panel-lo);
  border-bottom-width: 2px;
  border-radius: 2px;
  background: #2b3147;
  color: var(--text);
  font-family: var(--font-lcd);
  font-size: 11px;
  text-align: center;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hint {
  color: var(--text-dim);
  font-size: 11px;
}

.error-text {
  color: #ff8a8a;
}

/* Bevels: the signature 3D edges of the era. */
.bevel-out {
  border: 2px solid;
  border-color: var(--chassis-hi) var(--chassis-lo) var(--chassis-lo) var(--chassis-hi);
}

.bevel-in {
  border: 2px solid;
  border-color: var(--chassis-lo) var(--chassis-hi) var(--chassis-hi) var(--chassis-lo);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
