/* landing.css
   Clean sans-serif over the shifting prismatic field. Type does nothing
   decorative. All the movement lives in the background. */

:root {
  --sans: 'Archivo', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --black: #0B0B0D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #f6f6f7;
  font-family: var(--sans);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}

#backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8vh clamp(1.75rem, 7vw, 7rem);
  max-width: 60rem;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--black);
}

.sub {
  margin: clamp(1.1rem, 2.4vw, 1.8rem) 0 0;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: -0.005em;
  color: var(--black);
  max-width: 30ch;
}

/* The arrow. White by default and alone. On hover it underlines, travels,
   and the label arrives behind it. */
.enter {
  margin-top: clamp(3rem, 8vh, 6rem);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--black);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.glyph {
  display: block;
  width: 2.75rem;
  flex: 0 0 auto;
  color: var(--black);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.glyph svg { display: block; width: 100%; }

.label {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--black);
  opacity: 0;
  transform: translateX(-0.7rem);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.enter:hover,
.enter:focus-visible { border-bottom-color: var(--black); }

.enter:hover .glyph,
.enter:focus-visible .glyph { transform: translateX(0.55rem); }

.enter:hover .label,
.enter:focus-visible .label { opacity: 1; transform: translateX(0); }

.enter:focus-visible { outline: none; }

/* Touch has no hover, so the label is simply always present. */
@media (hover: none) {
  .label { opacity: 1; transform: none; }
  .enter { border-bottom-color: rgba(11, 11, 13, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
