/* HandmadeBy.me logo */
.hm-brand-link{display:inline-flex;align-items:center;text-decoration:none!important;line-height:0;width:200px;height:auto;max-width:38vw}
.hm-brand-logo{display:block;width:100%;aspect-ratio:1409 / 671;height:auto;background-image:url("../images/handmadeby-logo.png");background-repeat:no-repeat;background-position:left center;background-size:contain}
@media (max-width:781px){.hm-brand-link{width:158px;max-width:55vw}.hm-site-header{position:relative!important}}

@media (max-width:781px){
  .hm-desktop-navigation { display: none !important; }
  .hm-mobile-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #4a2468;
    cursor: pointer;
  }
  .hm-mobile-menu-toggle:hover,
  .hm-mobile-menu-toggle:focus-visible { background: #f3eaff; }
  .hm-mobile-menu {
    display: block;
    position: fixed;
    z-index: 100000;
    inset: 0;
  }
  .hm-mobile-menu[hidden] { display: none; }
  .hm-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(45,36,52,.36);
    opacity: 0;
    transition: opacity 260ms ease;
  }
  .hm-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(88vw,380px);
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.25rem 1.5rem 2rem;
    overflow-y: auto;
    background: #f3eaff;
    box-shadow: -18px 0 42px rgba(45,36,52,.18);
    transform: translateX(100%);
    transition: transform 260ms ease;
    will-change: transform;
  }
  .hm-mobile-menu.is-open .hm-mobile-menu__backdrop { opacity: 1; }
  .hm-mobile-menu.is-open .hm-mobile-menu__panel { transform: translateX(0); }
  .hm-mobile-menu__header {
    display: flex;
    min-height: 72px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
  .hm-mobile-menu__brand {
    display: block;
    width: 154px;
    flex: 0 0 154px;
    line-height: 0;
  }
  .hm-mobile-menu__brand span {
    display: block;
    width: 100%;
    aspect-ratio: 1409 / 671;
    background: url("../images/handmadeby-logo-mobile.png") left center / contain no-repeat;
  }
  .hm-mobile-menu__close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #4a2468;
    cursor: pointer;
  }
  .hm-mobile-menu__close:hover,
  .hm-mobile-menu__close:focus-visible { background: #e7d8f7; }
  .hm-mobile-menu__links {
    display: grid;
    gap: .5rem;
    margin: 3rem 0 0;
    padding: 0;
    list-style: none;
  }
  .hm-mobile-menu__links a {
    display: block;
    min-height: 48px;
    box-sizing: border-box;
    padding: .85rem 1rem;
    border-radius: 14px;
    color: #4a2468;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
  }
  .hm-mobile-menu__links a:hover,
  .hm-mobile-menu__links a:focus-visible {
    background: #ffffff;
    color: #4a2468;
  }
  body.hm-mobile-menu-is-open { overflow: hidden; }
}

@media (prefers-reduced-motion:reduce){
  .hm-mobile-menu__backdrop,
  .hm-mobile-menu__panel { transition: none; }
}

/* Footer accessibility: keep footer links visible on hover/focus. */
.has-aubergine-background-color a,
.has-aubergine-background-color .wp-block-navigation-item__content {
  color: #c6a6ef;
}
.has-aubergine-background-color a:hover,
.has-aubergine-background-color a:focus-visible,
.has-aubergine-background-color .wp-block-navigation-item__content:hover,
.has-aubergine-background-color .wp-block-navigation-item__content:focus-visible {
  color: #ffffff;
}
.has-aubergine-background-color .wp-block-site-title a:hover,
.has-aubergine-background-color .wp-block-site-title a:focus-visible {
  color: #ffffff;
}
