/* clinamen.dev coming-soon page. One committed look (dark), still written as tokens so forced colours and the
   catalog's own components read the same values. Durations and eases come from tokens.css. */
:root {
  --s-bg: #0b0b0d; --s-fg: #f1f0f4; --s-muted: #a3a2b0; --s-dim: #6d6c78; --s-line: #f1f0f41f; --s-accent: var(--mc-accent, #9aa0fd);
  --s-field: #151519; --s-display: "Bricolage Grotesque", "Bricolage Fallback", sans-serif;
  --s-text: "Instrument Sans", "Instrument Fallback", system-ui, sans-serif; --s-mono: "JetBrains Mono", "JetBrains Fallback", ui-monospace, monospace;
  --s-gutter: clamp(16px, 4vw, 48px);
  --mc-font: var(--s-text);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--s-bg); color: var(--s-fg); }
body { font: 400 16px/1.5 var(--s-text); min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the field: the dot matrix, full bleed behind everything; the scrim keeps the copy at 7:1 or better */
.field { position: fixed; inset: 0; z-index: 0; }
.field .mc-dot-matrix, .field > * { width: 100%; height: 100%; border-radius: 0; }
.field canvas { width: 100% !important; height: 100% !important; display: block; }
.scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 58% at 50% 50%, #0b0b0de6 0%, #0b0b0dcc 46%, #0b0b0d33 78%, #0b0b0d00 100%),
              linear-gradient(#0b0b0d 0, #0b0b0d00 96px, #0b0b0d00 calc(100% - 120px), #0b0b0d 100%); }

.top, .stage, .foot { position: relative; z-index: 1; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px var(--s-gutter) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 22px; height: 22px; }
.wordmark { font: 800 17px/1 var(--s-display); letter-spacing: .02em; }
.ctl { display: flex; align-items: center; gap: 8px; }
.pill, .ctl .mc-pause-ctl { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px;
  font: 500 13px/1 var(--s-text); color: var(--s-muted); background: #151519cc; border: 1px solid var(--s-line); cursor: pointer;
  transition: color var(--dur-150) var(--ease-out), border-color var(--dur-150) var(--ease-out); }
.pill:hover, .ctl .mc-pause-ctl:hover { color: var(--s-fg); }
.pill svg { width: 15px; height: 15px; }
.pill .w { opacity: .35; transition: opacity var(--dur-150) var(--ease-out); }
.pill[aria-pressed=true] { color: var(--s-fg); border-color: var(--s-accent); }
.pill[aria-pressed=true] .w { opacity: 1; }
.pill:focus-visible, .go:focus-visible, .fn a:focus-visible, sup a:focus-visible, .bar a:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 3px; }

/* the stage: board, one line, the numbers, the field */
.stage { display: grid; align-content: center; justify-items: center; text-align: center; gap: 0; padding: 32px var(--s-gutter) 24px; }
.board-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 28px); max-width: 100%; }
.board { flex: none; }
.board:not(.mc-split-flap) { font: 700 40px/1.4 var(--s-mono); letter-spacing: .2em; white-space: pre; }
.mc-split-flap { --mc-flap-font: var(--s-mono); }
.tube { font: 400 48px/1 var(--s-mono); color: #ff7a2e; }
.tease { margin: clamp(28px, 5vh, 48px) 0 0; font: 700 clamp(30px, 4.6vw, 60px)/1.04 var(--s-display); letter-spacing: -.025em; max-width: 15em; text-wrap: balance; }
.tease sup { font: 500 .3em/1 var(--s-mono); vertical-align: super; margin-left: .1em; letter-spacing: 0; }
.tease sup a { color: var(--s-muted); text-decoration: none; padding: 2px; }
.count { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 18px 0 0; font: 400 14px/1.4 var(--s-mono); color: var(--s-muted); letter-spacing: .02em; }
.count b { color: var(--s-fg); font-weight: 600; }
.count i { font-style: normal; color: var(--s-dim); }

.join { width: min(460px, 100%); margin: clamp(28px, 5vh, 44px) 0 0; }
.join .row { display: flex; gap: 8px; padding: 6px; border: 1px solid var(--s-line); border-radius: 14px; background: #151519e6; }
.join .row:focus-within { border-color: #f1f0f452; }
.fld { flex: 1; min-width: 0; text-align: left; position: relative; }
.join input { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--s-fg);
  font: 400 16px/1 var(--s-text); outline: none; }
.join input::placeholder { color: var(--s-dim); }
.fld .mc-form-msg, .fld [data-mc-msg] { position: absolute; left: 0; top: calc(100% + 14px); font-size: 13px; text-align: left; }
.go { flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--s-fg); color: var(--s-bg);
  font: 600 15px/1 var(--s-text); cursor: pointer; }
.go:hover { background: #ffffff; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--s-muted); }

.foot { padding: 0 var(--s-gutter) 18px; font-size: 13px; color: var(--s-muted); }
.fn { margin: 0 0 10px; text-align: center; color: var(--s-dim); font-size: 12px; }
.fn a { font-family: var(--s-mono); color: var(--s-muted); text-decoration: none; margin-right: 4px; }
.bar a { color: var(--s-muted); text-underline-offset: 3px; }
.bar a:hover { color: var(--s-fg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--s-line); }

@media (max-width: 600px) {
  .top { padding-top: 14px; }
  .pill span, .ctl .mc-pause-ctl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pill, .ctl .mc-pause-ctl { padding: 0 10px; width: 40px; height: 40px; justify-content: center; }
  .board-row { flex-direction: column; gap: 16px; }
  .join .row { flex-direction: column; }
  .go { width: 100%; }
  .scrim { background: radial-gradient(ellipse 90% 52% at 50% 48%, #0b0b0deb 0%, #0b0b0dcc 55%, #0b0b0d40 100%),
              linear-gradient(#0b0b0d 0, #0b0b0d00 80px, #0b0b0d00 calc(100% - 120px), #0b0b0d 100%); }
}
@media (forced-colors: active) {
  .field, .scrim { display: none; }
  .pill, .go, .join .row { border: 1px solid ButtonText; color: ButtonText; background: ButtonFace; forced-color-adjust: none; }
  .pill[aria-pressed=true] { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { .pill, .pill .w { transition: none; } }
