/*
Theme Name: Voicenotes Blog
Theme URI: https://voicenotes.com
Description: Child theme of Twenty Twenty-Three that styles the Blog listing and single article pages to match the Voicenotes Figma design. Warm off-white palette, Instrument Serif display titles, Inter body, card-based post grid.
Author: Voicenotes
Template: twentytwentythree
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: voicenotes-blog
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --vn-bg: #faf9f5;
  --vn-ink: #18181b;
  --vn-sub: #52525b;
  --vn-muted: #717171;
  --vn-card: #f0eee6;
  --vn-border: rgba(0, 0, 0, 0.1);
  --vn-accent: #0088ff;
  --vn-radius-img: 16px;
  --vn-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --vn-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --vn-container: 1240px;
}

/* ============================================================
   Base
   ============================================================ */
body {
  background-color: var(--vn-bg);
  color: var(--vn-ink);
  font-family: var(--vn-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.vn-main {
  padding-top: 0;
  padding-bottom: 100px;
}

/* Generic section rhythm */
.vn-section { margin-top: 100px; }

/* ============================================================
   Header
   ============================================================ */
.vn-header {
  width: 100%;
  background: var(--vn-bg);
}
.vn-header__inner {
  max-width: var(--vn-container);
  margin: 0 auto;
  padding: 34px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vn-logo {
  display: inline-block;
  width: 148px;
  height: 30px;
  background: url("assets/voicenotes-logo.svg") no-repeat left center;
  background-size: contain;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
}
.vn-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.vn-nav a {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.vn-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 19px;
  border-radius: 1000px;
  text-decoration: none;
  line-height: 1;
  border: 1px solid #000;
  white-space: nowrap;
}
.vn-btn-pill:hover { opacity: 0.88; }

/* ============================================================
   Hero (blog listing)
   ============================================================ */
.vn-hero {
  max-width: 520px !important;
  margin: 40px auto 0 !important;
  padding-inline: 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vn-hero__title {
  font-family: var(--vn-serif) !important;
  font-weight: 400;
  font-size: 80px;
  line-height: 86px;
  letter-spacing: -1.6px;
  color: var(--vn-ink);
  margin: 0;
}
.vn-hero__desc {
  font-size: 16px;
  line-height: 24px;
  color: var(--vn-ink);
  max-width: 501px;
  margin: 0 auto;
}

/* ============================================================
   Filter tablist (visual)
   ============================================================ */
.vn-filter {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 2px;
  background: var(--vn-card);
  padding: 4px;
  border-radius: 100px;
  margin: 56px auto 40px;
}
.vn-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vn-sub);
  text-decoration: none;
}
.vn-filter a.is-active {
  background: #fff;
  color: var(--vn-ink);
}

/* ============================================================
   Post grid / cards
   ============================================================ */
.vn-posts {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
  box-sizing: border-box;
}
.vn-posts .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vn-posts .wp-block-post {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
/* Cover image */
.vn-card__img,
.vn-posts .wp-block-post-featured-image {
  margin: 0;
}
.vn-card__img img,
.vn-posts .wp-block-post-featured-image img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: var(--vn-radius-img);
  border: 1px solid var(--vn-border);
  display: block;
}
/* Text stack */
.vn-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* Category badge */
.vn-card__badge,
.vn-card__badge.wp-block-post-terms {
  display: inline-flex;
  align-self: flex-start;
  background: var(--vn-card);
  padding: 6px 12px;
  border-radius: 38px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--vn-ink);
}
.vn-card__badge a { text-decoration: none; color: var(--vn-ink); }
/* Title */
.vn-card__title {
  font-size: 16px !important;
  font-weight: 500;
  line-height: 24px;
  color: var(--vn-ink);
  margin: 0;
}
.vn-card__title a { text-decoration: none; color: var(--vn-ink); }
.vn-card__title a:hover { text-decoration: underline; }
/* Meta */
.vn-card__meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--vn-sub);
  margin: 0;
}

/* Load more / pagination */
.vn-pagination {
  justify-content: center;
  margin-top: 56px;
}
.vn-pagination .wp-block-query-pagination-next,
.vn-pagination .wp-block-query-pagination-previous {
  border: 1px solid #a1a1aa;
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vn-ink);
  text-decoration: none;
}
.vn-pagination .wp-block-query-pagination-numbers { display: none; }

/* ============================================================
   CTA
   ============================================================ */
.vn-cta {
  max-width: 520px !important;
  margin: 100px auto 0 !important;
  padding-inline: 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.vn-cta__title {
  font-family: var(--vn-serif) !important;
  font-weight: 400;
  font-size: 60px;
  line-height: 62px;
  letter-spacing: -1.2px;
  color: #000;
  margin: 0;
}
.vn-cta .vn-btn-pill { padding: 13px 22px; font-size: 15px; }

/* ============================================================
   Single article
   ============================================================ */
.vn-article__hero {
  max-width: 720px !important;
  margin: 40px auto 0 !important;
  padding-inline: 24px;
  box-sizing: border-box;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.vn-article__hero .vn-card__badge {
  align-self: center;
}
.vn-article__title {
  font-family: var(--vn-serif) !important;
  font-weight: 400;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -1px;
  color: var(--vn-ink);
  margin: 0;
}
.vn-article__meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--vn-sub);
  margin: 0;
}
.vn-article__cover {
  margin: 48px auto 0 !important;
  width: 100%;
  max-width: 1240px;
  padding-inline: clamp(20px, 5vw, 80px);
  box-sizing: border-box;
}
.vn-article__cover img {
  width: 100%;
  border-radius: var(--vn-radius-img);
  border: 1px solid var(--vn-border);
  display: block;
}
.vn-article__body {
  max-width: 768px !important;
  margin: 48px auto 0 !important;
  padding-inline: 24px;
  box-sizing: border-box;
  font-size: 17px;
  line-height: 28px;
  color: #27272a;
}
.vn-article__body > * { margin-top: 24px; }
.vn-article__body h2 {
  font-family: var(--vn-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--vn-ink);
  margin-top: 40px;
}
.vn-article__body h3 {
  font-family: var(--vn-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--vn-ink);
  margin-top: 32px;
}
.vn-article__body a { color: var(--vn-accent); }
.vn-article__body img { border-radius: var(--vn-radius-img); }
.vn-article__body blockquote {
  border-left: 3px solid var(--vn-border);
  padding-left: 20px;
  color: var(--vn-sub);
  font-style: normal;
}

.vn-related-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 36px;
  color: var(--vn-ink);
  margin: 0 0 32px;
}

/* ============================================================
   Footer
   ============================================================ */
.vn-footer {
  background: var(--vn-bg);
  margin-top: 100px;
  padding: 0 0 80px;
}
.vn-footer__inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.vn-footer__col h4 {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  line-height: 24px;
  margin: 0 0 12px;
}
.vn-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vn-footer__col a {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 24px;
  text-decoration: none;
}
.vn-footer__col a:hover { text-decoration: underline; }
.vn-footer__bar {
  max-width: 1150px;
  margin: 64px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #222;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .vn-header__inner { padding: 24px 40px; }
  .vn-posts .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
  .vn-footer__inner { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .vn-hero__title { font-size: 64px; line-height: 68px; }
  .vn-article__title { font-size: 44px; line-height: 48px; }
}
@media (max-width: 720px) {
  .vn-header__inner { padding: 20px 24px; }
  .vn-nav { gap: 16px; }
  .vn-posts .wp-block-post-template { grid-template-columns: 1fr; gap: 40px; }
  .vn-footer__inner { grid-template-columns: 1fr 1fr; }
  .vn-hero__title { font-size: 56px; line-height: 60px; }
  .vn-cta__title { font-size: 44px; line-height: 48px; }
  .vn-article__title { font-size: 34px; line-height: 40px; }
  .vn-article__cover { margin-top: 32px !important; }
  .vn-main { padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .vn-nav a:not(.vn-btn-pill) { display: none; }
  .vn-logo { width: 128px; }
  .vn-btn-pill { padding: 10px 16px; }
  .vn-footer__inner { grid-template-columns: 1fr; }
  .vn-hero__title { font-size: 48px; line-height: 52px; }
}
