/*
Theme Name: Fairfax Laser Blog
Theme URI: https://fairfaxlaser.com/
Description: Minimal blog theme matching the main fairfaxlaser.com static site. Loads the live root stylesheet (styles.css) so colors, fonts, header, and footer always stay in sync with the main site.
Author: Fairfax Laser Hair Removal Center
Version: 1.0
*/

/* ============================================================
   Blog-specific styles.
   The main site's stylesheet (https://fairfaxlaser.com/styles.css)
   is enqueued FIRST in functions.php, so all design tokens
   (--font-heading, --font-body, --brand-*, --accent-*, etc.)
   are already available here.
   ============================================================ */

/* ---- Page shell ---- */
.blog-main {
  max-width: var(--max-width, 1180px);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-header .eyebrow {
  margin-bottom: 8px;
}

.blog-header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--neutral-950);
}

.blog-header p {
  color: var(--neutral-600);
  max-width: 620px;
  margin: 12px auto 0;
}

/* ---- Post list (archive / index) ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card__thumb img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--neutral-950);
}

.post-card__title a:hover {
  color: var(--accent-strong);
}

.post-card__excerpt {
  color: var(--neutral-600);
  font-size: 0.95rem;
}

.post-card__more {
  margin-top: auto;
  font-weight: 600;
  color: var(--btn-primary-bg, #4A1D6E);
}

.post-card__more:hover {
  color: var(--accent-strong);
}

/* ---- Single post ---- */
.single-post-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.single-post-wrap .post-card__meta {
  text-align: center;
  display: block;
}

.single-post-wrap h1.entry-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  text-align: center;
  margin: 10px 0 28px;
  color: var(--neutral-950);
}

.entry-featured img {
  width: 100%;
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
}

/* ---- Post content typography ---- */
.entry-content {
  font-family: var(--font-body);
  color: var(--neutral-800);
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-950);
  line-height: 1.25;
  margin: 1.8em 0 0.6em;
}

.entry-content h2 { font-size: 1.85rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content h4 { font-size: 1.2rem; }

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.2em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content a {
  color: var(--btn-primary-bg, #4A1D6E);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--accent-strong);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg, 24px);
}

.entry-content blockquote {
  border-left: 4px solid var(--brand-lavender);
  background: var(--accent-wash);
  padding: 18px 22px;
  border-radius: 0 var(--radius-lg, 24px) var(--radius-lg, 24px) 0;
  font-style: italic;
  color: var(--neutral-700);
  margin: 1.4em 0;
}

/* ---- Post CTA (reuses main-site button styles) ---- */
.post-cta {
  margin-top: 48px;
  padding: 32px;
  text-align: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xl, 32px);
}

.post-cta h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.post-cta p {
  color: var(--neutral-600);
  margin-bottom: 18px;
}

/* ---- Pagination ---- */
.blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.blog-pagination .page-numbers {
  padding: 8px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--neutral-700);
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--btn-primary-bg, #4A1D6E);
  color: var(--white);
  border-color: var(--btn-primary-bg, #4A1D6E);
}

/* ---- Safety: neutralize common WP admin-bar overlap ---- */
body.admin-bar .topbar { top: 32px; }
