/* ==========================================================================
   Layout: page canvas
   Phones use a 320px canvas and desktops a 980px canvas. Script sets --zoom so
   the canvas always fits the viewport width. Sections position their content
   in canvas pixels; every other stylesheet inherits this switch:

     @media (min-width: 1024px) { ... }
   ========================================================================== */

.page {
  zoom: var(--zoom);
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

section {
  position: relative;
}

@media (min-width: 1024px) {
  :root {
    --canvas-width: 980px;
    --canvas-left: calc(50% - var(--canvas-width) / 2);
  }

  main {
    display: block;
    width: auto;
  }
}
