/* ============================================
   NIERYY — The Journal (Blog) Styles
   Editorial layout in the Nieryy design language.
   ============================================ */

/* === Blog index header === */
.blog-header {
    padding: 150px 0 0;
    background: var(--bg-primary);
}

.blog-header .breadcrumbs {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.blog-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 400;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 14px;
}

.blog-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    font-style: italic;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 26px;
}

/* === Category tabs (shared visual language with shop tabs) === */
.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.blog-tab {
    position: relative;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 0 0 14px;
    white-space: nowrap;
    transition: color 0.25s var(--ease-out);
    cursor: pointer;
}

.blog-tab::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease-out);
}

.blog-tab:hover { color: var(--text-primary); }
.blog-tab.active { color: var(--rose); }
.blog-tab.active::after { transform: scaleX(1); }

/* === Blog body === */
.blog-body {
    padding: 56px 0 100px;
    background: var(--bg-primary);
}

/* Small reusable bits */
.blog-cat {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 12px;
}

.blog-meta {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-top: 12px;
}

/* === Featured article === */
.blog-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    margin-bottom: 72px;
    text-decoration: none;
}

.blog-featured-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-out);
}

.blog-featured:hover .blog-featured-img img {
    transform: scale(1.04);
}

.blog-featured-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.blog-featured-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 14px;
    max-width: 48ch;
}

.blog-readmore {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--rose);
    padding-bottom: 3px;
    transition: color 0.25s, border-color 0.25s;
}

.blog-featured:hover .blog-readmore {
    color: var(--rose);
}

/* === Card grid === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 18px;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-out);
}

.blog-card-img:hover img {
    transform: scale(1.04);
}

.blog-card-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.blog-card-title a {
    color: var(--text-primary);
    transition: color 0.25s;
}

.blog-card-title a:hover {
    color: var(--rose);
}

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin: 0;
}

/* === Blog post (article) === */
.post {
    background: var(--bg-primary);
    padding-bottom: 90px;
}

.post-hero {
    width: 100%;
    height: clamp(280px, 52vh, 560px);
    margin-top: 62px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

.post-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-head {
    text-align: center;
    padding: 52px 0 0;
}

.post-head .breadcrumbs {
    justify-content: center;
    margin-bottom: 22px;
}

.post-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.18;
    color: var(--text-primary);
    margin: 0 0 18px;
}

.post-meta {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.post-divider {
    width: 60px;
    height: 1px;
    background: var(--rose);
    margin: 32px auto 40px;
}

/* Long-form reading content */
.post-content {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}

.post-content > p {
    margin: 0 0 24px;
}

.post-content > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.2em;
    line-height: 0.8;
    float: left;
    margin: 6px 12px 0 0;
    color: var(--rose);
}

.post-content h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 400;
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-primary);
    margin: 48px 0 18px;
    line-height: 1.3;
}

.post-content h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 36px 0 14px;
}

.post-content a {
    color: var(--rose);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.post-content figure {
    margin: 40px 0;
}

.post-content figure img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.post-content figcaption {
    font-family: var(--font-body);
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 8px 0 8px 28px;
    border-left: 2px solid var(--rose);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.4;
    color: var(--text-primary);
}

/* Tables (e.g. the symptom-to-solution matrix) */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
}

.post-content thead th {
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: left;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.post-content tbody td {
    padding: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.post-content tbody tr:last-child td {
    border-bottom: none;
}

/* Numbered outfit ideas — bold lead-in, description below */
.post-idea {
    margin: 0 0 22px;
}
.post-idea strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* FAQ block */
.post-faq {
    margin-top: 12px;
}
.post-faq-q {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    margin: 26px 0 6px;
    line-height: 1.5;
}
.post-faq-a {
    margin: 0 0 8px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .post-content table { font-size: 13px; }
    .post-content thead th,
    .post-content tbody td { padding: 10px; }
}

/* Shop-the-look CTA at the end of a post */
.post-cta {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.post-cta-label {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 120px 0 0;
    }
    .blog-featured {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 52px;
    }
    .blog-featured-img {
        aspect-ratio: 3 / 2;
    }
    .blog-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .blog-tabs::-webkit-scrollbar { display: none; }
    .post-hero {
        margin-top: 56px;
        height: clamp(220px, 40vh, 360px);
    }
}

@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}
