/* Overrides and fine-grained rules on top of the Tailwind CDN. */

:root {
  color-scheme: light dark;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-feature-settings: "ss01", "cv11";
}

/* Consistent focus ring (WCAG AA). Uses ink-700 for strong contrast on both gold and white. */
:focus-visible {
  outline: 2px solid #004B69;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Base link texture. */
a {
  text-underline-offset: 2px;
}

/* Reduced motion: disable transitions and animations. */
@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;
  }
}

/* Selection uses the ink accent color. */
::selection {
  background: #004B69;
  color: #ffffff;
}

/* Prevent the SVG logo from blowing out width inside flex containers. */
nav img,
footer img {
  max-width: 120px;
}
