/* Blogs V3 — Premium editorial module (Collections / Recipes V3 design language) */

body.page-shell.blogs-v3-page {
    background: var(--brand-emerald, #021A17);
}

.blogs-v3-page {
    --blogs-paper: #FAF7F0;
    --blogs-paper-warm: #F5F1E6;
    --blogs-ink: #0A3232;
    --blogs-gold: #C5A870;
    --blogs-emerald: var(--brand-emerald, #021A17);
    --blogs-ivory: #FFF6DF;
    color: var(--blogs-ink);
    background: var(--blogs-paper);
    overflow-x: clip;
}

body.page-shell.blogs-v3-page .blogs-v3-page :is(h1, h2, h3) {
    font-family: var(--font-family-display, "Cormorant Garamond", Georgia, serif);
    color: inherit;
}

.blogs-v3-breadcrumb {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.blogs-v3-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    opacity: 0.7;
}

.blogs-v3-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blogs-v3-label {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

.blogs-v3-section__inner {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.blogs-v3-section h1,
.blogs-v3-section h2 {
    margin: 0 0 1rem;
    max-width: 20ch;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 600;
}

.blogs-v3-section__lead {
    margin: 0 0 1.5rem;
    max-width: 40rem;
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.75;
}

.blogs-v3-section--emerald {
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(197, 168, 112, 0.14), transparent 55%),
        linear-gradient(180deg, var(--blogs-emerald) 0%, #011412 100%);
    color: var(--blogs-ivory);
}

.blogs-v3-section--paper {
    background: var(--blogs-paper);
}

.blogs-v3-section--warm {
    background: var(--blogs-paper-warm);
}

/* --- Landing hero --- */

.blogs-v3-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 0;
    min-height: clamp(22rem, 62vw, 28rem);
    color: var(--blogs-ivory);
}

.blogs-v3-hero:not(.blogs-v3-hero--has-image) {
    background:
        radial-gradient(ellipse 70% 80% at 50% 0%, rgba(197, 168, 112, 0.14), transparent 55%),
        linear-gradient(180deg, var(--blogs-emerald) 0%, #011412 100%);
}

.blogs-v3-hero.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.blogs-v3-detail-hero.reveal-on-scroll {
    opacity: 1;
    transform: none;
}

.blogs-v3-hero__background,
.blogs-v3-hero__background img,
.blogs-v3-hero__veil {
    position: absolute;
    inset: 0;
}

.blogs-v3-hero__background {
    height: 100%;
    pointer-events: none;
}

.blogs-v3-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.blogs-v3-hero__veil {
    background:
        linear-gradient(90deg, rgba(8, 30, 22, 0.72) 0%, rgba(8, 30, 22, 0.5) 50%, rgba(8, 30, 22, 0.25) 100%),
        linear-gradient(180deg, rgba(8, 30, 22, 0.22) 0%, transparent 42%, rgba(8, 30, 22, 0.16) 78%, rgba(250, 247, 240, 0.12) 100%);
    pointer-events: none;
}

.blogs-v3-hero .blogs-v3-breadcrumb {
    position: absolute;
    top: clamp(0.85rem, 2vw, 1.15rem);
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    color: rgba(255, 246, 223, 0.76);
}

.blogs-v3-hero .blogs-v3-breadcrumb a {
    color: rgba(255, 246, 223, 0.76);
}

.blogs-v3-hero .blogs-v3-breadcrumb li[aria-current="page"] {
    color: var(--blogs-ivory);
}

.blogs-v3-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding:
        clamp(4.25rem, 8vw, 5.25rem)
        0
        clamp(2rem, 4vw, 2.75rem);
}

.blogs-v3-hero__copy h1 {
    margin: 0 0 1rem;
    max-width: 14ch;
    font-size: clamp(2.15rem, 4.2vw, 3.35rem);
    line-height: 1.04;
    font-weight: 600;
    color: var(--blogs-ivory);
}

.blogs-v3-hero__copy > p:not(.blogs-v3-section__lead) {
    margin: 0.75rem 0 0;
    max-width: 36rem;
    color: rgba(255, 246, 223, 0.82);
    line-height: 1.7;
}

.blogs-v3-hero .blogs-v3-section__lead {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 246, 223, 0.88);
}

@media (min-width: 768px) {
    .blogs-v3-hero {
        min-height: clamp(26rem, 42vw, 32rem);
    }
}

@media (max-width: 767px) {
    .blogs-v3-hero {
        min-height: clamp(20rem, 72svh, 26rem);
    }

    .blogs-v3-hero__inner {
        padding: 3.35rem 0 1.5rem;
    }

    .blogs-v3-hero__copy h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.25rem);
    }
}

/* --- Featured article --- */

.blogs-v3-featured {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--blogs-paper);
}

.blogs-v3-featured__inner {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .blogs-v3-featured__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}

.blogs-v3-featured__media {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(2, 26, 23, 0.1);
}

.blogs-v3-featured__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blogs-v3-featured__copy h2 {
    max-width: none;
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    margin-bottom: 0.85rem;
}

.blogs-v3-featured__copy h2 a {
    color: inherit;
    text-decoration: none;
}

.blogs-v3-featured__copy p {
    margin: 0 0 1rem;
    line-height: 1.75;
    color: rgba(10, 50, 50, 0.82);
}

.blogs-v3-featured__category {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

/* --- Toolbar --- */

.blogs-v3-toolbar {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0.75rem 0 0.75rem;
    display: grid;
    gap: 1rem;
    background: var(--blogs-paper);
}

.blogs-v3-toolbar + .blogs-v3-section.blogs-v3-section--paper {
    padding-top: 0;
}

.blogs-v3-toolbar__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blogs-v3-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Grid & cards --- */

.blogs-v3-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .blogs-v3-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .blogs-v3-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blogs-v3-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(2, 26, 23, 0.06);
    border: 1px solid rgba(10, 50, 50, 0.06);
}

.blogs-v3-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.blogs-v3-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blogs-v3-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.blogs-v3-card__body h2 {
    margin: 0;
    font-size: 1.45rem;
    max-width: none;
}

.blogs-v3-card__body h2 a {
    color: inherit;
    text-decoration: none;
}

.blogs-v3-card__body p {
    margin: 0;
    line-height: 1.65;
    color: rgba(10, 50, 50, 0.82);
}

.blogs-v3-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-text-link {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blogs-emerald);
    text-decoration: none;
}

.blogs-v3-empty {
    margin: 0;
    padding: 2rem 0;
    color: rgba(10, 50, 50, 0.72);
    line-height: 1.7;
}

/* --- Detail page --- */

.blogs-v3-detail .blogs-v3-breadcrumb {
    padding: 1rem 0 0.5rem;
}

.blogs-v3-detail-hero {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

@media (min-width: 900px) {
    .blogs-v3-detail-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        align-items: center;
        width: min(1120px, calc(100% - 2rem));
        margin-inline: auto;
    }
}

.blogs-v3-detail-hero__copy h1 {
    max-width: none;
    margin-bottom: 0.85rem;
}

.blogs-v3-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-detail-hero__media {
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.blogs-v3-detail-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blogs-v3-content {
    max-width: 42rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.blogs-v3-content :is(h2, h3) {
    margin: 2rem 0 0.85rem;
    max-width: none;
}

.blogs-v3-content h2 {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.blogs-v3-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.blogs-v3-content p {
    margin: 0 0 1.15rem;
}

.blogs-v3-content ul,
.blogs-v3-content ol {
    margin: 0 0 1.15rem;
    padding-left: 1.35rem;
}

.blogs-v3-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--blogs-gold);
    background: rgba(197, 168, 112, 0.08);
    font-style: italic;
}

.blogs-v3-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.blogs-v3-content th,
.blogs-v3-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(10, 50, 50, 0.12);
    text-align: left;
}

.blogs-v3-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

.blogs-v3-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.blogs-v3-gallery img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.blogs-v3-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.blogs-v3-share span {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blogs-gold);
}

.blogs-v3-share a,
.blogs-v3-share button {
    background: transparent;
    border: 1px solid rgba(10, 50, 50, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.blogs-v3-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(10, 50, 50, 0.1);
}

.blogs-v3-nav a {
    color: var(--blogs-emerald);
    text-decoration: none;
    font-weight: 600;
}

.blogs-v3-preview-banner {
    margin: 0;
    padding: 0.65rem 1rem;
    background: #fff3cd;
    color: #664d03;
    text-align: center;
    font-size: 0.9rem;
}

.blogs-v3-section h2.blogs-v3-section-heading {
    max-width: none;
    margin-bottom: 1.5rem;
}
