/* responsive.css — tablet and mobile behavior for the redesign.
   Designed for small screens, not merely shrunk: single comfortable
   reading column, burger navigation below 800px, softer hero height. */

/* ---------- Tablet (800–1024px): keep desktop layout, tighten nav ---------- */

@media (max-width: 1024px) {
  .site-nav {
    column-gap: 1.1em;
  }

  /* visuals: three per row on tablets — 15 cards still end on a clean row */
  .visuals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Burger navigation below 900px ---------- */

@media (max-width: 899px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    align-items: center;
  }
}

/* ---------- Mobile stacking below 768px ---------- */

@media (max-width: 767px) {
  /* Meet Peggy: heading, then photo, then copy */
  .about-grid {
    display: block;
  }

  .about-heading {
    margin-bottom: 0.8em;
  }

  .about-photo {
    margin-bottom: var(--s-3);
    max-width: 440px;
  }

  /* The Book / Connect card: image above text */
  .card-split {
    display: block;
  }

  .card-split .book-cover,
  .card-split .photo-frame {
    max-width: 320px;
    margin: 0 auto var(--s-4);
  }

  /* the cards stack here, so the two Book page headings go full width again
     instead of staying indented over a text column that no longer exists */
  .book .section-head,
  .course .section-head {
    display: block;
  }

  .testimonial-cols {
    display: block;
  }

  .testimonial-cols > * + * {
    margin-top: var(--s-3);
  }

  .pull-quote {
    font-size: 1.15rem;
  }

  .testimonial {
    padding: var(--s-3);
  }

  /* Media: two tiles per row keeps the page compact */
  .media-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-2);
  }

  .media-tile .tile__mat {
    padding: var(--s-2);
  }

  /* Inspiration */
  .writings-grid {
    grid-template-columns: 1fr;
  }

  .writing-item__body {
    padding: var(--s-3);
  }

  /* titles may wrap again on phones, where one line cannot fit */
  .writing-item h2,
  .writing-item h3 {
    white-space: normal;
  }

  .visuals-grid {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
}
