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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 100% 0%, rgba(196, 30, 58, 0.06), transparent 55%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(37, 99, 235, 0.05), transparent 50%);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent-hover);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-bg);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.stack > * + * {
  margin-top: var(--space-md);
}

.muted {
  color: var(--color-muted);
  font-size: 0.95rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin: 0 0 var(--space-md);
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

address {
  font-style: normal;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-rise 0.7s ease-out both;
}

.animate-delay-1 {
  animation-delay: 0.12s;
}

.animate-delay-2 {
  animation-delay: 0.24s;
}
