/* Shared visual language. Structural styles stay with their respective surfaces. */
:root {
  --plr-paper: #f5f2eb;
  --plr-white: #fffefa;
  --plr-ink: #272330;
  --plr-muted: #665f70;
  --plr-plum: #573c75;
  --plr-lilac: #e8ddf2;
  --plr-line: #d8d0dd;
  --plr-night: #21182b;
  --plr-focus: #684394;
}
html { scroll-padding-block: 24px 100px; }
:where(a,button,input,select,textarea,summary):focus-visible {
  outline: 3px solid var(--plr-focus);
  outline-offset: 4px;
}
:where(button,a.button,a.btn) { touch-action: manipulation; }
:where(input,select,textarea) { font-size: max(1rem,1em); }
:where(h1,h2,h3) { text-wrap: balance; }
:where(p,li) { text-wrap: pretty; }
:where(h1,h2,h3,p,li,label,summary,button,a) { overflow-wrap: break-word; }
:where(button,a.button,a.btn) { white-space: normal; }
:where(.metric,.price,.big,.research-number,.visual-number,output,time) { font-variant-numeric: tabular-nums; }
.skip { position: fixed; inset: -100px auto auto 16px; z-index: 2000; padding: 12px 18px; background: var(--plr-plum); color: white; border-radius: 8px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  ::view-transition-old(root),::view-transition-new(root) { animation: none !important; }
}
@media (forced-colors: active) {
  :where(button,a.button,a.btn,input,textarea,select,summary) { border: 1px solid ButtonText; }
  :where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid Highlight; }
}
