/* --- Fonts --- */

@font-face {
  font-family: Junction;
  font-weight: 300;
  src: url(junction-light.woff);
}

@font-face {
  font-family: Junction;
  font-weight: 400;
  src: url(junction-regular.woff);
}

@font-face {
  font-family: Junction;
  font-weight: 700;
  src: url(junction-bold.woff);
}

@font-face {
  font-family: "Lato";
  src: url(Lato-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url(Lato-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url(Lato-Italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url(Lato-Semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url(Lato-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Reset --- */

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

html {
  scrollbar-gutter: stable;
}

/* --- Layout --- */

body {
  margin: 40px auto;
  max-width: 650px;
  line-height: 1.5em;
  font-size: 1.0em;
  padding: 20px 40px;
  background-color: #17212a;
  color: #eee;
  font-family: "Lato", system-ui, sans-serif;
  font-weight: 400;
}

/* --- Typography --- */

h1, h2, h3, h4, h5 {
  line-height: 1.2em;
}

h1 {
  font-family: Junction, sans-serif;
  font-weight: 700;
  padding-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

a {
  color: #5fa5fa;
  text-decoration: underline;
}

/* --- Profile --- */

.profile-pic {
  width: 200px;
  float: right;
  margin-left: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
}

/* --- Links --- */

#refs {
  display: flex;
  gap: 1em;
  margin-bottom: 1.5em;
}

.reflink {
  text-decoration: none;
  opacity: 50%;
}

/* --- Footer --- */

footer {
  position: relative;
  padding-top: 1.5em;
  opacity: 70%;
}

/* --- Mobile --- */

@media (max-width: 768px) {
  .profile-pic {
    width: 60px;
    margin: 0;
  }

  h1 {
    display: inline;
    line-height: 60px;
  }

  #refs {
    padding-top: 1em;
  }
}
