html {
  background: var(--color-background);
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-interface);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

body.msm-menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-family: var(--font-editorial);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--line-height-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p,
li {
  text-wrap: pretty;
}

a {
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

:focus-visible {
  border-radius: var(--radius-sm);
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--msm-gold-light);
  color: var(--msm-navy);
}

.msm-skip-link {
  background: var(--msm-white);
  color: var(--msm-navy);
  font-weight: 700;
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  position: fixed;
  top: var(--space-4);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
  z-index: 1000;
}

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

.msm-prose > * + * {
  margin-block-start: var(--space-4);
}

.msm-prose h2,
.msm-prose h3 {
  margin-block-start: var(--space-8);
}

.msm-prose a {
  color: var(--msm-blue);
  font-weight: 600;
}
