/* Furrow: what the manifesto and the two product pages share. Each opens on the night sky of
   the search page (sky.js): its title among the first stars and, under it, one thing with the
   sun going down behind its upper edge. They are built from the landing page's pieces
   (landing.css) and load that file too; what each has of its own is in its own stylesheet. */

.sky-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(148px, 21svh, 228px);
  text-align: center;
}

/* The sky is the whole of the first screen's box, so it is as wide as the page and no wider. */
.sky-hero > canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
}

.sky-hero h1 {
  max-width: 11em;
  margin-inline: auto;
  font: 400 clamp(52px, 7.6vw, 116px) / 0.94 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sky-hero h1 em {
  font-style: italic;
  letter-spacing: -0.01em;
}

.sky-hero .lede {
  max-width: 35em;
  margin: 28px auto 0;
  text-wrap: pretty;
}

.sky-hero .actions {
  justify-content: center;
  margin-top: 32px;
}

/* What the sun goes down behind: `data-sky-edge` marks it, and page.js puts the sun on the
   middle of its upper edge. */
.sky-hero [data-sky-edge] {
  position: relative;
  margin-top: clamp(96px, 11vw, 140px);
  text-align: left;
}

/* A plain link in running text or under a figure. */
.text-link {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: #fff;
}

/* What is real today, said next to what is planned: a small mark and a plain line. */
.today {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  max-width: 40em;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.today .label {
  color: var(--ember);
}

@media (max-width: 720px) {
  .sky-hero {
    padding-top: 124px;
  }

  .sky-hero h1 {
    font-size: clamp(44px, 13.4vw, 60px);
  }

  .sky-hero [data-sky-edge] {
    margin-top: 84px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* The first screen comes in from the top down, and the sun rises into place behind it. */
  .sky-hero > canvas {
    animation: sky-rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }

  .sky-hero .eyebrow,
  .sky-hero h1,
  .sky-hero .lede,
  .sky-hero .actions,
  .sky-hero [data-sky-edge] {
    animation: arrive 0.6s var(--ease) backwards;
  }

  .sky-hero h1 {
    animation-delay: 0.05s;
  }

  .sky-hero .lede {
    animation-delay: 0.12s;
  }

  .sky-hero .actions {
    animation-delay: 0.18s;
  }

  .sky-hero [data-sky-edge] {
    animation-delay: 0.24s;
  }
}

@keyframes sky-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
