* {
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --color-primary: #555;
  --color-primary-lighter: #333;
  --color-primary-lightest: #cc9999;
  --color-green: hsl(153, 90%, 30%);
  --color-orange: hsl(18, 100%, 50%);
  --color-red: #daa;
  --color-blue: hsl(198, 90%, 40%);
  --color-black: #eee;
  --color-white: #FFF;
}

/* Primary Elements */
html {
  height: 100%;
  font-size: .75rem;
}

body {
  background: var(--color-primary);
  color: var(--color-black);
  font: 300 1.25rem/1.875rem "Metropolis", sans-serif;
  font-synthesis: none;
  -moz-hanging-punctuation: first last allow-end;
  -ms-hanging-punctuation: first last allow-end;
  -webkit-hanging-punctuation: first last allow-end;
  hanging-punctuation: first last allow-end;
  min-height: 100%;
  padding: 1.5rem 0;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

header,
section {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 47rem;
  padding: 1.5rem;
}

header a:hover {
  text-decoration: none;
  color: #fff;
}

ul,
ol {
  list-style-position: outside;
  margin: 1.5rem 0 1.5rem 1.5rem;
}

[dir="rtl"] ul,
[dir="rtl"] ol {
  margin: 1.5rem 1.5rem 1.5rem 0;
}

li {
  margin-bottom: .375rem;
}

header {
  color: 009900;
}

footer {
  font-size: .875rem;
  text-align: center;
  padding: 1.5rem;
}

footer p {
  text-align: center;
}

blockquote {
  border-left: .25rem solid var(--color-primary);
  padding-left: 1.25rem;
}

pre {
  padding-left: 1.5rem;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th {
  font-size: inherit;
  font-weight: 500;
  padding: 0 1.5rem .75rem 0;
  text-align: left;
}

td,
th {
  vertical-align: initial;
  white-space: nowrap;
}

/* Headers */
h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .125rem;
  line-height: 3rem;
  margin: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 3rem;
  margin: 1.5rem 0;
}

* + h2 {
  margin-top: 3rem;
}

h4 {
  font-weight: normal;
}

p {
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin: 1.5rem 0;
}

/* Inline Elements */
a {
  color: var(--color-red);
  font-weight: 500;
  text-decoration: none;
  transition: color 125ms, background-color 125ms;
}

a:focus,
a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

a span {
  color: var(--color-black);
  font-weight: 300;
}

strong {
  font-weight: 400;
}

code,
kbd {
  font-family: "Metropolis", monospace;
  letter-spacing: .0625rem;
}

cite {
  font-style: italic;
}

cite::before {
  content: "— ";
}

abbr {
  text-decoration: none;
}

#veil {
  background: var(--primary-color);
}

/* Utility Classes */
.logo {
  display: inline-block;
  height: 2.625rem;
  margin-top: .75rem;
  vertical-align: -.8125rem;
  width: 2.625rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 10rem;
}

.error,
.important {
  color: var(--color-red);
  font-weight: 600;
}

.data-list {
  list-style: none;
  -moz-column-count: 1;
  -ms-column-count: 1;
  -webkit-column-count: 1;
  column-count: 1;
  -moz-column-fill: balance;
  -ms-column-fill: balance;
  -webkit-column-fill: balance;
  column-fill: balance;
  margin-left: 0;
}

.data-list li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.translations dt { display: none; }

.icon {
  background: var(--color-primary);
  border-radius: .25rem;
  color: var(--color-white);
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1em;
  margin-right: .125rem;
  padding: .25rem .25rem .25rem .375rem;
  text-transform: uppercase;
}

.icon-md {
  background: var(--color-green);
}

.icon-txt {
  background: var(--color-orange);
}

.icon-adoc {
  background: var(--color-blue);
}

.icon:hover {
  background-color: var(--color-primary-lighter);
  color: var(--color-white);
}

.formats {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .125rem;
  line-height: .625rem;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.formats > * {
  display: inline-block;
}

header figure {
  line-height: 3rem;
  margin-bottom: 1.5rem;
}

header figcaption {
  display: inline-block;
  font-size: 1.625rem;
  font-weight: 500;
}

header nav ul {
  list-style-type: none;
  margin: 0;
}

header nav li {
  margin: 1.5rem;
}

header nav li:first-child {
  display: none;
}

header a {
  color: #fff;
  font-weight: 500;
}

header a:focus,
header a:hover {
  color: var(--color-primary-lightest);
}

@media (min-width: 300px) {
  body {
    border-top: 35rem solid #333;
    border-left: none;
  }

  header nav li:first-child {
    display: initial;
  }

  header {
    position: absolute;
    top: 3rem;
    left: 1rem;
    text-align: center;
    width: 100%;
  }

  header figcaption {
    font-size: 2rem;
  }

  .logo {
    height: 3rem;
    width: 3rem;
  }
}

@media (min-width: 640px) {
  html {
    font-size: 1rem;
  }

  body {
    padding: 1.5rem;
    border-top: none;
    border-left: 20rem solid var(--color-primary-lighter);
  }

  header {
    position: absolute;
    top: 3rem;
    left: 0rem;
    width: 20rem;
  }

  #veil {
    border-radius: .25rem;
  }

  .data-list {
    -moz-column-count: 2;
    -ms-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}

@media (min-width: 1000px) {
  html {
    font-size: 1rem;
  }

  body {
    padding: 1.5rem;
    border-top: none;
    border-left: 30rem solid var(--color-primary-lighter);
  }

  header {
    position: absolute;
    top: 3rem;
    left: 0rem;
    width: 30rem;
  }
}
