/* ══════════════════════════════════════════
   FIRE SITE KIT: LAYOUT
   The page around the header and footer, and the few arrangements every
   Fire site needs, each one column on a phone.

   .site-main   the page's <main>: at least the window's height, so the
                footer always starts below the fold (owner, 2026-10-18)
   .page        a page with no hero: its top clears the fixed header
   .container   fire.co's centred column (base.css), 1120px; with
                .container-narrow, 720px for reading
   .split       two columns side by side, the words and a picture, say
   .grid        cards, as many to a row as fit at 280px or more
   .stack       a column with even space between its children
   .section-backdrop
                a section that holds a background (hero-net.css,
                backgrounds.css) behind its words, most of a window tall
   ══════════════════════════════════════════ */

.site-main {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
}

.page {
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}

.split-top {
  align-items: start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-loose {
  gap: var(--space-8);
}

.section-backdrop {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70vh;
  min-height: 70dvh;
  overflow: hidden;
}

.section-backdrop > .container {
  width: 100%;
}

/* --- Phones: one column, closer gutters, shorter sections --- */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  section {
    padding: var(--space-16) 0;
  }

  .page {
    padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-12);
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
