/* Blog archive and single post pages. Relies on the shared Vino Expedition tokens in events.css. */
.blog-archive,
.blog-single {
    background: var(--ve-bg);
    color: var(--ve-ink);
    overflow-x: clip;
}

.blog-hero {
    align-items: stretch;
    background-color: var(--ve-dark);
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: clamp(430px, 52vw, 570px);
    position: relative;
}

.blog-hero__overlay {
    background:
        linear-gradient(90deg, rgba(42, 20, 26, .86) 0%, rgba(42, 20, 26, .58) 55%, rgba(42, 20, 26, .22) 100%),
        linear-gradient(0deg, rgba(42, 20, 26, .22), rgba(42, 20, 26, .22));
    inset: 0;
    position: absolute;
}

.blog-hero__inner {
    display: flex;
    flex-direction: column;
    padding-bottom: clamp(42px, 6vw, 76px);
    position: relative;
    width: 100%;
    z-index: 1;
}

.blog-hero .ve-breadcrumbs {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 100%;
    width: auto;
}

.blog-hero .ve-breadcrumbs a,
.blog-hero .ve-breadcrumbs > span[aria-current="page"],
.blog-hero .ve-breadcrumbs > i {
    color: rgba(255, 255, 255, .72);
}

.blog-hero .ve-breadcrumbs a:hover {
    color: #fff;
}

.blog-hero__content {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    box-shadow: var(--ve-shadow-md);
    margin-top: auto;
    max-width: 790px;
    padding: clamp(26px, 4vw, 44px);
}

.blog-hero__content .ve-eyebrow {
    margin-bottom: 10px;
}

.blog-hero__content h1 {
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.05;
    margin: 0;
}

.blog-hero__lead {
    color: var(--ve-secondary);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.65;
    margin: 18px 0 0;
    max-width: 690px;
}

.blog-hero__meta {
    align-items: center;
    color: var(--ve-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px 18px;
    margin-bottom: 12px;
}

.blog-hero__meta span {
    color: var(--ve-terracotta-600);
    font-weight: 700;
}

.blog-archive__results {
    padding: clamp(48px, 7vw, 82px) 0;
}

.blog-archive__grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
    background: var(--ve-surface);
    border: 1px solid var(--ve-border);
    border-radius: 18px;
    box-shadow: var(--ve-shadow-sm);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-card:hover {
    border-color: rgba(161, 44, 47, .42);
    box-shadow: var(--ve-shadow-md);
    transform: translateY(-3px);
}

.blog-card__image {
    aspect-ratio: 16 / 10;
    background: var(--ve-dark);
    display: block;
    overflow: hidden;
}

.blog-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

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

.blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.blog-card__meta {
    align-items: flex-start;
    color: var(--ve-secondary);
    display: flex;
    font-size: 12px;
    gap: 12px;
    justify-content: space-between;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card__meta span {
    color: var(--ve-terracotta-600);
    font-weight: 700;
    text-align: right;
}

.blog-card h2 {
    font-family: var(--ve-display);
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.blog-card h2 a {
    color: var(--ve-dark);
    text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card__more:hover {
    color: var(--ve-wine-700);
}

.blog-card__excerpt {
    color: var(--ve-secondary);
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.blog-card__more {
    align-items: center;
    color: var(--ve-terracotta-600);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    margin-top: auto;
    text-decoration: none;
}

.blog-card__more::after {
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    content: "";
    height: 7px;
    transform: rotate(45deg);
    width: 7px;
}

.blog-archive__pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 42px 0 0;
    padding: 0;
}

.blog-archive__pagination .page-numbers a,
.blog-archive__pagination .page-numbers span {
    align-items: center;
    background: var(--ve-surface);
    border: 1px solid var(--ve-border);
    border-radius: 8px;
    color: var(--ve-dark);
    display: inline-flex;
    font-size: 14px;
    justify-content: center;
    min-height: 42px;
    min-width: 42px;
    padding: 8px 13px;
    text-decoration: none;
}

.blog-archive__pagination .page-numbers a:hover,
.blog-archive__pagination .page-numbers .current {
    background: var(--ve-wine-700);
    border-color: var(--ve-wine-700);
    color: #fff;
}

.blog-archive__empty {
    background: var(--ve-bg-alt);
    border: 1px solid var(--ve-border);
    border-radius: 14px;
    color: var(--ve-secondary);
    margin: 0;
    padding: 34px;
    text-align: center;
}

.blog-about {
    align-items: center;
    display: grid;
    gap: clamp(34px, 7vw, 88px);
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    padding: 16px 0 clamp(62px, 8vw, 96px);
}

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

.blog-about h2,
.blog-single__section-header h2,
.blog-single__content h2 {
    color: var(--ve-wine-700);
    font-family: var(--ve-display);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    margin: 0 0 18px;
}

.blog-about__text > p:not(.ve-eyebrow) {
    color: var(--ve-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 14px;
}

.blog-about__text a {
    font-weight: 700;
}

.blog-about__image {
    border-radius: 20px;
    box-shadow: var(--ve-shadow-md);
    margin: 0;
    min-height: 330px;
    overflow: hidden;
}

.blog-about__image img {
    display: block;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    width: 100%;
}

.blog-single__hero {
    margin-bottom: 0;
}

.blog-single__article {
    background: var(--ve-surface);
    border: 1px solid var(--ve-border);
    border-radius: 18px;
    box-shadow: var(--ve-shadow-sm);
    margin: clamp(48px, 7vw, 82px) auto;
    max-width: 940px;
    padding: clamp(26px, 5vw, 60px);
}

.blog-single__content {
    color: var(--ve-ink);
    font-size: 16px;
    line-height: 1.75;
}

.blog-single__content > :first-child {
    margin-top: 0;
}

.blog-single__content > :last-child {
    margin-bottom: 0;
}

.blog-single__content h2 {
    margin-top: 42px;
}

.blog-single__content h3 {
    color: var(--ve-dark);
    font-family: var(--ve-display);
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.25;
    margin: 32px 0 12px;
}

.blog-single__content p,
.blog-single__content ul,
.blog-single__content ol,
.blog-single__content blockquote {
    margin-bottom: 22px;
}

.blog-single__content img {
    border-radius: 14px;
    height: auto;
    max-width: 100%;
}

.blog-single__content blockquote {
    background: var(--ve-bg-alt);
    border-left: 4px solid var(--ve-terracotta-600);
    border-radius: 0 12px 12px 0;
    color: var(--ve-dark);
    font-family: var(--ve-display);
    font-size: 20px;
    line-height: 1.55;
    padding: 22px 26px;
}

.blog-single-section,
.blog-single-feature,
.blog-single-gallery {
    margin-bottom: 54px;
}

.blog-single-feature > div:not(.blog-single-feature__image) {
    column-count: 2;
    column-gap: 42px;
}

.blog-single-feature > div:not(.blog-single-feature__image) > * {
    break-inside: avoid;
}

.blog-single-feature:has(.blog-single-feature__image img) {
    align-items: center;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

.blog-single-feature:has(.blog-single-feature__image img) > div:not(.blog-single-feature__image) {
    column-count: auto;
}

.blog-single-feature--left:has(.blog-single-feature__image img) {
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
}

.blog-single-feature--left:has(.blog-single-feature__image img) .blog-single-feature__image {
    order: -1;
}

.blog-single-feature__image,
.blog-single-gallery__item {
    background: var(--ve-dark);
    border-radius: 16px;
    overflow: hidden;
}

.blog-single-feature__image:empty,
.blog-single-gallery__item:empty,
.blog-single-gallery:not(:has(img)) {
    display: none;
}

.blog-single-feature__image img,
.blog-single-gallery__item img {
    display: block;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    width: 100%;
}

.blog-single-gallery__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-single__routes {
    margin-bottom: clamp(58px, 8vw, 96px);
}

.blog-single__section-header {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.blog-single__section-header h2 {
    margin: 0;
}

.blog-single__section-header > a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.blog-single__section-header > a::after {
    content: " →";
}

.blog-single__routes-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-route-card {
    background: var(--ve-surface);
    border: 1px solid var(--ve-border);
    border-radius: 18px;
    box-shadow: var(--ve-shadow-sm);
    color: var(--ve-ink);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-route-card:hover {
    border-color: rgba(161, 44, 47, .42);
    box-shadow: var(--ve-shadow-md);
    color: var(--ve-ink);
    transform: translateY(-3px);
}

.blog-route-card__image {
    background: var(--ve-dark) center / cover no-repeat;
    height: 250px;
}

.blog-route-card__body {
    padding: 22px 24px 26px;
}

.blog-route-card__route {
    color: var(--ve-terracotta-600);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 8px;
}

.blog-route-card h3 {
    color: var(--ve-dark);
    font-family: var(--ve-display);
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.blog-route-card__body > p:last-child {
    color: var(--ve-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 980px) {
    .blog-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-about {
        gap: 32px;
        grid-template-columns: 1fr;
    }

    .blog-about__image {
        max-height: 430px;
    }
}

@media (max-width: 700px) {
    .blog-hero {
        min-height: 500px;
    }

    .blog-hero__overlay {
        background: linear-gradient(0deg, rgba(42, 20, 26, .78), rgba(42, 20, 26, .3));
    }

    .blog-hero__inner {
        padding-bottom: 24px;
    }

    .blog-hero__content {
        border-radius: 14px;
        padding: 24px 20px;
    }

    .blog-hero__content h1 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .blog-archive__grid,
    .blog-single-gallery__grid,
    .blog-single__routes-grid {
        grid-template-columns: 1fr;
    }

    .blog-card__body {
        padding: 20px;
    }

    .blog-single__article {
        border-radius: 14px;
        padding: 26px 20px;
    }

    .blog-single-feature > div:not(.blog-single-feature__image) {
        column-count: 1;
    }

    .blog-single-feature:has(.blog-single-feature__image img),
    .blog-single-feature--left:has(.blog-single-feature__image img) {
        grid-template-columns: 1fr;
    }

    .blog-single__section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .blog-route-card__image {
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__image img,
    .blog-route-card {
        transition: none;
    }
}
