@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@700;800&display=swap");

:root {
  --bg: #d9dde0;
  --fg: #0f1115;
}

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

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Instrument Sans", "Inter", "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

.stub {
  width: min(900px, 100%);
  display: flex;
  justify-content: center;
  text-align: center;
}

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 20px);
  font-size: clamp(3rem, 8vw, 96px);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.emoji-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(84px, 15vw, 144px);
  height: clamp(84px, 15vw, 144px);
}

.emoji-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.emoji-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 7vw, 4.8rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.emoji-slot.is-fallback .emoji-fallback {
  opacity: 1;
}

.emoji-slot.is-fallback .emoji-image {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .emoji-fallback {
    transition: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px;
    overflow-x: hidden;
  }

  .stub {
    width: 100%;
    justify-content: center;
  }

  .brand {
    width: auto;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: clamp(1.58rem, 9.5vw, 2.7rem);
    line-height: 0.94;
    justify-content: center;
    white-space: nowrap;
    margin-inline: auto;
  }

  .emoji-slot {
    width: clamp(66px, 20vw, 92px);
    height: clamp(66px, 20vw, 92px);
    flex: 0 0 auto;
  }
}

@media (max-width: 400px) {
  body {
    padding: 14px;
  }

  .brand {
    gap: 6px;
    font-size: clamp(1.36rem, 9.2vw, 2rem);
  }

  .emoji-slot {
    width: clamp(58px, 19vw, 76px);
    height: clamp(58px, 19vw, 76px);
  }
}
