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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--text-13);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--fg-strong);
  font-weight: 580;
  letter-spacing: -0.018em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: var(--text-30); }
h2 { font-size: var(--text-20); }
h3 { font-size: var(--text-15); }
h4 { font-size: var(--text-13); }

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur-fast) var(--ease);
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

svg {
  display: block;
  flex: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* The surfaces we did not draw. Left at browser defaults these are the loudest
   tell that a page was assembled rather than built. */
::selection {
  background: var(--fg-strong);
  color: var(--bg);
}

:root {
  accent-color: var(--fg-strong);
  caret-color: var(--fg-strong);
  scrollbar-color: var(--rule-strong) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--rule-strong);
  border: 3px solid var(--bg);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fg-faint);
}

:focus-visible {
  outline: 2px solid var(--fg-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Every quantity in the product is set in mono with tabular figures, so columns
   of numbers line up and a digit never changes width as a value updates. */
.num,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 1;
  letter-spacing: -0.01em;
}

.muted { color: var(--fg-muted); }
.secondary { color: var(--fg-secondary); }
.strong { color: var(--fg-strong); }

.label {
  font-size: var(--text-11);
  font-weight: 560;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 60;
  padding: var(--space-2) var(--space-4);
  background: var(--fg-strong);
  color: var(--bg);
  border-radius: var(--radius);
  font-weight: 560;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

#toast-region {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 80;
  display: grid;
  gap: var(--space-2);
  justify-items: end;
  pointer-events: none;
}
