/* The spacing every page on the site shares. Pages keep their own colors, type, and components; their spacing comes
   from these tokens, and the breakpoints change only the tokens' values, never the rules. */
:root {
  --gutter: 24px;         /* from the screen's edge to the content */
  --text-inset: 0px;      /* text sits this much further in than artwork, so it never runs close to the edge */
  --section-gap: 160px;   /* from one section to the next, edge of what you see to edge of what you see */
  --art-gap: 72px;        /* from a section's artwork to its copy */
  --band-pad: 62px;       /* from a green band's edge to its text */
}
@media (max-width: 980px) {
  :root { --text-inset: 16px; --section-gap: 80px; --art-gap: 44px; --band-pad: 34px; }
}
@media (max-width: 520px) {
  :root { --gutter: 16px; --text-inset: 24px; }
}

/* A page-width container (each page sets its max-width). */
.wrap { margin-inline: auto; padding-inline: var(--gutter); }
/* Text: the text inset on top of whatever holds it; on a .wrap, on top of the gutter. */
.text { padding-inline: var(--text-inset); }
.wrap.text { padding-inline: calc(var(--gutter) + var(--text-inset)); }

/* Sections follow the page's header and each other at one gap. A section has no block padding of its own, so its box
   hugs what it shows and the gap you see is --section-gap. */
main > .section { margin-top: var(--section-gap); }
