/* ============================================================
   PUBLICATION SHELF
   Every publication section carries its own --pa / --pa2 / --pbg
   inline, which is how twelve pieces share one stylesheet.
   Scoped to .pubshelf so it can't leak into the rest of the theme.
   ============================================================ */

.pubshelf {
  --white:    #FFFFFF;
  --gray-400: #9298A8;
  --gray-700: #3A4154;
  --div-dark:  rgba(16, 20, 31, .09);
  --div-light: rgba(255, 255, 255, .1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ff: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --ft: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --fm: 'Courier New', monospace;

  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pubshelf *,
.pubshelf *::before,
.pubshelf *::after { box-sizing: border-box; }

.pubshelf img { max-width: 100%; height: auto; display: block; }

.pubshelf button { font-family: inherit; }

.pubshelf :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- hero ---------------------------------------------------------- */

.ps-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ps-hero__geo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ps-sheet { position: absolute; border: 1px solid rgba(255, 255, 255, .05); }

.ps-hero__top {
  padding: 2.5rem 3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.ps-hero__eye { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ps-hero__cat { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ps-hero__sep { color: var(--gray-400); }
.ps-hero__subcat { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.ps-hero__idx { font-family: var(--fm); font-size: .65rem; color: rgba(255, 255, 255, .3); white-space: nowrap; }

.ps-hero__body {
  flex: 1;
  padding: 2rem 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.ps-hero__tag {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .75rem;
  display: flex; align-items: center; gap: .75rem;
}
.ps-hero__tag::before { content: ''; width: 28px; height: 2px; background: currentColor; flex-shrink: 0; }

.ps-hero__title {
  font-family: var(--ft);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.ps-hero__title .a1 { color: var(--gold); }
.ps-hero__title .a2 { color: var(--gray-400); }

.ps-hero__chips { display: flex; gap: 4px; margin: 1.5rem 0; flex-wrap: wrap; }
.ps-chip {
  font-family: var(--ft);
  font-size: clamp(.68rem, 1.4vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35em .9em;
  color: var(--white);
}

.ps-hero__sub {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}

.ps-hero__right { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-end; padding-bottom: .5rem; }
.ps-hero__badge { border: 2px solid var(--gold); padding: 1.25rem 1.5rem; text-align: right; min-width: 230px; }
.ps-hero__badgelbl { font-size: .55rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.ps-hero__badgeval { font-size: .88rem; font-weight: 700; color: var(--white); line-height: 1.45; }

/* cover shelf */

.ps-hero__shelf {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  height: clamp(240px, 38vh, 460px);
  border-top: 4px solid var(--gold);
  position: relative;
  z-index: 2;
  background: var(--ink2);
}

.ps-hero__cover {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  padding: 0;
  background: none;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
}
.ps-hero__cover:last-child { border-right: none; }

.ps-hero__cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease), filter .3s;
}
.ps-hero__cover:hover img { transform: scale(1.05); filter: saturate(1.12); }

.ps-hero__coverov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 14, 23, .75) 0%, transparent 52%);
  pointer-events: none;
}
.ps-hero__coverlbl {
  position: absolute; bottom: .9rem; left: 1rem; right: 1rem;
  font-size: .56rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); line-height: 1.5;
}
.ps-hero__coveryr {
  position: absolute; top: .9rem; left: 1rem;
  font-family: var(--fm); font-size: .58rem; letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}

/* ---------- colour bar ---------------------------------------------------- */

.ps-colorbar { display: flex; height: 6px; }
.ps-colorbar > div { flex: 1; }

/* ---------- meta strip ---------------------------------------------------- */

.ps-metastrip { background: var(--ink2); border-bottom: 1px solid var(--div-light); }
.ps-metastrip__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ps-metacell { padding: 2rem 2.5rem; border-right: 1px solid var(--div-light); }
.ps-metacell:last-child { border-right: none; }
.ps-metacell__l { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .65rem; }
.ps-metacell__v { font-size: .86rem; color: rgba(255, 255, 255, .92); line-height: 1.55; }

.ps-tag {
  display: inline-block;
  font-size: .62rem; letter-spacing: .06em;
  padding: .25em .75em;
  border: 1px solid rgba(255, 255, 255, .28);
  margin: .15em .2em .15em 0;
  color: var(--gold);
  background: rgba(255, 255, 255, .06);
}

/* ---------- section system ------------------------------------------------ */

.ps-section { padding: 6rem 3rem; max-width: 1400px; margin: 0 auto; }
.ps-section--tight { padding-top: 3rem; padding-bottom: 0; }

.ps-band--white { background: var(--white); }

.ps-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ps-eyebrow__n { font-family: var(--fm); font-size: .62rem; color: var(--accent-text, var(--gold)); letter-spacing: .1em; white-space: nowrap; }
.ps-eyebrow__l { font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gray-400); }
.ps-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--div-dark); }

.ps-on-dark .ps-eyebrow::after { background: var(--div-light); }
.ps-on-dark .ps-eyebrow__l { color: rgba(255, 255, 255, .45); }

.ps-h2 {
  font-family: var(--ft);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.ps-h2 em { font-style: italic; font-family: var(--ff); font-weight: 400; color: var(--accent-text, inherit); }
.ps-on-dark .ps-h2 { color: var(--white); }

.ps-body { font-size: 1rem; color: var(--gray-700); line-height: 1.85; max-width: 680px; }
.ps-body p { margin: 0 0 1.1rem; }
.ps-body p:last-child { margin-bottom: 0; }
.ps-body strong { font-weight: 700; color: var(--ink); }
.ps-on-dark .ps-body { color: rgba(255, 255, 255, .72); }
.ps-on-dark .ps-body strong { color: var(--white); }

.ps-two { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

/* ---------- jump index ---------------------------------------------------- */

.ps-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(0, 0, 0, .06);
  margin-top: 3rem;
}

.ps-index__item {
  padding: 2.25rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: filter .2s;
  text-decoration: none;
  display: block;
  min-height: 150px;
}
.ps-index__item:hover { filter: brightness(1.12); }

.ps-index__letter {
  font-family: var(--ft);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, .16);
  line-height: 1;
  position: absolute;
  right: 1rem; bottom: -.5rem;
  letter-spacing: -.04em;
}
.ps-index__word {
  display: block;
  font-family: var(--ft);
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
  position: relative;
  z-index: 1;
}
.ps-index__body { display: block; font-size: .8rem; color: rgba(255, 255, 255, .75); line-height: 1.6; position: relative; z-index: 1; }
.ps-index__num { display: block; font-family: var(--fm); font-size: .55rem; color: rgba(255, 255, 255, .6); letter-spacing: .1em; margin-bottom: .5rem; position: relative; z-index: 1; }

/* ---------- publication section ------------------------------------------- */

.ps-pub {
  background: var(--pbg);
  /* Jump links must clear a sticky theme header. */
  scroll-margin-top: 90px;
}

/* Which accent carries TEXT depends on the scheme. The bright secondary
   reads well on a dark panel but fails contrast on white, so light and
   paper sections use the primary (darker) accent for type and keep the
   bright one for fills only. */
.ps-on-dark            { --accent-text: var(--pa2); }
.ps-pub--light,
.ps-pub--paper         { --accent-text: var(--pa); }
.pubshelf              { --accent-text: var(--gold); }

.ps-pub__header {
  padding: 3.5rem 3rem 0;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}

.ps-pub__tag {
  display: inline-block;
  font-family: var(--ft);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .45em 1.1em;
  background: var(--pa2);
  color: var(--ink);
}

.ps-pub__name { font-family: var(--ft); font-size: 1.02rem; font-weight: 700; color: var(--pa); }
.ps-on-dark .ps-pub__name { color: var(--white); }

/* meta chips */

.ps-pubmeta {
  display: flex; flex-wrap: wrap; gap: 1px;
  margin: 2rem 0 0;
  background: rgba(0, 0, 0, .1);
}
.ps-on-dark .ps-pubmeta { background: rgba(255, 255, 255, .16); }

.ps-pubmeta__cell { padding: 1rem 1.75rem; flex: 1; min-width: 140px; background: var(--pbg); }
.ps-on-dark .ps-pubmeta__cell { background: var(--pa); }

.ps-pubmeta__l { font-size: .54rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; margin-bottom: .3rem; color: var(--accent-text); }
.ps-pubmeta__v { font-family: var(--ft); font-size: .9rem; font-weight: 700; color: var(--ink); }
.ps-on-dark .ps-pubmeta__v { color: var(--white); }

/* links */

.ps-pub__links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.ps-btn {
  display: inline-block;
  font-family: var(--ft);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .85em 1.75em;
  border: 2px solid var(--accent-text);
  color: var(--accent-text);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ps-btn:hover { background: var(--accent-text); color: var(--white); }
.ps-on-dark .ps-btn:hover { color: var(--ink); }

/* ---------- carousel ------------------------------------------------------ */

.ps-car { padding: 0 0 4.5rem; }

.ps-car__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: 2.5rem 3rem 2rem; }
.ps-car__ttl { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gray-700); }
.ps-on-dark .ps-car__ttl { color: rgba(255, 255, 255, .5); }

.ps-car__btns { display: flex; gap: .5rem; flex-shrink: 0; }

.ps-car__btn {
  width: 38px; height: 38px;
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  border: 2px solid rgba(16, 20, 31, .28);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.ps-car__btn:hover:not(:disabled) { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ps-car__btn:disabled { opacity: .3; cursor: default; }

.ps-on-dark .ps-car__btn { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.ps-on-dark .ps-car__btn:hover:not(:disabled) { background: var(--white); color: var(--ink); border-color: var(--white); }

.ps-car__outer { overflow: hidden; }

.ps-car__track {
  display: flex; gap: 1px;
  transition: transform .55s var(--ease);
  background: rgba(0, 0, 0, .05);
}
.ps-on-dark .ps-car__track { background: rgba(0, 0, 0, .28); }

.ps-car__slide { flex: 0 0 calc(50% - .5px); min-width: 0; }

.ps-car__zoom {
  display: block; width: 100%;
  border: 0; padding: 0; background: none;
  cursor: zoom-in;
}

.ps-car__img {
  width: 100%;
  height: clamp(320px, 52vh, 560px);
  object-fit: contain;
  padding: 2rem;
  transition: filter .25s;
}
.ps-car__zoom:hover .ps-car__img { filter: brightness(1.05); }

.ps-car__lbl {
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .9rem 2rem 0;
  color: var(--gray-400);
}
.ps-on-dark .ps-car__lbl { color: rgba(255, 255, 255, .4); }

.ps-car__dots { display: flex; gap: .5rem; justify-content: center; padding-top: 2rem; flex-wrap: wrap; }
.ps-car__dot {
  width: 26px; height: 3px;
  border: none; padding: 0;
  cursor: pointer;
  background: rgba(16, 20, 31, .18);
  transition: background .25s;
}
.ps-car__dot.is-active { background: var(--ink); }
.ps-on-dark .ps-car__dot { background: rgba(255, 255, 255, .22); }
.ps-on-dark .ps-car__dot.is-active { background: var(--white); }

/* ---------- close --------------------------------------------------------- */

.ps-close {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 48%, var(--ink) 100%);
  position: relative;
  overflow: hidden;
}
.ps-close::before,
.ps-close::after { content: ''; position: absolute; background: var(--gold); }
.ps-close::before { right: -4%; top: -14%; width: 420px; height: 560px; opacity: .08; transform: rotate(9deg); }
.ps-close::after { left: -4%; bottom: -16%; width: 320px; height: 440px; opacity: .06; transform: rotate(-7deg); }

.ps-close__inner { padding: 7rem 3rem; max-width: 1100px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.ps-close__pre { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.5rem; }
.ps-close__title {
  font-family: var(--ft);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900; text-transform: uppercase;
  color: var(--white); line-height: .95;
  letter-spacing: -.02em; margin: 0 0 1.75rem;
  text-wrap: balance;
}
.ps-close__body { font-size: 1.02rem; color: rgba(255, 255, 255, .68); line-height: 1.85; max-width: 760px; margin: 0 auto 2.5rem; }
.ps-close__body p { margin: 0 0 1rem; }
.ps-close__tag {
  display: inline-block;
  font-family: var(--ft);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .65em 2em; font-weight: 700;
  border: 2px solid var(--gold); color: var(--gold);
}

/* ---------- lightbox ------------------------------------------------------ */

.ps-lb {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 14, 23, .97);
  z-index: 99999;
  align-items: center; justify-content: center;
}
.ps-lb.is-open { display: flex; }

.ps-lb__x {
  position: fixed; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .4);
  background: none; color: var(--gold);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
}
.ps-lb__x:hover { background: var(--gold); color: var(--ink); }

.ps-lb__img { max-width: 96vw; max-height: 92vh; object-fit: contain; }

/* ---------- reveal -------------------------------------------------------- */

.ps-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ps-reveal.is-vis { opacity: 1; transform: none; }
.ps-d1 { transition-delay: .08s; }
.ps-d2 { transition-delay: .16s; }

/* ---------- responsive ---------------------------------------------------- */

@media (max-width: 900px) {
  .ps-hero__body { grid-template-columns: 1fr; gap: 2.5rem; }
  .ps-hero__right { align-items: flex-start; }
  .ps-hero__badge { text-align: left; }
  .ps-two { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .ps-car__slide { flex: 0 0 100%; }
}

@media (max-width: 700px) {
  .ps-section { padding: 4rem 1.5rem; }
  .ps-hero__top,
  .ps-hero__body { padding-left: 1.5rem; padding-right: 1.5rem; }
  .ps-pub__header { padding: 2.5rem 1.5rem 0; }
  .ps-car__head { padding: 2rem 1.5rem 1.5rem; }
  .ps-car__img { padding: 1rem; height: clamp(240px, 42vh, 380px); }
  .ps-car__lbl { padding: .75rem 1.5rem 0; }
  .ps-metacell { padding: 1.5rem; }
  .ps-close__inner { padding: 4.5rem 1.5rem; }
  .ps-hero__shelf { grid-template-columns: repeat(2, 1fr); height: auto; }
  .ps-hero__cover { height: 44vw; }
}

@media (prefers-reduced-motion: reduce) {
  .pubshelf *,
  .pubshelf *::before,
  .pubshelf *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ps-reveal { opacity: 1; transform: none; }
}

@media print {
  .ps-car__btns, .ps-car__dots, .ps-lb { display: none !important; }
  .ps-reveal { opacity: 1; transform: none; }
  .ps-car__track { transform: none !important; flex-wrap: wrap; }
}
