/* ========================================================
   GLOBAL BASE STYLING & ACCESSIBLE TYPOGRAPHY FOUNDATION
   ======================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: #001233;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.app-view {
  background-color: var(--bg-app);
}

/* Ensure all form controls and buttons inherit the modern font */
input, button, select, textarea, optgroup {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Visible Accessible Focus Rings for WCAG 2.1 AA/AAA Focus Indicator */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links */
a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

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