/* ══════════════════════════════════════════════════
   Willow Jam Media — blog.css
   Loaded on: is_home() + is_singular('post')
══════════════════════════════════════════════════ */

/* ─── Insights Archive Header ─────────────────── */
.insights-header {
    position: relative;
    padding: 2.75rem 4rem 2.25rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.insights-header-bg {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-display);
    font-size: clamp(7rem, 17vw, 15rem);
    font-weight: 700;
    color: rgba(26,46,30,.04);
    letter-spacing: -.04em;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}
.insights-eyebrow {
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}
.insights-h1 {
    font-family: var(--f-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.04em;
    line-height: .92;
    margin-bottom: 1.25rem;
}
.insights-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.65;
}
.insights-meta {
    margin-top: 1.75rem;
    font-family: var(--f-mono);
    font-size: .72rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.insights-meta-line {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--border);
}

/* ─── Featured Post ────────────────────────────── */
.featured-wrap {
    padding: 3rem 4rem 0;
}
.featured-post {
    display: grid;
    grid-template-columns: 1fr 44%;
    height: 500px;
    background: var(--dark);
    border-radius: 3px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.featured-post--no-img {
    grid-template-columns: 1fr;
}
.featured-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-top {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.featured-badge {
    font-family: var(--f-mono);
    font-size: .63rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--purple);
    color: white;
    padding: .28rem .65rem;
    border-radius: 2px;
}
.featured-cat {
    font-family: var(--f-mono);
    font-size: .7rem;
    color: rgba(245,240,232,.4);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.featured-date {
    font-family: var(--f-mono);
    font-size: .7rem;
    color: rgba(245,240,232,.3);
}
.featured-h2 {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.featured-excerpt {
    font-size: .95rem;
    color: rgba(245,240,232,.55);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 440px;
}
.btn-article {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-body);
    font-size: .875rem;
    font-weight: 500;
    color: var(--cream);
    text-decoration: none;
    border: 1px solid rgba(245,240,232,.2);
    padding: .75rem 1.5rem;
    border-radius: 2px;
    width: fit-content;
    transition: background .25s, border-color .25s;
}
.featured-post:hover .btn-article { background: var(--purple); border-color: var(--purple); }
.btn-article svg { transition: transform .25s; }
.featured-post:hover .btn-article svg { transform: translateX(4px); }
.featured-img {
    overflow: hidden;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.featured-post:hover .featured-img img { transform: scale(1.04); }

/* ─── Posts Grid ───────────────────────────────── */
.posts-section {
    padding: 3rem 4rem 5rem;
}
.posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5px;
}
.posts-header-label {
    font-family: var(--f-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5px;
    background: var(--border);
}
.post-card {
    background: var(--bg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: background .2s;
}
.post-card:hover { background: var(--cream); }
.post-card-num {
    position: absolute;
    top: 2.25rem;
    right: 2rem;
    font-family: var(--f-mono);
    font-size: .65rem;
    color: var(--muted);
    opacity: .45;
}
.post-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}
.post-cat {
    font-family: var(--f-mono);
    font-size: .63rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--purple);
}
.post-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .35;
    display: inline-block;
    flex-shrink: 0;
}
.post-date, .post-read {
    font-family: var(--f-mono);
    font-size: .63rem;
    color: var(--muted);
}
.post-card-h3 {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: .7rem;
    transition: color .2s;
}
.post-card:hover .post-card-h3 { color: var(--purple); }
.post-card-excerpt {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.post-card-link {
    font-family: var(--f-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: gap .2s, color .2s;
}
.post-card:hover .post-card-link { gap: .85rem; color: var(--purple); }

/* Blog pagination */
.blog-pagination {
    padding: 3rem 4rem;
    display: flex;
    justify-content: center;
}
.blog-pagination .nav-links {
    display: flex;
    gap: .5rem;
    align-items: center;
}
.blog-pagination .page-numbers {
    font-family: var(--f-mono);
    font-size: .75rem;
    color: var(--muted);
    text-decoration: none;
    padding: .5rem .85rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all .2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: white;
}

/* ══════════════════════════════════════════════════
   SINGLE POST (single.php)
══════════════════════════════════════════════════ */

.post-header {
    padding: 3.5rem 4rem 0;
    max-width: 1300px;
}
.post-header-meta {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.post-cat-badge {
    font-family: var(--f-mono);
    font-size: .63rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: white;
    background: var(--purple);
    padding: .28rem .65rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background .2s;
}
.post-cat-badge:hover { background: var(--purple-lt); }
.post-header-date, .post-read-time {
    font-family: var(--f-mono);
    font-size: .7rem;
    color: var(--muted);
}
.post-h1 {
    font-family: var(--f-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.035em;
    line-height: 1.04;
    margin-bottom: 1.5rem;
}
.post-byline {
    font-family: var(--f-mono);
    font-size: .7rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.post-byline::before {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .35;
}

/* Featured image */
.post-hero-img {
    margin: 2.5rem 0;
    height: 500px;
    overflow: hidden;
}
.post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article body */
.post-body {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}

/* .entry-content — styles the_content() output */
.entry-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--green);
    margin-bottom: 1.5rem;
}
.entry-content h2 {
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 3rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.entry-content h3 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -.01em;
    margin: 2rem 0 .75rem;
}
.entry-content h4 {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1.5rem 0 .5rem;
}
.entry-content ul, .entry-content ol {
    margin: 0 0 1.5rem 1.25rem;
}
.entry-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--green);
    margin-bottom: .35rem;
}
.entry-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 3px solid var(--purple);
    background: var(--cream);
    border-radius: 0 3px 3px 0;
}
.entry-content blockquote p {
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark);
    margin: 0;
    line-height: 1.5;
    border: none;
    padding: 0;
}
.entry-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { color: var(--dark); font-weight: 600; }
.entry-content em { font-style: italic; }
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    margin: 1.5rem 0;
    display: block;
}
.entry-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}
.entry-content code {
    font-family: var(--f-mono);
    font-size: .875em;
    background: var(--cream);
    padding: .15em .4em;
    border-radius: 2px;
}
.entry-content pre {
    background: var(--dark);
    color: var(--cream);
    font-family: var(--f-mono);
    font-size: .875rem;
    padding: 1.5rem;
    border-radius: 3px;
    overflow-x: auto;
    margin: 2rem 0;
}
.entry-content pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* Post footer */
.post-footer {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 4rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.post-tags {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
}
.post-tag {
    font-family: var(--f-mono);
    font-size: .63rem;
    letter-spacing: .06em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: .25rem .65rem;
    border-radius: 2px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.post-tag:hover { border-color: var(--purple); color: var(--purple); }

/* Author card */
.post-author-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem 4rem;
}
.post-author {
    background: var(--cream);
    padding: 2rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    align-items: start;
    border-radius: 3px;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cream);
    flex-shrink: 0;
}
.author-name {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: .2rem;
}
.author-role {
    font-family: var(--f-mono);
    font-size: .65rem;
    color: var(--purple);
    letter-spacing: .05em;
    margin-bottom: .75rem;
}
.author-bio {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
    .insights-header           { padding: 2.5rem 1.5rem 2rem; }
    .featured-wrap             { padding: 2rem 1.5rem 0; }
    .featured-post             { grid-template-columns: 1fr; height: auto; min-height: 380px; }
    .featured-img              { height: 240px; }
    .posts-section             { padding: 2.5rem 1.5rem 4rem; }
    .posts-grid                { grid-template-columns: 1fr; }
    .blog-pagination           { padding: 2rem 1.5rem; }
    .post-header               { padding: 2.5rem 1.5rem 0; }
    .post-hero-img             { height: 260px; }
    .post-body                 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .post-footer               { padding-left: 1.5rem; padding-right: 1.5rem; }
    .post-author-wrap          { padding-left: 1.5rem; padding-right: 1.5rem; }
}
