﻿:root {
  --page-width: clamp(350px, 100%, 1400px);
}

html, body {
  min-height: 100vh;
  min-height: 100dvh;
}

body {
  align-items: center;
  display: flex;
  flex-direction: column;
}
body > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  width: 100%;
}
body > footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 1rem;
  width: 100%;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1em 0;
  width: var(--page-width);
}

@media (min-width: 768px) {
  main {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
  }
}
