/* ==============================================================================
   Super-Intelligence-Solutions (SIS) — Base & Reset
   ============================================================================== */

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--white);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-void);
  color: var(--white);
  overflow-x: hidden;
  font-size: var(--fs-body-md);
}

/* Headings (Space Grotesk 600) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

.display-title {
  font-size: var(--fs-display-4);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

p {
  max-width: var(--max-ch);
  color: var(--gray-400);
}

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

/* Monospace & Micro-labels */
.mono-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-mono-md);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mono-comment {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  color: var(--gray-500);
}

/* Links */
a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out), text-shadow var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--white);
  text-shadow: var(--glow-cyan-sm);
}

/* Accessible Focus Rings */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: var(--glow-cyan-md);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--grid-margin);
  padding-right: var(--grid-margin);
}

/* Skip Link for A11y */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--cyan);
  color: var(--bg-void);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-mono-md);
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--duration-base) var(--ease-out);
}

.skip-link:focus {
  top: 20px;
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
