/* Juniko round one: shared base, placeholders and review labels.
   Each idea sets its own tokens on :root; this file only uses them. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent, #F2C94C); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #111; color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Words split by motion.js */
.w, .wi { display: inline-block; }

/* Review-only section number (added by motion.js from data-num) */
[data-num] { position: relative; }
.num-label {
  position: absolute; top: 10px; left: 10px; z-index: 30;
  min-width: 28px; height: 28px; padding: 0 9px;
  display: inline-grid; place-items: center;
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #FF2E63; color: #fff; border-radius: 999px;
  box-shadow: 0 0 0 2px #fff; pointer-events: none;
}

/* Placeholders: obvious on purpose */
.ph {
  position: relative; overflow: hidden;
  border: 2px dashed currentColor; border-radius: var(--radius, 12px);
  display: grid; place-items: center; text-align: center;
}
.ph-tag {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,0,0,.72); color: #fff; padding: 5px 8px; border-radius: 4px;
}
.draft {
  font: 600 .7em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em; vertical-align: middle;
  padding: 2px 5px; margin-left: 4px; border-radius: 4px;
  background: rgba(255, 46, 99, .14); color: #C2163F; white-space: nowrap;
}
.on-dark .draft, .on-brand .draft { background: rgba(255,255,255,.18); color: #FFD1DC; }

/* Mobile menu shared behaviour */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  header .nav-links:not(.is-open) { display: none; }
  header .nav-links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px 20px 20px; background: var(--c-paper, #fff); color: var(--c-ink, #111);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  header .nav-links.is-open a { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
