/* MSFS Blind Assist website: small additions on top of Simple.css.
   Simple.css supplies the typography, colours, dark mode and the header
   navigation; this file adds what an accessible site needs on top. */

/* Skip link: the first focusable element, hidden until it receives keyboard focus. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: bold;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
  outline: 3px solid var(--text);
  outline-offset: 2px;
}

/* A visible focus indicator on everything that can take focus. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Keep the single h1 on the page inside <main>; the header shows the site name as text. */
.site-name {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
}

.site-name a {
  color: var(--text);
  text-decoration: none;
}

.site-name a:hover,
.site-name a:focus-visible {
  text-decoration: underline;
}

/* Download buttons. Simple.css styles a.button; this makes the main one stand out. */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.button.download {
  font-size: 1.1rem;
  padding: 0.75em 1.25em;
}

/* Respect the visitor's reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
