/* LorenModa blog index and article layout. Intentionally scoped to v5 blog surfaces. */
.v5-blog-hero,
.v5-blog-index,
.v5-blog-post {
    --blog-ink: #221f1d;
    --blog-muted: #746b64;
    --blog-wine: #8a2a3e;
    --blog-wine-dark: #681d2d;
    --blog-paper: #fbf8f4;
    --blog-line: #e7ded6;
}

.v5-blog-container,
.v5-blog-reading {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.v5-blog-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(66px, 8vw, 104px) 0 clamp(60px, 7vw, 88px);
    border-bottom: 1px solid var(--blog-line);
    background:
        radial-gradient(circle at 50% -30%, rgba(138, 42, 62, .12), transparent 52%),
        linear-gradient(180deg, #fffaf6 0%, #f5eee7 100%);
}

.v5-blog-hero::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 72px;
    height: 2px;
    background: var(--blog-wine);
    content: "";
    transform: translateX(50%);
}

.v5-blog-hero .v5-blog-container {
    display: grid;
    justify-items: center;
    text-align: center;
}

.v5-blog-hero nav,
.v5-blog-post nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 0 30px;
    color: var(--blog-muted);
    font-size: 12px;
}

.v5-blog-hero nav a,
.v5-blog-post nav a {
    color: inherit;
    text-underline-offset: 4px;
}

.v5-blog-hero small,
.v5-blog-index header small,
.v5-blog-post header small {
    color: var(--blog-wine);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .18em;
}

.v5-blog-hero h1 {
    max-width: 820px;
    margin: 16px auto 20px;
    color: var(--blog-ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(42px, 5.4vw, 70px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.v5-blog-hero p {
    max-width: 690px;
    margin: 0 auto;
    color: #5f5751;
    font-size: 16px;
    line-height: 1.75;
    text-wrap: balance;
}

.v5-blog-index {
    padding: clamp(64px, 7vw, 92px) 0 clamp(84px, 9vw, 126px);
    background: #fff;
}

.v5-blog-index > .v5-blog-container > header {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-bottom: 40px;
    text-align: center;
}

.v5-blog-index header h2 {
    margin: 8px 0 0;
    color: var(--blog-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    letter-spacing: -.035em;
}

.v5-blog-index header > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border: 1px solid #e2d5cc;
    border-radius: 999px;
    background: var(--blog-paper);
    color: var(--blog-muted);
    font-size: 11px;
    font-weight: 700;
}

.v5-blog-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.v5-blog-grid article {
    display: flex;
    grid-column: span 2;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(53, 42, 34, .07);
}

.v5-blog-grid article:nth-child(4) {
    grid-column: 2 / span 2;
}

.v5-blog-grid article:nth-child(5) {
    grid-column: 4 / span 2;
}

.v5-blog-card-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--blog-line);
    background: #f3ede8;
}

.v5-blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    transition: transform .28s ease;
}

.v5-blog-grid article:hover .v5-blog-card-image img {
    transform: scale(1.02);
}

.v5-blog-grid article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 26px 24px;
}

.v5-blog-grid time,
.v5-blog-post time {
    color: #8b8179;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .04em;
}

.v5-blog-grid h2 {
    margin: 12px 0 12px;
    color: var(--blog-ink);
    font-size: clamp(20px, 1.65vw, 24px);
    font-weight: 650;
    line-height: 1.28;
    letter-spacing: -.025em;
}

.v5-blog-grid h2 a {
    color: inherit;
    text-decoration: none;
}

.v5-blog-grid p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: #655d57;
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.v5-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-top: auto;
    padding: 0 15px;
    border: 1px solid rgba(138, 42, 62, .28);
    border-radius: 999px;
    color: var(--blog-wine-dark);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.v5-blog-read svg {
    width: 15px;
    height: 15px;
}

.v5-blog-read:hover {
    border-color: var(--blog-wine);
    background: var(--blog-wine);
    color: #fff;
}

.v5-blog-card-image:focus-visible,
.v5-blog-grid h2 a:focus-visible,
.v5-blog-read:focus-visible,
.v5-blog-hero nav a:focus-visible,
.v5-blog-post nav a:focus-visible {
    outline: 3px solid rgba(138, 42, 62, .38);
    outline-offset: 4px;
}

.v5-blog-pagination {
    margin-top: 48px;
}

.v5-blog-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border: 1px solid var(--blog-line);
    border-radius: 18px;
    background: var(--blog-paper);
    text-align: center;
}

/* The article shares the same centered reading system without changing its content. */
.v5-blog-post > header {
    padding: clamp(62px, 7vw, 92px) 0 58px;
    border-bottom: 1px solid var(--blog-line);
    background: linear-gradient(180deg, #fffaf6 0%, #f5eee7 100%);
    text-align: center;
}

.v5-blog-post header .v5-blog-reading {
    max-width: 900px;
}

.v5-blog-post h1 {
    max-width: 850px;
    margin: 15px auto 20px;
    color: var(--blog-ink);
    font-size: clamp(40px, 5vw, 66px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.v5-blog-post header p {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #5f5751;
    font-size: 16px;
    line-height: 1.75;
}

.v5-blog-cover {
    width: min(1080px, calc(100% - 48px));
    max-height: 680px;
    margin: 46px auto 0;
    overflow: hidden;
    border-radius: 20px;
    background: #f3ede8;
}

.v5-blog-cover img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
}

.v5-blog-body {
    max-width: 780px;
    padding: 54px 0 100px;
    color: #3e3935;
    font-size: 16px;
    line-height: 1.86;
}

.v5-blog-body h2 {
    margin: 42px 0 14px;
    color: var(--blog-ink);
    font-size: 30px;
    line-height: 1.3;
}

.v5-blog-body h3 {
    margin: 32px 0 10px;
    color: var(--blog-ink);
    font-size: 22px;
}

.v5-blog-body p {
    margin: 0 0 20px;
}

.v5-blog-body img {
    max-width: 100%;
    height: auto;
}

.v5-blog-body a {
    color: var(--blog-wine);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.v5-blog-body footer {
    margin-top: 52px;
    padding-top: 24px;
    border-top: 1px solid var(--blog-line);
}

.v5-blog-body footer a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.v5-blog-body footer svg {
    width: 16px;
}

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

    .v5-blog-grid article,
    .v5-blog-grid article:nth-child(4),
    .v5-blog-grid article:nth-child(5) {
        grid-column: auto;
    }

    .v5-blog-grid article:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 28px) / 2);
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .v5-blog-container,
    .v5-blog-reading,
    .v5-blog-cover {
        width: calc(100% - 32px);
    }

    .v5-blog-hero {
        padding: 48px 0 52px;
    }

    .v5-blog-hero nav,
    .v5-blog-post nav {
        margin-bottom: 24px;
    }

    .v5-blog-hero h1 {
        margin-top: 13px;
        font-size: clamp(34px, 10vw, 43px);
        line-height: 1.1;
    }

    .v5-blog-hero p,
    .v5-blog-post header p {
        font-size: 14px;
        line-height: 1.68;
    }

    .v5-blog-index {
        padding: 52px 0 80px;
    }

    .v5-blog-index > .v5-blog-container > header {
        margin-bottom: 30px;
    }

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

    .v5-blog-grid article,
    .v5-blog-grid article:nth-child(4),
    .v5-blog-grid article:nth-child(5),
    .v5-blog-grid article:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .v5-blog-grid article > div {
        padding: 22px 21px 21px;
    }

    .v5-blog-grid h2 {
        font-size: 22px;
    }

    .v5-blog-grid p {
        -webkit-line-clamp: 4;
    }

    .v5-blog-post > header {
        padding: 48px 0 44px;
    }

    .v5-blog-post h1 {
        font-size: clamp(34px, 9.5vw, 42px);
    }

    .v5-blog-cover {
        margin-top: 28px;
        border-radius: 14px;
    }

    .v5-blog-body {
        padding: 40px 0 72px;
        font-size: 15px;
        line-height: 1.78;
    }

    .v5-blog-body h2 {
        font-size: 26px;
    }
}

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