/* SOUND THRIFT brand sheet. Every page and plugin starts from this file.
   Rules: mostly sky and cloud. One orange shape and one orange button per layout.
   Type is Hanken Grotesk 200 and 800 only, lowercase. Silkscreen for data. Hairlines, not boxes.
   Voice: minimal and straight to the point. Short lines, lowercase, say it once. No jokes, no pitch.
   Needs: --sky-img set to the sky photo, and the Google Fonts link for Hanken Grotesk + Silkscreen. */
:root {
  --cloud: #FBFAF6;
  --ink: #121212;
  --sky: #0A3D8C;
  --sky-2: #4A85D0;
  --orange: #EC6A2C;
  --orange-text: #B8460F;
  --muted: #55554F;
  --line: #D9D6CC;
  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --data: Silkscreen, ui-monospace, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 3px; }

/* type */
.t { font-weight: 200; } .h { font-weight: 800; }
.wm { letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.display { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; font-weight: 200; }
.head { font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 200; }
.data { font-family: var(--data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.data.o { color: var(--orange-text); }
.muted { color: var(--muted); }

/* sky */
.sky { background: var(--sky) var(--sky-img) center / cover no-repeat; color: #fff; }
.sky .data { color: #fff; }
.skyflip { position: relative; background: var(--sky); color: #fff; overflow: hidden; isolation: isolate; }
.skyflip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sky-img) var(--sky-pos, right center) / var(--sky-size, cover) no-repeat; transform: scaleX(-1); }
.skyflip .data { color: #fff; }

/* the doors: pills hung from the top edge */
.door { position: absolute; top: calc(var(--w, 64px) * -0.6); width: var(--w, 64px); height: var(--h, 200px); border-radius: var(--w, 64px); background: var(--orange); }
.door.cloud { background: var(--cloud); }
.door.win { background: var(--sky) var(--sky-img) 28% 40% / auto 170% no-repeat; }

/* buttons: pills. ink does the work, orange is the one that matters */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cloud); font: 800 15px/1 var(--font); letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(18, 18, 18, 0.06); }
.btn.ghost[aria-pressed="true"], .btn.ghost.on { background: var(--ink); color: var(--cloud); }
.btn.go { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn.go:hover { background: #f07a41; }
.btn.light { background: var(--cloud); border-color: var(--cloud); color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.round { width: 44px; padding: 0; }
.btn.round svg { width: 14px; height: 14px; fill: currentColor; }

/* rows on hairlines */
.rule { border-top: 1px solid var(--ink); }
.rule-soft { border-top: 1px solid var(--line); }

/* rotary knob. markup: label.kn > output.data + span.knob > i + input[type=range].sr + span */
.kn { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: default; }
.kn output { font-family: var(--data); font-size: 13px; color: var(--muted); }
.knob { position: relative; display: block; width: var(--k, 96px); height: var(--k, 96px); border-radius: 50%; background: var(--ink); cursor: grab; touch-action: none; }
.knob:active { cursor: grabbing; }
.knob i { position: absolute; left: 50%; top: 9%; width: 6px; height: 31%; margin-left: -3px; border-radius: 3px; background: var(--cloud); }
.kn.o .knob { background: var(--orange); } .kn.o .knob i { background: var(--ink); } .kn.o output { color: var(--orange-text); }
.kn:focus-within .knob { outline: 2px solid var(--orange-text); outline-offset: 4px; }
.kn .kl { font-size: 18px; letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }

/* pixel meter */
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.meter b { display: block; width: 7px; background: currentColor; }
.meter b:last-child { background: var(--orange); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
