/**
 * OTOGO 9 AM — Base & Foundation Stylesheet
 * Responsive CSS Architecture — Device & Responsibility Separation
 * 
 * Sets mobile-first resets, universal box-sizing, accessible typography foundations,
 * image responsiveness, and base touch behavior.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--dark-bg, #07090e);
  color: #f8fafc;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--brand-blue, #0878ef);
  outline-offset: 2px;
}

/* Reduced motion accessibility */
@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;
  }
}

/* Text selections */
::selection {
  background-color: var(--brand-blue, #0878ef);
  color: #ffffff;
}

/* Typography Foundation */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, 'Manrope', sans-serif);
  color: #ffffff;
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Table base */
table {
  border-collapse: collapse;
  width: 100%;
}
