/* Shared accessibility and motion controls. Page art direction lives alongside this file. */
:root {
  color-scheme: dark;
  --focus: #a6c7ce;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 6rem;
}
img,
video {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.8rem 1.2rem;
  background: #efeae2;
  color: #08090a;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.motion-control {
  position: fixed;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(239, 234, 226, 0.24);
  border-radius: 2px;
  color: #efeae2;
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font:
    10px/1.4 ui-monospace,
    "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.motion-control::before {
  content: "Ⅱ";
  color: #bd342c;
  font-size: 14px;
}
.motion-control[data-paused="true"]::before {
  content: "▷";
}
.motion-control:hover {
  border-color: #a6c7ce;
}
@media (max-width: 600px) {
  .motion-control {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .motion-control,
  .skip-link {
    display: none !important;
  }
}
