/* ================================================================
   LUCID POINT MEDIA — Base
   Reset, foundations, typography, accessibility.
   ================================================================ */

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* --- Foundation --- */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--selection);
  color: var(--paper);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: var(--z-grain);
}

/* --- Layout primitives --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-pad);
}

.above {
  position: relative;
  z-index: var(--z-page);
}

/* --- Typography --- */
h1,
h2,
h3,
.statement {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-display);
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-heading);
  margin-bottom: var(--space-md);
}

.lede {
  font-size: var(--text-body);
  color: var(--mist);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--mist);
}

strong {
  color: var(--paper);
  font-weight: 500;
}

/* --- The mesh, as language --- */
.eyebrow {
  display: block;
  margin-bottom: calc(var(--space-sm) + 4px);
  color: var(--otp);
  background: var(--mesh);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow {
  font-style: normal;
  color: var(--otp);
  background: var(--mesh);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(199, 188, 244, 0.35));
}

.point {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: var(--mesh-point);
  box-shadow: 0 0 12px var(--glow-otp), 0 0 30px var(--glow-ott);
  vertical-align: baseline;
}

/* --- Accessibility --- */
a:focus-visible {
  outline: 2px solid var(--otp);
  outline-offset: 3px;
  border-radius: 6px;
}

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