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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--warm-white);
  color: var(--charcoal);
  font: 17.5px/1.72 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

main {
  min-height: 55vh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--plum);
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

a:hover {
  color: var(--saffron-700);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .62em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.85rem, 5vw, 4.25rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.72rem);
}

p {
  margin: .18em 0 1.2em;
}

ul,
ol {
  padding-left: 1.25em;
}

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

button,
summary {
  cursor: pointer;
}

button {
  -webkit-tap-highlight-color: transparent;
}

code {
  padding: .12em .38em;
  border-radius: 5px;
  background: var(--plum-soft);
  font-size: .9em;
}

::selection {
  background: var(--gold-pale);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 11px 17px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.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;
}

.reveal-ready {
  opacity: 1;
  transform: none;
}

.reveal-ready.is-visible {
  animation: reveal-rise .7s var(--ease) both;
}

@keyframes reveal-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.capture-mode .site-header {
  position: relative;
}

.capture-mode .reveal-ready.is-visible {
  animation: none;
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
