:root {
  --night: #0c0a26;
  --brand-light: #646fe5;
  --brand-mid: #5748c7;
  --brand-deep: #532ba5;
  --text: #f4f3ff;
  --text-soft: #c3c0e6;
  --highlight: #a9b1ff;
}

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

html {
  background: var(--night);
}

body {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(2rem, 7vw, 7rem);
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(60rem 42rem at 88% 112%, rgba(87, 72, 199, 0.38), transparent 70%),
    radial-gradient(38rem 28rem at -6% -8%, rgba(100, 111, 229, 0.14), transparent 70%),
    var(--night);
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
}

main {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.logo {
  display: block;
  width: min(15rem, 62vw);
  height: auto;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--highlight);
}

p {
  max-width: 32rem;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

/* The three bars of the logo, read as the columns of a board. */
.columns {
  position: fixed;
  right: clamp(1.5rem, 6vw, 6rem);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  width: min(32vw, 30rem);
  height: 80vh;
  pointer-events: none;
}

.columns i {
  flex: 1;
  border-radius: 1.5rem 1.5rem 0 0;
  background: linear-gradient(180deg, rgba(100, 111, 229, 0.6), rgba(83, 43, 165, 0.1));
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.columns i:nth-child(1) {
  height: 60%;
  animation-delay: 0.05s;
}

.columns i:nth-child(2) {
  height: 100%;
  animation-delay: 0.15s;
}

.columns i:nth-child(3) {
  height: 78%;
  animation-delay: 0.25s;
}

@keyframes rise {
  from {
    transform: translateY(100%);
  }

  to {
    transform: none;
  }
}

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

/* No room beside the text, so the columns stand in their own strip below it. */
@media (max-width: 860px) {
  body {
    align-items: start;
    padding-bottom: 30vh;
  }

  .columns {
    right: 2rem;
    width: calc(100% - 4rem);
    height: 24vh;
  }
}
