body {
  font-family: "EB Garamond", "Helvetica Neue", "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 50em;
  font-size: 1rem;
}

nav {
  margin-top: 1em;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  color: #238636;
  font-size: 2rem;
}

p, ul, ol {
  color: #505050;
  font-size: 1.25rem;
}

code {
   background-color: #dbdbdb;
   font-size: 1.25rem;
}

a:link {
  color: #238636;
  text-decoration: underline;
}

a:active,
a:visited {
  color: #238636;
}

a:focus,
a:hover {
  color: #000000;
  text-decoration: none;
  font-size: 1.1em;
}

#blog-title {
  color: #238636;
}

.links a {
  margin-left: 1em;
  margin-right: 1em;
}

.meta {
  font-size: 1rem;
}

header {
  margin-top: 1em;
}

footer p {
  text-align: center;
  font-size: large;
}

/* Apply scaling with viewport width (vw) at larger screen sizes */
@media (min-width: 1024px) {
  body {
    font-size: calc(1rem + 0.75vw);  /* Combine rem and vw for scaling */
  }

  h1, h2, h3, h4 {
    font-size: calc(2rem + 0.75vw);  /* Adjust heading sizes with scaling */
  }

  p, ul, ol {
    font-size: calc(1rem + 0.75vw);
  }
  
  code, .meta {
    font-size: calc(1rem + 0.75vw);
  }
}

@media (min-width: 800px) {
  body {
    font-size: calc(1rem + 0.5vw);  /* Combine rem and vw for scaling */
  }

  h1, h2, h3, h4 {
    font-size: calc(2rem + 0.5vw);  /* Adjust heading sizes with scaling */
  }

  p, ul, ol {
    font-size: calc(1rem + 0.5vw);
  }
  
  code, .meta {
    font-size: calc(1rem + 0.5vw);
  }
}

@media (max-width: 768px) {
  body {
    font-size: calc(0.75rem + 1vw);  /* Combine rem and vw for scaling */
  }

  h1, h2, h3, h4 {
    font-size: calc(1.5rem + 1vw);  /* Adjust heading sizes with scaling */
  }

  p, ul, ol {
    font-size: calc(0.75rem + 1vw);
  }
  
  code, .meta {
    font-size: calc(0.75rem + 1vw);
  }
}

@media (min-width: 480px) {
  body {
    font-size: calc(0.5rem + 1vw);  /* Combine rem and vw for scaling */
  }

  h1, h2, h3, h4 {
    font-size: calc(1rem + 1vw);  /* Adjust heading sizes with scaling */
  }

  p, ul, ol {
    font-size: calc(0.5rem + 1vw);
  }
  
  code, .meta {
    font-size: calc(0.5rem + 1vw);
  }
}
