/* Reset, page basics, and the iOS specifics that bite if you forget them. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 400;
  line-height: 1.15;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  /* No blue flash on tap; every tappable element gets its own :active state. */
  -webkit-tap-highlight-color: transparent;
}

input {
  font: inherit;
  color: inherit;
}

/* Apple asks for 44px; anything smaller is a mis-tap waiting to happen. */
button {
  min-height: 44px;
}

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

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

.fade-up {
  animation: fade-up 0.55s ease-out both;
}

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