/* Plumbing By Jo: light-touch responsive polish, November 2026.
   This stylesheet is additive and intentionally avoids replacing the site's
   existing theme, navigation or page layout. */

:root {
  --pbj-photo-radius: 12px;
  --pbj-soft-shadow: 0 3px 14px rgba(20, 45, 56, .11);
  --pbj-focus: #087c9a;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { min-width: 0; }
main :is(h1, h2) { line-height: 1.2; letter-spacing: -.022em; }
main p { line-height: 1.65; }

/* Keep all photos contained on narrow phone screens. */
main img { max-width: 100%; }

/* Gallery-only refinements: soft corners, balanced gutters and subtle depth. */
body.pbj-gallery-polish img[src*="plumber"] {
  display: block;
  max-width: 100%;
  border-radius: var(--pbj-photo-radius);
  box-shadow: var(--pbj-soft-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.pbj-gallery-polish :is(.gallery, .photo-gallery, .photo-grid, .gallery-grid) {
  gap: clamp(12px, 2vw, 20px);
}
@media (hover: hover) and (pointer: fine) {
  body.pbj-gallery-polish a:hover > img[src*="plumber"] {
    transform: translateY(-2px);
    box-shadow: 0 7px 21px rgba(20, 45, 56, .16);
  }
}

/* Keyboard-accessible focus feedback. */
:is(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--pbj-focus);
  outline-offset: 3px;
}

/* Buttons remain the same shape/colour as the existing design. */
:is(a, button) { -webkit-tap-highlight-color: transparent; }

@media (max-width: 680px) {
  body.pbj-gallery-polish img[src*="plumber"] {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 45, 56, .1);
  }
  body.pbj-gallery-polish :is(.gallery, .photo-gallery, .photo-grid, .gallery-grid) {
    gap: 12px;
  }
  main :is(h1, h2) { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.pbj-gallery-polish img[src*="plumber"] { transition: none; }
}
