/* Homepage editorial details and form layouts */
.home-masthead {
  position: relative;
  isolation: isolate;
}

.home-masthead .home-brand,
.home-masthead .masthead-note {
  position: relative;
  z-index: 1;
}

.home-smoke {
  position: absolute;
  z-index: 0;
  left: 31px;
  bottom: 27px;
  width: 112px;
  height: 58px;
  overflow: visible;
  pointer-events: none;
}

.home-smoke span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 24px;
  height: 39px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-muted) 30%, transparent) 0%, color-mix(in srgb, var(--color-muted) 13%, transparent) 45%, transparent 74%);
  filter: blur(7px);
  opacity: 0;
  transform: translateX(-50%) scale(.72);
  animation: header-smoke-rise 4.6s ease-out infinite;
}

.home-smoke span:nth-child(2) {
  left: 39%;
  width: 19px;
  height: 32px;
  animation-delay: 1.15s;
}

.home-smoke span:nth-child(3) {
  left: 61%;
  width: 28px;
  height: 45px;
  animation-delay: 2.3s;
}

.home-smoke span:nth-child(4) {
  left: 52%;
  width: 17px;
  height: 30px;
  animation-delay: 3.45s;
}

@keyframes header-smoke-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(.72) rotate(-8deg);
  }

  18% {
    opacity: .6;
  }

  70% {
    opacity: .28;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + 15px), -48px) scale(1.4) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-smoke span {
    animation: none;
    opacity: .18;
    transform: translate(-50%, -10px) scale(1.1);
  }
}

.home-brand {
  gap: 12px;
}

.home-brand img {
  width: 76px;
  height: 52px;
  object-fit: contain;
}

.home-brand-copy {
  display: grid;
  line-height: 1.1;
}

.home-brand-copy strong {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -.04em;
}

.home-brand-copy small {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 8px;
  letter-spacing: .2em;
}

.home-hero {
  min-height: 590px;
}

.home-hero .hero-copy {
  width: min(620px, 66%);
}

.home-hero h1 {
  font-size: clamp(54px, 7vw, 88px);
}

.home-hero .hero-lede {
  max-width: 530px;
  font-size: 16px;
}

.home-topics,
.home-extra-guides {
  padding: 62px 0 28px;
}

.home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-line);
  background: var(--color-line);
}

.home-topic {
  min-height: 255px;
  padding: 27px;
  background: var(--color-surface);
}

.home-topic-number {
  color: var(--color-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.home-topic h3,
.home-extra-grid h3 {
  margin: 13px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.home-topic p,
.home-extra-grid p {
  margin: 0 0 15px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.75;
}

.home-topic b,
.home-extra-grid b {
  color: var(--color-primary);
  font-size: 10px;
}

.home-topic:hover,
.home-extra-grid a:hover {
  background: var(--color-bg);
}

.home-main .latest-section {
  padding-top: 45px;
}

.home-main .story-grid {
  align-items: start;
}

.home-main .story-content p {
  font-size: 12px;
  line-height: 1.75;
}

.home-main .story-content h3 a:hover {
  color: var(--color-primary);
}

.home-main .byline {
  margin-top: 11px;
  color: var(--color-muted);
  font-size: 9px;
}

.home-extra-guides {
  padding-bottom: 66px;
}

.home-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-extra-grid a {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.home-about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  margin: 0 0 55px;
  padding: 36px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.home-about h2,
.home-signup h2,
.home-contact h2 {
  margin: 0;
  font-size: clamp(29px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.home-about p,
.home-signup-copy p,
.home-contact>div>p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}

.home-about .eyebrow,
.home-signup .eyebrow,
.home-contact .eyebrow {
  margin-bottom: 12px;
}

.home-signup,
.home-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  margin: 0 0 28px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
}

.home-signup {
  background: var(--color-forest);
  color: var(--color-primary-contrast);
}

.home-signup .eyebrow {
  color: var(--color-gold);
}

.home-signup-copy p {
  margin-top: 14px;
  color: var(--color-primary-contrast);
  opacity: .84;
}

.home-form,
.home-contact-form {
  display: grid;
  gap: 9px;
}

.home-form label,
.home-contact-form label {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.home-signup .home-form label {
  color: var(--color-primary-contrast);
}

.home-form-row {
  display: flex;
  gap: 8px;
}

.home-form input,
.home-contact-form input,
.home-contact-form textarea,
.home-contact-form select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: 13px var(--font-body);
}

.home-contact-form textarea {
  resize: vertical;
}

.home-form button,
.home-contact-form button {
  width: fit-content;
  padding: 11px 17px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.home-form button:hover,
.home-contact-form button:hover {
  background: var(--color-forest-soft);
}

.home-signup .home-form button {
  flex: 0 0 auto;
  background: var(--color-gold);
  color: var(--color-ink);
}

.home-signup .home-form button:hover {
  background: var(--color-clay);
}

.form-note,
.form-notice {
  margin: 0;
  color: var(--color-muted);
  font-size: 10px;
}

.home-signup .form-note,
.home-signup .form-notice {
  color: var(--color-primary-contrast);
  opacity: .78;
}

.form-notice:not(:empty) {
  padding-top: 4px;
  font-weight: 700;
}

.home-contact {
  align-items: start;
  margin-bottom: 60px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.home-contact>div>p:not(.eyebrow) {
  margin-top: 14px;
}

@media (max-width: 800px) {
  .home-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-about,
  .home-signup,
  .home-contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .home-brand img {
    width: 55px;
  }

  .home-brand-copy strong {
    font-size: 18px;
  }

  .home-hero .hero-copy {
    width: 100%;
  }

  .home-topic-grid,
  .home-extra-grid {
    grid-template-columns: 1fr;
  }

  .home-topic {
    min-height: auto;
  }

  .home-form-row {
    flex-direction: column;
  }

  .home-signup .home-form button {
    width: 100%;
  }
}
