/*
 * Original Design Specifications
 * Target: > 1800px
 * Test Resolution: 1920 x 1080
 */
:root {
  --story-and-call-to-action-gap: 3.5rem;
  --story-and-call-to-action-max-width: 95rem;
  --story-and-call-to-action-header-font-size: 2.5rem;
  --story-and-call-to-action-header-line-height: 1.5rem;
  --story-and-call-to-action-font-weight: 400;
  --story-and-call-to-action-text-font-size: 4.8rem;
  --story-and-call-to-action-text-line-height: 1.4;
}

/*
 * 2XL Media Query (1536px)
 * Target: 1799px > 1536px
 * Test Resolution: 1536 x 864
 */
@media screen and (max-width: 1799px) {
  :root {
    --story-and-call-to-action-max-width: 80rem;
    --story-and-call-to-action-text-font-size: 4rem;
    --story-and-call-to-action-gap: 3.5rem;
  }
}

/*
 * XL Media Query (1280px)
 * Target: 1535px > 1280px
 * Test Resolution: 1280 x 720
 */
@media screen and (max-width: 1535px) {
  :root {
    --story-and-call-to-action-header-font-size: 2rem;
    --story-and-call-to-action-text-font-size: 3.5rem;
  }
}

/*
 * L Media Query (1024px)
 * Target: 1279px > 1024px
 * Test Resolution: 1024 x 768
 */
@media screen and (max-width: 1279px) {
  :root {
    --story-and-call-to-action-max-width: 70rem;
  }
}

/*
 * M Media Query (768px)
 * Target: 1023px > 768px
 * Test Resolution: 768 x 1024
 */
@media screen and (max-width: 1023px) {
  :root {
    --story-and-call-to-action-max-width: 60rem;
    --story-and-call-to-action-header-font-size: 1.8rem;
    --story-and-call-to-action-text-font-size: 3rem;
    --story-and-call-to-action-gap: 3rem;
  }
}

/*
 * S Media Query (640px)
 * Target: < 767px
 * Test Resolution: 390 x 844
 */
@media screen and (max-width: 767px) {
  :root {
    --story-and-call-to-action-max-width: 100%;
    --story-and-call-to-action-header-font-size: 1.5rem;
    --story-and-call-to-action-header-line-height: 1.2rem;
    --story-and-call-to-action-text-font-size: 2rem;
    --story-and-call-to-action-text-line-height: 1.3;
    --story-and-call-to-action-gap: 2rem;
  }
}

.story-and-call-to-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--story-and-call-to-action-max-width);
  gap: var(--story-and-call-to-action-gap);
}

.story-and-call-to-action-header {
  color: var(--theme-color-primary);
  font-size: var(--story-and-call-to-action-header-font-size);
  line-height: var(--story-and-call-to-action-header-line-height);
  font-weight: var(--story-and-call-to-action-font-weight);
}

.story-and-call-to-action-text {
  font-family: var(--typography-header-font-family);
  font-size: var(--story-and-call-to-action-text-font-size);
  line-height: var(--story-and-call-to-action-text-line-height);
  text-align: center;
  font-weight: var(--story-and-call-to-action-font-weight);
}
