/* ============================================================
   components/dot.css — the dot (signature device) + dot-loader
   The full stop from the wordmark, reused as bullet, list marker,
   kicker terminal, hover bloom; and the brand loader (three pulsing
   coral dots). All motion gated by prefers-reduced-motion.
   ============================================================ */

/* ---- the dot ---------------------------------------------------- */
.dd-dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--accent);
  vertical-align: middle;
  flex-shrink: 0;
}
.dd-dot--sm { width: 0.35em; height: 0.35em; }
.dd-dot--lg { width: 0.75em; height: 0.75em; }
.dd-dot--soft { background: var(--coral-200); }

/* Dot bullet list — replaces disc bullets with the coral dot. */
.dd-dot-list { list-style: none; padding-left: 0; }
.dd-dot-list > li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: var(--space-3);
}
.dd-dot-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* Kicker — mono "tape-label" micro-text, prefixed with a coral dot. */
.dd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: lowercase;
  color: var(--text-muted);
}
.dd-kicker::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- dot loader ------------------------------------------------- */
/* Three coral dots pulsing in sequence like a metronome. Uses
   currentColor so it adapts on dark/pink surfaces (buttons set color). */
.dd-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--accent);
  --dd-loader-size: 0.6em;
  line-height: 0;
}
.dd-loader > span {
  display: block;
  width: var(--dd-loader-size);
  height: var(--dd-loader-size);
  border-radius: var(--radius-pill);
  background: currentColor;
  animation: ddLoaderPulse 1.1s var(--ease-soft) infinite both;
}
.dd-loader > span:nth-child(2) { animation-delay: 0.16s; }
.dd-loader > span:nth-child(3) { animation-delay: 0.32s; }

.dd-loader--sm { --dd-loader-size: 0.45em; gap: 0.3em; }
.dd-loader--lg { --dd-loader-size: 0.85em; gap: 0.5em; }

@keyframes ddLoaderPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.7); }
  40%           { opacity: 1;    transform: scale(1); }
}

/* Overlay variant — covers its (position:relative) parent while loading. */
.dd-loader-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  z-index: var(--z-overlay);
}

@media (prefers-reduced-motion: reduce) {
  .dd-loader > span {
    animation: none;
    opacity: 0.55;
  }
  .dd-loader > span:nth-child(2) { opacity: 0.8; }
  .dd-loader > span:nth-child(3) { opacity: 1; }
}
