/* Reset and page frame. No component styling here. */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--wing-ink); }
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--wing-ink); outline-offset: 3px; }
[hidden]:not([hidden="until-found" i]) { display: none !important; }

/* Page frame. .page is the container that every cqw unit refers to. */
.page-outer {
  background: var(--bg);
  min-height: 100vh;
}
.page {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: clip;
  container-type: inline-size;
  width: 100%;
  min-height: 100vh;
  transition: opacity 0.2s ease;
}
.page > main { flex: 1; }
/* boot.js sets this class, site.js removes it once content is filled in. */
html.is-loading .page { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page { transition: none; }
}
