@font-face {
    font-family: Helvena;
    src: url('/NeueHelvena-Regular.woff2') format('woff2');
    font-display: swap;
}

:root {
    --navy: #24394c;
    --muted: #556574;
    --line: #dce1e5;
    --soft: #f5f7f8;
    --yellow: #ffe715;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--navy); font: 17px/1.65 Helvena, 'Helvetica Neue', Arial, sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.blog-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.blog-nav, .blog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.blog-nav { min-height: 84px; border-bottom: 1px solid var(--line); }
.blog-nav img { display: block; width: 155px; height: auto; }
.blog-nav > a:last-child, .blog-footer { font-size: 14px; }
.blog-footer { padding-block: 28px; margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.blog-list-heading { padding-block: clamp(35px, 7vw, 84px) 30px; }
.blog-list-heading h1, .blog-post-heading h1 { margin: 0; font-size: clamp(36px, 6vw, 68px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; overflow-wrap: anywhere; }
.blog-empty { color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.blog-card { max-width: 540px; border: 1px solid var(--line); border-radius: 14px; }
.blog-card a { display: block; height: 100%; text-decoration: none; }
.blog-card a:hover h2 { text-decoration: underline; }
.blog-card-cover { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 13px 13px 0 0; background: var(--soft); }
.blog-card-copy { padding: 24px; }
.blog-card-copy h2 { margin: 7px 0 8px; font-size: 26px; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.blog-card-copy p, .blog-post-heading p { color: var(--muted); margin-bottom: 0; overflow-wrap: anywhere; }
.blog-card time, .blog-post time { font-size: 14px; color: var(--muted); }
.blog-post { max-width: 960px; margin-inline: auto; }
.blog-post-heading { max-width: 820px; padding: clamp(32px, 6vw, 70px) 0 28px; }
.blog-back { display: inline-block; margin-bottom: 20px; font-size: 15px; }
.blog-post-heading p { margin-top: 16px; font-size: clamp(17px, 2.4vw, 22px); }
.blog-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.blog-author { display: inline-flex; align-items: center; gap: 8px; }
.blog-author img { border-radius: 50%; object-fit: cover; }
.blog-post-heading .blog-author-bio { margin-top: 8px; font-size: 14px; }
.blog-post-cover { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--soft); }
.blog-prose { max-width: 760px; margin: 40px auto 0; overflow-wrap: anywhere; }
.blog-prose :is(h1, h2, h3, h4, h5, h6) { margin: 1.5em 0 .5em; line-height: 1.2; }
.blog-prose :is(h1, h2) { font-size: clamp(25px, 4vw, 35px); font-weight: 400; }
.blog-prose h3 { font-size: 23px; font-weight: 400; }
.blog-prose :is(ul, ol) { padding-inline-start: 1.5em; }
.blog-prose li + li { margin-top: .3em; }
.blog-toc { margin: 1.5em 0; padding: 1em 1.25em; border: 1px solid var(--line); border-radius: 8px; }
.blog-toc > :first-child { margin-top: 0; }
.blog-toc > :last-child { margin-bottom: 0; }
.blog-prose blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-inline-start: 4px solid var(--yellow); background: var(--soft); }
.blog-prose blockquote > :first-child { margin-top: 0; }
.blog-prose blockquote > :last-child { margin-bottom: 0; }
.blog-prose figure { margin: 1.6em 0; }
.blog-prose img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.blog-prose figcaption, .blog-prose caption { margin-top: .55em; color: var(--muted); font-size: .85em; text-align: left; }
.blog-prose pre { overflow: auto; padding: 1em; background: var(--soft); }
.blog-prose hr { border: 0; border-top: 1px solid var(--line); }
.blog-table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5em 0; }
.blog-prose table { width: 100%; min-width: 520px; border-collapse: collapse; }
.blog-prose :is(th, td) { padding: .55em .75em; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.blog-prose th { background: var(--soft); }

.blog-prose table:has(> thead > tr > th:nth-child(2):last-child) {
    min-width: 0;
}
.blog-prose table:has(> thead > tr > th:nth-child(2):last-child) tr > :first-child {
    width: 28%;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .blog-nav { min-height: 68px; }
    .blog-nav img { width: 125px; }
    .blog-prose { margin-top: 24px; }
    .blog-card-copy { padding: 18px; }
    .blog-prose :is(th, td) { padding-inline: .55em; }
}
