/* GT Cinetype, as on smemmusic.ch (fetched by scripts/fetch_fonts.sh; system fonts without it) */
@font-face { font-family: "GT Cinetype"; font-weight: 400; font-display: swap;
             src: url(fonts/GT-Cinetype-Regular.woff2) format("woff2"); }
@font-face { font-family: "GT Cinetype"; font-weight: 700; font-display: swap;
             src: url(fonts/GT-Cinetype-Bold.woff2) format("woff2"); }
@font-face { font-family: "GT Cinetype Mono"; font-display: swap;
             src: url(fonts/GT-Cinetype-Mono.woff2) format("woff2"); }
/* smemmusic.ch palette: warm paper, black ink, signal red for links and what's active */
:root {
  --bg: #fbf9f5; --ink: #000; --muted: rgba(0, 0, 0, .55); --line: rgba(0, 0, 0, .15);
  --soft: rgba(0, 0, 0, .05); --accent: #ff4542; --panel: #bdc9ce;
  --sans: "GT Cinetype", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "GT Cinetype Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.4 var(--sans); }
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; }
/* small uppercase labels, the site's "sidetitle" style */
.label, h2, .steps li, .badge, button, .details {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  font-size: .62rem; line-height: 1.7;
}
header { position: relative; }
.langs { display: flex; gap: 4px; justify-content: flex-end; margin: -16px 0 16px; }
.langs button { padding: .3em .8em; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
header h1 { font-weight: 700; font-size: 2.2rem; line-height: 1.1; margin: 0 0 12px; }
header p { margin: 0 0 28px; max-width: 34em; }
.rig-status { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: -12px 0 20px; min-height: 1.5em; }
.rig-status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
                   background: var(--ink); margin-right: 8px; vertical-align: 1px; }
.rig-status.busy .dot { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }

form { border: 1px solid var(--ink); border-radius: 1em; padding: 1em; }
textarea {
  width: 100%; min-height: 90px; resize: vertical; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 4px 0 10px; font: inherit; font-size: 1.1rem; color: var(--ink); background: transparent;
}
textarea:focus { outline: none; border-bottom-color: var(--accent); }
textarea::placeholder { color: var(--muted); }
.form-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.count { font-family: var(--mono); color: var(--muted); font-size: .75rem; margin-right: auto; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
button {
  border: 1px solid rgba(0, 0, 0, .5); background: transparent; color: var(--ink); border-radius: 2em;
  padding: .55em 1.2em; cursor: pointer; transition: background-color .15s, color .15s;
}
button:hover { background: var(--ink); color: var(--bg); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); padding: .9em 2em; }
button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
button.primary:disabled { opacity: .4; cursor: default; }
.examples button { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .75rem; }
.form-error { color: var(--accent); font-size: .85rem; margin-top: 10px; }
.form-error:empty { display: none; }

h2 { margin: 48px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.card { border: 1px solid var(--ink); border-radius: 1em; padding: 1em; margin-bottom: 12px; background: transparent; }
.card.mine { box-shadow: inset 4px 0 0 var(--accent); }
.request { font-family: var(--mono); color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.request b { color: var(--ink); font-weight: 400; }
.title { font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 8px 0 4px; overflow-wrap: anywhere; }
.desc { margin: 0 0 12px; }
.instruments { list-style: none; padding: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.instruments li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.instruments .synth { font-weight: 700; }
.details { color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
a { color: inherit; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }
a:hover { color: var(--accent); }
/* player in the style of smemmusic.ch's: round black play button, hairline track */
.player { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.player .play {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--bg); display: grid; place-items: center;
}
.player .play:hover { background: var(--accent); color: var(--ink); }
.player .play svg { width: 14px; height: 14px; fill: currentColor; }
.player .seek { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; background: transparent; height: 15px; margin: 0; cursor: pointer; }
.player .seek::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--pos, 0%) 100% no-repeat, var(--line); }
.player .seek::-moz-range-track { height: 1px; background: var(--line); }
.player .seek::-moz-range-progress { height: 1px; background: var(--ink); }
.player .seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: -7px; border-radius: 50%; background: var(--ink); border: 0; }
.player .seek::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 0; }
.player .seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.player .time { flex: none; font-family: var(--mono); font-size: .75rem; color: var(--muted); min-width: 7.5em; text-align: right; }
.badge { border: 1px solid var(--line); border-radius: 2em; padding: 0 8px; margin-left: 4px; color: var(--muted); }

.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 6px; padding: 0; list-style: none; }
.steps li { padding: .35em 1em; border-radius: 2em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.steps li.done { color: var(--ink); border-color: var(--ink); }
/* the current step's pill fills with red as it progresses (--p is set by app.js) */
.steps li.now {
  border-color: var(--accent); color: var(--ink);
  background: linear-gradient(to right, var(--accent) var(--p, 0%), rgba(255, 69, 66, .15) var(--p, 0%));
  transition: background .25s linear;
}
.wait-note { font-size: .85rem; color: var(--muted); }
.error { color: var(--accent); }
.empty { color: var(--muted); }
@keyframes pulse { 50% { opacity: .55; } }
@media (max-width: 520px) { body { font-size: 16px; } header h1 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
