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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--color-ivory);
  color: var(--color-ink);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
}

.container {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--container-width)
  );

  margin-inline: auto;
}