@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
  body {
    background: var(--paper);
    color: var(--ink);
    font: 400 var(--fs-body)/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  /* tilted or sliding pieces (ticker, dealt cards, pinned track) never make the page scroll sideways */
  main { overflow-x: clip; }
  img, svg, video, picture { display: block; max-width: 100%; }
  img { height: auto; }
  a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
  button { font: inherit; color: inherit; cursor: pointer; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: .92;
    letter-spacing: -.035em;
    text-wrap: balance;
  }
  h1 { font-size: var(--fs-hero); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); line-height: 1; letter-spacing: -.02em; }
  p { text-wrap: pretty; max-width: 62ch; }
  /* SplitText line masks: room for accents (À, É) and descenders above the tight display leading */
  .split-line-mask { padding-block: .14em .08em; margin-block: -.14em -.08em; }

  :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 2px var(--sun); border-radius: 4px; }
  ::selection { background: var(--sun); color: var(--ink); }

  .skip-link {
    position: fixed; left: 16px; top: -80px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px;
    font-weight: 600; text-decoration: none; transition: top .2s;
  }
  .skip-link:focus { top: 16px; }

  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }

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