/* Reset, typography and layout primitives. */

* { box-sizing: border-box; }
/* While a sheet is open the page behind it stays still. */
html.has-sheet { overflow: hidden; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: var(--nav-h);
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px;
}
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.container { max-width: 720px; margin: 0 auto; padding: 12px 12px 28px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 14px;
}
.pill-btn.ghost { background: var(--surface-2); color: var(--ink); }
.pill-btn svg { width: 16px; height: 16px; }

.soft-btn {
  min-height: 44px; border-radius: 14px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); font-size: 13px; color: var(--muted);
}
.soft-btn svg { width: 16px; height: 16px; }

.note { font-size: calc(13px * var(--fs)); color: var(--muted); line-height: 1.75; margin: 8px 0 0; }
kbd {
  font-family: inherit; background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 0 7px; font-size: 13px;
}
