/* Motion. Durations go by what moves: state 200 ms (hover, press, focus,
   colour, fades), move 250 ms (size, position, collapse), sheet 350 ms
   (surfaces from an edge), slow 500 ms (secondary fades). Nearly everything
   uses the standard curve. No scroll reveals. */
:root{
  --state:200ms; --move:250ms; --sheet:350ms; --slow:500ms;
  --standard:cubic-bezier(.32,.08,.24,1);
  --enter:cubic-bezier(0,0,0,1);
  --pop:cubic-bezier(.25,.1,.25,1.3);
}
/* Reduced motion: state still changes, nothing travels. */
@media(prefers-reduced-motion:reduce){:root{--state:0s;--move:0s;--sheet:0s;--slow:0s}}

/* Hover, press, focus and colour. */
a,button,summary{
  transition:color var(--state) var(--standard),background-color var(--state) var(--standard),border-color var(--state) var(--standard),outline-width var(--state) var(--standard),outline-offset var(--state) var(--standard);
  outline:0 solid #d6322b;outline-offset:0;
}
/* Focus ring: keyboard only, 2px at offset 2, grows from 0. */
a:focus-visible,button:focus-visible,summary:focus-visible{outline-width:2px;outline-offset:2px}
