/* Base Styles & Global Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--edge-dark);
}

body {
  margin: 0;
  background: linear-gradient(135deg, #0f1318 0%, #1a2030 50%, #162028 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--white);
  letter-spacing: 0.01em;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-x: hidden;
  /* Enhanced text rendering */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  text-align: center;
  margin: 0;
  padding: 0.75rem 0 0.5rem 0;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 0 0.25rem 0;
  }

  body {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.4rem 0 0.2rem 0;
  }

  body {
    font-size: 15px;
  }
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
}

p {
  line-height: 1.6;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

