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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text-1);
  background:
    radial-gradient(1100px 680px at 82% -6%, rgba(31, 168, 116, 0.11), transparent 62%),
    radial-gradient(900px 640px at -10% 110%, rgba(124, 199, 232, 0.035), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg {
  display: block;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: rgba(61, 220, 151, 0.28);
  color: var(--text-1);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}

/* Headings receive focus programmatically on navigation; no ring needed. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
  box-shadow: none;
}

[hidden] {
  display: none !important;
}

.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: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  transition: top var(--dur-2) var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-sm);
}

.icon {
  flex: none;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-hover) transparent;
}

@media (forced-colors: active) {
  .tier__glyph,
  .status-dot,
  .swatch {
    forced-color-adjust: none;
  }
}
