/* Reset, typography, accessibility, reveal. Colours and type only from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--type-text);
  line-height: var(--type-text-line);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; }

/* Styleguide: H1 Montserrat bold versal, H2 Montserrat bold, H3 bold */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--color-heading); text-wrap: balance; }
h1 { font-size: var(--type-h1); line-height: var(--type-h1-line); text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: var(--type-h2); line-height: var(--type-h2-line); }
h3 { font-size: var(--type-h3); line-height: var(--type-h3-line); }

/* Styleguide: body text Montserrat italic */
p { margin: 0 0 18px; text-wrap: pretty; max-width: 66ch; font-style: italic; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--color-heading); }
.lead { font-size: 1.2rem; line-height: 1.55; }
.accent { font-family: var(--font-accent); font-weight: 400; font-style: normal; letter-spacing: .01em; font-synthesis: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--color-accent-text); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--warmgold); color: var(--dunkelgrau); padding: 10px 18px; font-weight: 700; border-radius: var(--radius-s); }
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Reveal on scroll, once */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
