* {
  box-sizing: border-box;
}

:root {
  --background: #fff;
  --text-dark: #202124;
  --text-secondary: #555;
  --page-margin: 1.5rem;

  --button-border: #D9DCE1;
  --green: #3BB392;
  --max-width: 1300px;
  --image-border: 1px solid #ddd;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green);
  margin-top: 40px;
  text-transform: uppercase;
}
.section-title {
  font-size: 2.3rem;
  font-weight: 800;
}

/* Hero */

.hero {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  padding: 2em var(--page-margin);
  padding: var(--page-margin);
  max-width: var(--max-width);
  margin: auto;
}

.hero.homepage {
  min-height: 300px;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-top: 50px;
}

.hero h1 a {
  color: #fff;
  text-decoration: none;
}

.hero h1 a:hover {
  color: var(--green);
}

.hero h2 {
  color: var(--text-secondary);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 10px;
}

/* Nav */

.nav-container {
  background: var(--background);
}

.nav {
  display: flex;
  max-width: var(--max-width);
  margin: auto;
  justify-content: space-between;
  padding: var(--page-margin);
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

.nav h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.nav .nav-links ul li {
  display: inline-block;
  margin-left: 2em;
  line-height: 1.5rem;
  padding-top: 3px;
}

/* Shared styles */

a.button {
  border: solid 1.5px;
  border-radius: 50px;
  border-color: var(--button-border);
  color: var(--text-dark);
  padding: 12px 28px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  text-decoration: none;
}

.button:hover,
.button:focus,
.button:active {
  color: black;
  background-color: rgba(154, 160, 166, 0.1);
}

a.button svg {
  position: relative;
  top: 2px;
  margin-left: 3px;
}

.button:hover svg {
  fill: black;
}

/* Footer */

footer {
  padding: var(--page-margin);
  display: flex;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: auto;
}

footer p {
  padding: .25rem;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-icons {
  display: flex;
}
.footer-icons svg {
  width: 18px;
  fill: var(--text-secondary);
}

.footer-icons svg:hover {
  fill: var(--green);
}

.footer-icons li  {
  margin: 0 1rem;
}

@media only screen and (max-width: 600px) {
  .hero h1 {
    font-size: 3.3rem;
  }

  html {
    font-size: 14px;
  }
}
