/* =============================================================
   AXIOL DESIGN SYSTEM — global entry point
   Consumers link THIS file. It is an @import manifest only.
   ============================================================= */

@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");

/* =============================================================
   Global responsive base.
   The layout is built from inline React styles, which cannot hold
   media queries. This file (linked by every page) carries the
   element-level responsive rules; layout-defining inline styles
   (grid columns, the nav, side-by-side splits) are switched in JS
   via window.useBreakpoint().
   ============================================================= */

/* Never let anything force a horizontal scrollbar on small screens. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Media never overflows its column. */
img, svg, video { max-width: 100%; height: auto; }

/* Tablet and below: trim the wide horizontal section padding. */
@media (max-width: 900px) {
  nav { padding-left: 20px !important; padding-right: 20px !important; }
  section, header, footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Phones: tighten vertical rhythm so sections aren't enormous. */
@media (max-width: 640px) {
  section, header { padding-top: 56px !important; padding-bottom: 56px !important; }
  footer { padding-top: 48px !important; padding-bottom: 32px !important; }
}
