/* CSS Reset & Normalize - Following design principles */

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

html {
  font-size: 16px; /* Base for rem calculations */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  /* min-height removed; root container controls viewport height */
  line-height: 1.5;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Remove list styles where ul, ol have class/role */
ul[class],
ol[class] {
  list-style: none;
}

/* Media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit font */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* Focus styles - following design principles */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :focus-visible {
    outline: 3px solid;
  }
}

/* Screen reader only utility */
.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;
}
/* Mobile viewport height and background fixes */
html,
body {
  /* Prevent white flash during rubber-band overscroll */
  background-color: #070708;
  height: 100%;
}

/* Older iOS Safari fallback */
html {
  height: -webkit-fill-available;
}

/* Base fallback already in file: body { min-height: 100vh; } */
/* Provide iOS-friendly fallbacks and modern dynamic viewport overrides */
/* body min-height overrides removed; .app-root now controls viewport sizing */