/* Pixeljolly temporary page. Brand kit: Jolly Yellow #FFB81C, Pixel Black #161616,
   Cream #FAF6EE, Amber #C98A00 (small text only). Font: Baloo 2 (SIL OFL). */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/baloo2-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FAF6EE;
  --black: #161616;
  --yellow: #FFB81C;
  --bg: var(--cream);
  --fg: var(--black);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--black);
    --fg: var(--cream);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Baloo 2", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 2vmin, 1.25rem);
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

.logo {
  margin: 0;
  line-height: 0;
}

/* The SVG already includes the brand clear space (1/4 of the cube height).
   Width follows the viewport, but stays within the screen height on short
   landscape phones and never goes below the 120 px lockup minimum. */
.logo img {
  display: block;
  width: min(78vw, 32rem, 62vh * 1.1035);
  width: min(78vw, 32rem, 62svh * 1.1035);
  min-width: 120px;
  height: auto;
}

.tagline {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.6rem, 1rem + 3.6vmin, 3.25rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: no-preference) {
  .logo img {
    animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .tagline {
    animation: rise 700ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
