:root {
  color-scheme: dark;
  --bg: #35170d;
  --bg-deep: #210b05;
  --cream: #f7ead8;
  --gold-x: 50%;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(128, 67, 39, 0.42), transparent 38rem),
    linear-gradient(145deg, var(--bg), var(--bg-deep));
  color: var(--cream);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 420px;
}

#chocolate-scene {
  display: block;
  width: 100%;
  height: 100%;
}

.brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

h1 {
  margin: 0;
  color: #d8a84f;
  background:
    linear-gradient(
      100deg,
      transparent calc(var(--gold-x) - 16%),
      rgba(255, 248, 205, 0.85) calc(var(--gold-x) - 4%),
      rgba(255, 230, 140, 0.55) var(--gold-x),
      transparent calc(var(--gold-x) + 16%)
    ),
    linear-gradient(180deg, #fff0b8 0%, #d8a84f 46%, #9d6820 100%);
  background-blend-mode: screen, normal;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.25rem, 7vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
  -webkit-text-fill-color: transparent;
  pointer-events: auto;
  user-select: text;
  text-shadow:
    0 1px 0 rgba(255, 239, 186, 0.28),
    0 4px 12px rgba(74, 31, 3, 0.38),
    0 22px 54px rgba(0, 0, 0, 0.46),
    0 0 38px rgba(216, 168, 79, 0.2);
}

@media (max-width: 640px) {
  .stage {
    min-height: 520px;
  }

  .brand {
    inset: 0;
  }
}
