/* Meridian - editorial magazine. Split hero, drop cap, uneven grid.
   No literal colours. */

.tp-theme-meridian{background:var(--tp-surface)}

/* ---- header: rule above, serif wordmark, spaced nav ---- */
.mer-header{border-bottom:2px solid var(--tp-ink);background:var(--tp-surface)}
.mer-header__inner{display:flex;align-items:center;justify-content:space-between;gap:26px;padding-top:22px;padding-bottom:22px}
.mer-brand{font-family:var(--tp-ff-heading);font-size:1.7rem;font-weight:600;color:var(--tp-ink);display:flex;align-items:center;gap:12px}
.mer-brand img{max-height:48px;width:auto}
.mer-nav{display:flex;gap:30px}
.mer-nav a{font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--tp-ink-muted)}
.mer-nav a:hover,.mer-nav a[aria-current=page]{color:var(--tp-theme-primary)}

/* ---- split hero: type left, tall image right ---- */
.mer-hero{display:grid;grid-template-columns:55fr 45fr;min-height:520px;border-bottom:1px solid var(--tp-border)}
.mer-hero__text{padding:clamp(56px,7vw,104px) clamp(32px,4vw,64px) clamp(56px,7vw,104px) 0;display:flex;flex-direction:column;justify-content:center}
.mer-hero__text h1{font-size:clamp(2.4rem,1.4rem + 4.2vw,4.4rem);line-height:1.02;letter-spacing:-.03em;margin:0 0 var(--tp-sp-5)}
.mer-hero__text p{font-size:clamp(1.05rem,1rem + .35vw,1.22rem);line-height:1.55;color:var(--tp-ink-muted);max-width:44ch}
.mer-hero__img{position:relative;overflow:hidden;background:var(--tp-brand-tint)}
.mer-hero__img img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.mer-kicker{font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:var(--tp-theme-primary);margin:0 0 20px;font-weight:600}
.mer-hero__mono{
  display:flex;align-items:center;justify-content:center;height:100%;
  font-family:var(--tp-ff-heading);font-size:7rem;color:var(--tp-theme-primary);opacity:.28;
}

/* thumbnail strip of the remaining banners */
.mer-thumbs{display:flex;gap:0;border-bottom:1px solid var(--tp-border)}
.mer-thumbs>div{flex:1;border-right:1px solid var(--tp-border);overflow:hidden}
.mer-thumbs>div:last-child{border-right:0}
.mer-thumbs img{width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .5s}
.mer-thumbs>div:hover img{transform:scale(1.06)}

/* ---- article with drop cap ---- */
.mer-article{columns:2;column-gap:52px}
.mer-article>p:first-of-type::first-letter{
  font-family:var(--tp-ff-heading);float:left;font-size:3.6rem;line-height:.82;
  padding:6px 10px 0 0;color:var(--tp-theme-primary);
}
.mer-figure{margin:0 0 34px}
.mer-figure img{width:100%;aspect-ratio:16/10;object-fit:cover}

/* ---- uneven card grid: first card is double width ---- */
.mer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px}
.mer-grid>article:first-child{grid-column:span 2}
.mer-grid>article:first-child .mer-card__img{aspect-ratio:16/9}
.mer-card__img{aspect-ratio:3/4;overflow:hidden;background:var(--tp-surface-3);margin-bottom:14px}
.mer-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.mer-card:hover .mer-card__img img{transform:scale(1.05)}
.mer-card h3{font-size:1.28rem;margin:0;letter-spacing:-.015em}
.mer-card{cursor:default}
.mer-card__rule{width:34px;height:2px;background:var(--tp-theme-primary);margin:0 0 12px}

/* ---- single large pull quote ---- */
.mer-pull{max-width:820px;margin:0 auto;text-align:center}
.mer-pull p{font-family:var(--tp-ff-heading);font-size:clamp(1.35rem,3vw,2rem);line-height:1.45;color:var(--tp-ink);margin:0 0 22px}
.mer-pull cite{font-style:normal;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tp-ink-muted)}

/* ---- greyscale client grid ---- */
.mer-logos{display:grid;grid-template-columns:repeat(6,1fr);gap:38px;align-items:center}
.mer-logos img{width:100%;height:44px;object-fit:contain;filter:grayscale(1);opacity:.55;transition:filter .3s,opacity .3s}
.mer-logos img:hover{filter:none;opacity:1}

.tp-theme-meridian .tp-pagehead{background:var(--tp-surface);border-bottom:1px solid var(--tp-border);padding:64px 0}
.tp-theme-meridian .tp-footer{background:var(--tp-surface);border-top:2px solid var(--tp-ink)}
.tp-theme-meridian .tp-newsletter{border-top:1px solid var(--tp-border);border-bottom:1px solid var(--tp-border)}

@media (max-width:991px){
  .mer-hero{grid-template-columns:1fr}
  .mer-hero__text{padding:52px 0}
  .mer-hero__img{min-height:320px}
  .mer-article{columns:1}
  .mer-grid{grid-template-columns:repeat(2,1fr)}
  .mer-grid>article:first-child{grid-column:span 2}
  .mer-logos{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:767px){
  .mer-nav{gap:14px}
  .mer-grid{grid-template-columns:1fr}
  .mer-grid>article:first-child{grid-column:span 1}
  .mer-thumbs{flex-direction:column}
}

/* Single active indicator: a line under the current page. */
.mer-nav a{position:relative}
.mer-nav a[aria-current=page]::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:2px;background:var(--tp-theme-primary);border-radius:2px}

/* ===== finishing layer ===== */
.tp-theme-meridian{background:var(--tp-surface)}
.mer-header{position:sticky;top:0;z-index:60;background:var(--tp-surface)}
.mer-hero__text h1{letter-spacing:-.035em}
.mer-hero__img{box-shadow:inset 0 0 0 1px var(--tp-border)}
.mer-card__img{box-shadow:var(--tp-shadow-sm)}
.mer-card:hover .mer-card__img{box-shadow:var(--tp-shadow-lg)}
.tp-theme-meridian .tp-section--tight:nth-of-type(even){background:var(--tp-surface-2)}
.mer-pull{padding:0 var(--tp-sp-5)}
.mer-pull p::before,.mer-pull p::after{content:'\201C';display:none}
.tp-theme-meridian .tp-btn{border-radius:0;letter-spacing:.04em;text-transform:uppercase;font-size:.82rem}
