/* add color vars */
:root {
  font-size: 18px;
  --color-bg: #f5efec;
  --color-txt: #22223b;
  --color-pri: #9A8C98;
  --color-sec: #C9ADA7;
  --color-link: #4381C1;
}

/* Global styles */
/* reset some default styles to create a consistent base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  vertical-align: bottom;
  box-sizing: border-box;
  font-style: normal;
  font-weight: normal;
  word-wrap: break-word;
  border-radius: 0;
  -webkit-text-size-adjust: none;
}

body {
  overflow-x: hidden;
  padding: 40px 80px;
  background-color: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 500ms;
}

header,
main,
footer {
  max-width: 800px;
  margin: 0 auto;
  display: block;
  clear: both;
}

article,
nav {
  display: block;
}

h1 {
  text-transform: uppercase;
  color: var(--color-pri);
  font-size: 1.1em;
  font-weight: 450;
  letter-spacing: 0.075em;
}

h2 {
  font-size: 3.5em;
  font-weight: 275;
  letter-spacing: -0.025em;
  color: var(--color-txt);
}

h3 {
  font-size: 1.65em;
  font-weight: 225;
  color: var(--color-txt);
}

h4,
p {
  font-size: 1.5em;
  /* font-weight: 550; */
  color: var(--color-txt);
}

h5 {
  font-size: 1em;
  color: #81767f;
}

img {
  display: block;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Header styles */
header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

header h1 {
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

header a {
  padding: 6px 14px 8px;
  border: none;
  border-radius: 20px;
  background-color: var(--color-pri);
  color: var(--color-bg);
  font-size: 1.05em;
  text-decoration: none;
  transition: transform 200ms;
}

header a:hover {
  background-color: #beaebc;
  transform: scale(1.03);
}

header a:active {
  background-color: #e5d0e2;
  transform: scale(0.97);
}

/* Article styling */
article {
  max-width: 800px;
  margin: 0 auto;
}

section.content div {
  width: 100%;
  display: block;
  padding-top: 125px;
  clear: both;
  border-radius: 16px;
}

section.content h1 {
  font-size: 1.1em;
  margin-bottom: 10px;
}

section.content h4 {
  font-size: 1.75em;
  font-weight: 600;
  clear: both;
  letter-spacing: -0.02em;
}

section.content h5 {
  font-size: 1.1em;
}

section.content h6 {
  color: #22223ba5;
  margin-bottom: 20px;
  font-size: 1em;
}

section.content ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

section.content p {
  font-size: 1em;
  clear: both;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

section.content img {
  width: 100%;
  /* border: thin solid #22223b92; */
}

/* Footer styles */
footer {
  margin-top: 120px;
  font-size: 0.9em;
  color: var(--color-pri);
}

footer p {
  font-size: 0.8em;
  opacity: .5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.linkedin {
  display: inline-block;
  font-size: 1.4em;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 20px 12px;
  margin-bottom: 40px;
  border-radius: 32px;
  border: solid 1px #22223b3c;
  color: var(--color-txt);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  transition: transform 200ms;
}

.linkedin:hover {
  background-color: #e2ddda;
  transform: scale(1.02);
}

.linkedin:active {
  background-color: #c2bebb;
  transform: scale(0.98);
}

address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.4em;
  line-height: 1.5em;
  clear: both;
  margin-bottom: 40px;
  text-decoration: none;
}

address a {
  color: var(--color-txt);
  text-decoration: none;
}

address a:hover {
  text-decoration: underline;
}

address a:active {
  color: rgb(34, 34, 59, .6);
  text-decoration: none;
}

/* media query to keep column style */
@media screen and (max-width: 992px) {
  body {
    padding: 30px 16px 0;
  }

  section, header, footer {
    margin-bottom: 60px;
  }

  h1 {
    font-size: 0.8em;
  }

  header a {
    font-size: 0.8em;
  }

  h2 {
    font-size: 1.5em;
    font-weight: 400;
    line-height: 35px;
  }

  h3 {
    font-size: 1.1em;
    font-weight: 175;
  }

  section.content div {
    padding: 60px 0;
  }

  section.content h1 {
    font-size: 0.8em;
    line-height: 20px;
  }
  
  section.content h4 {
    font-size: 1em;
  }
  
  section.content h5 {
    font-size: 0.8em;
  }
  
  section.content h6 {
    font-size: 0.8em;
  }
  
  section.content p {
    font-size: 0.7em;
    margin: 10px 0;
  }

  footer {
    margin: 60px 0;
    font-size: 0.9em;
    color: var(--color-pri);
  }
  
  footer p {
    font-size: 0.6em;
  }
  
  .linkedin {
    font-size: 1em;
    padding: 8px 16px 10px;
    margin-bottom: 20px;
  }

  address {
    font-size: 1em;
    margin-bottom: 20px;
  }
}