:root {
  --page-gutter: clamp(18px, 3vw, 56px);
  --site-header-height: 76px;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
}

body > header,
body > main,
body > footer,
body > section {
  width: 100%;
  max-width: none;
}

.container,
.wrap {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: none;
  margin-inline: auto;
}

body > main.container,
body > main.wrap {
  width: 100%;
  margin-inline: 0;
}

body > main.container > section,
body > main.wrap > section {
  padding-inline: var(--page-gutter);
}

body > main {
  min-height: calc(100vh - var(--site-header-height));
  min-height: calc(100svh - var(--site-header-height));
}

img,
video,
svg,
canvas {
  max-width: 100%;
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 14px;
    --site-header-height: 72px;
  }
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }

  body > main {
    min-height: calc(100dvh - var(--site-header-height));
  }
}
