@import url("https://fonts.googleapis.com/css?family=Bree+Serif|Roboto+Slab|Sahitya");
body {
  margin: 0;
  padding: 0;
  background: #a9b3a8;
  font-size: 16px;
  font-family: "Roboto Slab", serif;
  line-height: 1.6;
  color: #444;
}

h1 {
  font-size: 2em;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  padding-bottom: 0.1em;
  border-bottom: 1px solid #ccc;
}
h1:first-child {
  margin-top: 0;
}

h2 {
  font-size: 1.5em;
  color: #654a43;
}

h3 {
  font-size: 1.25em;
}

p,
div {
  margin: 0;
  margin-bottom: 20px;
}

a {
  color: #444;
}

ul {
  padding: 0 0 1em 2em;
}
ul li {
  list-style-type: none;
  padding: 0 0 0.5em 0;
}
ul li::before {
  margin: 0 0.5em 0 -0.999em;
  content: "*";
  font-size: 1.75em;
  line-height: 0;
  vertical-align: middle;
  color: #a9b3a8;
}
ul ul {
  padding-left: 1em;
}
ul ul li::before {
  content: "-";
  font-size: 1em;
}

ul.links {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-top: 1em;
  margin-bottom: 3em;
  list-style-type: none;
}
ul.links li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
ul.links li::before {
  display: inline-block;
  content: "";
  width: 0.4em;
  height: 0.15em;
  border-top: 0.15em solid #654a43;
  border-bottom: 0.15em solid #444;
  background: #a9b3a8;
  border-radius: 0.1em;
}
@media (max-width: 480px) {
  ul.links {
    flex-direction: column;
    padding-left: 2em;
  }
}

button,
input[type=submit] {
  display: block;
  margin: 0 auto;
  padding: 10px 20px;
  border: 0;
  box-sizing: unset;
  font-weight: bold;
  color: #fff;
  background: #654a43;
  border-radius: 2px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.content-container {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  padding: 20px;
  transition: top 1000ms, opacity 250ms, transform 1000ms;
}

#wrapper {
  position: relative;
  perspective: 50em;
}

header {
  position: relative;
  margin-top: 50px;
  padding-bottom: 10px;
  z-index: 1;
  overflow: hidden;
}
header #headshot {
  position: relative;
  overflow: hidden;
  padding: 10px;
  max-width: 200px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  background: #fff;
  transform: rotateX(1deg);
}
header #headshot img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 2px;
}
header #headshot p {
  text-align: center;
  padding: 0;
  margin: 0;
}
header #background {
  position: absolute;
  top: 35%;
  left: -1em;
  right: -1em;
  height: 14px;
  border-top: 14px solid #654a43;
  border-bottom: 14px solid #444;
  background: #fff;
  z-index: 0;
  transition: right 1s, left 1s;
  transform: rotateZ(-1deg);
}
header #background.intro {
  left: 50%;
  right: 50%;
}

footer {
  color: #fff;
}
footer h1 {
  border-bottom-color: #fff;
}
footer a {
  color: #fff;
}

.stripe {
  position: relative;
  top: -2em;
  margin-bottom: -3em;
  height: 4.5em;
  width: 100%;
  overflow: hidden;
}
.stripe-content {
  position: absolute;
  top: 1em;
  left: -1em;
  right: -1em;
  height: 14px;
  border-top: 14px solid #654a43;
  border-bottom: 14px solid #444;
  background: #fff;
  transition: right 1s, left 1s;
  transform: rotateZ(-1deg);
  z-index: 0;
}

#main {
  position: relative;
  margin-top: -9em;
  padding-top: 10em;
  background: #fff;
}
#main > article {
  padding: 20px;
}
#main > article li > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#contact {
  display: none;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  background: #fff;
  border-radius: 2px;
  margin-top: 1.2em;
  width: 400px;
  margin: 0 auto;
}
#contact input,
#contact textarea,
#contact label {
  margin: 0;
  margin-bottom: 20px;
}
#contact input,
#contact textarea {
  width: 100%;
  border: 1px solid #444;
  border-radius: 2px;
  background: #fff;
}
#contact label {
  width: 64px;
  display: inline-block;
  margin-bottom: 0.6em;
}
#contact button {
  float: right;
  margin-left: 20px;
}
#contact button[type=cancel] {
  background-color: #fff;
  color: #654a43;
}

.credits {
  font-size: 0.75em;
}
.credits ul {
  list-style-type: none;
}
@media (min-width: 480px) {
  .credits ul {
    margin: 0;
    padding: 0;
    display: flex;
  }
}
.credits li {
  flex-grow: 1;
  margin-bottom: 1em;
}
.credits .label {
  color: #e4e7e4;
  display: block;
}