/* Base: design tokens, reset, typography, and global accessibility. */
:root {
  --bg: #080d13;
  --bg-soft: #0b1119;
  --surface: #0d141d;
  --surface-hover: #111a25;
  --text: #f2f5f8;
  --muted: #8995a3;
  --muted-2: #657180;
  --line: #202a36;
  --line-strong: #2b3745;
  --accent: #7ea2ff;
  --accent-soft: rgba(126, 162, 255, .12);
  --success: #68d391;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 65% 0%, rgba(71, 104, 160, .08), transparent 28%),
    linear-gradient(var(--bg), var(--bg));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: currentColor; }
button { font: inherit; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }



/* Keyboard users must always be able to see where focus is. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Skip link stays off-screen until reached by keyboard navigation. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Prevent background scrolling while the mobile navigation is open. */
body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }

/* Social icons are standalone SVG files so they also render from file://. */
.social-icon { width: 20px; height: 20px; display: block; }
