:root {
  --bg-color: #92aa83;
  --fg-color: #eef5e0;
  --hyperlink-color: #e7f59e;
  --hyperlink-hover: #48bcd6;
  --hyperlink-visited: #e7f59e
}

/* @font-face { */
/*   font-family: "iA Writer Mono"; */
/*   src: */
/*     url("/fonts/iAWriterMonoS-Bold.woff2") format("woff2"), */
/*     url("/fonts/iAWriterMonoS-Bold.woff") format("woff"); */
/*   font-weight: bold; */
/*   font-style: normal; */
/* } */
/* @font-face { */
/*   font-family: "iA Writer Quattro"; */
/*   src: */
/*     url("/fonts/iAWriterQuattroS-Regular.woff2") format("woff2"), */
/*     url("/fonts/iAWriterQuattroS-Regular.woff") format("woff"); */
/*   font-weight: normal; */
/*   font-style: normal; */
/* } */
/* @font-face { */
/*   font-family: "iA Writer Quattro"; */
/*   src: */
/*     url("/fonts/iAWriterQuattroS-Bold.woff2") format("woff2"), */
/*     url("/fonts/iAWriterQuattroS-Bold.woff") format("woff"); */
/*   font-weight: bold; */
/*   font-style: normal; */
/* } */
/* @font-face { */
/*   font-family: "iA Writer Quattro"; */
/*   src: */
/*     url("/fonts/iAWriterQuattroS-Italic.woff2") format("woff2"), */
/*     url("/fonts/iAWriterQuattroS-Italic.woff") format("woff"); */
/*   font-weight: normal; */
/*   font-style: italic; */
/* } */
/* @font-face { */
/*   font-family: "iA Writer Quattro"; */
/*   src: */
/*     url("/fonts/iAWriterQuattroS-BoldItalic.woff2") format("woff2"), */
/*     url("/fonts/iAWriterQuattroS-BoldItalic.woff") format("woff"); */
/*   font-weight: bold; */
/*   font-style: italic; */
/* } */

html {
  background-color: var(--bg-color);
  color: var(--fg-color);
}

a {
  color: var(--hyperlink-color);
  &:visited {
    color: var(--hyperlink-visited);
  }
  &:hover {
    color: var(--hyperlink-hover);
  }
}

body {
  line-height: 1.6;
  font-size: 1.2rem;
  /* font-family: "iA Writer Quattro";
  /* font-family: "Edu NSW ACT Hand Pre", cursive; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-rendering: optimizeSpeed;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

h1, h2, h3, h4 {
  /* font-family: "iA Writer Mono", serif; */
  text-rendering: optimizeLegibility;
  font-weight: bold;
}

header {
  padding: .75rem 0;
  display: flex;
  justify-content: space-between;
}

.home {
  font-weight: bold;
}

nav {
  text-align: right; 
  flex-shrink: 0;
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  li {
    display: inline-block;
    a {
      padding: .75rem;
    }
  }
}
nav:only-child {
  margin-left: auto;
}

.intro {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.intro__photo {
  border-radius: 50%;
  border-style: solid;
  max-width: 200px;
  max-height: 200px;
}

.intro__text {
  padding: 2rem 0;
  text-align: left;
}
.intro__name {
  font-size: 2.2rem;
  text-rendering: optimizeLegibility;
  margin-top: 0;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.portfolio-item {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.portfolio-item > a {
  flex-basis: 0 0 47%;
  max-width: 47%;
  /* border: 10px solid blue; */
}

.portfolio-item > img {
  flex-basis: 0 0 47%;
  max-width: 47%;
  /* border: 10px solid green; */
}

.portfolio-item > p {
  flex-basis: 0 0 47%;
  max-width: 47%; /* border: 10px solid red; */
}

@media (max-width: 800px) {
  .portfolio-item {
    flex-direction: column;
  }
  .portfolio-item > a {
    /* flex-basis: 0 0 47%; */
    max-width: 100%;
    /* border: 10px solid blue; */
  }

  .portfolio-item > img {
    /* flex-basis: 0 0 47%; */
    max-width: 100%;
    /* border: 10px solid green; */
  }

  .portfolio-item > p {
    /* flex-basis: 0 0 47%; */
    max-width: 100%; /* border: 10px solid red; */
  }
}

.links {

  ul {
    padding: 0;
    list-style: none;
    text-align: left;
  }

  li::before {
    content: "✿ ";
    color: #f76e6e;
  }

  li:nth-of-type(2n)::before {
    color: #59ccf9;
  }
  li:nth-of-type(2n-1)::before {
    color: #f4a8b8;
  }

}

.primary-content {
  flex-grow: 1;
}
