/* Base: what every page needs before any element. Rules on plain tags sit inside :where(), so they weigh nothing and
   the class of an element always wins over them (the apps site lost an overlap to a list reset that weighed more). */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { scroll-behavior: smooth; }
:where(body) { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
:where(a) { color: inherit; }
:where(button) { font: inherit; color: inherit; cursor: pointer; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(h1) { font: var(--h-weight) var(--h1-size)/var(--h-lh) var(--display); letter-spacing: var(--h-track); margin: 0 0 1.25rem; }
:where(h2) { font: var(--h-weight) var(--h2-size)/var(--h-lh) var(--display); letter-spacing: var(--h-track); margin: 0 0 1rem; }
:where(h3) { font: 700 1.3rem/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 .5rem; }
:where(h1 em) { font-style: normal; color: var(--accent-large); }
:where([id]) { scroll-margin-top: var(--header-h); }

/* No focus ring after a click or a tap. Only someone moving through the page with the keyboard gets a thin line. */
:where(:focus) { outline: none; }
:where(:focus-visible) { outline: 1.5px solid var(--btn); outline-offset: 3px; }

/* Helpers every element may use */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--btn); color: var(--on-btn); padding: .5rem 1rem; }
/* Numbers keep their width, so prices and counters never push their neighbours around */
.num { font-variant-numeric: tabular-nums; }

/* Sections and their headings */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; background: var(--bg); color: var(--text); }
.section-tint { background: var(--bg-tint); }
.section-block { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.title-block { margin: 0 0 .6rem; font: var(--h-weight) var(--h-block-size)/1.1 var(--display); letter-spacing: var(--h-track); }
.lead { max-width: 34rem; margin: 0 0 2rem; font-size: 1.2rem; }
.intro { max-width: 40rem; margin: 0; color: var(--muted); }

/* Without motion everything is shown in its end state at once */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
