/* ==========================
   RESET
========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
}

/* ==========================
   GLOBALS
========================== */

:root {
  --container-width: 1200px;
  --container-padding: 1rem;

  --clr-text: #222;
  --clr-background: #fff;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--clr-text);
  background: var(--clr-background);
}

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );
  margin-inline: auto;
}

section {
  padding-block: 5rem;
}

/* ==========================
   TYPOGRAPHY
========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}
