.site-header {
  background: var(--surface);
  backdrop-filter: none;
  box-shadow: 0 12px 34px rgba(29, 29, 31, 0.04);
}

.site-footer {
  max-width: none;
  margin: 0;
  padding: 52px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 72px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-pencil {
  right: 330px;
  top: 328px;
  width: 258px;
  transform: rotate(-38deg);
}

.tool-feature-card {
  width: calc(100% - clamp(48px, 8vw, 150px));
}

.small-housing .section-heading h2 {
  margin-bottom: 28px;
}

.small-housing .reading-copy p:not(.eyebrow) {
  margin-bottom: 28px;
}

.small-housing .reading-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .top-nav {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav .nav-links {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 8px);
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 22px 55px rgba(29, 29, 31, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .top-nav .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .top-nav .nav-links a {
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .top-nav .nav-links a:hover,
  .top-nav .nav-links a:focus-visible {
    background: var(--bg);
  }

  .tool-feature-card {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .hero-pencil {
    right: 176px;
    top: 190px;
    width: 164px;
    transform: rotate(-36deg);
  }
}

@media (max-width: 640px) {
  .top-nav {
    min-height: 58px;
    padding-block: 8px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .top-nav .nav-links {
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    font-size: 15px;
  }

  .hero-pencil {
    right: 124px;
    top: 206px;
    width: 116px;
    transform: rotate(-24deg);
  }

  .tool-feature-card {
    width: auto;
    margin-inline: 16px;
  }
}

@media (max-width: 380px) {
  .brand {
    overflow-wrap: normal;
  }

  .hero-pencil {
    right: 150px;
    top: 204px;
    width: 96px;
    height: 30px;
    transform: rotate(-22deg);
  }

  .tool-feature-card {
    margin-inline: 14px;
  }
}
