@font-face {
  font-family: 'Zakon';
  src: url('/assets/fonts/Zakon-Bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --edge: clamp(100px, 17.5vw, 176px);
  --half-edge: calc(var(--edge) / 2);
}

* {
  box-sizing: border-box;
}

html {
  background: #fff;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 24px 0;
  place-items: center;
  background: #fff;
  color: #062450;
}

.brand {
  display: flex;
  width: min(900px, 90vw);
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
}

.cube-stage {
  display: grid;
  width: calc(var(--edge) * 1.74);
  height: calc(var(--edge) * 1.74);
  flex: 0 0 auto;
  place-items: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.cube-stage:focus {
  outline: none;
}

.cube-stage:focus-visible {
  border-radius: 12px;
  outline: 2px solid #075bbd;
  outline-offset: 6px;
}

.cube-stage.is-dragging {
  cursor: grabbing;
}

.cube {
  position: relative;
  width: var(--edge);
  height: var(--edge);
  transform: rotateX(-30deg) rotateY(-45deg);
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: calc(var(--edge) * 0.014) solid #fff;
  background: #fff;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.face-front {
  transform: translateZ(var(--half-edge));
}

.face-right {
  transform: rotateY(90deg) translateZ(var(--half-edge));
}

.face-back {
  transform: rotateY(180deg) translateZ(var(--half-edge));
}

.face-left {
  transform: rotateY(-90deg) translateZ(var(--half-edge));
}

.face-top {
  transform: rotateX(90deg) translateZ(var(--half-edge));
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(var(--half-edge));
}

.wordmark {
  min-width: 0;
  flex: 1 1 0;
  margin: 0;
  container-type: inline-size;
}

.wordmark-text {
  display: block;
  font-family: 'Zakon', Arial, sans-serif;
  font-weight: 700;
  font-synthesis: none;
  line-height: 0.92;
}

.wordmark-line {
  display: block;
  font-size: 11.5cqw;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.wordmark-line + .wordmark-line {
  font-size: 13.5cqw;
  margin-top: 0.045em;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

.wordmark .wordmark-original {
  display: none;
}

[data-wordmark='original'] .wordmark-original {
  display: block;
}

[data-wordmark='original'] .wordmark-text {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo-switcher {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: #737373;
  font: 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.logo-switcher button {
  padding: 7px 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.logo-switcher button[aria-pressed='true'] {
  color: #525252;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.logo-switcher button:focus-visible {
  outline: 2px solid #737373;
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  :root {
    --edge: clamp(46px, 15.5vw, 99px);
  }

  .brand {
    gap: 8px;
  }
}

@media (max-height: 480px) and (min-width: 641px) {
  :root {
    --edge: clamp(100px, 20vh, 160px);
  }
}
