/* Phone type scale for every page (760px and below), loaded last so it wins:
   page titles 24px/1.4 · body 15px/1.4 (same as desktop) · menus 11px · 32px from the menu (on top) down to the title. */
@media (max-width:760px) {
  /* Page titles: About, Work and Photos. Home's is 20px through --mobile-heading (its ?tune=home panel can still change it). */
  body:has(#about:not([hidden])) h1,
  body:has(#work:not([hidden])) h1,
  body:has(#photos:not([hidden])) h1 {font-size:24px;line-height:1.4}

  /* Body */
  .about-bio,
  .work-caption p {font-size:15px;line-height:1.4}
  .photos-view {font-size:15px;line-height:21px}

  /* Menus: the page menu, Home's contact row and tiles, About's collections */
  #section-nav,
  nav[aria-label="Contact and location"],
  .categories {font-size:11px}
  .tile button {font-size:var(--mobile-menu,11px)}

  /* Page menu on phones: no coloured box. The current page is IBM Plex Sans Medium in ink; the others
     are Regular at 50% opacity. The box's colour is painted over in white rather than removed, because
     favicon.js reads the current item's background colour (About's collection colour, Photos' purple). */
  #section-nav a {color:#1b1b1b;font-weight:400;opacity:.5;box-shadow:inset 0 0 0 99px #fff}
  #section-nav a[aria-current="page"] {font-weight:500;opacity:1}

  /* 32px from the menu down to the title */
  body:has(footer:not([hidden])) header,
  body:has(#about:not([hidden])) header,
  body:has(#work:not([hidden])) header,
  body:has(#photos:not([hidden])) header {row-gap:32px}
  body:has(#photos:not([hidden])) header {flex-direction:column;flex-wrap:nowrap;align-items:flex-start}
  body:has(#photos:not([hidden])) #section-nav {order:-1}
}
