/* FROM — Contact, section 3: quick answers. Six questions people write in about, each answered in a line or two,
   laid out like a page of notes under thin rules; then a way on to every question, or back up to the form. */

.answers {
  padding: clamp(88px, 11vw, 160px) 0;
  background: var(--paper);
}

.answers__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 20px clamp(40px, 6vw, 96px);
}

.answers__title {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.answers__title em {
  font-style: normal;
  color: var(--orange);
}

.answers__lede {
  max-width: 38ch;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.answers__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 64px);
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.answer {
  padding: 32px 0 40px;
  border-top: 1.5px solid var(--line);
}

/* The top rule turns orange, left to right, on hover. */
.answer {
  background: linear-gradient(var(--orange), var(--orange)) top left / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}

.answer:hover {
  background-size: 100% 2px;
}

.answer__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-wash);
  color: var(--orange-ink);
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease-out);
}

.answer__icon .icon {
  width: 22px;
  height: 22px;
}

.answer:hover .answer__icon {
  background: var(--orange);
  color: #fff;
  transform: rotate(-8deg);
}

.answer__q {
  margin: 22px 0 0;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.answer__a {
  max-width: 36ch;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Plays in: each answer rises a beat after the one before. */
.answers__list[data-reveal] .answer {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s calc(var(--i) * 0.08s), translate 0.9s calc(var(--i) * 0.08s) var(--ease-out),
    background-size 0.6s var(--ease-out);
}

.answers__list.is-in .answer {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Still not it ---------- */

.answers__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 24px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--orange-wash);
}

.answers__more-text {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 720;
  letter-spacing: -0.03em;
}

.answers__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1000px) {
  .answers__head {
    grid-template-columns: 1fr;
  }

  .answers__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .answers__list {
    grid-template-columns: 1fr;
  }

  .answer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 24px 0 28px;
  }

  .answer__icon {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
  }

  .answer__q {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .answers__list[data-reveal] .answer {
    opacity: 1;
    translate: none;
  }
}
