:root {
  --background: #f8f8f5;
  --text: #111111;
  --muted: #666666;
  --accent: #6f8f72;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

p,
h1 {
  margin: 0;
}

.greenhouse {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
}

.greenhouse__content {
  display: grid;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(0.75rem);
  animation: reveal 1200ms ease forwards;
}

.label {
  margin-bottom: clamp(1.2rem, 2.8vw, 2rem);
  color: var(--muted);
  font-size: clamp(0.86rem, 1.15vw, 1rem);
}

h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 450;
  line-height: 0.9;
}

.line {
  margin-top: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.growth-line {
  width: 1px;
  height: clamp(2.8rem, 6vw, 4.5rem);
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  animation: grow-line 1800ms ease 650ms forwards;
}

.greenhouse__footer {
  position: absolute;
  right: 0;
  bottom: clamp(1.4rem, 3vw, 2.4rem);
  left: 0;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  opacity: 0;
  animation: reveal-footer 900ms ease 900ms forwards;
}

.greenhouse__footer span {
  color: var(--accent);
  font-size: 1rem;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-footer {
  to {
    opacity: 1;
  }
}

@keyframes grow-line {
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 640px) {
  .greenhouse {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
