/* skeud's homepage. Same bench as the app: one paper surface, hairlines for structure,
   raised keys for the things you press, pale-green LCDs for the things you read.
   The page colour is the app's own, so screenshots cut from it sit on the page with no frame. */
:root {
  --bg: #e9e6df;
  --ink: #23211c;
  --ink-2: #4b473f;
  /* darker than the app's muted: small text on a web page has to pass 4.5:1 */
  --muted: #67625a;
  --line: rgba(70, 60, 40, 0.14);
  --line-soft: rgba(70, 60, 40, 0.08);
  --accent: #e4541c;
  --ok: #1e9a56;
  --sd: rgba(118, 106, 86, 0.32);
  --sl: rgba(255, 255, 255, 0.95);
  --face: linear-gradient(145deg, #f6f4ef, #e1ddd5);
  --rim: inset 1px 1px 0 rgba(255, 255, 255, 0.9);
  --raise: 8px 8px 18px var(--sd), -8px -8px 18px var(--sl);
  --raise-sm: 4px 4px 10px var(--sd), -4px -4px 10px var(--sl);
  --press: inset 3px 3px 7px var(--sd), inset -3px -3px 7px var(--sl);
  --lcd: linear-gradient(165deg, #d6dfbf 0%, #c8d3ac 60%, #bfcba2 100%);
  --lcd-ink: #22281b;
  --lcd-dim: #4f5a41;
  --lcd-well: inset 2px 2px 5px rgba(48, 58, 30, 0.35), inset -1px -1px 2px rgba(255, 255, 255, 0.35), 1px 1px 0 rgba(255, 255, 255, 0.95), -1px -1px 0 rgba(90, 80, 60, 0.12);
  --lcd-sel: #22281b;
  --lcd-sel-ink: #cbd5b2;
  --window: 0 30px 60px -20px rgba(90, 78, 56, 0.45), 0 0 0 1px var(--line);
  --face-card: linear-gradient(145deg, #f1eee8, #e4e0d9);
  --dot-on: #22281b;
  --dot-dim: rgba(34, 40, 27, 0.3);
  --dot-off: rgba(34, 40, 27, 0.08);
  --wv-head: #e0321f;
  --led-off: #d8d4cb;
  --led-off-well: inset 1px 1px 1px rgba(90, 80, 60, 0.28), 0 1px 0 rgba(255, 255, 255, 0.8);
  --led-on: #34cf78;
  --led-glow: 0 0 6px rgba(52, 207, 120, 0.65), 0 0 2px rgba(52, 207, 120, 0.8);
  --metal: conic-gradient(from 20deg, #fbfaf7, #b4b0a6, #f4f2ed, #a8a49a, #fbfaf7, #bcb8ae, #fbfaf7);
  --pad-ink: #a19b8f;

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --doto: "Doto", var(--mono);

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #26282a;
    --ink: #ece8de;
    --ink-2: #c9c4b7;
    --muted: #9a968b;
    --line: rgba(0, 0, 0, 0.4);
    --line-soft: rgba(0, 0, 0, 0.24);
    --accent: #ff6a2b;
    --ok: #3ddc84;
    --sd: rgba(0, 0, 0, 0.55);
    --sl: rgba(255, 255, 255, 0.05);
    --face: linear-gradient(145deg, #2d2f33, #222427);
    --rim: inset 1px 1px 0 rgba(255, 255, 255, 0.06);
    --lcd: #0d0e10;
    --lcd-ink: #ede8da;
    --lcd-dim: #8a8578;
    --lcd-well: inset 3px 3px 8px rgba(0, 0, 0, 0.8), inset -2px -2px 6px rgba(255, 255, 255, 0.04), -1px -1px 0 rgba(0, 0, 0, 0.25), 1px 1px 0 rgba(255, 255, 255, 0.05);
    --lcd-sel: #ede8da;
    --lcd-sel-ink: #141517;
    --window: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --face-card: linear-gradient(145deg, #2a2c2f, #242628);
    --dot-on: #ede8da;
    --dot-dim: #7d796f;
    --dot-off: #26282c;
    --wv-head: #ffffff;
    --led-off: #1a1b1d;
    --led-off-well: inset 1px 1px 1px rgba(0, 0, 0, 0.6);
    --led-on: #3ddc84;
    --led-glow: 0 0 4px rgba(61, 220, 132, 0.6);
    --metal: conic-gradient(from 20deg, #d9d6cf, #6f6c66, #cfccc5, #5f5c57, #d9d6cf, #77746e, #d9d6cf);
    --pad-ink: #8b877d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* the small mono caps the app labels everything with */
.label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.doto { font-family: var(--doto); font-weight: 900; letter-spacing: 0.04em; }

/* ---- keys: the only raised things on the page ---- */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--face); box-shadow: var(--raise-sm), var(--rim);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  cursor: pointer; user-select: none;
  transition: box-shadow 120ms ease-out, transform 120ms ease-out;
}
.key:active { box-shadow: var(--press); transform: translateY(1px); }
.key svg { width: 14px; height: 14px; flex: none; }
.key.big { height: 60px; padding: 0 26px 0 22px; border-radius: 16px; box-shadow: var(--raise), var(--rim); font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; gap: 14px; }
.key.big svg { width: 18px; height: 18px; }
.key .led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (hover: hover) {
  .key:hover { transform: translateY(-1px); }
  .key:active { transform: translateY(1px); }
}

/* ---- top bar ---- */
.top { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; }
.brand svg { width: 15px; height: 15px; }
.top .grow { flex: 1; }
.top .version { color: var(--muted); }

/* ---- hero ---- */
.hero { padding-top: clamp(40px, 8vw, 104px); }
.hero .def { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.hero .def b { color: var(--ink); font-weight: 600; }
.hero .def i { font-style: normal; color: var(--ink-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 7vw, 96px); line-height: 0.94; letter-spacing: -0.045em; }
.hero .lede { margin-top: clamp(20px, 3vw, 32px); max-width: 31em; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--ink-2); }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; margin-top: clamp(28px, 4vw, 44px); }
.cta .meta { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted); }
.cta .meta span { color: var(--ink-2); }

/* the app window: the one framed screenshot */
.window { position: relative; margin-top: 14px; border-radius: clamp(8px, 1.2vw, 14px); overflow: hidden; box-shadow: var(--window); background: var(--bg); }
.window img { width: 100%; }

/* ---- the index: an LCD list like the app's "sounds like" screen ---- */
.index { margin-top: clamp(56px, 8vw, 104px); padding: 10px; border-radius: 18px; background: var(--lcd); box-shadow: var(--lcd-well); color: var(--lcd-ink); }
.index .head { display: flex; justify-content: space-between; padding: 8px 12px 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lcd-dim); }
.index a { display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 12px; padding: 12px 12px 11px; border-radius: 9px; font-family: var(--doto); font-weight: 900; font-size: clamp(17px, 2.4vw, 26px); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.1; }
.index a .n { color: var(--lcd-dim); }
.index a .v { font-size: 0.62em; color: var(--lcd-dim); text-align: right; }
.index a:focus-visible { outline-color: var(--lcd-ink); }
@media (hover: hover) {
  .index a:hover { background: var(--lcd-sel); color: var(--lcd-sel-ink); }
  .index a:hover .n, .index a:hover .v { color: inherit; opacity: 0.6; }
}

/* ---- features: text on a rail, screen beside it, same side every time ---- */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: clamp(72px, 10vw, 136px); padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.feature .n { font-size: 15px; color: var(--muted); }
.feature h2 { margin-top: 14px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.03em; }
.feature .body { margin-top: 16px; color: var(--ink-2); max-width: 26em; }
.rows { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.rows li span:first-child { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; white-space: nowrap; }
.rows li span:last-child { text-align: right; }
/* a piece of the app, cut out: no frame, it shares the page's paper */
.cut img { width: 100%; }
.cut.fade img { -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }

/* wide feature: the strip needs the full width, so the rail becomes a row above it */
.feature.wide { grid-template-columns: minmax(0, 1fr); }
.feature.wide .rail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.feature.wide .rail > :not(.rows) { grid-column: 1; }
.feature.wide .rows { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
.feature figure { margin: 0; }

/* ---- specs ---- */
.specs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(72px, 10vw, 136px); padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.specs h2 { font-weight: 500; }
.specs dl { margin: 0; border-top: 1px solid var(--line-soft); }
.specs dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.specs dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; color: var(--ink-2); }

/* ---- install ---- */
.install { margin-top: clamp(72px, 10vw, 136px); padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.install h2 { font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 64px); margin: 32px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--ink-2); max-width: 18em; }
.steps .num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--lcd); box-shadow: var(--lcd-well); color: var(--lcd-ink); font-size: 22px; line-height: 1; }
.install .key.big { margin-top: clamp(36px, 5vw, 56px); }

/* ---- footer ---- */
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(72px, 10vw, 136px); padding: 24px 0 40px; border-top: 1px solid var(--line); }
.foot .label { transition: color 120ms ease-out; }
@media (hover: hover) { .foot .label:hover { color: var(--ink); } }

/* ---- phone and tablet ---- */
@media (max-width: 860px) {
  .feature, .feature.wide, .specs { grid-template-columns: minmax(0, 1fr); }
  .feature.wide .rail { display: block; }
  .feature.wide .rows { margin-top: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { flex-direction: row; align-items: center; max-width: none; }
  .steps .num { flex: none; }
}
@media (max-width: 560px) {
  /* screens shrunk to a phone's width can't be read: keep them legible and let each scroll sideways */
  .window, .cut { overflow-x: auto; scrollbar-width: none; }
  .window::-webkit-scrollbar, .cut::-webkit-scrollbar { display: none; }
  .window img, .cut.strip img { width: 760px; max-width: none; }
  .cut img { width: 640px; max-width: none; }
  #record .cut img { width: 560px; }
  .specs dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 480px) {
  .index a { grid-template-columns: 3.2em 1fr; }
  .index a .v { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .fine { flex-basis: 100%; font-size: 12px; color: var(--muted); }

/* ---- the deck: the app's own module, running in the hero ---- */
.deck { justify-self: end; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; padding: 14px; border-radius: 22px; background: var(--face-card); box-shadow: var(--raise), var(--rim); }
.lcd { border-radius: 11px; padding: 11px 13px; background: var(--lcd); box-shadow: var(--lcd-well); color: var(--lcd-ink); }
.tscreen { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; text-transform: uppercase; }
.ts-title { display: flex; align-items: baseline; gap: 8px; font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.ts-artist { margin-top: 4px; font-size: 11px; }
.ts-tempo { display: flex; flex-direction: column; align-items: flex-end; }
.ts-bpm { font-size: 30px; line-height: 0.95; }
.ts-key { margin-top: 3px; font-size: 13px; color: var(--lcd-dim); }
.ts-comment { grid-column: 1 / -1; margin-top: 9px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--lcd-ink) 28%, transparent); font-family: var(--mono); font-size: 11.5px; text-transform: none; min-height: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-comment.empty { color: var(--lcd-dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.eqicon { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; flex: none; }
.eqicon i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.playing .eqicon i { animation: eq 0.9s ease-in-out infinite; }
.playing .eqicon i:nth-child(2) { animation-delay: -0.3s; }
.playing .eqicon i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

.deck-row { display: flex; align-items: center; gap: 12px; padding: 0 2px; }
.metal { position: relative; flex: none; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--metal); color: #2b2b29; box-shadow: var(--raise-sm), 0 0 0 3px var(--bg), 0 0 0 5px var(--ring, var(--line)); cursor: pointer; transition: box-shadow 160ms ease-out, transform 120ms ease-out; }
.metal:active { transform: scale(0.96); }
.metal svg { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; }
.metal .i-pause, .metal[aria-pressed="true"] .i-play { display: none; }
.metal[aria-pressed="true"] .i-pause { display: block; }
.metal[aria-pressed="true"] { --ring: var(--led-on); }
.hotcues { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.hotcue { height: 48px; padding: 6px 7px; border: 0; border-radius: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: var(--face); box-shadow: var(--raise-sm), var(--rim); color: var(--pad-ink); cursor: pointer; transition: box-shadow 120ms ease-out, transform 120ms ease-out; }
.hotcue:active { box-shadow: var(--press); transform: translateY(1px); }
.hotcue.set { background: var(--cue); color: #141517; box-shadow: var(--raise-sm), inset 1px 1px 0 rgba(255, 255, 255, 0.35); }
.hotcue-n { font-family: var(--mono); font-size: 11px; font-weight: 700; }
.hotcue-t { align-self: flex-end; font-size: 11px; min-height: 1em; }

.meters { display: flex; flex-direction: column; gap: 7px; padding: 0 2px; }
.meter { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 10px; }
.meter-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.meter-leds { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.meter-leds i { height: 6px; border-radius: 1.5px; background: var(--led-off); box-shadow: var(--led-off-well); }
.meter-leds i.on { background: var(--led-on); box-shadow: var(--led-glow); }
.meter-readout { font-size: 12px; text-align: right; color: var(--ink-2); }

.lcd.strip { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.strip .time { flex: none; width: 3.2em; font-size: 14px; }
.strip canvas { display: block; height: 40px; }
.strip .dotwave { flex: 1; min-width: 0; }
.strip .spectrum { flex: none; width: 70px; }

.tags { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 2px 2px; }
.tagt { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border: 0; border-radius: 6px; background: none; font: 13px var(--sans); color: var(--muted); cursor: pointer; }
.tagt i { width: 5px; height: 5px; border-radius: 50%; background: var(--led-off); box-shadow: var(--led-off-well); }
.tagt[aria-pressed="true"] { color: var(--ink); }
.tagt[aria-pressed="true"] i { background: var(--led-on); box-shadow: var(--led-glow); }

/* ---- the window and its Timeline key ---- */
.stage { margin-top: clamp(48px, 7vw, 88px); }
.stage-bar { display: flex; justify-content: flex-end; }
.key[aria-pressed="true"] { box-shadow: var(--press); color: var(--ink); }
.key kbd { font: inherit; color: var(--muted); }
.window .shot.over { position: absolute; inset: 0; opacity: 0; transition: opacity 220ms ease-out; }
.window.timeline .shot.over { opacity: 1; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .deck { justify-self: start; max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .playing .eqicon i { animation: none; height: 8px; }
  .window .shot.over { transition: none; }
}
.feature .n { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.feature .n .doto { margin-right: 8px; font-size: 15px; letter-spacing: 0.04em; }
/* a set is waiting behind the play key: its ring breathes until you press it */
.inviting .metal { animation: invite 2.4s ease-in-out infinite; }
@keyframes invite { 50% { box-shadow: var(--raise-sm), 0 0 0 3px var(--bg), 0 0 0 5px var(--led-on); } }
.ts-comment a { text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .inviting .metal { animation: none; } }
/* the mute key: the app's output key, a speaker and a strip of level LEDs */
.key.mute { gap: 8px; padding: 0 11px; }
.key.mute[hidden] { display: none; }
.key.mute .i-off, .key.mute[aria-pressed="true"] .i-on { display: none; }
.key.mute[aria-pressed="true"] .i-off { display: block; }
.mute .levels { display: grid; grid-template-columns: repeat(8, 3px); gap: 2px; }
.mute .levels i { height: 10px; border-radius: 1px; background: var(--led-off); box-shadow: var(--led-off-well); }
.mute .levels i.on { background: var(--led-on); box-shadow: var(--led-glow); }
.ts-title [data-f] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
