@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrMfJg.woff) format("woff");
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDr4fJh1Zyc61YBlG.woff)
    format("woff");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrcfJh1Zyc61YBlG.woff)
    format("woff");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrAfJh1Zyc61YBlG.woff)
    format("woff");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrwfJh1Zyc61YBlG.woff)
    format("woff");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDr0fJh1Zyc61YBlG.woff)
    format("woff");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Comfortaa";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/comfortaa/v34/1Pt_g8LJRfWJmhDAuUsSQamb1W0lwk4S4WjMDrMfJh1Zyc61YA.woff)
    format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100vw;
  min-height: 100vh;
  overscroll-behavior: contain;
  font-size: 2vmin;
  font-family: "Comfortaa", Verdana, Geneva, sans-serif;
  overflow-x: hidden;
}

body {
  background-color: rgb(253, 237, 231);
  background-image: linear-gradient(-15deg, rgb(248, 198, 178), rgb(253, 237, 231));
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  flex-direction: column;
  margin: 0 auto;
  max-width: 90rem;
}

main {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding: 2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 1em 0;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2em;
}

a {
  color: inherit;
}

p {
  line-height: 2;
  margin: 2em 0 0 0;
  text-indent: 1em;
}

p:first-child {
  margin: 0em 0 0 0;
}

code {
  font-family: menlo, inconsolata, monospace;
  font-size: calc(1em - 2px);
  color: #555;
  background-color: #f0f0f0;
  padding: 0.2em 0.4em;
  border-radius: 2px;
}

.blog-content h2 {
  font-size: 1.4em;
  font-weight: 500;
}

.blog-content ul {
  margin: 2em 0 0 0;
  line-height: 1.5;
}

.blog-content li {
  margin: 0 0 0.5em 2em;
}

@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 20px;
  }
  main {
    padding: 2em 3em;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 24px;
  }
  main {
    padding: 2em 4em;
  }
}

/* Nav styles */
nav {
  border-bottom: 2px solid rgba(170, 30, 30, 0.1);
  display: flex;
  flex-direction: row;
  font-size: 4vmin;
  font-weight: 300;
  padding: 1em 1em 0 1em;
  margin: 0 1em;
}

nav ul {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  flex-grow: 3;
  justify-content: space-around;
  list-style: none;
}

nav li {
  margin-left: 1em;
}

/* All links */
nav a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0.1em 0.2em 0 0.2em;
  text-decoration: none;
  text-transform: capitalize;
}

/* Only homepage link */
nav > a {
  flex-grow: 1;
  font-size: 1.3em;
  font-weight: 800;
}

/* All nav links except homepage */
nav li > a:first-letter {
  font-size: 1.1em;
}

/* nav li > a:not(.active):hover::after {
  width: calc(100% - 0.4em);
} */

/* nav a.active::after {
  background-color: rgb(160, 214, 180);
  bottom: -2px;
  content: "";
  display: block;
  height: 4px;
  position: absolute;
  width: 4.35em;
} */

/* nav li > a.active::after {
  width: calc(100% - 0.4em);
} */

nav a:hover {
  display: inline-block;
  position: relative;
}

nav a:hover::after {
  background-color: rgb(134, 134, 134);
  bottom: -2px;
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  width: calc(100% - 0.4em);
}

.container#home a#nav-home,
.container#about a#nav-about,
.container#blog a#nav-blog,
.container#contact a#nav-contact {
  display: inline-block;
  position: relative;
}

.container#home a#nav-home::after,
.container#about a#nav-about::after,
.container#blog a#nav-blog::after,
.container#contact a#nav-contact::after {
  background-color: rgb(160, 214, 180);
  bottom: -2px;
  content: "";
  display: block;
  height: 4px;
  position: absolute;
  width: calc(100% - 0.4em);
}
