/* ==========================================================================
   Inkyy — WordPress additions to blog.css
   Real headings in cards, topic links, pagination, author mark, square covers,
   block-editor content inside .prose, admin bar and the v2 preview badge.
   ========================================================================== */

/* ---------- Headings that were spans in the static design ---------- */
.featured__title,
.post__title { font-weight: 400; }
.featured__title { display: block; }

/* ---------- Topic links (server-rendered, replace the JS filter) ---------- */
.filter[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Pagination ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(56px, 6vw, 88px);
}
.pager .page-numbers,
.pager .post-page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.pager a.page-numbers:hover,
.pager a.post-page-numbers:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.3); }
.pager .current { background: var(--ink); color: #fff; box-shadow: none; }
.pager .dots { box-shadow: none; min-width: 0; padding: 0 4px; }
.prose .pager { justify-content: flex-start; }

/* ---------- Team byline mark (no personal avatar) ---------- */
.author__mark {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.author__mark svg { width: 46%; height: auto; }

/* ---------- Square covers (most older posts) ---------- */
.article-cover.is-square {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: auto;
}
.article-cover.is-square img { height: auto; }

/* ---------- Block editor content ---------- */
.prose > p:first-child {
  font-size: clamp(21px, 1.7vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.prose img { height: auto; }
.prose figure { margin: 2.4em 0; }
.prose figure img,
.prose > p img { border-radius: var(--radius-lg); }
.prose figcaption,
.prose .wp-element-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .aligncenter img { margin: 0 auto; }
.prose h4 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose h2 strong,
.prose h3 strong { font-weight: inherit; }
.prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose blockquote {
  margin: 2.2em 0;
  padding-left: 24px;
  border-left: 2px solid var(--ink);
}
.prose blockquote p {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--ink-3); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .wp-block-table { overflow-x: auto; }
.prose th,
.prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 500; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.85em; padding: 2px 6px; border-radius: 6px; background: var(--surface); }
.prose pre { overflow-x: auto; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); font-size: 15px; }
.prose pre code { padding: 0; background: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose iframe,
.prose video { max-width: 100%; border-radius: var(--radius-lg); }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
}
.prose ul ul,
.prose ol ol { margin-top: 0.6em; }

/* ---------- Skip link ---------- */
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

/* ---------- WordPress admin bar ---------- */
.admin-bar .header,
.admin-bar .read-progress { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .header,
  .admin-bar .read-progress { top: 46px; }
}

/* ---------- v2 preview badge (only rendered in preview) ---------- */
.v2-preview-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
