/* VoidCraft brand tokens + tiny reset.
 *
 * Every colour below is copied verbatim from assets/brand/brand.json ("colours").
 * Do NOT invent or tweak brand colours here — change brand.json upstream in
 * voidcraft-core, re-vendor (see assets/brand/README.md), then update this file.
 *
 * Usage rules that this stylesheet encodes (brand.json "rules"):
 *   - min mark size 48px            -> --mark-min
 *   - clear space >= 25% mark width -> --mark-clear
 *   - dark ground  -> colour mark   (mark-colour.svg)
 *   - light ground -> black stencil (mark-black-*.png)
 */

:root {
  /* palette --------------------------------------------------------------- */
  --void-black: #0b0d13;
  --deep-violet: #331455;
  --bright-violet: #742fc9;
  --silver: #c2c1c1;
  --ice-white: #e5e5e5;
  --signal-cyan: #34d4dc;

  /* the second approved dark ground from brand.json rules.approved_backgrounds */
  --void-black-raised: #131419;

  /* brand usage rules ----------------------------------------------------- */
  --mark-min: 48px;
  --mark-clear: 0.25; /* clear space ratio, applied as padding in em/% at call sites */

  /* type ------------------------------------------------------------------ */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* spacing / shape ------------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --measure: 62ch;
}

/* reset ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Visible focus for keyboard users on every interactive element. */
:focus-visible {
  outline: 3px solid var(--signal-cyan);
  outline-offset: 3px;
}

/* Screen-reader-only helper (used for form labels and skip links). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
