body > .frame {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #050505ee;
}

main {
  flex: 1;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #050505f2;
  backdrop-filter: blur(6px);
}

.bar img {
  display: block;
  height: 22px;
  width: auto;
}

/* Recolour the logo PNG to --hot on hover by using it as a mask */
.logo {
  position: relative;
  display: block;
}

.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hot);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.logo img {
  transition: opacity 0.2s ease;
}

/* Without mask support the overlay would be a solid box, so keep the white logo */
@supports (-webkit-mask: none) {
  .logo:hover::after,
  .logo:focus-visible::after {
    opacity: 1;
  }

  .logo:hover img,
  .logo:focus-visible img {
    opacity: 0;
  }
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bar nav a {
  padding: 6px 10px;
  border: 1px solid transparent;
  text-transform: uppercase;
  font-size: 12px;
}

.bar nav a:hover,
.bar nav a[aria-current='page'] {
  border-color: var(--hot);
  color: var(--hot);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.lang a {
  padding: 4px 6px;
  color: var(--dim);
  border: 1px solid transparent;
}

.lang a + a {
  border-left-color: var(--line);
}

.lang a:hover {
  color: var(--hot);
}

.lang a[aria-current='true'] {
  color: var(--text);
}

.status b {
  color: var(--ok);
  font-weight: 400;
}

.blink {
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
}

footer a:hover,
footer button:hover {
  color: var(--hot);
}

footer button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 720px) {
  .bar {
    position: static;
  }

  .status {
    display: none;
  }

  /* Language switcher next to the logo, navigation on its own row below */
  .bar nav:not(.lang) {
    order: 2;
    flex-basis: 100%;
  }
}
