/*  ============================================================================
    AURAFY — base.css
    Reset, typography (Geist + Geist Mono), background dot-grid + brand wash,
    selection, focus, container scaffolding.
    ============================================================================ */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* === Body — sky-celeste paper with subtle dot grid + cyan/violet whispers === */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-ink);
  background-color: var(--color-bg);
  /* Layered atmosphere:
     1. Subtle dot grid — technical, references coordinate systems / monitors
     2. Cyan wash in upper-right — luminous celeste presence
     3. Violet whisper in lower-left — brand signature accent */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,18,24,.040) 1px, transparent 0),
    radial-gradient(1100px 700px at 100% 0%, rgba(0,180,219,.10), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(89,33,255,.05), transparent 60%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'ss01';
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }

/* === Links — brand violet, accent on hover === */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--color-primary-dark); }

p { color: var(--color-ink-2); line-height: 1.6; }

/* === Display typography — Geist, modern technical === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-normal);
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 0.5rem, var(--fs-4xl));
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.08;
}

h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
  line-height: 1.2;
}

h4 {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  line-height: 1.3;
}

h5 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  line-height: 1.35;
}
h6 {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}

ul, ol { padding-left: 1.25rem; }
ul { list-style: none; padding: 0; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* === Selection — brand violet block === */
::selection { background: var(--color-primary); color: #fff; }
::-moz-selection { background: var(--color-primary); color: #fff; }

/* === Skip link — mono uppercase, ink === */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: .65rem 1rem;
  border-radius: 0 0 var(--radius-md) 0;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mono);
}
.skip-link:focus { left: 0; color: #fff; }

/* === Focus rings — square, brand violet, generous offset === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 1px;
}
a:focus-visible, button:focus-visible {
  outline-offset: 4px;
}

/* === Containers === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.container--narrow { max-width: var(--container-narrow); }
.container--prose  { max-width: var(--container-prose); }

@media (max-width: 720px) {
  .container { padding: 0 var(--space-5); }
}

/* === Typography helpers === */
.text-mono     { font-family: var(--font-mono); }
.text-display  { font-family: var(--font-display); }
.text-eyebrow  {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-ink-3);
}

/* === Italic emphasis === */
em, .italic {
  font-style: italic;
  font-weight: 500;
}

/* === Code & kbd === */
code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ink-04);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  color: var(--color-primary);
}

/* === Strong inherits ink === */
strong, b { font-weight: 600; color: var(--color-ink); }
