* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin-bottom: var(--space-3);
}

ul {
  margin-top: var(--space-2);
  margin-bottom: 0;
  padding-left: var(--space-5);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 50;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-primary-strong);
  color: var(--color-surface-strong);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

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