/* Editorial presentation for the clean blog; scoped away from WooCommerce. */
body.single-post,
body.blog,
body.category,
body.tag,
body.date,
body.author,
body.search-results {
  background: #fff;
  color: var(--tjp-ink);
  font-family: "Jost", "Lato", Arial, sans-serif;
}

#tjp-editorial {
  margin-inline: auto;
  padding: clamp(36px, 6vw, 88px) 0 clamp(64px, 8vw, 120px);
  width: min(92%, 1220px);
}

.tjp-editorial__eyebrow {
  color: var(--tjp-focus);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.tjp-editorial__back {
  color: var(--tjp-muted);
  display: inline-flex;
  font-size: .92rem;
  margin-bottom: 30px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tjp-article__shell,
.tjp-blog__header {
  margin-inline: auto;
  max-width: 900px;
}

.tjp-article__header h1,
.tjp-blog__header h1 {
  color: var(--tjp-ink);
  font-size: clamp(2.35rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0;
}

.tjp-article__meta {
  align-items: center;
  color: var(--tjp-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: 10px;
  margin-top: 24px;
}

.tjp-article__dek,
.tjp-blog__header > p:last-child {
  color: var(--tjp-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 64ch;
}

.tjp-article__hero {
  aspect-ratio: 16 / 9;
  background: var(--tjp-surface);
  border-radius: 22px;
  margin: clamp(34px, 6vw, 64px) 0;
  overflow: hidden;
}

.tjp-article__hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tjp-article__content {
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.78;
  margin-inline: auto;
  max-width: 720px;
}

.tjp-article__content > * + * {
  margin-top: 1.25em;
}

.tjp-article__content h2,
.tjp-article__content h3 {
  color: var(--tjp-ink);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-top: 2.2em;
}

.tjp-article__content h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.tjp-article__content h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
.tjp-article__content a { color: var(--tjp-focus); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tjp-article__content img { border-radius: 16px; height: auto; width: 100%; }
.tjp-article__content li + li { margin-top: .55em; }
.tjp-article__content blockquote { border-left: 4px solid var(--tjp-focus); color: var(--tjp-ink); font-size: 1.15em; margin: 2em 0; padding: .35em 0 .35em 1.25em; }

.tjp-article__cta {
  background: var(--tjp-surface);
  border: 1px solid var(--tjp-line);
  border-radius: 22px;
  margin: clamp(52px, 8vw, 88px) auto 0;
  max-width: 780px;
  padding: clamp(26px, 5vw, 52px);
}

.tjp-article__cta h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.16; margin: 0; }
.tjp-article__cta > p:not(.tjp-editorial__eyebrow) { color: var(--tjp-muted); font-size: 1.05rem; line-height: 1.6; }

.tjp-editorial__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tjp-editorial__button { align-items: center; border: 1px solid var(--tjp-accent); border-radius: 999px; color: var(--tjp-accent); display: inline-flex; font-weight: 700; justify-content: center; min-height: 50px; padding: 12px 22px; text-decoration: none; }
.tjp-editorial__button--primary { background: var(--tjp-accent); color: #fff; }
.tjp-editorial__button:hover { background: var(--tjp-accent-dark); border-color: var(--tjp-accent-dark); color: #fff; }

.tjp-article__navigation { border-top: 1px solid var(--tjp-line); display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 52px; padding-top: 28px; }
.tjp-article__nav-item span { color: var(--tjp-muted); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; margin-bottom: 7px; text-transform: uppercase; }
.tjp-article__nav-item a { color: var(--tjp-ink); font-weight: 700; line-height: 1.35; }
.tjp-article__nav-item--next { text-align: right; }

.tjp-blog__header { margin-bottom: clamp(38px, 6vw, 68px); }
.tjp-blog__grid { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tjp-blog-card { border: 1px solid var(--tjp-line); border-radius: 18px; display: flex; flex-direction: column; margin: 0; overflow: hidden; }
.tjp-blog-card__image { aspect-ratio: 1 / 1; background: var(--tjp-surface); display: block; overflow: hidden; }
.tjp-blog-card__image img { height: 100%; object-fit: cover; transition: transform .3s ease; width: 100%; }
.tjp-blog-card:hover .tjp-blog-card__image img { transform: scale(1.025); }
.tjp-blog-card__placeholder { background: linear-gradient(135deg, #f7f4ef, #e9e3da); display: block; height: 100%; }
.tjp-blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.tjp-blog-card time { color: var(--tjp-muted); font-size: .78rem; }
.tjp-blog-card h2 { font-size: clamp(1.28rem, 2vw, 1.6rem); line-height: 1.2; margin: 12px 0; }
.tjp-blog-card h2 a { color: var(--tjp-ink); text-decoration: none; }
.tjp-blog-card p { color: var(--tjp-muted); line-height: 1.58; margin: 0 0 20px; }
.tjp-blog-card__link { color: var(--tjp-accent); font-weight: 750; margin-top: auto; text-decoration: none; }
.tjp-blog__pagination { margin-top: 50px; text-align: center; }
.tjp-blog__pagination .page-numbers { border: 1px solid var(--tjp-line); border-radius: 999px; color: var(--tjp-ink); display: inline-flex; margin: 4px; padding: 9px 14px; }
.tjp-blog__pagination .current { background: var(--tjp-accent); color: #fff; }

@media (max-width: 920px) {
  .tjp-blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  #tjp-editorial { padding-top: 30px; width: min(90%, 1220px); }
  .tjp-blog__grid { grid-template-columns: 1fr; }
  .tjp-article__header h1,
  .tjp-blog__header h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .tjp-article__hero { aspect-ratio: 4 / 3; border-radius: 14px; }
  .tjp-article__navigation { grid-template-columns: 1fr; }
  .tjp-article__nav-item--next { text-align: left; }
  .tjp-editorial__actions { flex-direction: column; }
  .tjp-editorial__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tjp-blog-card__image img { transition: none; }
}
