.menu-toggle {
  display: none;
}

@media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
  html {
    scroll-padding-top: 80px;
  }

  body {
    overflow-wrap: anywhere;
  }

  .hero small,
  .hero.small .crumb,
  .card p,
  footer {
    font-size: 1rem;
  }

  img, svg, video {
    max-width: 100%;
    height: auto;
  }

  iframe, embed, object {
    max-width: 100%;
  }

  header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
  }

  header .brand {
    justify-self: start;
  }

  header .brand svg {
    flex: none;
    width: clamp(36px, 12vw, 64px);
  }

  a, summary, .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  header nav a, .crumb a, .btn, footer a, .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  .menu-toggle:not([hidden]) {
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--w);
    color: var(--k);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-toggle::before {
    content: "";
    width: 16px;
    height: 12px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .menu-toggle[aria-expanded="true"] {
    background: var(--k);
    color: var(--w);
  }

  header nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  header nav a {
    margin: 0;
    font-size: 1rem;
  }

  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    inset: calc(100% + 3px) 0 auto;
    display: grid;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px;
    background: var(--w);
    box-shadow: 0 6px 16px rgb(0 0 0 / 15%);
  }

  .menu-toggle:not([hidden])[aria-expanded="false"] + nav {
    display: none;
  }

  .btn {
    justify-content: center;
  }

  .hero .btn {
    max-width: calc(100% - 12px);
  }

  .hero, .hero.small, section {
    padding-block: 44px;
  }

  .two, .foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  }
}
