/**
 * @file site.css
 * @brief The waiting page of newgenesis.ai: Beige identity (light ground, ink, sand), Satoshi served
 *        from this site, the Firmament's two modules meeting on the horizon, drawn text links.
 *        Transform and opacity only; still with reduced motion.
 * @author NewGenesis, web and motion design agency (https://newgenesis.ai)
 */

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi_variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ground: #f6f3ee;
  --ink: #1d1914;
  --muted: #6b6157;
  --sand: #d6c4a3;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  margin: 0;
  padding: env(safe-area-inset-top, 0) 1.25rem env(safe-area-inset-bottom, 0);
  background: var(--ground);
  color: var(--ink);
  font-family: 'Satoshi', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  padding: 4rem 0 2rem;
  text-align: center;
}

.logo {
  width: clamp(9rem, 22vw, 12.5rem);
  height: auto;
  overflow: visible;
}

.logo path {
  transform-box: fill-box;
  animation: settle 1.6s var(--ease) both;
}

.logo .sky {
  --from: translateY(-14%);
}

.logo .earth {
  --from: translateY(14%);
  animation-delay: 0.08s;
}

.logo .word {
  --from: translateY(30%);
  animation-delay: 0.45s;
}

h1 {
  max-width: 18ch;
  margin: 0.6rem 0 0;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 span,
h1 em {
  display: inline-block;
  animation: settle 1.2s var(--ease) both;
  --from: translateY(0.5em);
}

h1 span {
  animation-delay: 0.7s;
}

h1 em {
  color: var(--muted);
  font-style: normal;
  animation-delay: 0.85s;
}

.lead {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.6;
  animation: settle 1.2s var(--ease) 1s both;
  --from: translateY(0.6rem);
}

.links {
  display: flex;
  gap: 1.8rem;
  margin-top: 0.4rem;
  animation: settle 1.2s var(--ease) 1.15s both;
  --from: translateY(0.6rem);
}

/* The line draws from the left on hover and leaves to the right (founder, 2026-10-14). */
.links a {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.links a::before,
.links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: '';
}

.links a::before {
  opacity: 0.25;
}

.links a::after {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.6s var(--ease);
}

.links a:hover::after,
.links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.links a:focus-visible {
  outline: 2px solid #7a5f38;
  outline-offset: 4px;
}

.foot {
  padding: 1.5rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: var(--from);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo path,
  h1 span,
  h1 em,
  .lead,
  .links {
    animation: none;
  }

  .links a::after {
    transition: none;
  }
}
