:root {
  --text: #7e7e7e;
  --heading: #525252;
  --max: 1100px;
  --header-h: 132px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.5 "Open Sans", sans-serif;
  color: #333;
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: Roboto, sans-serif; font-weight: 700; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-stuck {
  background: #f4f4f4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), 90%);
  min-height: var(--header-h);
  margin: 0 auto;
}
.logo img { display: block; width: auto; height: 84px; transition: height .3s; }
.is-stuck .logo img { height: 60px; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: #555; }

.menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 5% 16px;
  list-style: none;
  background: #f4f4f4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
}
.menu.is-open { display: block; }
.menu a {
  display: block;
  padding: 10px 0;
  color: #555;
  font: 600 14px Helvetica, Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .menu {
    display: flex;
    position: static;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .menu a { padding: 0 18px; line-height: 35px; }
  .is-stuck .menu a { color: #6f8188; }
  .is-stuck .menu li:last-child a { border-radius: 5px; background: #000; color: #fff; }
}

/* Intro */
main { width: min(var(--max), 90%); margin: 0 auto; }

h1 {
  position: relative;
  margin: 36px 0 73px;
  padding-bottom: 10px;
  color: #000;
  font-size: 26px;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}
h1::after {
  content: "";
  display: block;
  width: 59px;
  height: 3px;
  margin: 12px auto 0;
  background: #000;
}
@media (min-width: 480px) { h1 { margin-top: 48px; font-size: 36px; } }

h2 { color: var(--heading); font-size: 28px; line-height: 1.2; text-align: center; }
.intro h2 { margin-bottom: 14px; }

.video { position: relative; aspect-ratio: 16 / 9; }
.wistia_embed { position: absolute; inset: 0; }

.lead {
  max-width: 70%;
  margin: 28px auto 50px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.675;
  text-align: center;
}
@media (max-width: 600px) { .lead { max-width: none; font-size: 16px; } }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 70px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 840px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature > * {
  display: block;
  max-width: 270px;
  margin: 0 auto;
  color: var(--text);
  text-align: center;
  text-decoration: none;
}
.feature .icon {
  display: block;
  width: 163px;
  height: 163px;
  margin: 0 auto 37px;
  border-radius: 50%;
  background: #fbfbfb;
  box-shadow: 0 10px 10px rgba(0, 0, 0, .1);
  fill: #000;
  transition: background-color .3s, fill .3s;
}
.feature:hover .icon { background: #000; fill: #fff; }
.feature h3 { margin-bottom: 14px; color: #545454; font-size: 1.285em; }
.feature p { margin: 0; }

/* Getting started */
.getting-started { margin-top: 110px; }
.getting-started h2 { margin-bottom: 26px; }

pre {
  width: 92%;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background: #555;
  color: #fff;
  font: 21px/1.65 Monaco, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: break-word;
}
@media (max-width: 600px) { pre { width: 100%; font-size: 15px; } }

/* Newsletter (currently hidden in the HTML) */
.newsletter { margin-top: 110px; text-align: center; }
.newsletter h2 { margin-bottom: 14px; }
.newsletter form { width: 300px; margin: 0 auto; }
.newsletter label { display: block; text-align: left; }
.newsletter input { width: 100%; }
.newsletter input[type="submit"] {
  margin-top: 20px;
  padding: 8px;
  border: 1px solid #3d8b3d;
  background: #5cb85c;
  color: #fff;
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 90px;
  padding-top: 32px;
  background: #f4f4f4;
  color: #a7a6a4;
  text-align: center;
}
.site-footer h2 {
  padding: 60px 0 25px;
  color: #a7a6a4;
  font-size: 16px;
  font-weight: 400;
}
.github {
  display: inline-block;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 30px;
  background: url("../images/github.svg") no-repeat;
  overflow: hidden;
  text-indent: -3000em;
}
.github:hover { background-image: url("../images/github-hover.svg"); background-color: #000; }

.legal { margin-top: 26px; padding: 16px 5%; background: #e6e6e6; color: #666; font-size: 14px; }
.legal p { max-width: var(--max); margin: 0 auto; }
.legal a { box-shadow: inset 0 -1px 0 #000; text-decoration: none; }
