/* ==========================================================================
   NSP Theme — Blog CSS (v1.1.1)
   Enqueued conditionally on is_single(), is_archive(), is_home(), is_search().
   Previously lived inline inside single.php and archive.php <head> blocks.
   ========================================================================== */

/* ── Accessibility helpers ─────────────────────────── */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
.nsp-skip-link:focus {
    position: fixed;
    top: 1rem; left: 1rem;
    width: auto; height: auto;
    clip: auto;
    padding: 0.75rem 1.25rem;
    background: #C4A35A;
    color: #0D0D0B;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100000;
}

/* ── Single Post Layout ─────────────────────────── */
.nsp-post {
    background: #F7F4EE;
    font-family: 'DM Sans', 'Outfit', sans-serif;
    min-height: 100vh;
}

/* Hero */
.nsp-post-hero {
    background: #0D0D0B;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.nsp-post-hero-glow {
    position: absolute; top: -80px; right: -80px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(90,140,78,0.06) 0%, transparent 68%);
    pointer-events: none;
}
.nsp-post-hero-inner {
    max-width: 760px; margin: 0 auto; position: relative; z-index: 1;
}
.nsp-post-meta {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 2rem; flex-wrap: wrap;
}
.nsp-post-cat {
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #C4A35A; text-decoration: none;
}
.nsp-post-cat:hover { color: #DFC48A; }
.nsp-post-meta-sep {
    width: 1px; height: 12px;
    background: rgba(255,255,255,0.15);
}
.nsp-post-date,
.nsp-post-read-time {
    font-size: 0.78rem; color: rgba(255,255,255,0.4);
}
.nsp-post-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 300; color: #ffffff;
    line-height: 1.1; letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}
.nsp-post-hero h1 em { font-style: italic; color: #C4A35A; }
.nsp-post-excerpt {
    font-size: 1.05rem; line-height: 1.85;
    color: rgba(255,255,255,0.72); font-weight: 400;
    max-width: 620px;
}

/* Author strip */
.nsp-post-author-strip {
    background: #131310;
    border-top: 1px solid rgba(196,163,90,0.12);
    padding: 1.2rem 2rem;
}
.nsp-post-author-inner {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
}
.nsp-post-author-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(196,163,90,0.15);
    border: 1px solid rgba(196,163,90,0.25);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.nsp-post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nsp-post-author-name {
    font-size: 0.82rem; font-weight: 500; color: #ffffff;
}
.nsp-post-author-title {
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Featured image */
.nsp-post-featured {
    max-width: 900px; margin: 0 auto;
    padding: 3rem 2rem 0;
}
.nsp-post-featured img {
    width: 100%; height: auto;
    display: block;
    aspect-ratio: 16/7; object-fit: cover;
}

/* Body content */
.nsp-post-body {
    max-width: 760px; margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}
.nsp-post-content { color: #3A3B38; }
.nsp-post-content p {
    font-size: 1rem; line-height: 1.9;
    color: #3A3B38; margin-bottom: 1.5rem;
    font-weight: 400;
}
.nsp-post-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 300;
    color: #111210; line-height: 1.2;
    margin: 3rem 0 1.2rem;
}
.nsp-post-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem; font-weight: 600;
    color: #111210; margin: 2.5rem 0 0.9rem;
}
.nsp-post-content h4 {
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: #5A8C4E; margin: 2rem 0 0.8rem;
}
.nsp-post-content ul, .nsp-post-content ol {
    padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.nsp-post-content li {
    font-size: 1rem; line-height: 1.85;
    color: #3A3B38; margin-bottom: 0.4rem;
}
.nsp-post-content a {
    color: #5A8C4E; text-decoration: underline;
    text-underline-offset: 3px;
}
.nsp-post-content a:hover { color: #3E6B34; }
.nsp-post-content blockquote {
    border-left: 3px solid #C4A35A;
    margin: 2.5rem 0; padding: 1rem 1.5rem;
    background: #F0ECE4;
}
.nsp-post-content blockquote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-style: italic;
    color: #111210; margin: 0;
    line-height: 1.7;
}
.nsp-post-content strong { color: #111210; font-weight: 600; }
.nsp-post-content img {
    max-width: 100%; height: auto;
    margin: 2rem 0; display: block;
}
.nsp-post-content hr {
    border: none; border-top: 1px solid rgba(0,0,0,0.1);
    margin: 3rem 0;
}

/* Tags */
.nsp-post-tags {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.nsp-post-tags-label {
    font-size: 0.7rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: #9a9a90;
    margin-right: 0.5rem;
}
.nsp-post-tag {
    font-size: 0.78rem; padding: 0.35rem 0.9rem;
    background: #EAE4D8; color: #3A3B38;
    border-radius: 20px; text-decoration: none;
    transition: background 0.2s;
}
.nsp-post-tag:hover { background: #DDD6C8; }

/* Single Post CTA */
.nsp-post-cta {
    background: #0D0D0B;
    padding: 5rem 2rem;
    text-align: center;
}
.nsp-post-cta-inner { max-width: 560px; margin: 0 auto; }
.nsp-post-cta-eyebrow {
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #C4A35A; display: block; margin-bottom: 1.2rem;
}
.nsp-post-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 300;
    color: #ffffff; line-height: 1.15; margin-bottom: 1rem;
}
.nsp-post-cta h2 em { font-style: italic; color: #C4A35A; }
.nsp-post-cta p {
    font-size: 0.92rem; color: rgba(255,255,255,0.6);
    line-height: 1.85; margin-bottom: 2rem;
}
.nsp-post-cta-btn {
    display: inline-block;
    background: #C4A35A; color: #0D0D0B;
    padding: 0.9rem 2.2rem;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: 60px; text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.nsp-post-cta-btn:hover {
    background: #DFC48A; transform: translateY(-1px);
}

/* ── Blog Archive / Home / Search ───────────────── */
.nsp-archive {
    background: #F7F4EE;
    font-family: 'DM Sans', 'Outfit', sans-serif;
    min-height: 100vh;
}
.nsp-archive-hero {
    background: #0D0D0B;
    padding: 8rem 2rem 5rem;
}
.nsp-archive-hero-inner { max-width: 860px; margin: 0 auto; }
.nsp-archive-eyebrow {
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #C4A35A; display: block; margin-bottom: 1.5rem;
}
.nsp-archive-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 300; color: #ffffff;
    line-height: 1.1; margin-bottom: 1.2rem;
}
.nsp-archive-hero h1 em { font-style: italic; color: #C4A35A; }
.nsp-archive-desc {
    font-size: 1rem; line-height: 1.85;
    color: rgba(255,255,255,0.65);
    max-width: 580px;
}
.nsp-archive-body {
    max-width: 1100px; margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* Featured card */
.nsp-post-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    border: 1px solid rgba(0,0,0,0.1);
    background: #ffffff;
    margin-bottom: 2.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.nsp-post-featured-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.nsp-post-featured-img { aspect-ratio: 4/3; overflow: hidden; }
.nsp-post-featured-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.nsp-post-featured-card:hover .nsp-post-featured-img img { transform: scale(1.03); }
.nsp-post-featured-content {
    padding: 3rem;
    display: flex; flex-direction: column;
    justify-content: center;
}
.nsp-post-card-cat {
    font-size: 0.68rem; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #5A8C4E; margin-bottom: 1rem;
    display: block;
}
.nsp-post-featured-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 300;
    color: #111210; line-height: 1.2;
    margin-bottom: 1rem;
}
.nsp-post-featured-content p {
    font-size: 0.9rem; line-height: 1.85;
    color: #6B6B64; margin-bottom: 1.5rem;
}
.nsp-post-card-meta {
    display: flex; gap: 1rem; align-items: center;
}
.nsp-post-card-date,
.nsp-post-card-read {
    font-size: 0.78rem; color: #9a9a90;
}
.nsp-post-card-meta-sep {
    width: 1px; height: 10px;
    background: rgba(0,0,0,0.12);
}
.nsp-post-card-arrow {
    font-size: 0.82rem; color: #C4A35A;
    font-weight: 500; letter-spacing: 0.05em;
    margin-top: auto; padding-top: 1.5rem;
}

/* Post grid */
.nsp-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.nsp-post-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.nsp-post-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}
.nsp-post-card-img { aspect-ratio: 16/9; overflow: hidden; }
.nsp-post-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.nsp-post-card:hover .nsp-post-card-img img { transform: scale(1.04); }
.nsp-post-card-no-img {
    aspect-ratio: 16/9;
    background: #EAE4D8;
    display: flex; align-items: center; justify-content: center;
}
.nsp-post-card-no-img span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; color: rgba(0,0,0,0.1);
}
.nsp-post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.nsp-post-card-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem; font-weight: 300;
    color: #111210; line-height: 1.25;
    margin-bottom: 0.7rem;
}
.nsp-post-card-body p {
    font-size: 0.85rem; line-height: 1.8;
    color: #6B6B64; margin-bottom: 1.2rem; flex: 1;
}

/* Pagination */
.nsp-pagination {
    margin-top: 4rem; text-align: center;
}
.nsp-pagination .page-numbers {
    display: inline-flex; gap: 0.5rem;
    list-style: none; padding: 0; margin: 0;
}
.nsp-pagination .page-numbers li a,
.nsp-pagination .page-numbers li span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    font-size: 0.85rem; color: #3A3B38;
    border: 1px solid rgba(0,0,0,0.12);
    text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.nsp-pagination .page-numbers li a:hover {
    background: #EAE4D8; border-color: rgba(0,0,0,0.2);
}
.nsp-pagination .page-numbers li span.current {
    background: #C4A35A; border-color: #C4A35A;
    color: #0D0D0B; font-weight: 600;
}

/* Empty state */
.nsp-archive-empty { text-align: center; padding: 5rem 2rem; }
.nsp-archive-empty h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; color: #111210;
    margin-bottom: 1rem;
}
.nsp-archive-empty p { color: #6B6B64; }

/* Responsive */
@media (max-width: 900px) {
    .nsp-post-featured-card { grid-template-columns: 1fr; }
    .nsp-post-featured-img { aspect-ratio: 16/8; }
    .nsp-post-featured-content { padding: 2rem; }
    .nsp-post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nsp-post-hero { padding: 6rem 1.5rem 3.5rem; }
    .nsp-post-body { padding: 2.5rem 1.5rem 4rem; }
    .nsp-post-featured { padding: 2rem 1.5rem 0; }
    .nsp-post-cta { padding: 4rem 1.5rem; }
}
@media (max-width: 600px) {
    .nsp-archive-hero { padding: 6rem 1.5rem 3.5rem; }
    .nsp-archive-body { padding: 2.5rem 1.5rem 4rem; }
    .nsp-post-grid { grid-template-columns: 1fr; }
}
