
/* Niania Whānau — editorial visual layer, 2026-11. Keep underlying forms intact. */
:root{
  --editorial-forest:#123a31;
  --editorial-cream:#f5f0e6;
  --editorial-sand:#e7dccb;
  --editorial-sage:#8fa495;
}
html{scroll-behavior:smooth}
body{background:#fbf9f3}
.site-header{background:rgba(251,249,243,.96);border-bottom:1px solid rgba(18,58,49,.16)}
.brand-logo-slot{border-radius:50%;background:transparent;box-shadow:none}
.brand-name{letter-spacing:.035em}
.main-nav a{letter-spacing:.02em}
#page-home>.hero{
  background:linear-gradient(105deg,rgba(9,35,30,.94),rgba(19,65,50,.94)),
  radial-gradient(ellipse at 85% 15%,#6c8969,transparent 50%);
  position:relative;isolation:isolate;padding:clamp(3.5rem,7vw,7rem) 0 clamp(4rem,7vw,6rem)
}
#page-home>.hero:before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.21;
 background:radial-gradient(ellipse at 20% 10%,rgba(234,225,201,.3),transparent 30%),
 repeating-linear-gradient(135deg,transparent 0px,transparent 85px,rgba(255,255,255,.14) 86px,transparent 87px);
}
#page-home>.hero:after{
 content:"";position:absolute;bottom:0;right:0;width:60%;height:30%;opacity:.18;pointer-events:none;
 background:linear-gradient(165deg,transparent 30%,#c5c6a9 31%,transparent 32%),linear-gradient(15deg,transparent 42%,#c5c6a9 43%,transparent 44%);
 clip-path:polygon(0 70%,26% 30%,48% 55%,73% 0,100% 55%,100% 100%,0 100%);
}
#page-home .hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(245px,.8fr);gap:clamp(2.5rem,7vw,8rem);align-items:start}
#page-home .hero h1{color:#fff9ed;max-width:13ch;font-weight:600;letter-spacing:-.045em;font-size:clamp(3.3rem,6vw,6.7rem);line-height:1.03;margin:.65rem 0 1.5rem}
#page-home .hero .lead{color:#e7ebe3;font-size:clamp(1.06rem,1.65vw,1.35rem);max-width:42ch;line-height:1.65}
#page-home .hero .eyebrow{color:#d9c9a3;letter-spacing:.19em}
#page-home .hero-art{margin:2rem 0 0;min-height:420px;border-radius:0 9rem 0 0;background:linear-gradient(150deg,#f6eddd 0%,#d7d8c4 50%,#7d9c82 100%);border:0;box-shadow:15px 15px 0 rgba(240,237,215,.13);padding:clamp(1.5rem,3vw,3.2rem);align-self:start}
#page-home .hero-art:after{content:"Niania Whānau  ·  Te Reinga Marae";position:absolute;bottom:1rem;left:1.5rem;right:1rem;font:600 .68rem var(--sans);letter-spacing:.15em;text-transform:uppercase;color:#275241}
#page-home .hero-logo-slot{border-radius:0;background:transparent;width:min(100%,360px);filter:drop-shadow(0 9px 20px rgba(8,45,30,.06))}
#page-home .hero-event{background:rgba(245,240,230,.98);border:0;border-radius:0;max-width:37rem;padding:1.3rem 1.5rem;margin-top:2.2rem;gap:.45rem;box-shadow:0 15px 40px rgba(0,0,0,.13);border-top:3px solid #c2a57a}
#page-home .hero-event .eyebrow{color:#476f61}
#page-home .hero-event strong{font-size:clamp(1.17rem,2vw,1.65rem)}
#page-home .hero-event small{font-size:.9rem;color:#40574f}
#page-home .hero-event a{width:max-content}
#page-home .home-remembrance{max-width:37rem;border:0;border-radius:0;background:transparent;padding:1.7rem 0 .1rem;border-top:1px solid rgba(232,235,222,.33);margin-top:2.2rem;color:white}
#page-home .home-remembrance h2{color:#fdf8ed;font-size:clamp(1.7rem,3vw,2.55rem);letter-spacing:-.025em;margin:.65rem 0}
#page-home .home-remembrance p{color:#e5e9e0;font-size:.96rem}
#page-home .home-remembrance .unveiling-names{color:#e4dfbb;font-weight:800}
#page-home .home-remembrance .home-remembrance-close{color:#faf3e3}
#page-home .hero-actions{margin:1.6rem 0 0}
#page-home .hero-actions .button-primary{background:#e6d8bd;color:#1d463a;border-color:#e6d8bd}
#page-home .hero-actions .button-outline{background:transparent;color:#f6f0e2;border:1px solid rgba(246,240,226,.6)}
#page-home .wordmark-note{border-color:rgba(250,247,237,.25);color:#f0eddf}
#page-home .hero .status-dot{background:#d5c297}
#page-home .section{padding-block:clamp(4rem,8vw,7rem)}
#page-home .section-head h2{font-size:clamp(2.4rem,4vw,4rem);letter-spacing:-.035em;line-height:1.12}
#page-home .section-tint{background:var(--editorial-cream)}
#page-home .section .card-grid{gap:0}
#page-home .section .card{border-radius:0;box-shadow:none;background:#fffdf8}
#page-home .section .card+.card{border-left:0}
#page-home .section .card:hover{transform:none;box-shadow:none}
#page-home .section .card-media{height:150px}
#page-home .ancestor-panel{border-radius:0;background:#163f34}
#page-home .soft-panel{border-radius:0}
#page-home .section-dark{border-radius:0!important}
#page-home .quicklink{border-radius:0}
#page-home .section .button{transition:transform .22s ease,background-color .22s ease,color .22s ease}
@media (hover:hover){#page-home .button:hover,#page-home .quicklink:hover{transform:translateY(-2px)}}
.editorial-gallery{background:#fffdf8;border-top:1px solid #e1daca;border-bottom:1px solid #e1daca;padding:clamp(4rem,7vw,6rem) 0}
.editorial-gallery .gallery-intro{max-width:760px;margin-bottom:2rem}
.editorial-gallery h2{font-size:clamp(2.35rem,4.5vw,4.3rem);line-height:1.12;letter-spacing:-.04em;margin:.65rem 0}
.editorial-gallery .gallery-intro p{font-size:1.05rem;line-height:1.7;color:#4b6157}
.editorial-gallery .gallery-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:1rem}
.editorial-gallery .gallery-card{border:1px solid #e1daca;min-width:0;overflow:hidden;background:#f6f1e7;display:flex;flex-direction:column}
.editorial-gallery .gallery-visual{height:clamp(185px,23vw,300px);position:relative;overflow:hidden;display:grid;place-items:center}
.editorial-gallery .gallery-visual span{position:relative;z-index:2;font:600 clamp(1.1rem,1.6vw,1.7rem)/1.3 var(--serif);text-align:center;max-width:15ch;padding:1.5rem;color:#fdf9ef}
.editorial-gallery .gallery-visual.landscape{background:linear-gradient(180deg,#9fb3aa 0%,#d6cdb8 47%,#466e5d 48%,#174338 100%)}
.editorial-gallery .gallery-visual.landscape:after{content:"";position:absolute;inset:20% -10% -5%;background:linear-gradient(135deg,#183f34,#496f59);clip-path:polygon(0 85%,22% 42%,36% 66%,63% 15%,80% 55%,100% 18%,100% 100%,0 100%)}
.editorial-gallery .gallery-visual.portraits{background:repeating-linear-gradient(115deg,#d5c6b0 0 1px,transparent 1px 24px),linear-gradient(130deg,#eee5d8,#b9c6b5)}
.editorial-gallery .gallery-visual.portraits span{color:#234b3c;border:1px solid rgba(35,75,60,.5);padding:2rem 1.5rem;background:rgba(248,245,236,.8)}
.editorial-gallery .gallery-visual.memories{background:linear-gradient(145deg,#4c6c58,#1b4437)}
.editorial-gallery .gallery-visual.memories:after{content:"";width:50%;height:50%;border:1px solid #b6c5ac;transform:rotate(-11deg);position:absolute;opacity:.45}
.editorial-gallery .gallery-caption{padding:1.25rem 1.4rem 1.5rem}
.editorial-gallery .gallery-caption h3{font-size:1.32rem;line-height:1.25;margin:0 0 .45rem}
.editorial-gallery .gallery-caption p{font-size:.88rem;margin:0;color:#53665b;line-height:1.65}
.editorial-gallery .gallery-note{margin-top:1.7rem;font-size:.85rem;color:#596d61}
.editorial-gallery .gallery-note a{color:#205543;font-weight:700}
.editorial-reveal{animation:editorialIn .65s ease both}
@keyframes editorialIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){
 #page-home .hero-grid{grid-template-columns:1fr}
 #page-home .hero-art{min-height:230px;max-width:540px;width:100%;margin:.75rem 0 0;border-radius:0 5rem 0 0}
 #page-home .hero-logo-slot{width:min(100%,200px)}
 .editorial-gallery .gallery-grid{grid-template-columns:1fr 1fr}
 .editorial-gallery .gallery-card:first-child{grid-column:1/-1}
}
@media(max-width:620px){
 #page-home>.hero{padding:3.3rem 0 3.5rem}
 #page-home .hero h1{font-size:clamp(2.8rem,12vw,4rem)}
 #page-home .hero-art{min-height:200px;padding:1rem}
 #page-home .hero-event{padding:1.1rem}
 #page-home .home-remembrance{padding-top:1.3rem}
 #page-home .hero-actions .button{width:100%;justify-content:center}
 #page-home .section .card-grid{grid-template-columns:1fr}
 #page-home .section .card+.card{border-left:1px solid var(--line);border-top:0}
 .editorial-gallery .gallery-grid{grid-template-columns:1fr}
 .editorial-gallery .gallery-card:first-child{grid-column:auto}
 .editorial-gallery .gallery-visual{height:215px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .editorial-reveal{animation:none!important}
 #page-home .section .button{transition:none!important}
}


/* V3.1: give reunion logistics, unveilings, then gallery distinct visual weight. */
#page-home>.hero{padding-bottom:clamp(2.8rem,5vw,4.5rem)}
#page-home .hero-event{max-width:40rem}
#page-home .hero .hero-actions{margin-top:1.4rem}
.editorial-tribute{padding:clamp(3.1rem,5.8vw,5.4rem) 0;background:#f0ebdf;border-bottom:1px solid #ddd4c4;position:relative}
.editorial-tribute:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#1a4939 0 25%,#b89e77 25% 38%,transparent 38%)}
.editorial-tribute-inner{display:grid;grid-template-columns:minmax(210px,.34fr) minmax(0,.66fr);gap:clamp(2rem,5vw,6rem);align-items:start}
.editorial-tribute-kicker{padding-top:.6rem}
.editorial-tribute-kicker .eyebrow{color:#375b4c;letter-spacing:.16em;font-size:.75rem;font-weight:750}
.editorial-tribute-kicker p{margin:1rem 0 0;color:#5d695d;font-size:.98rem;line-height:1.6}
#page-home .editorial-tribute .home-remembrance{margin:0;max-width:760px;padding:0;border:0;background:none;color:#263c34}
#page-home .editorial-tribute .home-remembrance h2{color:#173f32;font-size:clamp(2rem,3.25vw,3.6rem);line-height:1.12;letter-spacing:-.035em;margin:.55rem 0 1.2rem}
#page-home .editorial-tribute .home-remembrance p{color:#485e52;font-size:clamp(.96rem,1.1vw,1.08rem);line-height:1.75;margin:.65rem 0}
#page-home .editorial-tribute .home-remembrance .unveiling-names{color:#175641;font-weight:800}
#page-home .editorial-tribute .home-remembrance .home-remembrance-close{color:#254a3d;font-weight:600}
.editorial-gallery{padding:clamp(3rem,5.5vw,5rem) 0;background:#fbf8f1}
.editorial-gallery .gallery-intro{max-width:670px;margin-bottom:1.6rem}
.editorial-gallery h2{font-size:clamp(2.1rem,3.7vw,3.55rem)}
.editorial-gallery .gallery-intro p{font-size:.99rem}
.editorial-gallery .gallery-grid{grid-template-columns:1.15fr .9fr .9fr;gap:.85rem}
.editorial-gallery .gallery-visual{height:clamp(160px,19vw,240px)}
.editorial-gallery .gallery-caption{padding:1rem 1.2rem 1.25rem}
.editorial-gallery .gallery-caption h3{font-size:1.2rem}
.editorial-gallery .gallery-note{margin-top:1rem}
@media(max-width:900px){
 .editorial-tribute-inner{grid-template-columns:1fr;gap:1.2rem}
 .editorial-tribute-kicker p{margin:.5rem 0 0}
 .editorial-gallery .gallery-grid{grid-template-columns:1fr 1fr}
 .editorial-gallery .gallery-card:first-child{grid-column:1 / -1}
}
@media(max-width:620px){
 .editorial-tribute{padding:2.65rem 0 3rem}
 #page-home .editorial-tribute .home-remembrance h2{font-size:clamp(2rem,9vw,2.8rem)}
 .editorial-gallery .gallery-grid{grid-template-columns:1fr}
 .editorial-gallery .gallery-card:first-child{grid-column:auto}
 .editorial-gallery .gallery-visual{height:190px}
}
