/* ══════════════════════════════════════════════════════════════
   THE INFLUENCE EDIT · JOURNAL  (journal.css)
   Blog index (journal.html) and article page (journal-post.html).
   Posts are written in WordPress and pulled in by journal.js;
   header, footer and motion come from site.css + site.js.
   ══════════════════════════════════════════════════════════════ */

.jr-eyebrow {
  display: block;
  font-size: 16px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--warm);
}
.jr-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 36px; border-radius: 99px;
  background: var(--pearl-black); color: var(--editorial-white);
  font-size: 16px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background .45s var(--ease-editorial), gap .45s var(--ease-editorial);
}
.jr-btn:hover { background: var(--cherry); gap: 22px; }

/* ── INDEX HERO ── */
.jr-hero {
  padding: clamp(140px, 15vw, 200px) 4vw clamp(56px, 6vw, 96px);
  background: var(--editorial-white);
}
.jr-hero .jr-eyebrow { margin-bottom: clamp(20px, 2.5vw, 36px); }
.jr-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 220px);
  line-height: .86;
  letter-spacing: -.035em;
  color: var(--pearl-black);
}
.jr-hero-title em { font-style: italic; color: var(--cherry); }
.jr-hero-title .jr-right { display: block; text-align: right; }
.jr-hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.jr-hero-sub { max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--warm); }

/* Category filter */
.jr-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.jr-filter {
  font: inherit; font-size: 16px; letter-spacing: .06em;
  padding: 10px 18px; border-radius: 99px;
  border: 1px solid rgba(11,11,12,.22); background: transparent; color: var(--pearl-black);
  cursor: pointer; transition: background .35s var(--ease-editorial), color .35s var(--ease-editorial), border-color .35s;
}
.jr-filter:hover { border-color: var(--pearl-black); }
.jr-filter[aria-pressed="true"] { background: var(--pearl-black); color: var(--editorial-white); border-color: var(--pearl-black); }

/* ── FEATURED (latest) POST ── */
.jr-featured { padding: 0 4vw clamp(72px, 8vw, 120px); }
.jr-feature {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 64px);
  align-items: center; color: inherit; text-decoration: none;
}
.jr-feature-img, .jr-card-img {
  position: relative; overflow: hidden;
  border-radius: clamp(14px, 1.4vw, 22px);
  background: var(--taupe);
}
.jr-feature-img { aspect-ratio: 16 / 10; }
.jr-feature-img img, .jr-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-editorial);
}
.jr-feature:hover .jr-feature-img img, .jr-card:hover .jr-card-img img { transform: scale(1); }
.jr-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm);
}
.jr-meta .jr-cat { color: var(--cherry); }
.jr-feature-title {
  margin: 18px 0 20px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 80px); line-height: .98; letter-spacing: -.02em;
}
.jr-feature-excerpt { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.6; color: #3a3430; max-width: 46ch; }
.jr-read {
  display: inline-flex; gap: 10px; margin-top: 28px;
  font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: gap .45s var(--ease-editorial), color .35s;
}
.jr-feature:hover .jr-read, .jr-card:hover .jr-read { gap: 18px; color: var(--cherry); }

/* Typographic cover when a post has no featured image */
.jr-cover {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: 8%; background: var(--cherry); color: var(--editorial-white);
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(28px, 3vw, 48px); line-height: 1;
}

/* ── GRID OF POSTS ── */
.jr-list { padding: 0 4vw clamp(96px, 10vw, 160px); }
.jr-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 28px; margin-bottom: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}
.jr-list-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3.4vw, 56px); }
.jr-list-head h2 em { font-style: italic; }
.jr-count { font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); }
.jr-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4.5vw, 72px) clamp(20px, 2.4vw, 40px);
}
.jr-card { display: block; color: inherit; text-decoration: none; }
.jr-card:nth-child(3n+2) { margin-top: clamp(0px, 6vw, 96px); }
.jr-card-img { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.jr-card-title {
  margin: 12px 0 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.1vw, 36px); line-height: 1.08;
}
.jr-card-excerpt { margin-top: 12px; font-size: 17px; line-height: 1.6; color: #3a3430; }
.jr-card .jr-read { margin-top: 18px; }

.jr-status { padding: 40px 0; font-size: 18px; color: var(--warm); }
.jr-status a { color: var(--cherry); }

/* Loading shimmer */
.jr-skel { border-radius: 18px; background: linear-gradient(100deg, #ece5dc 30%, #f6f1ea 50%, #ece5dc 70%); background-size: 300% 100%; animation: jr-shimmer 1.6s linear infinite; }
@keyframes jr-shimmer { to { background-position: -150% 0; } }

/* ══ ARTICLE PAGE ══ */
.jp-hero {
  padding: clamp(140px, 14vw, 190px) 4vw clamp(40px, 4vw, 64px);
  background: var(--editorial-white);
}
.jp-back {
  display: inline-flex; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px);
  font-size: 16px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pearl-black); text-decoration: none;
  transition: gap .45s var(--ease-editorial), color .35s;
}
.jp-back:hover { gap: 18px; color: var(--cherry); }
.jp-title {
  max-width: 16ch; margin: 22px 0 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7.2vw, 128px); line-height: .92; letter-spacing: -.03em;
}
.jp-dek { max-width: 48ch; margin-top: clamp(24px, 2.6vw, 36px); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: var(--warm); }
.jp-figure { padding: 0 4vw; }
.jp-figure-inner { overflow: hidden; border-radius: clamp(14px, 1.4vw, 22px); max-height: 78vh; background: var(--taupe); }
.jp-figure-inner img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; display: block; }

.jp-body {
  max-width: 720px; margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) 24px clamp(64px, 7vw, 112px);
  font-size: 19px; line-height: 1.75; color: #1f1b19;
}
.jp-body > * + * { margin-top: 1.25em; }
.jp-body h2, .jp-body h3, .jp-body h4 {
  font-family: var(--font-display); font-weight: 400; color: var(--pearl-black);
  line-height: 1.08; letter-spacing: -.01em;
  margin-top: 2em;
}
.jp-body h2 { font-size: clamp(32px, 3vw, 46px); }
.jp-body h3 { font-size: clamp(26px, 2.2vw, 34px); }
.jp-body h4 { font-size: 24px; }
.jp-body a { color: var(--cherry); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jp-body a:hover { text-decoration-thickness: 2px; }
.jp-body strong { font-weight: 600; }
.jp-body ul, .jp-body ol { padding-left: 1.3em; }
.jp-body li + li { margin-top: .5em; }
.jp-body li::marker { color: var(--cherry); }
.jp-body blockquote {
  margin: 2em 0; padding: 0 0 0 28px; border-left: 2px solid var(--cherry);
  font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3;
}
.jp-body blockquote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-style: normal; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.jp-body figure { margin: 2.2em 0; }
.jp-body img { display: block; height: auto; border-radius: 14px; }
.jp-body figcaption { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--warm); }
.jp-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }
.jp-body table { width: 100%; border-collapse: collapse; font-size: 17px; }
.jp-body th, .jp-body td { padding: 12px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.jp-body th { font-weight: 600; }
.jp-body .wp-block-table { overflow-x: auto; }
.jp-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
/* The "THE INFLUENCE EDIT · …" kicker line at the top of each post */
.jp-body .jp-kicker {
  display: inline-block; padding: 10px 16px; border-radius: 99px;
  background: rgba(177,18,38,.08); color: var(--cherry);
  font-size: 16px; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase;
}
.jp-body .jp-kicker strong { font-weight: 500; }
.jp-body .jp-lede { font-size: clamp(22px, 1.8vw, 26px); line-height: 1.45; color: var(--pearl-black); }
.jp-body .jp-small { font-size: 16px; line-height: 1.6; color: var(--warm); }
.jp-body figure img { margin: 0 auto; width: auto; max-width: 100%; }
.jp-body figure:has(> a > img[width="600"]), .jp-body figure:has(> img[width="600"]) { max-width: 520px; margin-left: auto; margin-right: auto; }
.jp-body article, .jp-body aside { display: block; }
.jp-body article > * + *, .jp-body aside > * + * { margin-top: 1.25em; }
.jp-body aside { margin-top: 3em; padding: 28px 32px; border-radius: 18px; background: rgba(217,203,190,.35); }
.jp-body .wp-block-embed__wrapper, .jp-body .embed-youtube { display: block; }

.jp-tags { max-width: 720px; margin: 0 auto; padding: 0 24px clamp(56px, 6vw, 88px); display: flex; flex-wrap: wrap; gap: 10px; }
.jp-tag { padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(11,11,12,.18); font-size: 16px; color: var(--warm); }

/* Author / hire band */
.jp-author {
  background: var(--pearl-black); color: var(--editorial-white);
  padding: clamp(72px, 8vw, 128px) 4vw;
}
.jp-author-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.jp-author .jr-eyebrow { color: var(--taupe); }
.jp-author h2 { margin-top: 18px; max-width: 18ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 72px); line-height: 1; }
.jp-author h2 em { font-style: italic; color: #e9a5ad; }
.jp-author .jr-btn { background: var(--editorial-white); color: var(--pearl-black); }
.jp-author .jr-btn:hover { background: var(--cherry); color: var(--editorial-white); }

.jp-more { padding: clamp(80px, 8vw, 128px) 4vw clamp(96px, 10vw, 160px); }
.jp-more .jr-grid .jr-card:nth-child(3n+2) { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .jr-feature { grid-template-columns: 1fr; }
  .jr-grid { grid-template-columns: repeat(2, 1fr); }
  .jr-card:nth-child(3n+2) { margin-top: 0; }
  .jr-card:nth-child(even) { margin-top: clamp(0px, 8vw, 80px); }
  .jp-more .jr-grid .jr-card:nth-child(even) { margin-top: 0; }
}
@media (max-width: 768px) {
  .jr-hero-foot { flex-direction: column; align-items: flex-start; }
  .jr-filters {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    width: calc(100% + 8vw); margin-right: -4vw; padding-right: 4vw;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .jr-filters::-webkit-scrollbar { display: none; }
  .jr-filter { flex: 0 0 auto; }
  .jr-hero-title .jr-right { text-align: left; padding-left: 12vw; }
  .jr-grid { grid-template-columns: 1fr; }
  .jr-card:nth-child(even) { margin-top: 0; }
  .jr-card-img { aspect-ratio: 4 / 3; }
  .jp-body { font-size: 18px; }
  .jp-author-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-feature-img img, .jr-card-img img { transform: none; transition: none; }
  .jr-skel { animation: none; }
}
