/**
 * Phase 3 modern foundation — Hold'em Edu
 *
 * Site-specific layer. Does not fight style.css's poker-felt theme.
 * Avoids the generic light-theme + nested width rules that tore the layout apart.
 */

:root {
  color-scheme: dark;
  --p3-accent: #2ecc40;
  --p3-accent-strong: #1f8a2c;
  --p3-content: 54rem;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img,
video,
embed,
object,
iframe {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  min-height: 2.75rem;
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p3-accent) 65%, white);
  outline-offset: 3px;
}

@media (max-width: 48rem) {
  input:not([type="checkbox"], [type="radio"]),
  select,
  textarea,
  button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .site-nav,
  .site-footer {
    background: none;
    color: #000;
    border: 0;
  }

  a {
    color: inherit;
  }
}
