:root {
  --accent: #008bc5;
  --accent-hover: #0081b8;
  --text: #272626;
  --bg: #ffffff;
  --footer-bg: #999999;
  --container: 748px;

  --body-size: 15px;
  --body-lh: 1.6;
  --h1-size: 36px;
  --h1-lh: 1.2;
  --h2-size: 28px;
  --h2-lh: 1.3;
}

@media (min-width: 576px) {
  :root {
    --container: 992px;
    --body-size: 16px;
    --h1-size: 38px;
    --h2-size: 30px;
    --h2-lh: 1.2;
  }
}

@media (min-width: 960px) {
  :root {
    --container: 1170px;
    --body-lh: 1.7;
    --h1-size: 40px;
    --h1-lh: 1.1;
    --h2-size: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-lh);
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0 0 30px;
}

h1,
h2 {
  font-weight: 700;
  overflow-wrap: break-word;
}

.content h1,
.content h2 {
  hyphens: auto;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  z-index: 1000;
  padding: 10px 15px;
  background: var(--bg);
  color: var(--text);
}

.skip-link:focus {
  top: 10px;
}

/* Header */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img {
  width: 120px;
  height: auto;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 15px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--text);
}

@media (min-width: 960px) {
  .site-header .container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 999;
  width: 360px;
  max-width: 100%;
  padding: 8px 0 20px;
  background: var(--bg);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.79, 0.14, 0.15, 0.86), visibility 0.3s;
}

.mobile-menu .menu-close {
  display: block;
  margin: 0 10px 20px auto;
  padding: 6px 15px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu ul {
  margin: 0;
  padding: 0 15px;
  list-style: none;
}

.mobile-menu a {
  display: block;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--accent-hover);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s linear, visibility 0.3s;
}

.menu-open {
  overflow: hidden;
}

.menu-open .mobile-menu {
  transform: none;
  visibility: visible;
  transition-property: transform;
}

.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition-property: opacity;
}

@media (min-width: 960px) {
  .mobile-menu,
  .menu-overlay {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 430px;
  padding: 0 8px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero video,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero video {
  max-width: none;
  object-fit: cover;
}

.hero::before {
  content: "";
  z-index: 1;
  background: linear-gradient(135deg, #ffcb70 0%, #c751c0 50%, #4158d0 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 896px;
}

.hero h1 {
  font-size: 36px;
}

.hero .hero-title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: var(--h1-lh);
}

.hero .hero-tagline {
  font-size: 36px;
  hyphens: auto;
}

.content {
  padding-top: 36px;
}

.content--spaced {
  padding-top: 80px;
  padding-bottom: 80px;
}

.gap-lg {
  margin-bottom: 40px;
}

/* Quote */

.quote {
  margin: 0;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin-bottom: 40px;
  font-weight: 700;
}

.quote figcaption {
  margin-bottom: 40px;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: #fff;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  padding-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--accent);
}

@media (min-width: 960px) {
  .site-footer .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Scroll to top */

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 997;
  display: flex;
  padding: 8px 10px;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top svg {
  width: 16px;
  height: 16px;
}
