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

html {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-canvas);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* Accessibility Utilities */
.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;
}

/* Accessible Skip Link — Hidden completely off-screen by default, visible only on keyboard Tab focus */
.skip-to-content {
  position: fixed;
  top: -9999px;
  left: 16px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: none;
  z-index: 99999;
  background-color: var(--bg-surface, #11151F);
  color: var(--accent-cyan, #00E5FF);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-cyan-glow, rgba(0, 229, 255, 0.28));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

[data-theme="light"] .skip-to-content {
  background-color: #FFFFFF;
  color: #008899;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 12px rgba(0, 136, 153, 0.2);
}

.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 2px solid var(--accent-cyan, #00E5FF);
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--accent-cyan, #00E5FF);
  outline-offset: 3px;
}

[data-theme="light"] .skip-to-content:focus,
[data-theme="light"] .skip-to-content:focus-visible {
  border-color: #008899;
  outline-color: #008899;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}


@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;
  }
}

