*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: var(--paper); color: var(--ink); }

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 2px;
}
a:hover { color: var(--ink-soft); }

img, svg { max-width: 100%; }

.ui-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter-x); }
.ui-mono { font-family: var(--mono); }
.ui-muted { color: var(--ink-2); }

.ui-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ui-skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--highlight);
  color: var(--on-highlight);
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.ui-skip:focus { top: var(--s-2); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--highlight); }

.ui-h1 { margin: 0; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.ui-h2 { margin: 0; font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.ui-h2--small { font-size: var(--t-h2-small); }
.ui-h3 { margin: 0; font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }

.ui-band { border-top: 1px solid var(--hairline); }
.ui-band__inner { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 760px) { .ui-band__inner--roomy { padding-top: 64px; padding-bottom: 64px; } }

@media (pointer: coarse) {
  .ui-btn, .ui-chip, .ui-fpill, .ui-pill, .ui-token, .ui-opt, .ui-iconbtn, .ui-more-btn, .ui-wire__pause, .ui-linkbtn,
  .ui-tab, .ui-segmented a { min-height: var(--target); }
  .ui-iconbtn, .ui-wire__pause { min-width: var(--target); }
  .ui-back, .ui-fit a, .ui-jline a, .ui-footer a { display: inline-flex; align-items: center; min-height: var(--target); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; pointer-events: none; }
