/* Hero: an introduction at full height, above the flow field. */

.hero {
  position: relative;
  min-height: calc(92vh - 3.2rem);
  /* svh leaves out the toolbars of a mobile browser, so the hero does not
     move during a scroll. */
  min-height: calc(92svh - 3.2rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--w-content);
  width: 100%;
  margin: 0 auto;
  padding: 5rem 1.5rem 4.5rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot { color: var(--accent); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1.1rem 0 1.6rem;
}

.hero .thesis {
  max-width: 34em;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero .thesis em { font-style: italic; }

.hero-meta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-links {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 720px) {
  .hero-inner { padding: 3.25rem 1.15rem 3.5rem; }

  /* Permit less than the desktop minimum: the name must fit a screen of
     320px. */
  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
    margin: 0.9rem 0 1.25rem;
  }

  .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero .thesis { font-size: 1.05rem; }
  .hero-meta { margin-top: 1.8rem; gap: 0.5rem 1.2rem; }
  .hero-links { margin-top: 2rem; gap: 0.55rem; }
}

/* The button that stops the field. It needs a script, so CSS shows it with
   the js class. */
.field-pause {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  color: var(--muted);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.js .field-pause { display: inline-flex; }

.field-pause svg { width: 0.8rem; height: 0.8rem; }

.field-pause .icon-play { display: none; }
.field-pause[aria-pressed="true"] .icon-pause { display: none; }
.field-pause[aria-pressed="true"] .icon-play { display: block; }

/* A finger needs 44px. The transparent box adds what the circle does not
   have. */
@media (pointer: coarse) {
  .field-pause::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translate(-50%, -50%);
  }
}

/* With reduced motion or reduced data the field is still, and the button
   has no function. */
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  .js .field-pause { display: none; }
}
