body header button.menu[aria-controls]:has(> .menu-bars) {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
}

body header button.menu > .menu-bars {
  display: inline-grid;
  gap: 5px;
  width: 24px;
  vertical-align: middle;
  height: auto;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

body header button.menu .menu-bars > span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0;
  box-shadow: none;
  background: currentColor;
  border-radius: 2px;
}

header button[aria-expanded="true"] .menu-bars > span:first-child { transform: translateY(7px) rotate(45deg); }
header button[aria-expanded="true"] .menu-bars > span:nth-child(2) { visibility: hidden; }
header button[aria-expanded="true"] .menu-bars > span:last-child { transform: translateY(-7px) rotate(-45deg); }
header button.menu:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 600px) {
  html:has(.green-header #nav.open) {
    overflow: hidden;
  }

  body .green-header {
    --mobile-header-height: 102px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  body .green-header .head {
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    gap: 0;
    padding: 4px 20px 2px;
  }

  body .green-header .brand img {
    width: 100px;
    height: 52px;
    object-fit: contain;
  }

  body .green-header #menu-toggle {
    flex: 0 0 44px;
  }

  body .green-header #menu-toggle .menu-bars,
  body .green-header #menu-toggle .menu-bars > span {
    width: 22px;
  }

  .green-header #nav.open {
    position: absolute;
    inset: 100% 0 auto;
    height: calc(100dvh - var(--mobile-header-height));
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--slate, #394758);
    padding: clamp(16px, 6dvh, 56px) 20px max(24px, env(safe-area-inset-bottom));
    text-align: center;
  }

  .green-header #nav.open > a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    font-size: clamp(21px, 5.6vw, 28px);
    font-weight: 700;
    margin-inline: 0;
  }

  .green-header #nav.open > a.button {
    min-height: 46px;
    margin-top: 20px;
    font-size: 14px;
  }

  body > .skip { z-index: 11; }
  main [id] { scroll-margin-top: 112px; }

  main .hero.primary {
    min-height: calc(100svh - 102px);
  }

  main .hero.primary .wrap {
    padding-block: 48px 36px;
  }

  main .hero.primary h1 {
    font-size: clamp(28px, 7.8vw, 42px);
    margin-bottom: 14px;
  }

  main .hero.primary p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  #about.split figure img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
  }

  #interests.soft {
    background: var(--slate, #394758);
    color: #fff;
  }

  #interests.soft p {
    color: #fff;
  }
}
