html {
  background: var(--color-paper);
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(to bottom, rgba(244, 239, 232, 0.38), rgba(244, 239, 232, 0.38)) no-repeat;
  color: var(--color-ink-900);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

main {
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--color-teal-900);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--color-teal-800);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--color-teal-100);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
}

.site-footer {
  border-top: var(--border-thin);
  margin-top: auto;
}

.content-shell {
  background: var(--color-surface);
  border: var(--border-thin);
  box-shadow: var(--shadow-soft);
}

.content-shell--muted {
  background: var(--color-surface-muted);
}

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