/* © 2015 - 2018 Caret.io Ltd.
   ------------------------------ */

:root {
  background: hsl(0, 0%, 97%); /* inspired by Apple */
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  height: 100%;
  letter-spacing: .1px;
  text-align: center;
}

/* extended in banner.css */
a {
  color: inherit;
  text-decoration: none;
  background: hsl(0, 0%, 92%);
}

body {
  font-size: .85em; /* inspired by Apple */
  line-height: 1.6em; /* inspired by Apple */
  height: 100%;
  width: 100%;
}

code {
  background: #eee;
  border-radius: 3px;
  border: 1px solid #ddd;
  color: #555;
  font-family: "Roboto Mono", monospace;
  font-size: .8em;
  line-height: 0;
  padding: .2em .4em;
  white-space: nowrap;
}

h1, h2, h3, h4 {
  line-height: 1.6em; /* same as body */
}

h1 {
  font-size: 4em;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

h2 {
  font-size: 2em;
  margin-top: 7rem;
  margin-bottom: 1rem;
}

h1 + h2 {
  margin-top: -2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.6em;
  margin-top: 1rem;
  margin-bottom: 0;
}

h4 {
  font-size: 1em;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 0;
}

input {
  background: #333;
  border: none;
  color: #fff;
  border-radius: .3rem;
  padding: 1rem; /* same as button */
  outline: none;
}

input::placeholder {
  color: #bbb;
}

kbd {
  background: #fff;
  border: 1px solid #999;
  border-bottom: 2px solid #999;
  border-radius: 3px;
  font-family: inherit;
  font-size: .8em;
  line-height: 0;
  padding: .1em .4em .05em;
  text-transform: capitalize;
  white-space: nowrap;
}

p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* article
   ------------------------------ */

article {
  margin: 0 auto;
  text-align: left;
  width: 30rem;
}

article > img {
  border-radius: .3rem;
  margin: 1rem -8rem;
  width: 46rem;
}

article > p {
  margin: 1rem 0;
}

article > p img {
  width: 100%;
}

article > pre {
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: .3rem;
  box-sizing: border-box;
  margin: 2rem 0;
  padding: 2rem 2.5rem;
  overflow: scroll;
}

article > pre > code {
  background: none;
  border: none;
  white-space: pre-wrap;
}

article > ul {
  list-style: square;
  margin: 1rem 0;
  padding: 0 2rem;
}

/* footer
   ------------------------------ */

footer {
  margin: 11rem auto 3rem;
  width: 46rem;
}

footer a {
  font-weight: normal;
  color: #555;
  text-decoration: none;
}

.nav {
  display: flex;
  margin: 0 -1rem;
}

.nav-list {
  margin: 0 1rem;
  width: 100%;
}

.nav-item {
  text-transform: lowercase;
}

/* header
   ------------------------------ */

.breadcrumb {
  position: fixed;
  margin: 1rem 1.5rem;
  text-align: left;
  top: 0;
}

/* grid
   ------------------------------ */

.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem -9rem;
  width: 48rem;

  list-style: none;
  padding: 0;
}

.grid .cell {
  margin: 1rem;
  text-align: center;
  width: 14rem;
}

/* other
   ------------------------------ */

.intro {
  width: 30rem;
  font-size: 1.25em;
  line-height: 1.6em;
  margin: -2rem auto 1rem;
}

.button {
  background: #333;
  border: none;
  border-radius: .3rem;
  color: #fff;
  display: inline-block;
  font-weight: normal;
  padding: 1rem 2rem;
  text-decoration: none;
}

.button-section {
  margin: 2rem 0;
}

.button-section .button {
  margin-bottom: 1rem;
}

.button-section p a {
  text-decoration: none;
}

.copyright {
  background: #333;
  color: #fff;
  display: inline-block;
  margin-top: 3rem;
  padding: 0 5px;
}

/* slides
   ------------------------------ */

.slides {
  margin: 2rem -8rem;
}

.slides img {
  cursor: pointer;
  vertical-align: middle;
  width: 46rem;
}

.slides :not(.active) {
  display: none;
}

.tabs {
  margin-top: 1rem;
}

.tabs .active {
  border-bottom: 2px solid;
  padding-bottom: .5rem;
}
