/* =====================================================================
   Shared typography & layout - linked LAST in <head> of every page.
   Edit the numbers below once and every page updates.
   ===================================================================== */
:root{
  --fs-title: clamp(26px, 3.4vw, 32px);   /* page title (h1 / big h2)   */
  --fs-h2: 20px;                          /* section headings           */
  --fs-h3: 17px;                          /* card titles (h3 / h4)      */
  --fs-h5: 15px;                          /* small titles (h5)          */
  --fs-body: 14px;                        /* every paragraph + list     */
  --lh-body: 1.7;
  --page-max: 80rem;                      /* same width as the header   */
}

/* ---------- headings: one font, one weight scale, one size scale ---------- */
h1,h2,h3,h4,h5{font-family:'Poppins',sans-serif !important;font-style:normal !important;line-height:1.2 !important;letter-spacing:normal !important;text-align:left !important}
h1,
h2.text-3xl{font-size:var(--fs-title) !important;font-weight:800 !important;line-height:1.15 !important}
h2{font-size:var(--fs-h2) !important;font-weight:700 !important}
h2.text-3xl{font-weight:800 !important}
h3,
h4:not(.text-xs){font-size:var(--fs-h3) !important;font-weight:700 !important}
h5{font-size:var(--fs-h5) !important;font-weight:700 !important}
/* small caps-style labels keep their tiny size */
h4.text-xs{font-size:12px !important;font-weight:700 !important}
/* home-page hero name: slightly larger than a page title, still much smaller than before */
section h1.font-black{font-size:clamp(32px,5vw,44px) !important;line-height:1.1 !important}

/* gallery overlay + gallery pop-up headings: same small UI size everywhere */
.gallery-content h2,.pcard .gallery-content h2{font-size:20px !important;font-weight:800 !important;text-align:center !important}
.gallery-modal-header h2{font-size:var(--fs-h2) !important}

/* ---------- paragraphs & lists: same size, same rhythm, justified ---------- */
p,li{font-family:'Inter',sans-serif;font-size:var(--fs-body) !important;line-height:var(--lh-body) !important;font-weight:400 !important;font-style:normal !important;letter-spacing:normal !important}
p,li{text-align:justify !important;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
p.tag,.card p.tag{font-weight:400 !important;max-width:none}

/* places that must NOT be justified (centred UI, footer, header, forms) */
.gallery-content p,.gallery-modal-header p,.gallery-overlay p{font-size:13px !important;text-align:center !important;hyphens:manual}
header p,header li,footer p,footer li,button p,label p,form p,.text-center p,p.text-center,li.text-center,.stat p,.pill,.badge p{text-align:left !important;hyphens:manual}
.text-center p,p.text-center{text-align:center !important}

/* ---------- page layout: every page starts at the same place ---------- */
/* pages built with <main class="wrap"> now match the Tailwind pages' max-w-7xl + px padding */
.wrap{max-width:var(--page-max) !important;padding-left:1rem !important;padding-right:1rem !important}
@media(min-width:640px){.wrap{padding-left:1.5rem !important;padding-right:1.5rem !important}}
@media(min-width:1024px){.wrap{padding-left:2rem !important;padding-right:2rem !important}}
/* first block on every page begins 2rem under the header */
.wrap>.hero{padding-top:2rem !important}
.hero h1{margin-bottom:14px !important}
