/*
 * Page-specific styles for the "Cause" page (slug: cause).
 * Structured top-down and nested under body.page-cause.
 */

body.page-cause {

  /* ====================================================================== */
  /*  1) TOKENS / VARIABLES                                                 */
  /* ====================================================================== */

  --cause-serif: "Times New Roman", serif;
  --cause-heading-serif: "Georgia", serif;
  --cause-muted: #555;
  --cause-body-width: 640px;

  /* ====================================================================== */
  /*  2) LAYOUT WIDTH                                                       */
  /* ====================================================================== */

  main.site-main.container {
    max-width: 900px;
  }

  .ff-section--narrow {
    max-width: 800px;
  }

  /* ====================================================================== */
  /*  3) TYPOGRAPHY                                                         */
  /* ====================================================================== */

  /* Page title */
  h1 {
    font-family: var(--cause-heading-serif);
    font-weight: 300;
    letter-spacing: 0.04em;
    font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.9rem;
    text-align: left;
  }

  /* “Updates:” label */
  h3 {
    font-family: var(--cause-heading-serif);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    margin: 0 0 1.0rem;
  }

  /* Body paragraphs */
  p {
    font-family: var(--cause-serif);
    font-size: 0.96rem;
    line-height: 1.7;
    max-width: var(--cause-body-width);
    margin: 0 0 0.9rem !important;
    padding: 0;
    color: #333;
  }

  /* Intro blurb under the title (centered + narrower) */
  .cause-intro {
    max-width: 420px;
    margin: 0.25rem auto 1.15rem;
    text-align: center;

    p {
      font-size: 0.9rem;
      line-height: 1.6;
      color: #333;
      margin-bottom: 0 !important;
      max-width: 100%;
    }
  }

  /* Update headline line (bold + italic, like screenshot) */
  p.cause-update-title {
    font-family: var(--cause-serif);
    font-size: 0.92rem;
    line-height: 1.55;
    font-style: italic;
    font-weight: 700;
    margin: 0 0 0.95rem !important;
    max-width: 100%;
    color: #222;
  }

  /* ====================================================================== */
  /*  4) MEDIA (IMAGES)                                                     */
  /* ====================================================================== */

  /* Keep default theme styles intact, but match the clean “flat” silhouette */
  .cause-silhouette {
    text-align: center;
    margin: 0.75rem 0 1.4rem;

    .wp-block-image {
      margin: 0 auto;
      max-width: 220px;
    }

    img {
      width: 100%;
      height: auto;
      border-radius: 0;
      box-shadow: none;
    }
  }

  /* ====================================================================== */
  /*  5) UPDATES SECTION LAYOUT                                              */
  /* ====================================================================== */

  .cause-updates {
    margin-top: 0.25rem;
  }

  .cause-updates .cause-update {
    max-width: 760px;
  }

  /* ====================================================================== */
  /*  6) PAGE-LEVEL SPACING                                                  */
  /* ====================================================================== */

  .ff-section {
    margin: 44px 0;
  }

  /* Tighten overall top so it feels like the mock */
  .cause-top {
    margin-top: 10px;
  }

  /* ====================================================================== */
  /*  7) MOBILE BEHAVIOR                                                     */
  /* ====================================================================== */

  @media (max-width: 782px) {

    h1 {
      text-align: left;
    }

    .cause-intro {
      padding-left: 10px;
      padding-right: 10px;
    }

    .cause-updates .cause-update {
      padding-left: 6px;
      padding-right: 6px;
    }

    .cause-silhouette .wp-block-image {
      max-width: 190px;
    }
  }
}
