/* ═══════════════════════════════════════════════════════════
   GENERAL COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* Page headers */
.v-page-header {
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.v-page-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Blog post list (archive) */
.v-post-list {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 34px;
}
@media (min-width: 720px) { .v-post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .v-post-list { grid-template-columns: repeat(3, 1fr); } }

.v-post-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .2s;
}
.v-post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.v-post-thumb img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 20px; aspect-ratio: 16/10; object-fit: cover; }
.v-post-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; }
.v-post-meta .v-entry-sep { margin: 0 8px; }
.v-post-title { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.v-post-title a { text-decoration: none; color: var(--ink); }
.v-post-title a:hover { color: var(--brand); }
html[data-theme="dark"] .v-post-title a:hover { color: var(--brand-mid); }
.v-post-excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 16px; }
.v-post-more {
  font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: gap .15s;
}
.v-post-more:hover { gap: 10px; color: var(--brand); }
html[data-theme="dark"] .v-post-more:hover { color: var(--brand-mid); }

/* Single post */
.v-single { max-width: 760px; }
.v-single-header { padding: 16px 0 24px; text-align: center; }
.v-single-meta { font-size: 13px; color: var(--ink-mute); margin-bottom: 16px; }
.v-single-title {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.v-single-thumb { margin-bottom: 29px; border-radius: var(--radius-lg); overflow: hidden; }
.v-single-thumb img { width: 100%; height: auto; }
.v-single-content { font-size: 18px; line-height: 1.7; color: var(--ink); }
.v-single-content p { margin: 0 0 1.2em; }
.v-single-content h2 { font-size: 28px; margin: 2em 0 .6em; }
.v-single-content h3 { font-size: 22px; margin: 1.8em 0 .5em; }
.v-single-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .v-single-content a { color: var(--brand-mid); }
.v-single-content blockquote { border-left: 3px solid var(--brand); padding-left: 24px; margin: 24px 0; font-style: italic; color: var(--ink-soft); }
.v-single-content ul, .v-single-content ol { margin: 0 0 1.2em; padding-left: 24px; }
.v-single-content li { margin-bottom: 8px; }
.v-single-content img { border-radius: var(--radius); margin: 24px 0; }

/* Pagination */
.v-pagination { padding: 16px 0 29px; }
/* WordPress's the_posts_pagination() nests the links inside .nav-links, so the
   flex row lives there (not on the wrapper). */
.v-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.v-pagination .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.v-pagination .page-numbers {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: 13.5px; color: var(--ink-soft); text-decoration: none;
  transition: all .15s; padding: 0 12px;
}
.v-pagination .page-numbers:hover { background: var(--bg-soft); color: var(--ink); }
.v-pagination .page-numbers.current { background: var(--ink); color: var(--bg); }

/* Post nav */
.v-post-nav { display: flex; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--line); font-size: 14px; }
.v-post-nav a { color: var(--ink); text-decoration: none; transition: color .15s; }
.v-post-nav a:hover { color: var(--brand); }

/* Generic page content - prose stays readable but no longer feels cramped in a
   tiny column on a wide canvas. */
.v-page-content { max-width: 860px; font-size: 17px; line-height: 1.7; }
.v-page-content p { margin: 0 0 1em; }
.v-page-content h2 { font-size: 28px; margin: 2em 0 .6em; }
.v-page-content h3 { font-size: 22px; margin: 1.8em 0 .5em; }
.v-page-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .v-page-content a { color: var(--brand-mid); }
.v-page-content ul, .v-page-content ol { margin: 0 0 1.2em; padding-left: 24px; }

/* Search form */
.v-search-form { display: flex; gap: 8px; max-width: 480px; }
.v-search-field {
  flex: 1; padding: 12px 16px; font-size: 15px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); color: var(--ink); outline: none;
}
.v-search-field:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
html[data-theme="dark"] .v-search-field:focus { border-color: var(--brand-mid); }
.v-search-submit {
  padding: 12px 24px; background: var(--ink); color: var(--bg);
  border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer;
}

/* Empty state */
.v-empty-state { text-align: center; padding: 48px 0; max-width: 500px; margin: 0 auto; }
.v-empty-state h1, .v-empty-state h2 { font-size: 36px; margin-bottom: 16px; }
.v-empty-state p { color: var(--ink-soft); margin-bottom: 32px; }

/* Section eyebrow (used on archive/search headers and elsewhere) */
.v-section-eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
html[data-theme="dark"] .v-section-eyebrow { color: var(--brand-mid); }

/* Archive + search page headers */
.v-archive-header, .v-search-header { margin-bottom: 29px; }
.v-archive-description {
  margin-top: 16px; font-size: 16px; color: var(--ink-soft);
  line-height: 1.6; max-width: var(--max-prose);
}
.v-search-meta {
  margin-top: 16px; font-size: 13.5px; color: var(--ink-mute);
  letter-spacing: .03em;
}
.v-search-again { margin-top: 24px; }
.v-post-type {
  display: inline-block; padding: 2px 10px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
html[data-theme="dark"] .v-post-type { color: var(--brand-mid); }
