:root {
  --mobile-header-bg: rgba(247, 244, 238, 0.94);
  --mobile-surface: rgba(255, 255, 255, 0.94);
  --mobile-ink: #151615;
  --mobile-muted: #8d867c;
  --mobile-line: rgba(21, 22, 21, 0.12);
  --mobile-shadow: 0 24px 70px rgba(21, 22, 21, 0.18);
}

.mobile-menu-toggle,
.auth-user-chip,
.mobile-site-backdrop,
.mobile-site-drawer {
  display: none;
}

.logo-brand {
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(126px, 9vw, 158px);
  max-height: 34px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 90;
    grid-template-columns: minmax(0, 1fr) auto 44px;
    align-items: center;
    gap: 10px;
    min-height: calc(60px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0;
    color: var(--mobile-ink);
    background: var(--mobile-header-bg);
    border-bottom: 1px solid var(--mobile-line);
    backdrop-filter: blur(18px);
  }

  .header .brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    overflow: hidden;
    color: var(--mobile-ink);
    font-size: 16px;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .header .brand small {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .header .brand.logo-brand {
    gap: 8px;
    align-items: center;
  }

  .header .brand-logo {
    width: 124px;
    max-height: 28px;
    flex: 0 0 auto;
  }

  .header .nav,
  .header .actions {
    display: none;
  }

  .auth-user-chip.is-visible {
    grid-column: 2;
    grid-row: 1;
    display: inline-grid;
    place-items: center;
    justify-self: end;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 2px;
    border: 1px solid rgba(21, 22, 21, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--mobile-ink);
  }

  .auth-user-chip span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 999px;
    background: #eae6de;
    color: #a99d8d;
    font-size: 12px;
    font-weight: 900;
  }

  .auth-user-chip small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    grid-column: 3;
    grid-row: 1;
    place-items: center;
    justify-self: end;
    align-self: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--mobile-ink);
    background: transparent;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-menu-toggle span,
  .mobile-menu-toggle::before,
  .mobile-menu-toggle::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-toggle {
    grid-auto-rows: 2px;
    align-content: center;
    justify-items: center;
    gap: 3px;
  }

  .mobile-menu-toggle:active {
    transform: scale(0.97);
    opacity: 0.72;
  }

  .mobile-site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    display: block;
    background: rgba(21, 22, 21, 0.28);
    opacity: 1;
  }

  .mobile-site-backdrop[hidden] {
    display: none;
  }

  .mobile-site-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 99;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(86vw, 348px);
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
    color: var(--mobile-ink);
    background: var(--mobile-surface);
    border-left: 1px solid var(--mobile-line);
    box-shadow: var(--mobile-shadow);
    backdrop-filter: blur(18px);
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  body.mobile-menu-open .mobile-site-drawer {
    transform: translateX(0);
  }

  .mobile-site-drawer[hidden] {
    display: none;
  }

  .mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
  }

  .mobile-drawer-brand {
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    font-size: 18px;
    font-weight: 900;
  }

  .mobile-drawer-brand.logo-brand {
    align-items: center;
  }

  .mobile-drawer-brand .brand-logo {
    width: 136px;
    max-height: 30px;
  }

  .mobile-drawer-brand small {
    color: var(--mobile-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .mobile-drawer-close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--mobile-line);
    border-radius: 999px;
    color: var(--mobile-ink);
    background: var(--mobile-surface);
    font-size: 22px;
    line-height: 1;
  }

  .mobile-drawer-links {
    display: grid;
    align-content: start;
    gap: 10px;
    margin-top: 30px;
  }

  .mobile-drawer-links a,
  .mobile-drawer-links .button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--tap-target, 48px);
    padding: 0 16px;
    border: 1px solid var(--mobile-line);
    border-radius: 999px;
    color: var(--mobile-ink);
    background: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    font-weight: 850;
  }

  .mobile-drawer-links .button.dark,
  .mobile-drawer-links a.primary {
    border-color: var(--mobile-ink);
    color: #fff;
    background: var(--mobile-ink);
  }

  .mobile-drawer-secondary {
    display: grid;
    gap: 4px;
    align-content: start;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--mobile-line);
  }

  .mobile-drawer-secondary a {
    min-height: 36px;
    display: flex;
    align-items: center;
    color: var(--mobile-muted);
    font-size: 12px;
    font-weight: 820;
    line-height: 1.4;
  }

  .mobile-drawer-instagram {
    min-height: 42px;
    display: inline-flex;
    gap: 9px;
    align-items: center;
    width: fit-content;
    margin-top: 14px;
    padding: 0 13px;
    border: 1px solid var(--mobile-line);
    border-radius: 999px;
    color: var(--mobile-ink);
    background: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 880;
  }

  .mobile-drawer-instagram img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .mobile-drawer-foot {
    color: var(--mobile-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.7;
  }
}
