/* brand.css — the Brandberg Digital identity, as tokens.
   Every page in this project styles through these variables so the brand can
   only change in one place. Values match public/brand-guide.html. */

:root {
  /* Core palette */
  --granite: #0B0A10;
  --granite-2: #14121C;
  --granite-3: #1E1B29;
  --ember: #FF5A1F;
  --magma: #FF2D95;
  --signal: #00E5D4;
  --sand: #F5EFE6;
  --ash: #8B8497;

  /* Semantic tokens — components use these, never the palette directly */
  --ground: var(--granite);
  --raised: var(--granite-2);
  --edge: #2B2738;
  --ink: #F7F4FB;
  --ink-soft: #B5AEC4;
  --ink-faint: var(--ash);

  --grad-glow: linear-gradient(120deg, var(--ember), var(--magma));
  --grad-full: linear-gradient(96deg, var(--ember), var(--magma) 62%, var(--signal));

  /* Type */
  --display: 900 1em/0.92 ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", monospace;

  /* Rhythm */
  --step: clamp(14px, 1.1vw, 17px);
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 64ch;
  --radius: 4px;
}

:root[data-theme="light"] {
  --ground: var(--sand);
  --raised: #FFFFFF;
  --edge: #E2D9CC;
  --ink: #17131F;
  --ink-soft: #4B4356;
  --ink-faint: #6E6579;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: var(--sand);
    --raised: #FFFFFF;
    --edge: #E2D9CC;
    --ink: #17131F;
    --ink-soft: #4B4356;
    --ink-faint: #6E6579;
  }
}

:root[data-theme="dark"] {
  --ground: var(--granite);
  --raised: var(--granite-2);
  --edge: #2B2738;
  --ink: #F7F4FB;
  --ink-soft: #B5AEC4;
  --ink-faint: var(--ash);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Rule 6: anything a client must read exactly is monospace. */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.mono { font-family: var(--mono); }

a { color: var(--signal); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
