/* Rules every direction shares. Colours, type and layout live in each direction's own style.css. */
*, *::before, *::after { box-sizing: border-box; }
/* clip on both elements: a full-bleed canvas must never produce sideways scroll on a phone. */
html, body { margin: 0; overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { min-height: 100svh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
canvas { display: block; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, li, dd { overflow-wrap: break-word; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 12px 16px; background: #000; color: #fff; border-radius: 8px;
  transform: translateY(-200%); transition: transform 150ms ease;
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

@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;
  }
}
