/* mobile-site.css — phone pass for the MAIN site pages (Nov 4 2026,
 * Brody: "the mobile version of our site is horrible"). One media
 * block, loaded after styles.css on the public pages; desktop is
 * untouched by construction. Games pages keep their own kg-mobile
 * sheets and do not load this file.
 * Targets: readable nav with real tap targets, stacked grids,
 * no sideways scroll, 44px buttons, 16px form fields (no iOS zoom). */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  body { font-size: 16px; }

  /* Nav: wrap into two rows, links at a readable size with
     thumb-sized targets (was 0.72rem / ~11px). */
  .nav { flex-wrap: wrap; gap: .4rem .8rem; padding: .6rem .9rem; }
  .nav-links { flex-wrap: wrap; gap: .35rem .9rem; justify-content: center; }
  .nav-links a { font-size: .92rem; letter-spacing: .08em; padding: .55rem .3rem; display: inline-block; }
  .nav-cta { padding: .55rem .8rem !important; }

  /* Heroes and headings scale to the screen, never past it. */
  h1 { font-size: clamp(1.7rem, 8.5vw, 2.6rem) !important; line-height: 1.12; overflow-wrap: break-word; }
  h2 { font-size: clamp(1.3rem, 6vw, 1.9rem); line-height: 1.2; }

  /* Two-up feature grids stack. */
  .saga-grid, .author-grid, .modal-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .buy-row { grid-template-columns: 1fr; }

  /* Card grids go near-full-width so covers read big and clear. */
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
  .games-grid { grid-template-columns: 1fr; }

  /* Wide tables scroll inside their own box, not the page. */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* Buttons and fields: 44px targets, 16px text. */
  button, .btn, a.btn, input[type="submit"] { min-height: 44px; }
  input, select, textarea { font-size: 16px; }

  /* Page padding breathes less on a phone. */
  main, .page-main { padding-left: .9rem; padding-right: .9rem; }
  section { padding-left: .2rem; padding-right: .2rem; }

  img { max-width: 100%; height: auto; }
}
