﻿/******* Resets *******/
html, body {
  font-family: 'Helvetica Neue', 'Helvetica', arial, sans-serif;
  background: #fff;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
  color: #000;
  direction: ltr;
  -webkit-text-size-adjust: none;
}
a {
  transition: color .5s;
  color: #000;
  text-decoration: underline;
}
a:active,
a:hover {
  color: rgba(0,0,0,.54);
}
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 24px;
}
p {
  margin: 0 0 16px;
}

/******* Page styles *******/
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
ul li {
  display: inline-block;
  margin: 0;
  padding: 0;
}
ul li::after {
    content: " · ";
    color: rgba(0,0,0,.4);
}
ul li:last-of-type::after {
    content: "";
}
header {
  width: 420px;
  margin: 80px auto 0;
  padding: 0 60px;
  text-align: center;
}
header h1 {
  font-size: 56px;
  font-weight: 600;
}
.picture {
  width: 420px;
  height: 80px;
  margin: 0 auto;
  padding: 0 60px;
}
.me {
  margin: 120px auto 0;
  display: block;
  width: 80px;
  height: 80px;
  background: transparent url(../images/chucksievert.png) no-repeat center center;
  background-size: 100%;
  border-radius: 100%;
}
.main-content {
  width: 420px;
  margin: 80px auto 0;
  padding: 0 60px;
  text-align: center;
  line-height: 1.8;
}
footer {
  width: 420px;
  margin: 80px auto 160px;
  padding: 0 60px;
  text-align: center;
}

/***
 Media queries
 ***/

@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (orientation : portrait) {
  header,
  .picture,
  .main-content,
  footer {
    width: 288px;
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 60px;
  }
  .me {
    margin-top: 60px;
  }
  footer {
    margin-bottom: 100px;
  }
  ul.links li {
    display: block;
    margin-bottom: 32px;
  }
  ul.links li::after {
    content: "";
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 1024px) and (orientation : landscape) {
  header,
  .picture,
  .main-content,
  footer {
    width: 536px;
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 40px;
  }
  .me {
    margin-top: 40px;
  }
  header h1 {
    font-size: 48px;
  }
  footer {
    margin-bottom: 80px;
  }
}
