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

@font-face {
  font-display: swap;
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/dm-mono-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  src: url("/assets/fonts/dm-mono-500.woff2") format("woff2");
}

:root {
  --font: "DM Mono", "Courier New", Courier, monospace;
  --clr-text: #212;
  --clr-text-light: #767;
  --clr-bg: #ede;
  --clr-bg-light: #fef;
  --clr-border: #989;
}

body {
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--font);
  color: var(--clr-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("/assets/bg-pattern.svg");
  background-repeat: repeat;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: 1.5rem;
}
h2 {
  line-height: 1.25rem;
}

main,
footer {
  background-color: var(--clr-bg);
  border-left: 2px solid var(--clr-border);
  border-right: 2px solid var(--clr-border);
  margin: auto;
  max-width: 38rem;
}

main {
  padding: 2rem;
  flex: 1;
}

footer {
  width: 100%;
  padding: 1rem 2rem;
}

article {
  border: 1px solid var(--clr-border);
  background-color: var(--clr-bg-light);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.125rem;

  h2 {
    margin-bottom: 0.5rem;
  }

  span {
    color: var(--clr-text-light);
    font-size: 0.75rem;
  }
}
