/* ============================================================
   LeadPixel — Base layer
   Global element defaults + the liquid-glass utility library.
   Tokens come from the token files; this binds them to the DOM
   and expresses the achromatic, glass-first system.
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--champagne-glow); color: var(--text-primary); }

a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--text-primary);
}

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* ————————————————————————————————————————————————
   Ambient canvas — achromatic top light + petrol vignette,
   over an optional faint blueprint grid.
   ———————————————————————————————————————————————— */
.lp-canvas {
  background-color: var(--bg-base);
  background-image: var(--ambient-top), var(--ambient-petrol);
}
.lp-grid-bg {
  background-color: var(--bg-base);
  background-image: var(--grid-bg);
}
.lp-grid-bg--radial,
.lp-canvas--grid {
  background-color: var(--bg-base);
  background-image: var(--ambient-top), var(--ambient-petrol), var(--grid-bg);
}

/* ————————————————————————————————————————————————
   LIQUID GLASS — the signature surface.
   Body  = translucent tint + heavy backdrop blur (saturate to
           keep what's behind alive, brighten to lift it).
   Edges = bright specular top line + dark bottom inner shade.
   Sheen = a soft diagonal corner highlight (::before).
   Refraction reads through the blur of whatever sits behind.
   ———————————————————————————————————————————————— */
.lp-glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-tint);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%) brightness(1.06);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md), var(--glass-bevel);
}
/* diagonal specular sheen across the top-left corner */
.lp-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(130% 90% at 0% 0%, var(--glass-sheen), transparent 52%);
  mix-blend-mode: screen;
  opacity: 0.9;
  z-index: -1;
}
.lp-glass--strong {
  background: var(--glass-tint-strong);
  backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(160%);
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) + 6px)) saturate(160%);
}
.lp-glass--thin {
  background: var(--glass-tint-thin);
  backdrop-filter: blur(14px) saturate(170%) brightness(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(170%) brightness(1.08);
}
.lp-glass--pill { border-radius: var(--radius-full); }
.lp-glass--flush { border-radius: 0; }

/* ————————————————————————————————————————————————
   Brand utilities
   ———————————————————————————————————————————————— */

/* Eyebrow / overline label — mono, wide tracking, hushed */
.lp-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Serif italic accent inside a display heading */
.lp-em { font-style: italic; }

/* Champagne metallic text — the rare warm accent on a word/number */
.lp-metal {
  background: linear-gradient(180deg, var(--champagne-200), var(--champagne-400) 55%, var(--champagne-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A 1px metallic hairline (for active rings / dividers of note) */
.lp-metal-edge { border-color: var(--accent-ring) !important; }

/* Status dot — defaults champagne, soft halo */
.lp-dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--champagne-glow);
}

/* — Reduced motion — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
