/* Site shell: header, navigation, mobile menu, and footer. */
.site-header {
  position: sticky;
  top: 0;
  padding: 15px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-family: "Julius Sans One", sans-serif;
  font-weight: 550;
  font-size: 32px;
  line-height: 1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
}

.mod-date {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 2.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  background: #fff;
}

.mobile-menu.open {
  display: grid;
  gap: 14px;
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
}

.mobile-menu a {
  color: var(--ink-soft);
  font-weight: 750;
  padding: 7px 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-logo {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-family: "Julius Sans One", sans-serif;
  font-weight: 550;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Mobile header refinement: the desktop language switcher is hidden because
   the same language menu is already available inside .mobile-menu. */
@media (max-width: 940px) {
  .site-header {
    padding: 0;
  }

  .site-header .nav {
    min-height: 72px;
    gap: 12px;
  }

  .site-header .nav > .language-switcher {
    display: none;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img {
    width: 48px;
    height: auto;
    max-width: 48px;
    flex: 0 0 auto;
  }

  .brand > div {
    min-width: 0;
  }

  .brand-name,
  .brand-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-button {
    flex: 0 0 44px;
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .site-header .nav {
    min-height: 64px;
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 42px;
    max-width: 42px;
  }

  .brand-name {
    font-size: 28px;
  }

  .mobile-menu {
    padding: 14px 18px 20px;
  }
}

@media (max-width: 360px) {
  .brand img {
    width: 38px;
    max-width: 38px;
  }

  .brand-name {
    font-size: 26px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
}
