/*! olivier-tille.de styles */
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: #444;
  color: #e4e4e4;
  font-family:
    "Helvetica Neue",
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
}

footer,
header {
  margin: 0.5em 1em;
}

header h1 span {
  display: block;
  font-size: 0.875em;
}

img {
  filter: blur(5px) sepia(30%);
  transition: filter 0.5s;
}

img:hover {
  filter: blur(0px) sepia(30%);
}

p {
  line-height: 1.8em;
}

a,
a:active,
a:focus,
a:hover,
a:visited,
button,
input,
textarea {
  border: none;
  color: #e00000;
  line-height: 1.7rem;
  text-decoration: none;
  background: #f5f5f5;
  padding: 0 0.5rem;
  display: inline-block;
  border-radius: 1rem 0 1rem 1rem;
}
a:hover,
a:focus,
button:hover,
button:focus,
input:hover,
input:focus,
textarea:hover,
textarea:focus {
  border-radius: 0 1rem 1rem;
}

a,
a:active,
a:focus,
a:hover,
a:visited {
  cursor: pointer;
  white-space: nowrap;
}

:target h2,
a:hover,
button {
  text-decoration: underline;
}

abbr {
  cursor: help;
}

nav a,
nav a:active,
nav a:focus,
nav a:hover,
nav a:visited {
  background-color: #e00000;
  border-radius: 0.5em;
  border: 0.125em solid #e00000;
  color: #fff;
  display: block;
  margin: 0.5em 1em;
  text-decoration: none;
  padding: 1em 1.25em;
  font-weight: 700;
  text-transform: uppercase;
}

nav a:hover {
  border-color: #fff;
}

section {
  margin: 2em 1em;
}

ol,
ul,
ul li {
  list-style: none;
}

ol li {
  margin: 0.5em;
  text-align: center;
}

ol li a,
ol li a:active,
ol li a:hover,
ol li a:visited {
  color: #eee;
}

ol li a img {
  display: block;
  margin: 0 auto 0.3125em;
}

ol li a.company {
  display: block;
  font-size: 0.8em;
  margin: 0 0 1.25em;
}

:target h2 {
  color: #fff;
}

#about-me div {
  background: #e00000;
  float: right;
  line-height: 0;
  margin: 0 1em 0.5em 0.5em;
  border-radius: 15em 0 15em 15em;
  border: 0.25em solid #e00000;
  overflow: hidden;
}

#about-me div:hover {
  border-radius: 0 15em 15em;
}

a,
a:hover,
button,
button:hover,
input,
input:hover,
textarea,
textarea:hover,
#about-me div,
#about-me div:hover {
  transition-duration: 0.5s;
  transition-property: border-radius;
}

label,
input,
textarea {
  display: inline-block;
  width: 200px;
}

#thanks {
  display: none;
  border: 1px solid #e00000;
  background: #fff;
  color: #444;
  padding-left: 1rem;
}

#thanks:target {
  display: block;
}

dl dd {
  padding: 1rem 0;
}

.grid {
  display: grid;
}

@media screen and (min-width: 38em) {
  nav ul li,
  ol li {
    display: inline-block;
  }

  nav ul li {
    width: 49%;
  }

  ol li {
    width: 47%;
  }

  .grid {
    grid-template-columns: 50% 50%;
  }

  dl.grid dt,
  dl.grid dd {
    padding: 0.2rem 0;
  }
}

@media screen and (min-width: 50em) {
  nav {
    float: right;
    width: 33%;
    max-width: 250px;
    overflow: auto;
  }

  nav ul li {
    width: 100%;
    display: block;
  }

  ol li {
    display: inline-block;
    width: 30%;
  }

  main {
    margin: 0 auto;
    max-width: 950px;
  }
}
