*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
[tabindex="-1"]:focus { box-shadow: none; outline: none; }

::selection { background: var(--marigold-soft); color: var(--ink); }

/* type scale */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-xl); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.display-sm { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { font-size: var(--t-m); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34em; }
.eyebrow { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow-accent { color: var(--overlap); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-s); }
.tiny { font-size: var(--t-xs); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-s);
}
.skip-link:focus { top: 12px; }

/* Animate the page content, not the wrapper: a transform on the wrapper would trap the fixed tab bar inside it. */
.view #main, .view > main { animation: view-in 320ms var(--ease) backwards; }
@keyframes view-in { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

#app[aria-busy="true"] { cursor: progress; }

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

/* paint the phone's status-bar band so content never scrolls under it */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); }
