*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--chrome);
  color-scheme: light;
  overflow-x: hidden;
}

html.has-block-scroll {
  scroll-behavior: auto;
  overscroll-behavior-y: none;
}

::selection {
  background: #d8d8d6;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--accent);
  margin: 0 0 0.6em;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-2);
  max-width: var(--measure);
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.875rem;
  color: var(--text-2);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section-alt {
  background: var(--bg-alt);
}

.section-ink {
  background: var(--bg-ink);
  color: var(--text-on-ink);
}

.section-ink h2,
.section-ink h3 {
  color: var(--text-on-ink);
}

.section-ink .muted,
.section-ink .small,
.section-ink .quote-meta {
  color: #d6d6d6;
  text-shadow: none;
}

.section-ink a {
  color: var(--text-on-ink);
}

.section-ink a:hover {
  color: #ffffff;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-more {
  margin-top: 1.25rem;
}

.section-more a {
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .doctor-reel {
    overflow-x: auto;
    mask-image: none;
  }
}
