/* Global: dotted paper background, typography helpers, reveal animation */
body {
  background:
    radial-gradient(circle, rgba(43, 38, 32, 0.05) 1px, transparent 1.4px) 0 0 /
      22px 22px,
    var(--paper);
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 6px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pencil);
}

/* Page sits above the fluid canvas fallback */
.page {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type helpers — the three voices of the spec sheet */
.mono {
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-display);
}

/* Scroll reveal — sheets settle onto the desk */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
