/* Reset, typography and shared utilities. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--brand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: 1.3;
  font-weight: 600;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

iframe {
  border: 0;
  display: block;
}

svg.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

::selection {
  background: var(--brand-200);
  color: var(--ink-900);
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

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

.muted {
  color: var(--ink-600);
}

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

.pre-line {
  white-space: pre-line;
}

.is-hidden {
  display: none !important;
}

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

.spinner {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0.8;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 28px;
  height: 28px;
  border-width: 3px;
  color: var(--brand-500);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.skeleton-block {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
}

.skeleton-line {
  display: block;
  height: 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--brand-100) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-75 {
  width: 75%;
}

.skeleton-line.w-90 {
  width: 90%;
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

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