:root {
  --header-inset-y: 12px;
  --header-inset-x: 20px;
  --header-logo-height: 60px;
  --header-control-height: 35px;
  --header-z-index: 3500;
  --header-control-top: calc(
    var(--header-inset-y) +
      (var(--header-logo-height) - var(--header-control-height)) / 2
  );
  --control-bg: #220022;
  --control-bg-hover: #a27e96;
  --control-radius-pill: 999px;
  --control-radius-square: 12px;
  --control-gap: 12px;
  --control-border: 1px solid rgba(255, 255, 255, 0.27);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--control-bg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  min-height: calc(var(--header-inset-y) * 2 + var(--header-logo-height));
  padding: var(--header-inset-y) var(--header-inset-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--header-z-index);
}

.logo-link {
  width: var(--header-logo-height);
  height: var(--header-logo-height);
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-origin: center;
}

.logo-static,
.logo-animated {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-link.is-fading .logo-static,
.logo-link.is-fading .logo-animated {
  transition: opacity 0.35s ease;
}

.logo-animated {
  opacity: 0;
}

.logo-link.is-animated .logo-static {
  opacity: 0;
}

.logo-link.is-animated .logo-animated {
  opacity: 1;
}

.logo-link:hover .logo-wrap {
  transform: scale(1.1);
}

.controls {
  display: flex;
  align-items: center;
  gap: var(--control-gap);
  height: var(--header-control-height);
}

.lang-slot {
  width: 110px;
  height: 35px;
  flex-shrink: 0;
}

.hamburger-slot {
  width: 40px;
  height: 32px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  :root {
    --header-inset-y: 10px;
    --header-inset-x: 16px;
  }
}
