@media (max-width: 767.98px) {
  :root {
    --site-header-offset: 6.9rem;
  }

  body > .container {
    padding-top: .75rem;
  }

  .site-topbar {
    padding: .35rem 0 .45rem;
  }

  .site-topbar__inner {
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .5rem;
    min-height: auto;
    overflow: visible;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .site-topbar__brand {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    order: 1;
    text-align: left;
    white-space: nowrap;
    word-break: normal;
  }

  .site-topbar__account {
    flex: 1 1 0;
    margin-left: auto;
    max-width: calc(100% - 7.5rem);
    min-width: 0;
    order: 2;
  }

  .site-topbar__account .navbar-nav {
    justify-content: flex-end;
  }

  .site-topbar__account .nav-link,
  .site-topbar__account button.nav-link {
    border-radius: 999px;
    font-size: .82rem;
    line-height: 1.15;
    max-width: 9.5rem;
    overflow: hidden;
    padding: .35rem .5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-topbar__account .form-inline {
    margin: 0;
  }

  .site-topbar__links {
    flex: 0 0 100%;
    gap: .35rem;
    margin-top: .1rem;
    order: 3;
    overflow-x: auto;
    padding: .25rem 0 .3rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .site-topbar__links::-webkit-scrollbar {
    display: none;
  }

  .site-topbar__links .nav-link {
    background: #f7f8f5;
    border: 1px solid #dfe5dc;
    border-radius: 999px;
    color: #223426 !important;
    flex: 0 0 auto;
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.15;
    padding: .45rem .68rem;
    scroll-snap-align: start;
  }

  .site-topbar__links .nav-link.active {
    background: #24412d;
    border-color: #24412d;
    box-shadow: none;
    color: #fff !important;
  }

  .home-hero {
    min-height: clamp(250px, 66.67vw, 420px);
    padding: 1.6rem 1.25rem;
  }

  .home-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    margin-bottom: .7rem;
  }

  .swedish-joke-box {
    border-radius: 1rem 1rem 1rem .35rem;
    margin-top: .8rem;
    max-width: min(100%, 360px);
    padding: .65rem;
  }

  .swedish-joke-box strong {
    font-size: 1rem;
  }

  .swedish-joke-box p {
    font-size: .98rem;
    line-height: 1.25;
    margin: .35rem 0 0;
  }

  .back-to-top {
    align-items: center;
    bottom: .85rem;
    display: inline-flex;
    font-size: 0;
    height: 2.85rem;
    justify-content: center;
    min-width: 0;
    padding: 0;
    right: .85rem;
    width: 2.85rem;
  }

  .back-to-top::before {
    content: "\2191";
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
  }
}

@media (max-width: 360px) {
  :root {
    --site-header-offset: 7.15rem;
  }

  .site-topbar__account .nav-link,
  .site-topbar__account button.nav-link {
    font-size: .78rem;
    max-width: 7rem;
    padding-left: .42rem;
    padding-right: .42rem;
  }

  .site-topbar__links .nav-link {
    font-size: .82rem;
    padding: .4rem .58rem;
  }
}
