/* Matches kosindukwe.com: off-white #fefefe, near-black #141415, Archivo Black headings,
   small sans UI text (the host site uses Proxima Nova; Helvetica/Arial stand in here). */
:root {
  --bg: #fefefe;
  --ink: #141415;
  --muted: #77777b;
  --line: #e4e4e6;
  --ui: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Archivo Black", "Arial Black", var(--ui);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 13px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
nav.sr-only:focus-within { position: fixed; z-index: 5; left: 12px; top: 12px; width: auto; height: auto; clip: auto; white-space: normal;
  background: var(--bg); border: 1px solid var(--line); padding: 10px 14px; display: grid; gap: 4px; }

/* ---------------------------------------------------------------- stage */
.embed { position: relative; height: 100%; min-height: 420px; overflow: hidden; }
.stage { position: absolute; inset: 0; }
.bag-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: multiply; transition: opacity .25s ease; }
.stage.live .poster { opacity: 0; pointer-events: none; }

.dock { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: grid; justify-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.hint { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.hint .coarse { display: none; }
@media (pointer: coarse) { .hint .coarse { display: inline; } .hint .fine { display: none; } }
.actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.act { appearance: none; background: none; border: 0; padding: 4px 0; color: var(--ink); cursor: pointer; text-decoration: none;
  font: 500 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .02em; border-bottom: 1px solid transparent; }
.act:hover:not(:disabled) { border-bottom-color: var(--ink); }
.act:disabled { opacity: .35; cursor: default; }
.status { margin: 0; min-height: 1.5em; font-size: 12px; color: var(--ink); text-align: center; }

/* ---------------------------------------------------------------- section card */
dialog.card { border: 1px solid var(--line); border-radius: 0; padding: 26px 28px 22px; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); background: var(--bg); color: var(--ink); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .35); }
dialog.card::backdrop { background: rgba(254, 254, 254, .6); }
.card .kind { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card h2 { margin: 0 0 12px; font: 400 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.card .summary { margin: 0 0 16px; font-size: 14px; }
.card .list-title { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.card .list li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.card .list li:last-child { border-bottom: 1px solid var(--line); }
.card .list a { text-decoration: none; display: flex; justify-content: space-between; }
.card .list a::after { content: "→"; color: var(--muted); }
.card .list a:hover::after { color: var(--ink); }
.card .contacts { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.card .contacts a { font-size: 13px; }
.card-actions { display: flex; gap: 20px; align-items: center; }
.card-actions .primary { font-weight: 700; border-bottom-color: var(--ink); }
.card-actions .primary[aria-disabled="true"] { opacity: .4; pointer-events: none; border-bottom-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  dialog.card[open] { animation: rise .22s cubic-bezier(.2, .8, .2, 1); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
pre.debug { position: fixed; z-index: 9; left: 6px; top: 6px; margin: 0; max-width: calc(100vw - 12px); padding: 6px 8px; font: 10px/1.35 ui-monospace, Menlo, Consolas, monospace;
  background: rgba(254, 254, 254, .92); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-all; pointer-events: none; }
