/*
 * Public-site mobile typography bump.
 * Phone-width only (< Tailwind sm / 640px). Desktop rem/px sizes stay as authored.
 *
 * Approach:
 *  1) Raise the root font-size so rem-based Tailwind utilities (text-xs … text-3xl,
 *     and rem arbitrary values) gain ~4–5px vs desktop (two phone bumps stacked).
 *  2) Explicitly bump common px-based meta/kicker classes that do not scale with rem.
 *  3) Pin the shared site header/nav back to pre-bump (16px-root) sizes so chrome
 *     stays compact while body/card copy keeps the enlarged type.
 */

@media (max-width: 639px) {
  html {
    /* 16px → 20px when the browser default is 16px (~+4px on body / text-base). */
    font-size: 125%;
  }

  /* Arbitrary Tailwind px utilities used for kickers, nav meta, captions. */
  .text-\[8px\] {
    font-size: 12px !important;
  }
  .text-\[9px\] {
    font-size: 13px !important;
  }
  .text-\[10px\] {
    font-size: 14px !important;
  }
  .text-\[11px\] {
    font-size: 15px !important;
  }

  /* Shared kicker chip (homepage + desks); authored as 9px in page <style>. */
  .toad-kicker {
    font-size: 13px !important;
  }

  /*
   * Site header / nav chrome — restore 16px-root sizes on every public page that
   * shares this sticky header (index_v5, site_header partial, custom copies).
   * Body/card type above stays bumped. Specificity beats the global px bumps.
   */
  header h1.font-display.text-2xl,
  header .font-display.font-black.text-2xl {
    /* text-2xl at 16px root */
    font-size: 24px !important;
  }
  header .font-display.font-black.text-xl,
  header span.font-display.font-black.text-xl {
    /* compact headers (satire / thinkpad / win10) text-xl at 16px root */
    font-size: 20px !important;
  }
  header .font-mono.text-\[9px\],
  header span.font-mono.text-\[9px\] {
    /* tagline — authored 9px; undo global .text-[9px] → 13px bump */
    font-size: 9px !important;
  }
  header a.text-xs,
  header a.text-xs.font-mono {
    /* nav links Reality Check / Satire / Guide / Hub / Reading Stack */
    font-size: 12px !important;
  }
  header #lang-toggle {
    /* ES / Español toggle — text-xs at 16px root */
    font-size: 12px !important;
  }
  header button.font-mono.text-\[10px\],
  header button[onclick="openSubscribeModal()"] {
    /* Subscribe — authored text-[10px]; undo global → 14px bump */
    font-size: 10px !important;
  }
}
