:root {
    --blog-sand: #f5efea;
    --blog-line: rgba(105, 96, 86, 0.18);
    --blog-ink: #161311;
}

.blog-page {
    background: var(--cream);
    color: var(--blog-ink);
}

.blog-back-link,
.blog-post-cta a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--blog-ink);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding: 0 1.55rem 0.2rem 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.blog-back-link::after,
.blog-post-cta a::after {
    content: '\2192';
    position: absolute;
    right: 0;
    top: 48%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.blog-card-link:hover,
.blog-back-link:hover,
.blog-post-cta a:hover {
    opacity: 0.75;
}

.blog-card-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--blog-ink);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0 0 0.2rem;
    margin-top: 1rem;
    padding-top: 0;
    align-self: flex-start;
}

.blog-card-link::after {
    content: '\2192';
    font-size: 0.9rem;
    line-height: 1;
}

.blog-shell-hero {
    position: relative;
    min-height: 84svh;
    display: flex;
    align-items: flex-end;
    padding: 0 6rem 5.1rem;
    overflow: hidden;
}

.blog-shell-hero .hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.blog-shell-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.blog-shell-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
    text-align: left;
}

.blog-shell-hero-copy span {
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.blog-shell-hero-title {
    color: #fff;
    font-family: 'FreightDisp Pro', 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2.3rem, 5.6vw, 4.85rem);
    line-height: 0.94;
    margin: 0;
}

.blog-shell-hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.02rem;
    line-height: 1.45;
    margin: 0;
    margin-top: 0.9rem;
    max-width: 56ch;
    letter-spacing: 0.01em;
}

.blog-home,
.blog-post-page {
    width: min(1220px, calc(100% - 15rem));
    margin: 0 auto;
    padding: 3.5rem 0 5rem;
}

.blog-hero {
    padding: 3rem 0 2rem;
}

.blog-eyebrow,
.blog-section-heading p,
.blog-post-meta {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.blog-hero h1,
.blog-post-article h1,
.blog-card--featured h2 {
    font-family: 'FreightDisp Pro', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 0.98;
}

.blog-hero h1 {
    max-width: 14ch;
    font-size: clamp(3rem, 7vw, 6.5rem);
    margin-top: 0.8rem;
}

.blog-hero-copy,
.blog-card p {
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 68ch;
}

.blog-post-dek,
.blog-post-body {
    font-size: 1.08rem;
    line-height: 1.66;
    max-width: none;
}

.blog-featured,
.blog-archive {
    padding-top: 2.5rem;
}

.blog-section-heading {
    margin-bottom: 1.35rem;
}

.blog-card {
    border-top: 1px solid var(--blog-line);
    padding: 2.15rem 0 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.blog-card-meta,
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    margin-bottom: 1rem;
}

.blog-card-meta {
    color: var(--warm-gray);
}

.blog-card-meta span:first-child {
    text-transform: uppercase;
}

.blog-card-meta span:not(:first-child) {
    text-transform: none;
}

.blog-post-meta {
    align-items: center;
}

.blog-card h3 {
    font-family: 'FreightDisp Pro', 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 0.9rem;
}

.blog-card h3 {
    font-size: clamp(1.08rem, 1.95vw, 1.52rem);
    max-width: 22ch;
}

.blog-card p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.blog-card a {
    color: inherit;
    text-decoration: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
    align-items: stretch;
}

.blog-post-article {
    width: 100%;
    padding-top: 2rem;
    --blog-post-main-heading-size: clamp(1.68rem, 3.6vw, 3rem);
    --blog-post-section-heading-size: calc(var(--blog-post-main-heading-size) - 0.333rem);
}

.blog-back-link {
    margin-bottom: 1.5rem;
}

.blog-post-article h1 {
    font-size: var(--blog-post-main-heading-size);
    line-height: 0.92;
    margin: 0.8rem 0 0.8rem;
    max-width: none;
}

.blog-post-dek {
    color: var(--charcoal-light);
    margin-bottom: 2rem;
}

.blog-post-feature-media {
    margin: 0 0 1.8rem;
    border-top: 1px solid var(--blog-line);
    border-bottom: 1px solid var(--blog-line);
    padding: 1rem 0;
}

.blog-post-feature-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    font-family: 'FreightDisp Pro', 'Playfair Display', serif;
    font-weight: 400;
    font-size: var(--blog-post-section-heading-size);
    line-height: 1.04;
    margin: 1.7rem 0 0.65rem;
}

.blog-post-body p,
.blog-post-body ul {
    margin-bottom: 1rem;
}

.blog-post-body a,
.blog-post-body a:visited {
    color: var(--blog-ink);
}

.blog-post-body ul {
    padding-left: 1.25rem;
}

.blog-post-body li {
    margin-bottom: 0.45rem;
}

.blog-post-cta {
    margin-top: 2.5rem;
    padding-top: 0;
}

.blog-post-nav {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--blog-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.blog-post-nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--warm-gray);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0 0.2rem;
}

.blog-post-nav-link--prev::after {
    content: '\2192';
    font-size: 0.9rem;
    line-height: 1;
}

.blog-post-nav-link--next::before {
    content: '\2190';
    font-size: 0.9rem;
    line-height: 1;
}

.blog-post-nav-link:hover {
    opacity: 0.75;
}

.blog-post-nav-spacer {
    width: 4.5rem;
}

.blog-post-cta p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .blog-home,
    .blog-post-page {
        width: min(1220px, calc(100% - 4.4rem));
    }

    .blog-shell-hero {
        min-height: 56svh;
        padding: 0 2.2rem 2.4rem;
    }

    .blog-shell-hero-subtitle {
        max-width: 44ch;
        font-size: 0.96rem;
        line-height: 1.38;
    }

    .blog-card {
        padding-top: 1.7rem;
    }

    .blog-card-meta,
    .blog-post-meta {
        gap: 0.4rem 0.85rem;
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .blog-card h2 {
        font-size: clamp(1.22rem, 3.9vw, 1.65rem);
    }

    .blog-card p,
    .blog-post-dek,
    .blog-post-body {
        font-size: 1rem;
        line-height: 1.68;
    }

    .blog-post-article {
        width: 100%;
        padding-top: 1.35rem;
        --blog-post-main-heading-size: clamp(2.16rem, 3.9vw, 3.04rem);
        --blog-post-section-heading-size: calc(var(--blog-post-main-heading-size) - 0.333rem);
    }

    .blog-post-article h1 {
        max-width: 16ch;
        line-height: 1.02;
    }

    .blog-post-body h2,
    .blog-post-body h3,
    .blog-post-body h4 {
        line-height: 1.1;
        margin-top: 1.8rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem 1.8rem;
    }
}

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

@media (max-width: 640px) {
    .blog-home,
    .blog-post-page {
        width: calc(100% - 3rem);
    }

    .blog-home,
    .blog-post-page {
        padding: 1.9rem 0 3.2rem;
    }

    .blog-section-heading {
        margin-bottom: 0.95rem;
    }

    .blog-card {
        padding-top: 1.35rem;
    }

    .blog-card h2,
    .blog-card h3 {
        max-width: 20ch;
        line-height: 1.08;
        font-size: clamp(2.16rem, 3.9vw, 3.04rem);
    }

    .blog-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .blog-card-link,
    .blog-back-link,
    .blog-post-cta a {
        font-size: 0.85rem;
        letter-spacing: 0.015em;
    }

    .blog-post-meta {
        gap: 0.25rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .blog-post-article h1 {
        margin-top: 0.4rem;
    }

    .blog-post-dek {
        font-size: 0.98rem;
        line-height: 1.58;
        margin-bottom: 1.4rem;
    }

    .blog-post-feature-media {
        margin-bottom: 1.35rem;
    }

    .blog-post-body p,
    .blog-post-body ul {
        margin-bottom: 0.85rem;
    }

    .blog-post-cta {
        margin-top: 1.8rem;
        padding-top: 1rem;
    }

    .blog-post-nav {
        margin-top: 1.3rem;
        padding-top: 0.9rem;
    }

    .blog-post-cta p {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

@media (max-width: 420px) {
    .blog-home,
    .blog-post-page {
        width: calc(100% - 3rem);
    }
}

@media (max-width: 600px) {
    .blog-shell-hero {
        min-height: 74svh;
        padding: 0 2.25rem 1.9rem;
    }

    .blog-shell-hero-copy h1 {
        font-size: clamp(2rem, 10.2vw, 2.8rem);
        line-height: 0.9;
    }
}