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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main {
  flex: 1 0 auto;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  appearance: none;
  border-radius: 0;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus { outline: 0; }
:focus-visible { outline: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

p, ul, ol, dl, figure, blockquote, table {
  margin: 0;
}

a { color: inherit; }

img, svg, video { display: block; max-width: 100%; height: auto; }

.page-inset {
  padding-inline: var(--page-inset-x-mobile);
}
@media (min-width: 768px) {
  .page-inset {
    padding-inline: var(--page-inset-x);
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  font-size: var(--step--1);
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

html, body { overflow-x: hidden; }
