.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-plum-deep);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.brand:hover {
  color: var(--color-plum-deep);
}

.brand__dot {
  color: var(--color-magenta);
}

.brand--footer {
  margin: 0 0 var(--space-sm);
  color: #fff;
  font-size: 1.5rem;
}

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

.site-nav > ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-nav > ul a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav > ul a:hover,
.site-nav .is-active > a {
  color: var(--color-magenta);
}

.submenu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: var(--space-xs) 0 0 var(--space-md);
}

.submenu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-weight: 400;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow-wrap: break-word;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgb(58 8 53 / 6%);
}

.has-submenu:focus-within > .submenu,
.has-submenu:hover > .submenu {
  display: flex;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  background: var(--color-magenta);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}

.cta:hover {
  background: var(--color-plum);
  color: #fff;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-plum-deep);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: var(--color-surface);
  border-bottom: 1px solid rgb(58 8 53 / 10%);
}

body.nav-open .site-nav {
  display: block;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
  text-transform: capitalize;
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav > ul {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
  }

  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 12rem;
    max-width: min(18rem, calc(100vw - 2rem));
    max-height: calc(100dvh - var(--header-height) - 0.5rem);
    padding: var(--space-xs);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid rgb(58 8 53 / 10%);
    box-shadow: var(--shadow-header);
  }

  .has-submenu:hover > .submenu,
  .has-submenu:focus-within > .submenu {
    display: flex;
  }
}

@media (max-width: 63.99rem) {
  .site-nav {
    max-height: calc(100dvh - var(--header-height));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav .cta {
    margin-top: var(--space-sm);
  }

  .submenu {
    display: flex;
    max-width: 100%;
  }
}
