@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono-variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #ff4f1f;
  --body: #e7e5df;
  --glow: #f1f0ec;
  --panel: #f4f3ef;
  --panel-hi: #fbfaf8;
  --panel-lo: #ebe9e3;
  --strip: #e6e4dd;
  --edge: #d2cfc6;
  --rim: rgba(40, 34, 24, 0.07);
  --bevel-hi: rgba(255, 255, 255, 0.95);
  --bevel-lo: rgba(40, 34, 24, 0.06);
  --shade: 74 62 44;
  --ink: #1a1a1a;
  --ink-2: #514e48;
  --print: #66625b;
  --line: rgba(26, 26, 26, 0.13);
  --mark: rgba(26, 26, 26, 0.28);
  --ghost: rgba(255, 255, 255, 0.28);
  --tick: #bdb9b0;
  --screen: #111113;
  --screen-ink: #d6d0c3;
  --knurl-a: #2b2b2b;
  --knurl-b: #121212;
  --cap: #1c1c1c;
  --pointer-rim: rgba(0, 0, 0, 0.25);
  --led-off: #c4c0b7;
  --screw: #cfccc4;
  --screw-hi: #f7f6f2;
  --wm: #161616;
  --wm-hi: #3a3a3a;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --body: #17171a;
    --glow: #222227;
    --panel: #222226;
    --panel-hi: #2a2a2f;
    --panel-lo: #1d1d21;
    --strip: #19191c;
    --edge: #0c0c0e;
    --rim: rgba(0, 0, 0, 0.55);
    --bevel-hi: rgba(255, 255, 255, 0.075);
    --bevel-lo: rgba(0, 0, 0, 0.45);
    --shade: 0 0 0;
    --ink: #ecebe6;
    --ink-2: #b2afa7;
    --print: #a3a098;
    --line: rgba(236, 235, 230, 0.13);
    --mark: rgba(236, 235, 230, 0.3);
    --ghost: rgba(255, 255, 255, 0.025);
    --tick: #4a4a50;
    --screen: #0b0b0d;
    --knurl-a: #e2dfd8;
    --knurl-b: #b9b5ac;
    --cap: #ebe9e3;
    --pointer-rim: #1a1a1a;
    --led-off: #46464c;
    --screw: #38383e;
    --screw-hi: #5a5a61;
    --wm: #cfccc4;
    --wm-hi: #ffffff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --body: #17171a;
  --glow: #222227;
  --panel: #222226;
  --panel-hi: #2a2a2f;
  --panel-lo: #1d1d21;
  --strip: #19191c;
  --edge: #0c0c0e;
  --rim: rgba(0, 0, 0, 0.55);
  --bevel-hi: rgba(255, 255, 255, 0.075);
  --bevel-lo: rgba(0, 0, 0, 0.45);
  --shade: 0 0 0;
  --ink: #ecebe6;
  --ink-2: #b2afa7;
  --print: #a3a098;
  --line: rgba(236, 235, 230, 0.13);
  --mark: rgba(236, 235, 230, 0.3);
  --ghost: rgba(255, 255, 255, 0.025);
  --tick: #4a4a50;
  --screen: #0b0b0d;
  --knurl-a: #e2dfd8;
  --knurl-b: #b9b5ac;
  --cap: #ebe9e3;
  --pointer-rim: #1a1a1a;
  --led-off: #46464c;
  --screw: #38383e;
  --screw-hi: #5a5a61;
  --wm: #cfccc4;
  --wm-hi: #ffffff;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.5 var(--body-font);
  color: var(--ink);
  background-color: var(--body);
  background-image: radial-gradient(ellipse 1100px 560px at 50% -160px, var(--glow), transparent 72%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, 1220px);
  margin-inline: auto;
}

.print {
  font: 500 9.5px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--print);
}

/* Top bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 20px/1 var(--sans);
  letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(var(--orange), var(--orange)) 50% 3px / 2px 7px no-repeat,
    radial-gradient(circle at 50% 35%, var(--wm-hi), var(--wm) 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-40deg);
}

.theme {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: var(--strip);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.13), inset 0 0 0 1px var(--rim), 0 1px 0 var(--bevel-hi);
}
.theme label {
  position: relative;
  cursor: pointer;
}
.theme span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px 0 8px;
  border-radius: 7px;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--print);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.theme span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--led-off);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.theme label:hover span {
  color: var(--ink);
}
.theme input:checked + span {
  color: var(--ink);
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--bevel-hi), 0 1px 2px rgba(0, 0, 0, 0.16), 0 0 0 0.5px var(--rim);
}
.theme input:checked + span::before {
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255, 79, 31, 0.75);
}
.theme input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* Headline */

.intro {
  padding-top: 18px;
}

h1 {
  margin: 0;
  max-width: 11em;
  font: 600 clamp(2.45rem, 10.6vw, 4.9rem) / 0.98 var(--sans);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.lede {
  margin: 12px 0 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* The synthesizer */

.synth {
  position: relative;
  margin-top: 20px;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: radial-gradient(140% 90% at 22% 0%, var(--panel-hi), var(--panel) 52%, var(--panel-lo));
  box-shadow:
    inset 0 1px 0 var(--bevel-hi),
    inset 0 -1px 0 var(--bevel-lo),
    0 0 0 1px var(--rim),
    0 5px 0 -1px var(--edge),
    0 5px 0 0 var(--rim),
    0 30px 44px -26px rgb(var(--shade) / 0.6),
    0 14px 22px -14px rgb(var(--shade) / 0.35);
}

.screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--screw-hi), var(--screw) 70%);
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.28), 0 1px 0 var(--bevel-hi);
}
.screw::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  height: 1px;
  background: rgba(0, 0, 0, 0.35);
  transform: rotate(var(--turn, 30deg));
}
.screw.tl { top: 9px; left: 9px; }
.screw.tr { top: 9px; right: 9px; --turn: -15deg; }
.screw.bl { bottom: 9px; left: 9px; --turn: 70deg; }
.screw.br { bottom: 9px; right: 9px; --turn: 5deg; }

.print-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 10px 16px;
  min-height: 12px;
}
.power {
  display: inline-flex;
  align-items: center;
}
.led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffb08f, var(--orange) 60%);
  box-shadow: 0 0 0 1px rgba(150, 40, 0, 0.25), 0 0 8px 1px rgba(255, 79, 31, 0.55);
}
.synth[data-state="making"] .power .led {
  animation: blink 0.18s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% { opacity: 0.35; }
}

.screen {
  position: relative;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--screen);
  box-shadow:
    inset 0 2px 9px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.18),
    0 1px 0 1px var(--bevel-hi);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(172deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 38%, transparent 38.5%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
}
.wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.readout {
  position: absolute;
  inset: 9px 11px auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--screen-ink);
}
.readout i {
  margin: 0 0.45em;
  font-style: normal;
  color: rgba(255, 79, 31, 0.85);
}
.readout-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.readout-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5d5a54;
}
.synth[data-state="making"] .readout-status .dot {
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}
.synth[data-state="done"] .readout-status .dot {
  background: #e9e4d8;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.synth[data-state="empty"] .readout-status {
  color: #ffb59c;
}

.strip {
  margin-top: 14px;
}
.strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 4px 7px;
}
.count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.strip-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: var(--strip);
  color: var(--ink);
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.01em;
  caret-color: var(--orange);
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.13), inset 0 0 0 1px var(--rim), 0 1px 0 var(--bevel-hi);
  -webkit-appearance: none;
  appearance: none;
}
.strip-input::placeholder {
  color: var(--print);
  opacity: 1;
}
.strip-input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.strip-input[aria-invalid="true"] {
  box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.13), inset 0 0 0 1.5px var(--orange), 0 1px 0 var(--bevel-hi);
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: start;
  gap: 4px;
  margin-top: 14px;
}

.knob-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.knob {
  --k: 50px;
  --rot: 0deg;
  position: relative;
  width: var(--k);
  height: var(--k);
  margin: 10px;
  border-radius: 50%;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.knob:active {
  cursor: grabbing;
}
.knob:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 11px;
}
.knob .ticks i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--tick);
  transform: rotate(var(--a)) translateY(calc(var(--k) * -0.5 - 6.5px));
  transition: background-color 0.15s, box-shadow 0.15s;
}
.knob[data-steps="4"] .ticks i:nth-child(1) { --a: -120deg; }
.knob[data-steps="4"] .ticks i:nth-child(2) { --a: -40deg; }
.knob[data-steps="4"] .ticks i:nth-child(3) { --a: 40deg; }
.knob[data-steps="4"] .ticks i:nth-child(4) { --a: 120deg; }
.knob[data-steps="3"] .ticks i:nth-child(1) { --a: -100deg; }
.knob[data-steps="3"] .ticks i:nth-child(2) { --a: 0deg; }
.knob[data-steps="3"] .ticks i:nth-child(3) { --a: 100deg; }
.knob[data-steps="4"][aria-valuenow="0"] { --rot: -120deg; }
.knob[data-steps="4"][aria-valuenow="1"] { --rot: -40deg; }
.knob[data-steps="4"][aria-valuenow="2"] { --rot: 40deg; }
.knob[data-steps="4"][aria-valuenow="3"] { --rot: 120deg; }
.knob[data-steps="3"][aria-valuenow="0"] { --rot: -100deg; }
.knob[data-steps="3"][aria-valuenow="1"] { --rot: 0deg; }
.knob[data-steps="3"][aria-valuenow="2"] { --rot: 100deg; }
.knob[aria-valuenow="0"] .ticks i:nth-child(1),
.knob[aria-valuenow="1"] .ticks i:nth-child(2),
.knob[aria-valuenow="2"] .ticks i:nth-child(3),
.knob[aria-valuenow="3"] .ticks i:nth-child(4) {
  background: var(--orange);
  box-shadow: 0 0 5px rgba(255, 79, 31, 0.7);
}

.knob .body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--knurl-a) 0deg 5deg, var(--knurl-b) 5deg 10deg);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 7px 10px -3px rgba(0, 0, 0, 0.42),
    0 2px 3px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--rot));
  transition: transform 0.28s cubic-bezier(0.3, 1.75, 0.45, 1);
}
.knob .cap {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 2.5px),
    var(--cap);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.45);
}
.knob .pointer {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 3px;
  height: 36%;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--pointer-rim), 0 0 6px rgba(255, 79, 31, 0.45);
}
.knob .light {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 38% 22%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -2px 3px rgba(0, 0, 0, 0.3);
}
.knob.is-snap .light {
  animation: snap 0.18s ease-out;
}
@keyframes snap {
  40% { background-color: rgba(255, 255, 255, 0.08); }
}

.knob-name {
  margin-top: 2px;
}
.knob-value {
  margin-top: 4px;
  font: 600 13.5px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.make-cell {
  display: grid;
  place-items: center;
  align-self: center;
  padding-left: 2px;
}
.make-well {
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 50%;
  background: var(--strip);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), inset 0 0 0 1px var(--rim), 0 1px 0 var(--bevel-hi);
}
.make {
  --m: 72px;
  width: var(--m);
  height: var(--m);
  padding: 0 0 0 0.16em;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: radial-gradient(circle at 50% 28%, #ff7c52, var(--orange) 56%, #f0430f);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 0 -3px 5px rgba(120, 25, 0, 0.28),
    0 4px 0 #c33a10,
    0 7px 12px -3px rgba(190, 60, 20, 0.55);
  transform: translateY(-3px);
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, filter 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.make:hover {
  filter: brightness(1.04);
}
.make:active,
.make.is-pressed {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 3px rgba(120, 25, 0, 0.3),
    0 0 0 #c33a10,
    0 2px 4px -1px rgba(190, 60, 20, 0.5);
}
.make:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 9px;
}
.synth[data-state="making"] .make {
  filter: brightness(1.1) saturate(1.05);
}

/* The output: three frames */

.output {
  margin-top: 30px;
}

.tray {
  position: relative;
  display: grid;
  gap: 12px;
  align-items: start;
}
.tray[data-lead="9:16"] {
  grid-template-columns: 0.879fr 1fr;
  grid-template-areas: "v s" "v w";
}
.tray[data-lead="1:1"] {
  grid-template-columns: 0.5625fr 1.778fr;
  grid-template-areas: "s s" "v w";
}
.tray[data-lead="16:9"] {
  grid-template-columns: 0.5625fr 1fr;
  grid-template-areas: "w w" "v s";
}
.f-v { grid-area: v; --ar: 9 / 16; }
.f-s { grid-area: s; --ar: 1 / 1; }
.f-w { grid-area: w; --ar: 16 / 9; }
.tray[data-lead="9:16"] .f-v,
.tray[data-lead="1:1"] .f-s,
.tray[data-lead="16:9"] .f-w { --i: 0; }
.tray[data-lead="9:16"] .f-s,
.tray[data-lead="1:1"] .f-v,
.tray[data-lead="16:9"] .f-v { --i: 1; }
.tray[data-lead="9:16"] .f-w,
.tray[data-lead="1:1"] .f-w,
.tray[data-lead="16:9"] .f-s { --i: 2; }
.tray[data-lead="1:1"] .f-s {
  width: 82%;
  justify-self: center;
}

.frame {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shot {
  position: relative;
  aspect-ratio: var(--ar);
  border-radius: 12px;
}
.shot canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
.frame figcaption {
  min-height: 1.2em;
  padding-left: 2px;
  line-height: 1.5;
}
.ghost {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--print);
}
.tray.is-empty .ghost {
  display: grid;
}
.tray.is-empty .shot {
  --c: 13px;
  background:
    linear-gradient(var(--mark), var(--mark)) left 10px top 10px / var(--c) 1.5px,
    linear-gradient(var(--mark), var(--mark)) left 10px top 10px / 1.5px var(--c),
    linear-gradient(var(--mark), var(--mark)) right 10px top 10px / var(--c) 1.5px,
    linear-gradient(var(--mark), var(--mark)) right 10px top 10px / 1.5px var(--c),
    linear-gradient(var(--mark), var(--mark)) left 10px bottom 10px / var(--c) 1.5px,
    linear-gradient(var(--mark), var(--mark)) left 10px bottom 10px / 1.5px var(--c),
    linear-gradient(var(--mark), var(--mark)) right 10px bottom 10px / var(--c) 1.5px,
    linear-gradient(var(--mark), var(--mark)) right 10px bottom 10px / 1.5px var(--c),
    var(--ghost);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tray-empty {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
}
.tray:not(.is-empty) .tray-empty {
  display: none;
}
.tray.has-ads .shot {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 22px 34px -20px rgb(var(--shade) / 0.65),
    0 6px 12px -6px rgb(var(--shade) / 0.35);
}

.motion .tray.has-ads .frame {
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 110ms),
    opacity 0.45s ease calc(var(--i) * 110ms);
}
.tray.has-ads:not(.is-out) .frame {
  opacity: 0;
  transform: translateY(-26px) scale(0.965);
}
.motion .tray.has-ads:not(.is-out) .frame {
  transition: transform 0.18s ease-in, opacity 0.18s ease-in;
}

.made {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
}
.made[hidden] {
  display: none;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px 10px;
  border-radius: 7px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--bevel-hi), 0 0 0 1px var(--rim), 0 3px 6px -2px rgb(var(--shade) / 0.3);
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.made-note {
  flex-basis: 100%;
  margin: 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.motion .made:not([hidden]) {
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

/* Promises */

.promises {
  display: grid;
  margin-top: 64px;
}
.promise {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}
.promise .index {
  grid-row: span 2;
  color: var(--print);
}
.promise h3 {
  margin: 0 0 4px;
  font: 600 23px/1.15 var(--sans);
  letter-spacing: -0.025em;
}
.promise p {
  grid-column: 2;
  margin: 0;
  max-width: 26em;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.foot {
  margin-top: 48px;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
}
.foot-line {
  margin: 0;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.foot-line a {
  color: var(--ink);
}

/* Wider screens: the instrument and its output side by side */

@media (min-width: 640px) {
  .synth {
    max-width: 540px;
    padding: 18px 20px 22px;
  }
  .knob { --k: 58px; margin: 11px; }
  .make { --m: 84px; font-size: 12.5px; }
  .screen { height: 112px; }
  .tray { max-width: 640px; }
  .promises {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
  }
}

@media (min-width: 1000px) {
  .bar { min-height: 76px; }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    grid-template-areas: "intro output" "synth output";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
  }
  .intro { grid-area: intro; padding-top: 26px; }
  .synth { grid-area: synth; margin-top: 30px; align-self: start; }
  .output {
    grid-area: output;
    margin-top: 34px;
    align-self: start;
  }
  h1 { font-size: clamp(3.6rem, 5vw, 4.9rem); }
  .lede { font-size: 17.5px; margin-top: 18px; max-width: 28em; }
  .print { font-size: 10px; }
  .readout { font-size: 10px; inset: 11px 14px auto; }
  .screen { height: 128px; }
  .knob { --k: 62px; margin: 12px; }
  .make { --m: 92px; font-size: 13px; }
  .tray { max-width: none; gap: 16px; }
  .tray[data-lead="1:1"] { max-width: 540px; }
  .tray[data-lead="1:1"] .f-s { width: 66%; }
  .lost {
    max-width: 540px;
    text-align: center;
  }
  .lost .lede { margin-inline: auto; }
  .tray[data-lead="16:9"] { max-width: 500px; }
  .tray.has-ads:not(.is-out) .frame { transform: translateX(-30px) scale(0.965); }
  .promises { margin-top: 88px; column-gap: 48px; }
  .promise { padding-top: 24px; }
}

/* Calm mode: nothing slides, spins or blinks */

html:not(.motion) *,
html:not(.motion) *::before,
html:not(.motion) *::after {
  transition: none !important;
  animation: none !important;
}

/* 404 */

.lost {
  padding: 40px 0 24px;
  min-height: calc(100vh - 210px);
}
.lost .synth {
  max-width: 520px;
  margin-top: 0;
}
.lost .screen {
  height: 140px;
}
.flat {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  height: 2px;
  background: var(--orange);
  box-shadow: 0 0 8px 1px rgba(255, 79, 31, 0.55);
}
.screen-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px),
    linear-gradient(transparent calc(58% - 0.5px), rgba(255, 255, 255, 0.06) calc(58% - 0.5px) calc(58% + 0.5px), transparent calc(58% + 0.5px));
}
.blip {
  position: absolute;
  top: calc(58% - 3px);
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd2c2;
  box-shadow: 0 0 10px 3px rgba(255, 79, 31, 0.8);
  opacity: 0;
}
.motion .blip {
  animation: sweep 2.6s linear infinite;
}
@keyframes sweep {
  0% { left: -10px; opacity: 1; }
  100% { left: 100%; opacity: 1; }
}
.lost h1 {
  margin-top: 30px;
}
.lost .lede {
  margin-top: 12px;
}
.back {
  margin: 26px 0 0;
}
.back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #1a1a1a;
  font: 700 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 3px 0 #c33a10, 0 6px 12px -4px rgba(190, 60, 20, 0.5);
}
.back a::before {
  content: "←";
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}
