/* v16.11: declare a dark-only color scheme so Chrome auto-dark / extensions do not re-process this already-dark site. */
:root{color-scheme:only dark}
.logo-link,.logo,.cx-logo{color-scheme:only dark}

/* v16.5: proportional scaling above 1440px wide, site-wide. Backgrounds stay full-bleed; the foreground grows with
   the viewport so each page keeps its 1440 composition, just larger. Scale factors come from the inline script in <head>:
   --tis-c = content scale = min(1 + (vw-1440)/2560, 1.8)    (≈2x-ish cap; 1.8 at 3488px+)
   --tis-s = header/hero scale = min(1 + (vw-1440)/2560, 2.2, viewport-height/900), never below 1
   Both are exactly 1 at <=1440px and when JS is off, so 390–1440 renders exactly as v16.4. */
@media (min-width:1441px){
  .site-header,.hero-copy,.scripture,.page-intro>*{zoom:var(--tis-s,1)}
  .hero{padding-bottom:calc(8.5rem * var(--tis-s,1))}
  main>section:not(.hero)>*,main>.band>*,.site-footer>*{zoom:var(--tis-c,1)}
}
/* Inner-page intro: clear the scaled logo and keep the 1440 left inset (56px = 3.889vw) in proportion. */
@media (min-width:1441px) and (min-aspect-ratio:6/5){
  .page-intro{padding-top:calc((0.65rem + clamp(56px,10.4vw,150px) + 1.5rem) * var(--tis-s,1));padding-inline:3.889vw}
}
/* Keep the hero group centred on the same relative x as at 1440 (its centre sits at 70.17% of the width there). */
@media (min-width:1441px) and (min-aspect-ratio:6/5){
  .hero-copy{justify-self:start;margin-right:0;margin-left:calc(70.17vw / var(--tis-s,1));transform:translateX(-50%)}
}
/* Very wide screens: let content columns use more of the width and add a grid column. */
@media (min-width:2200px){
  .band-narrow{max-width:96rem}
  .post-grid,.gallery{grid-template-columns:repeat(4,1fr)}
}

/* Landscape tablets, unfolded foldables and small laptops (761–1439px wide, landscape, 480px+ tall). The stacked mobile hero put the
   photo first and pushed the name below the fold. Here the whole 16:9 photo is shown uncropped (full arch, sun, sky,
   water line) and the title block sits over the dark sky at the same relative spot as the 1440 desktop design, drawn
   at its 1440 sizes and zoomed by --tis-t (= max(0.62, width/1440), set in <head>). The buttons follow below the photo.
   Normal scrolling; no fixed/sticky or parallax. */
@media (min-width:761px) and (max-width:1439.98px) and (min-aspect-ratio:11/10) and (min-height:480px){
  .hero-media{min-height:56.25vw}
  .hero-media img{object-position:center center}
  .hero-media:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#080c1400,#080c1405 48%,#080c1429 78%,#080c1447)}
  .titleblock{position:absolute;z-index:2;zoom:var(--tis-t,.66);top:calc(15.9vw / var(--tis-t,.66));left:calc(70.17vw / var(--tis-t,.66));transform:translateX(-50%);width:fit-content;max-width:none;margin:0;display:flex;flex-direction:column;align-items:center}
  .hero-title{position:relative;width:fit-content;margin:0;padding:0;font-size:74px}
  .script-mark{position:absolute;left:34.2%;bottom:calc(100% + .02em);width:27.2%;height:auto;margin:0}
  .hero-name{font-weight:600;font-size:1em;line-height:.92;letter-spacing:.04em;margin:0;color:#f7f1e4}
  .hero-kicker{width:max-content;margin:.45rem auto 0;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:0;font-size:23px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:#fffaf3}
  .hero-kicker .kicker-break{display:none}
  .hero-kicker .dot,.hero-kicker .kicker-mid{display:block;flex:0 0 auto;width:8px;height:8px;margin:0 28px;padding:0;border-radius:50%;background:#e4c07a;color:transparent;font-size:0;line-height:0;overflow:hidden}
  .eyebrow-rule{width:163px;height:1px;margin:.5rem auto 0;background:#e4c07a}
  .hero-tagline{width:640px;max-width:none;margin:.45rem auto 0;font-size:22px;line-height:1.38;color:#fffaf3;text-shadow:0 1px 6px #080c14b3}
  .hero-tagline br{display:inline}
  .diamond-rule{width:200px;height:12px;margin:.4rem auto 0}
  .hero{position:relative}
  .hero-copy{position:static;padding-top:1.1rem}
}

/* 1000–1439px landscape: the desktop overlay crowded here (title into the nav, 4-line tagline, buttons on the arch's foot).
   Switch the desktop hero to the same composition as above: full photo, title block over the sky (rules above),
   buttons centred below the photo, scripture band after them. 1440+ is untouched. */
@media (min-width:1000px) and (max-width:1439.98px) and (min-aspect-ratio:6/5) and (min-height:480px){
  .hero{display:block;min-height:0;padding-bottom:0}
  .hero:after{display:none}
  .hero-media{position:relative;inset:auto;height:56.25vw;min-height:56.25vw}
  .hero-media img{position:absolute;inset:0;width:100%;height:100%;max-height:none}
  .hero-copy{width:auto;max-width:none;margin:0;justify-self:auto;align-items:center;padding:1.3rem 0 1.5rem}
  .scripture{position:static}
}
/* Portrait and near-square tablets (700px+): show the whole 16:9 photo (full arch, sun, water line) instead of the
   tall close crop, with the name below it as before. */
@media (min-width:700px) and (max-aspect-ratio:11/10){
  .hero-media{min-height:56.25vw}
  .hero-media img{object-position:center center}
}
