/* ============================================
   PUBLICATIONS PAGE
   ============================================ */

body { background: var(--cream-50); }

.nav-links a.active {
  color: var(--cream);
  position: relative;
}

.nav.on-light .nav-links a.active {
  color: var(--navy-900);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue-300);
}

/* ============================================
   PUB HEADER (shared by index list + each article)
   ============================================ */
.pub-header {
  padding: 180px 0 100px;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(46, 59, 196, 0.3), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(107, 127, 232, 0.18), transparent 55%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.pub-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.pub-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue-300);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.pub-header-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.pub-header-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  font-variation-settings: "opsz" 96;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.pub-header-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--blue-300);
  font-weight: 400;
}

.pub-header-lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--white-70);
  max-width: 720px;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.pub-header-lead em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
}

/* ============================================
   PUB MAIN — cards list
   ============================================ */
.pub-main {
  padding: 100px 0 160px;
  background: var(--cream-50);
}

.pub-cards {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pub-card {
  display: block;
  padding: 36px 40px;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.pub-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-600);
}

.pub-card:hover::after {
  transform: scaleX(1);
}

.pub-card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.pub-tag {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--navy-900);
  color: var(--cream);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pub-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pub-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 56;
}

.pub-card-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-70);
  margin-bottom: 24px;
}

.pub-card-excerpt em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05em;
}

.pub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-700);
}

.pub-card:hover .pub-card-cta svg {
  transform: translateX(4px);
}

.pub-card-cta svg {
  transition: transform 0.3s var(--ease);
}

@media (max-width: 768px) {
  .pub-header { padding: 140px 0 80px; }
  .pub-main { padding: 60px 0 100px; }
  .pub-card { padding: 28px 24px; }
}

