:root {
  --purple: #672250;
  --pale: #f9f6f0;
}

* {
  box-sizing: border-box;
}

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

body {
  background-color: var(--purple);
  color: var(--pale);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The lockup is nudged right to centre the eye; clip any overflow on very
     narrow screens rather than showing a horizontal scrollbar. */
  overflow-x: hidden;
}

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw 24px;
}

/* Full brand lockup (eye + wordmark + grapevine). Sized so the "cellarvision"
   wordmark lands at ~42% of the viewport width, matching the brand reference. */
.hero-art {
  width: clamp(320px, 51.7vw, 1009px);
  height: auto;
  display: block;
  /* Shift the whole lockup right by 7.2% of its width so the EYE's centre
     (not the artwork's bounding-box centre) lands on the screen's centre.
     The grapevine extends further right, making the bounding box right-heavy. */
  transform: translateX(7.2%);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Keep the 7.2% horizontal shift throughout the entry animation. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translate(7.2%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(7.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art {
    animation: none;
  }
}
