:root {
  --max-width: 1680px;
}

html,
body {
  min-height: 100%;
  height: 100%;
}

.page-shell {
  width: min(calc(100% - 12px), var(--max-width));
  margin: 2px auto;
  height: calc(100vh - 4px);
  min-height: calc(100vh - 4px);
  display: flex;
  flex-direction: column;
}

.section-wrap {
  height: 100%;
  min-height: 100%;
  flex: 1;
}

.section-space {
  padding: 12px 0 16px;
}

.site-footer {
  margin-top: auto;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 6px), var(--max-width));
    margin: 1px auto;
    height: calc(100vh - 2px);
    min-height: calc(100vh - 2px);
  }
}
