@font-face {
  font-display: fallback;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  src: url("/assets/fonts/Poppins-Light.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/Poppins-Regular.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Poppins";
  font-style: italic;
  font-weight: 300;
  src: url("/assets/fonts/Poppins-LightItalic.ttf");
}

@font-face {
  font-display: fallback;
  font-family: "Poppins";
  font-style: bold;
  font-weight: 600;
  src: url("/assets/fonts/Poppins-SemiBold.ttf");
}

* {
  box-sizing: border-box;
}

body {
  --color-heading: black;
  --space: clamp(1rem, 10vw, 6rem);
  color: #666;
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin: 0 auto;
  width: 90%;
  max-width: 800px;
}

h1, h2, h3 {
  color: var(--color-heading);
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.25;
}

main {
  padding-bottom: var(--space);
}

header,
footer {
  display: flex;
  gap: 1rem;
  padding: 2rem 0;

  a {
    color: var(--color-heading);
    font-size: 16px;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

/* Highlight link for current area */
body.home a.home,
body.about a.about
{
  font-weight: 600;
}

section,
footer {
  border-top: 1px solid #e1e1e1;
  margin-top: var(--space);
  padding-top: var(--space);
}

/* Post titles: a link so it can be copied; doesn't need to look like link  */
a:has(h2) {
  color: var(--color-heading);
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }

  h2 {
    margin-top: 0;
  }
}


img {
  max-width: 100%;
}