@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body,
address,
blockquote,
div,
form,
fieldset,
caption,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
ul,
li,
ol,
ul,
table,
tr,
td,
th,
p,
img {
    margin: 0;
    padding: 0;
}

img,
fieldset {
    border: none;
}
@media (max-width: 480px) {
    * {
        -webkit-text-size-adjust: none;
        -ms-text-size-adjust: none;
    }
}
html,
body {
    width: 100%;
    height: 100%;
}

header {
    overflow: hidden; /* wrap floats and margins */
    zoom: 1; /* trip haslayout, wrap floats and margins legacy IE */
    max-width: 64em;
    margin: 0 auto;
}

* html .widthWrapper {
    /*
		legacy IE can't do min/max-width, so shove a fixed width at them.
		OH WELL, they should be thankful we bother even thinking about the folks
		still using it!
	*/
    width: 48em;
}

a:link,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none !important;
}

body {
    font-size: 1.894rem;
    font-family: 'Roboto', sans-serif;
    max-width: 1920px;
    margin: 0 auto;
    text-size-adjust: none;
}

header {
    font-size: 1.894rem;
    min-width: 100%;
    background-color: black;
}

.header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    margin: 0 auto;
    padding: 2em 8em 2em 8em;
}

.header img {
    height: 4em;
}

main {
    font-size: 1.894rem;
    padding: 2em 8em 2em 8em;
}

.blog-title {
    font-size: 2.841rem;
    font-weight: 700;
    line-height: 2.841rem;
    text-box: trim-both ex alphabetic;
    color: white;
}

.blog-posts {
    width: 100%;
}

.link-box {
    font-size: 1.894rem;
    margin: 0 auto;
    max-width: 62em;
    width: 80%;
    padding: 6em 2em 6em 2em;
    margin-top: 2em;
    margin-bottom: 2em;
    border-style: solid;
    border-width: 4px;
    border-color: black;
}

.link-box:hover {
    background-color: rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 0, 0, 0);
    cursor: pointer;
}

.link-title {
    font-size: 2.841rem;
    font-weight: 700;
    line-height: 2.841rem;
    text-box: trim-both ex alphabetic;
    margin-bottom: 16px;
}

.link-subtitle {
    font-size: 1.894rem;
    line-height: 130%;
}

footer {
    font-size: 1.894rem;
    width: 100%;
    background-color: black;
}

.footer {
    padding: 2em 8em 2em 8em;
}

.footer span {
    font-weight: 700;
    font-size: 2.841rem;
    line-height: 2.841rem;
    text-box: trim-both cap alphabetic;
    color: white;
    line-height: 100%;
}

@media (max-width: 62em) {

    .header {
        padding: 2em 1em 2em 1em;
    }

    main {
        padding: 2em 1em 2em 1em;
    }

    .link-box {
        padding: 2em 1em 2em 1em;
        width: 100%;
    }

    .footer {
        padding: 2em 1em 2em 1em;
    }
}

/* ════════════════════════════════════════════════════════════════
   CMS additions below — same visual language as the design above
   (Roboto, black & white, solid 4px borders, no shadows/rounding)
   ════════════════════════════════════════════════════════════════ */

.article-meta {
    font-size: 1.263rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    opacity: 0.7;
}

.meta-sep {
    opacity: 0.5;
}

.cat-pill {
    display: inline-block;
    font-size: 1.263rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2em 0.75em;
    background-color: black;
    color: white;
}

.cat-pill--light {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.placeholder-icon {
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Featured article ─────────────────────────────────────────── */

.featured-section {
    margin-top: 2em;
    margin-bottom: 2em;
}

.featured-card {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 62em;
    border-style: solid;
    border-width: 4px;
    border-color: black;
    cursor: pointer;
}

.featured-card:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.featured-img-wrap {
    flex: 1 1 320px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: black;
}

.featured-img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-body {
    flex: 1 1 320px;
    padding: 2.5em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.featured-title {
    font-size: 2.841rem;
    font-weight: 700;
    line-height: 1.15;
}

.featured-excerpt {
    font-size: 1.894rem;
    line-height: 140%;
}

/* ── Topic filters ─────────────────────────────────────────────── */

.topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    max-width: 62em;
    margin: 0 auto 2em auto;
}

.topic-btn {
    font-family: 'Roboto', sans-serif;
    font-size: 1.263rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.6em 1.4em;
    background-color: white;
    color: black;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    cursor: pointer;
}

.topic-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.topic-btn.active {
    background-color: black;
    color: white;
}

/* ── Article grid (regular cards) ────────────────────────────────── */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2em;
    max-width: 62em;
    margin: 0 auto;
}

.article-card {
    border-style: solid;
    border-width: 4px;
    border-color: black;
}

.article-card.hidden {
    display: none;
}

.card-link {
    display: block;
    cursor: pointer;
}

.card-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: black;
}

.card-img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.card-title {
    font-size: 1.894rem;
    font-weight: 700;
    line-height: 130%;
}

.card-excerpt {
    font-size: 1.263rem;
    line-height: 140%;
    opacity: 0.8;
}

/* ── Load more ────────────────────────────────────────────────── */

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3em;
}

.load-more-btn {
    font-family: 'Roboto', sans-serif;
    font-size: 1.263rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9em 2.5em;
    background-color: white;
    color: black;
    border-style: solid;
    border-width: 4px;
    border-color: black;
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: black;
    color: white;
}

@media (max-width: 62em) {
    .featured-card {
        flex-direction: column;
    }

    .featured-body {
        padding: 1.5em;
    }

    .topic-filters,
    .article-grid {
        padding: 0 0;
    }
}
/* ── Article cards: at most 3 wide columns, compact card body ──── */
.article-grid {
    grid-template-columns: repeat(auto-fill, minmax(max(320px, calc((100% - 4em) / 3)), 1fr));
}

.card-body {
    padding: 1.25em 1.5em 1.5em;
    gap: 0.5em;
}

.card-body .cat-pill {
    align-self: flex-start;
}

.card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .article-meta {
    flex-wrap: wrap;
    row-gap: 0;
}

/* ── Mobile: scale the whole type system down (everything is in rem/em) ── */
@media (max-width: 62em) {
    html {
        font-size: 12px;
    }
}
