@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Faustina:ital,wght@0,300..800;1,300..800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
  height: 100vh;
  font-family: 'DM Serif Text', serif;
  background-color: #f0f0f0;
  color: #333;
}

p{
  margin: 1em 0;
}

a {
  color: #333;
}

header {
  background-color: #949494;
}

header div {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('/images/header-background.png');
  background-color: rgba(255,255,255,0.4);
  background-blend-mode:lighten;
  background-position: center;
  background-size:cover;
  padding: 2em;
}

header h1 {
  padding: 0 2em 0 2em;
  border: 3px solid #333;
  border-radius: .1em;
  font-size: 5em;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
}

header p {
  font-size: 2.25em;
  font-weight: bold;
  margin-top: .5em;
  margin-bottom: .5em;
  text-transform: uppercase;
}

header hr {
  width: 10em;
  border-bottom: 3px solid #333;
}

main {
  display: flex;
  flex-direction: row;
}

main > section {
  display: flex;
  flex-direction: column;
  padding: 1em;
}

.contact-info {
  flex: 1.25;
  background-color: #949494;
}

.contact-info > div {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  max-width: 20em;
}

.contact-info h2 {
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 1.5em 0 0.5em 0;
}

.contact-info h2:first-of-type {
  margin-top: 0;
}

.profile-image {
  border-radius: 50%;
  margin: 1em 0;
}

.contact-info-mobile {
  display: none;
  flex-wrap: wrap;
  background-color: #949494;
}

.contact-info-mobile .profile-image {
  width: 10em;
  height: auto;
  border-radius: 50%;
  margin-right: 1em;
}

.contact-info-mobile div {
  margin-right: 1em;
  margin-bottom:1em;
}

.contact-info-mobile .links ul {
  margin-right: 1em;
}

.contact-info table,
.contact-info-mobile table {
  border-collapse: collapse;
}

.contact-info table tr:first-of-type th,
.contact-info table tr:first-of-type td,
.contact-info-mobile table tr:first-of-type th,
.contact-info-mobile table tr:first-of-type td {
  border-top: 1px solid #333;
}

.contact-info table th,
.contact-info table td,
.contact-info-mobile table th,
.contact-info-mobile table td {
  border-bottom: 1px solid #333;
  padding: .2em 0;
}

.contact-info table th,
.contact-info-mobile table th {
  text-align: left;
  vertical-align: top;
  padding-right: 1em;
}

.contact-info ul,
.contact-info-mobile ul {
  list-style: none;
  padding: 0;
}

.contact-info li,
.contact-info-mobile li {
  display: flex;
  align-items: center;
  margin-bottom: .5em
}

.contact-info svg,
.contact-info-mobile svg {
  height: 2em;
  margin-right: 1em;
}

.sticky {
  position: sticky;
  top: 0;
}

.professional-info {
  flex: 2;
}

.professional-info > div {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 40em;
}

.professional-info h2 {
  text-transform: uppercase;
  letter-spacing: .15em;
  border-bottom: 1px solid #333;
  margin: 1.5em 0 .5em 0;
}

.professional-info section:first-of-type h2 {
  margin-top: 0;
}

.profile div {
  display: flex;
}

.profile div svg {
  margin-right: .5em;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding: 0;
}

.hobbies ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
}

.hobbies li {
  width: 7em;
  margin-right: .5em;
}

.hobbies li p {
  text-align: center;
  text-transform: uppercase;
}

footer {
  font-size: 1em;
  font-family: Faustina, serif;
  background-color: #333;
  color: #949494;
  text-align: center;
  padding: 1em 0;
}

footer a {
  color: #949494;
  text-decoration: none;
}

footer address {
  display: inline-block;
}

.fixed-header, .fixed-footer{
  width: 100%;
  position: fixed;
  padding: 10px 0;
}

.fixed-header {
  top: 0;
}

.fixed-footer {
  bottom: 0;
}

@media only screen and (max-width: 1000px) {
  main {
    flex-direction: column;
  }

  .contact-info {
    display: none;
  }
  
  .contact-info-mobile {
    display: flex;
    flex-direction: row;
  }

  .professional-info > div {
    max-width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  
  .contact-info-mobile {
    justify-content: center;
  }

  .contact-info-mobile div {
    width: 100%;
  }

  .contact-info-mobile table {
    width: 100%;
  }

}
