/* Content blocks (section 7). Scroll blocks live in .content (below the first
   screen); first-screen blocks in .first-screen stacks over the first viewport. */
.content,
.first-screen {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  line-height: 1.55;
  font-size: 18px;
}
.content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--content-gap, 32px);
  padding: 32px 0 64px;
}
.content:empty { display: none; }
.first-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none; /* clicks pass through to the page (e.g. skipping the greeting) */
}
.fs-stack {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--content-gap, 32px);
  padding: 32px 0; /* same as .content, so migrated "content starts at top" blocks keep their position */
}
.fs-top { top: 0; }
.fs-middle { top: 50%; transform: translateY(-50%); }
.fs-bottom { bottom: 0; }
.fs-stack > .block { pointer-events: auto; }
.block { box-sizing: border-box; overflow-wrap: anywhere; }
.block.align-left { margin-left: 16px; margin-right: auto; }
.block.align-center { margin-left: auto; margin-right: auto; }
.block.align-right { margin-left: auto; margin-right: 16px; }
.block.is-glass { -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.block > :first-child { margin-top: 0; }
.block > :last-child { margin-bottom: 0; }
.block h1, .block h2, .block h3 { line-height: 1.15; margin: 0.6em 0 0.4em; }
.block h1 { font-size: 2.4em; }
.block h2 { font-size: 1.8em; }
.block h3 { font-size: 1.35em; }
.block p { margin: 0 0 0.8em; }
.block ul, .block ol { margin: 0 0 0.8em; padding-left: 1.4em; }
.block a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
@media (max-width: 767px) {
  .block.only-desktop { display: none; }
  .content, .first-screen { font-size: 16px; }
}
@media (min-width: 768px) {
  .block.only-mobile { display: none; }
}
/* Hidden until the reveal (JS removes the class; noscript.css shows them). */
.block.reveal-pending { opacity: 0; }

/* Healthy pages cancel this before their configured reveal; failed module loads leave readable content.
   If public/site.js only arrives late, it reveals every block at once instead (see fallbackShown). */
:root:not(.site-started) .block.reveal-pending {
  animation: blocks-startup-failsafe 0s 8s forwards;
}
@keyframes blocks-startup-failsafe { to { opacity: 1; } }
