/* Pages other than the homepage (blog, news, policies). Loaded after styles.css, which supplies the header, footer, buttons and CTA banner. */

:root {
    --font-sans: 'DM Sans', Arial, sans-serif;
    --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', monospace;
    --cake-white: #F7F7F2;
    --mint-hint: #D2F9E7;
    --gin-fizz: #FFF8E2;
    --olive: #6B6B42;
    --grey-700: #6B6B6B;
    --rule: #D4D1D1;
    --slash-cut: 56px
}

.inner-page h1,
.inner-page h2,
.inner-page h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -.02em;
    margin: 0
}

.inner-page {
    background: #fff
}

.inner-page main {
    padding-top: 100px
}

.nav-links a[aria-current=page] {
    text-decoration: underline;
    text-underline-offset: 5px
}

/* Labels: DM Mono, capitals (.inner-page raises the section labels above the heading rule) */
.blog-eyebrow,
.inner-page .blog-section-label,
.post-meta,
.post-back {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase
}

.blog-eyebrow {
    color: var(--olive);
    margin-bottom: 20px
}

.blog-section-label {
    font-size: 16px;
    margin-bottom: 32px
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--grey-700);
    font-size: 13px
}

.draft-tag {
    background: var(--mint-hint);
    color: var(--ink);
    padding: 3px 8px
}

/* Blog index */
.blog-intro {
    padding: 120px 0 72px
}

.blog-intro h1 {
    font-size: clamp(56px, 6.4vw, 112px);
    line-height: 1
}

.blog-lede {
    max-width: 640px;
    margin-top: 28px;
    font-size: clamp(16px, 1.16vw, 20px);
    line-height: 1.4
}

.blog-featured {
    padding-bottom: 120px
}

.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px 32px;
    align-items: start
}

.blog-archive {
    background: var(--cake-white);
    padding: 120px 0
}

.posts-grid,
.more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px 32px
}

.more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

/* Cards */
.post-card a {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.post-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slash-cut)), calc(100% - var(--slash-cut) / 2) 100%, 0 100%)
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease
}

.post-card .post-meta {
    margin-top: 8px
}

.post-card h3 {
    font-size: clamp(20px, 1.6vw, 24px);
    line-height: 1.25
}

.post-card-large h3 {
    font-size: clamp(26px, 2.4vw, 40px);
    line-height: 1.15
}

.post-card-large {
    --slash-cut: 96px
}

.post-card-excerpt {
    color: var(--grey-700);
    max-width: 560px
}

.post-card a:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px
}

.post-card a:hover img {
    transform: scale(1.03)
}

/* Post */
.post-head {
    max-width: 960px;
    padding: 96px 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px
}

.post-back {
    align-self: flex-start;
    font-size: 13px;
    margin-bottom: 24px
}

.post-back:hover {
    text-decoration: underline;
    text-underline-offset: 5px
}

.post-head h1 {
    font-size: clamp(40px, 4.4vw, 72px);
    line-height: 1.1
}

.post-intro {
    max-width: 720px;
    font-size: clamp(18px, 1.3vw, 21px);
    line-height: 1.5
}

.post-cover {
    margin: 0;
    background: linear-gradient(#fff 50%, var(--cake-white) 50%)
}

.post-cover img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 140px), calc(100% - 70px) 100%, 0 100%)
}

.post-body {
    background: var(--cake-white);
    padding: 80px 24px 120px
}

.post-body > * {
    max-width: 720px;
    margin-inline: auto
}

.post-body p,
.post-body li {
    font-size: 19px;
    line-height: 1.6
}

.post-body p {
    margin-bottom: 20px
}

.post-body h2 {
    font-size: clamp(26px, 2.2vw, 32px);
    line-height: 1.2;
    margin-top: 56px;
    margin-bottom: 18px
}

.post-body ul {
    padding-left: 24px;
    margin-bottom: 20px
}

.post-body li {
    margin-bottom: 10px
}

.post-body li::marker {
    color: var(--olive)
}

.draft-note {
    background: var(--gin-fizz);
    border-left: 3px solid var(--olive);
    padding: 18px 22px;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px
}

.post-disclaimer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    color: var(--grey-700);
    font-size: 15px !important
}

.blog-more {
    padding: 120px 0 0
}

/* CTA banner: same as the homepage, with an h2 for the page outline */
.blog-cta .cta-banner {
    margin: 120px 0 160px
}

.cta-banner h2 {
    font-size: 28px;
    letter-spacing: -.03em;
    font-weight: 600;
    margin: 0 0 8px
}

@media(max-width:1100px) {
    .inner-page main {
        padding-top: 84px
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .featured-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr)
    }

    .post-card-large {
        --slash-cut: 56px
    }
}

@media(max-width:760px) {
    .inner-page main {
        padding-top: 80px
    }

    .blog-intro {
        padding: 64px 0 48px
    }

    .blog-featured {
        padding-bottom: 72px
    }

    .blog-archive {
        padding: 72px 0
    }

    .featured-grid,
    .posts-grid,
    .more-grid {
        grid-template-columns: 1fr;
        gap: 48px
    }

    .blog-eyebrow,
    .post-meta,
    .post-back {
        font-size: 12px
    }

    .post-head {
        padding: 48px 0 40px;
        gap: 20px
    }

    .post-back {
        margin-bottom: 8px
    }

    .post-cover img {
        aspect-ratio: 4 / 3;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 32px) 100%, 0 100%)
    }

    .post-body {
        padding: 48px 24px 72px
    }

    .post-body p,
    .post-body li {
        font-size: 17px
    }

    .post-body h2 {
        margin-top: 40px
    }

    .blog-more {
        padding-top: 72px
    }

    .blog-cta .cta-banner {
        margin: 72px 0 80px
    }
}

@media(prefers-reduced-motion:reduce) {
    .post-card-image img {
        transition: none
    }

    .post-card a:hover img {
        transform: none
    }
}

/* News */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

.news-updated {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--grey-700)
}

.news-stats {
    background: var(--ink);
    color: #fff;
    padding: 64px 0
}

.news-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 48px
}

.news-stat {
    border-left: 1px solid #3d3739;
    padding-left: 24px
}

.news-stat-figure {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: clamp(36px, 3.4vw, 56px);
    line-height: 1.1;
    color: var(--mint);
    margin-bottom: 12px
}

.news-stat p:not(.news-stat-figure) {
    font-size: 16px;
    max-width: 300px
}

.news-stat .news-stat-source {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #cbc6c8
}

.news-feed {
    padding: 96px 0 0
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 72px
}

.news-filters button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--rule);
    font-size: 15px;
    transition: background .2s, border-color .2s
}

.news-filters button:hover {
    border-color: var(--ink)
}

.news-filters button[aria-pressed=true] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff
}

.news-month + .news-month {
    margin-top: 72px
}

.news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink)
}

.news-item {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
    gap: 12px 48px;
    padding: 32px 0;
    border-bottom: 1px solid var(--rule)
}

.news-item-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase
}

.news-item-meta span {
    color: var(--grey-700)
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

.news-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--cake-white);
    padding: 3px 8px
}

.news-tags span:last-child {
    background: var(--mint-hint)
}

.news-item h3 {
    font-size: clamp(20px, 1.6vw, 26px);
    line-height: 1.3;
    max-width: 820px;
    margin-bottom: 12px
}

.news-item h3 a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px
}

.news-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: .8em;
    color: var(--olive)
}

.news-item-body > p:last-child {
    max-width: 760px;
    color: #4a4446;
    font-size: 17px;
    line-height: 1.55
}

.news-note {
    margin-top: 56px;
    max-width: 760px;
    font-size: 14px;
    color: var(--grey-700)
}

@media(max-width:1100px) {
    .news-stats-grid {
        grid-template-columns: 1fr
    }

    .news-stat p:not(.news-stat-figure) {
        max-width: 520px
    }
}

@media(max-width:760px) {
    .news-stats {
        padding: 48px 0
    }

    .news-feed {
        padding-top: 56px
    }

    .news-filters {
        margin-bottom: 48px
    }

    .news-item {
        grid-template-columns: 1fr;
        padding: 24px 0
    }

    .news-item-meta {
        flex-direction: row;
        gap: 12px;
        font-size: 12px
    }

    .news-month + .news-month {
        margin-top: 56px
    }
}
