:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5deb3;
  color: #24211d;
  -webkit-user-select: none;
  user-select: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
}

main {
  position: relative;
  z-index: 1000000000;
  width: 100%;
  max-width: 70rem;
  text-align: center;
}

h1 {
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  font-size: clamp(1rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.answer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(22rem, 40vw, 28rem);
}

#message {
  align-self: center;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: break-word;
  text-wrap: balance;
}

#subtitle {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

#message.birthday-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 100%;
}

.birthday-emoji {
  font-size: 0.8em;
}

.birthday-text {
  display: flex;
  justify-content: center;
  gap: 0.25em;
}

@media (max-width: 40rem) {
  .birthday-text {
    flex-direction: column;
    gap: 0;
  }

  .birthday-emoji {
    font-size: 1.25em;
  }
}
