/* Reset, page ground, type scale, links, the focus ring and the page wrapper. Load after tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
/* the mockup's ring (thread.css), in ink (R19: blue is for the primary button only), 2 px outside; the outline follows
   each element's own radius, so focus never changes a shape */
:focus-visible { outline: var(--ring); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .title { font-family: var(--display); font-optical-sizing: auto; font-weight: 750; letter-spacing: -.045em; color: var(--ink); }
h1.title, .title { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; text-wrap: balance; }
.sub { font-size: 18px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.help { font-size: 15px; line-height: 1.45; color: var(--muted); }
.legal { font-size: 14px; line-height: 1.45; color: var(--muted); }
.legal a, .help a { color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- the wordmark (the product pages' top bar: R44) */
/* a 44 px tap target, as the mockup's; one size up where the phone model fits (ui.js phoneFits()). The dev pages' bar
   has its own rule in dev.css, which loads after this file and wins there. */
.wordmark {
  display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; border-radius: 6px;
  font-family: var(--display); font-optical-sizing: auto; font-weight: 800; font-size: 25px; letter-spacing: -.05em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
@media (min-width: 980px) and (min-height: 700px) { .wordmark { font-size: 28px; } }

/* ---------------------------------------------------------------- reduced motion: every animation ends at its end state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
