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

body.page-contribute {

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

  --contrib-serif: "Times New Roman", serif;
  --contrib-heading-serif: "Georgia", serif;
  --contrib-muted: #444;
  --contrib-tile-bg: #c7b49a;
  --contrib-tile-text: #111;

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

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

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

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

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

  h2,
  h3 {
    font-family: var(--contrib-heading-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0 0 1.2rem;
  }

  h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  h3 {
    font-size: 1.05rem;
    text-align: center;
  }

  p {
    font-family: var(--contrib-serif);
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--contrib-muted);
    margin: 0 0 0.9rem;
  }

  /* ====================================================================== */
  /*  4) HEADER / UNDERLINE                                                 */
  /* ====================================================================== */

  .contrib-header {
    margin-bottom: 40px;
  }

  .contrib-header .wp-block-separator {
    border-color: var(--ff-border);
    margin: 0 0 40px;
  }

  /* ====================================================================== */
  /*  5) HERO IMAGE + BLESSING                                              */
  /* ====================================================================== */

  .contrib-hero .wp-block-cover {
    border-radius: 0;
  }

  .contrib-hero .wp-block-cover__image-background {
    object-fit: cover;
  }

  .contrib-hero .wp-block-cover__inner-container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .contrib-hero h3 {
    font-weight: 500;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #fff;
  }

  .contrib-hero p {
    color: #fff;
    font-size: 0.95rem;
  }

  /* ====================================================================== */
  /*  6) MAIN CTA BUTTON (BIG CARD)                                         */
  /* ====================================================================== */

  .contrib-cta {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .contrib-cta .wp-block-buttons {
    justify-content: center;
  }

  .contrib-cta .wp-block-button__link {
    display: inline-block;
    padding: 16px 64px;
    background: #d5c3a8;
    color: #111;
    border-radius: 22px;
    border: none;
    font-family: var(--contrib-heading-serif);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: none;
    text-align: center;
    line-height: 1.4;
    box-shadow: 8px 8px 0 #000; /* black offset shadow card */
  }

  .contrib-cta .wp-block-button__link:hover,
  .contrib-cta .wp-block-button__link:focus {
    background: #cbb497;
    color: #000;
  }

  /* ====================================================================== */
  /*  7) AMOUNT TILES                                                       */
  /* ====================================================================== */

  .contrib-amounts {
    margin-bottom: 40px;
  }

  .contrib-amounts .wp-block-buttons {
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
  }

  .contrib-amounts .wp-block-button__link {
    min-width: 120px;
    min-height: 70px;
    padding: 16px 24px;
    background: var(--contrib-tile-bg);
    color: var(--contrib-tile-text);
    border-radius: 26px;
    border: none;
    font-family: var(--contrib-heading-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: none;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  }

  .contrib-amounts .wp-block-button__link:hover,
  .contrib-amounts .wp-block-button__link:focus {
    filter: brightness(0.95);
  }

  /* “OTHER” tile a bit wider */
  .contrib-amounts .contrib-other .wp-block-button__link {
    min-width: 140px;
  }

  /* ====================================================================== */
  /*  8) FOOTER HEADING                                                     */
  /* ====================================================================== */

  .contrib-footer {
    margin-top: 32px;
    margin-bottom: 24px;
  }

  .contrib-footer h3 {
    font-weight: 400;
    letter-spacing: 0.08em;
    font-size: 1rem;
  }

  /* ====================================================================== */
  /*  9) MOBILE                                                             */
  /* ====================================================================== */

  @media (max-width: 782px) {

    .contrib-amounts .wp-block-buttons {
      flex-wrap: wrap;
      gap: 16px;
    }

    .contrib-cta .wp-block-button__link {
      width: 100%;
      max-width: 320px;
      padding-inline: 24px;
    }
  }
}
