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

body.page-media {

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

  --media-serif: "Times New Roman", serif;
  --media-heading-serif: "Georgia", serif;
  --media-muted: #555;

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

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

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

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

  /* Page title */
  h1 {
    font-family: var(--media-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;
  }

  /* Section headings (Books, Videos, Audio) */
  h2 {
    font-family: var(--media-heading-serif);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0 0 1.8rem;
  }

  p {
    font-family: var(--media-serif);
    font-size: 0.96rem;
    line-height: 1.6;
    color: #333;
    margin: 0 0 0.9rem;
  }

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

  .media-page-header {
    margin-bottom: 40px;
  }

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

  /* ====================================================================== */
  /*  5) BOOKS SECTION                                                      */
  /* ====================================================================== */

  .media-books {
    margin-bottom: 64px;
  }

  .media-books .wp-block-columns {
    justify-content: center;
    column-gap: 80px;
  }

  .media-books .wp-block-column {
    text-align: center;
  }

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

  .media-books .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* CTA buttons: Canva-style pill outline */
  .media-cta .wp-block-buttons {
    justify-content: center;
    margin-top: 8px;
  }

  .media-cta .wp-block-button__link {
    background: transparent;
    border-radius: 999px;
    border: 1px solid #111;
    color: #111;
    padding: 8px 32px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: none;
  }

  .media-cta .wp-block-button__link:hover,
  .media-cta .wp-block-button__link:focus {
    background: #111;
    color: #fff;
  }

  /* ====================================================================== */
  /*  6) VIDEOS SECTION                                                      */
  /* ====================================================================== */

  .media-videos {
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .media-videos .wp-block-columns {
    justify-content: center;
    column-gap: 32px;
  }

  .media-videos .wp-block-column {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .media-videos .wp-block-column > * {
    max-width: 260px;
  }

  .media-videos p {
    font-size: 0.9rem;
    color: var(--media-muted);
  }

  /* ====================================================================== */
  /*  7) AUDIO SECTION                                                       */
  /* ====================================================================== */

  .media-audio {
    margin-top: 48px;
    margin-bottom: 24px;
  }

  /* ====================================================================== */
  /*  8) MOBILE                                                              */
  /* ====================================================================== */

  @media (max-width: 782px) {

    .media-books .wp-block-columns {
      flex-direction: column;
      column-gap: 0;
    }

    .media-books .wp-block-column {
      margin-bottom: 32px;
    }

    .media-videos .wp-block-columns {
      flex-direction: column;
    }

    .media-videos .wp-block-column {
      margin-bottom: 20px;
    }
  }
}
