@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/open-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --paper: #10120e;
    --panel: #191e15;
    --ink: #f0f2e9;
    --muted: #b0b8a5;
    --accent: #a9d65e;
    --accent-hover: #c4e893;
    --rule: #343b2b;
    --footer: #080a06;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--muted) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--gh-font-body, "Open Sans", sans-serif); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--paper); }
a { color: var(--accent); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:where(a, button, input, textarea, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, input, textarea, select { font: inherit; }
input, textarea { caret-color: var(--accent); }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--gh-font-heading, "Open Sans", sans-serif); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
p { margin: 0 0 1.25rem; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; overflow-wrap: anywhere; }
.reading-wrap { width: min(70ch, calc(100% - 48px)); margin-inline: auto; overflow-wrap: anywhere; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 10; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--accent); color: var(--paper); }
.site-header { background: var(--paper); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; }
.masthead > *, .post-row > *, .footer-inner > *, .author-header > * { min-width: 0; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-size: 1.15rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.wordmark img { flex: 0 0 auto; width: auto; max-width: 80px; height: 40px; object-fit: contain; }
.site-nav, .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.nav { list-style: none; padding: 0; margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); font-size: .94rem; text-decoration: none; }
.site-nav a:is(:hover, [aria-current]) { color: var(--accent); text-decoration: underline; }
.external-link-icon { width: .9em; height: .9em; margin-left: .3em; flex-shrink: 0; vertical-align: baseline; }
.publication-hero { position: relative; display: grid; align-items: end; min-height: 350px; background: var(--panel); }
.publication-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 6, .92), rgba(8, 10, 6, .4)); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 1; padding-block: 4rem; }
.hero-copy h1 { max-width: 20ch; }
.hero-copy p { max-width: 60ch; margin: 1.4rem 0 0; color: var(--ink); font-size: 1.1rem; }
.archive-section { padding-block: 4.5rem; }
.archive-section > h2 { margin: 0 0 2.5rem; }
.post-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 2.5rem; align-items: start; padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.post-row:first-child { padding-top: 0; }
.post-meta { display: grid; gap: .5rem; font-size: .85rem; color: var(--muted); }
.post-summary { grid-column: 2; max-width: 65ch; }
.post-summary h2 { margin: 0 0 .9rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.post-summary h2 a { color: var(--ink); text-decoration: none; }
.post-summary h2 a:hover { color: var(--accent); }
.post-summary p { color: var(--muted); margin-bottom: .8rem; }
.reading-time { color: var(--muted); font-size: .85rem; }
.post-thumbnail img { width: 100%; aspect-ratio: 32 / 21; object-fit: cover; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem; margin-top: 3rem; }
.pagination a { display: inline-flex; min-height: 44px; align-items: center; }
.pagination span { color: var(--muted); font-size: .9rem; }
.archive-header { padding-top: 4rem; }
.archive-header p { max-width: 65ch; margin: 1.5rem 0 0; color: var(--muted); }
.author-header { display: flex; gap: 2rem; align-items: start; }
.author-image { border-radius: 50%; }
.author-location { font-size: .9rem; }
.article { padding-bottom: 4rem; }
.article-header { padding-block: 4rem 3rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.5rem; font-size: .85rem; color: var(--muted); }
.article-deck { margin: 1.5rem 0 0; font-size: 1.2rem; color: var(--muted); }
.byline { margin: 1.5rem 0 0; font-size: .9rem; }
.feature-image { margin-bottom: 3rem; }
.feature-image img { width: 100%; max-height: 720px; object-fit: contain; }
figcaption { color: var(--muted); font-size: .85rem; text-align: center; padding-top: .75rem; }
.article-content { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 70ch) minmax(24px, 1fr); font-size: 1.125rem; line-height: 1.85; overflow-wrap: anywhere; }
.article-content > * { grid-column: 2; min-width: 0; margin-top: 0; margin-bottom: 1.5rem; }
.article-content > :is(h2, h3, h4, h5, h6) { margin-top: 2rem; margin-bottom: 1rem; }
.article-content > .kg-width-wide { grid-column: 1 / -1; width: min(1100px, calc(100% - 48px)); justify-self: center; }
.article-content > .kg-width-full { grid-column: 1 / -1; width: 100%; }
.article-content img { margin-inline: auto; }
.article-content iframe { max-width: 100%; }
.article-content :is(ul, ol) { padding-left: 1.5em; }
.article-content li + li { margin-top: .5rem; }
.article-content blockquote { margin-inline: 0; padding: 1.5rem 2rem; background: var(--panel); font-size: 1.25rem; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content :is(pre, table) { max-width: 100%; overflow-x: auto; }
.article-content pre { background: var(--panel); padding: 1.25rem; font-size: .9rem; line-height: 1.6; white-space: pre; }
.article-content code { font-family: Consolas, monospace; }
.article-content :not(pre) > code { background: var(--panel); padding: .1em .3em; }
.article-content table { display: block; border-collapse: collapse; font-size: 1rem; overflow-wrap: normal; }
.article-content :is(th, td) { padding: .75rem 1rem; border: 1px solid var(--rule); text-align: left; }
.article-content hr { width: 100%; border: 0; border-top: 1px solid var(--rule); margin-block: 2rem; }
.kg-bookmark-card { width: 100%; }
.article-content .kg-bookmark-card a.kg-bookmark-container,
.article-content .kg-bookmark-card a.kg-bookmark-container:hover { display: flex; color: var(--ink); text-decoration: none; background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.kg-bookmark-content { min-width: 0; flex: 1; padding: 1.25rem; }
.kg-bookmark-title { font-weight: 700; line-height: 1.4; }
.kg-bookmark-description { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.kg-bookmark-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; font-size: .8rem; }
.kg-bookmark-icon { width: 20px; height: 20px; }
.kg-bookmark-thumbnail { flex: 0 0 30%; position: relative; }
.kg-bookmark-thumbnail img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-container { display: flex; flex-direction: column; gap: .75rem; }
.kg-gallery-row { display: flex; gap: .75rem; }
.kg-gallery-image { flex: 1 1 0; min-width: 0; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card, .kg-toggle-card, .kg-audio-card, .kg-file-card, .kg-product-card .kg-product-card-container { color: var(--ink); background: var(--panel); }
.kg-toggle-card { border-color: var(--rule); }
.kg-button-card .kg-btn, .button, .gh-post-upgrade-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.25rem; border-radius: 12px; background: var(--accent); color: var(--paper); font-weight: 700; text-decoration: none; }
.kg-button-card .kg-btn:hover, .button:hover { background: var(--accent-hover); color: var(--paper); }
.gh-post-upgrade-cta { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 2rem; }
.gh-post-upgrade-cta-content { color: var(--ink); }
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.post-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.comments { margin-top: 3rem; }
.comments iframe { color-scheme: dark; background: var(--paper); }
.comments:empty { display: none; }
.adjacent-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2rem; margin-top: 4rem; }
.adjacent-posts span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.adjacent-posts a { font-size: 1.2rem; }
.empty-state { color: var(--muted); }
.error-page { padding-block: 6rem; }
.error-page p { margin-top: 1.5rem; }
.site-footer { padding-block: 3rem; background: var(--footer); border-top: 1px solid var(--rule); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; font-size: .85rem; }
.footer-title { display: inline-block; font-size: 1.1rem; font-weight: 700; text-decoration: none; margin-bottom: .75rem; }
.footer-inner p { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: .5rem; }
.footer-links .nav { flex-direction: column; align-items: start; gap: .5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { text-align: right; }
@media (max-width: 1000px) {
    .masthead { flex-wrap: wrap; }
    .post-row { grid-template-columns: 120px minmax(0, 1fr) 170px; gap: 1.5rem; }
}
@media (max-width: 700px) {
    .wrap { width: calc(100% - 40px); }
    .masthead { gap: 1rem; padding-block: 1rem; }
    .site-nav, .nav { gap: .5rem 1.25rem; }
    .site-nav { width: 100%; }
    .publication-hero { min-height: 300px; }
    .hero-copy { padding-block: 3rem; }
    .archive-section { padding-block: 3rem; }
    .post-row { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 2rem; }
    .post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
    .post-summary { grid-column: 1; }
    .post-thumbnail { width: min(100%, 400px); }
    .article-header { padding-block: 3rem 2rem; }
    .article-content { grid-template-columns: 20px minmax(0, 1fr) 20px; }
    .article-content > .kg-width-wide { width: calc(100% - 20px); }
    .article-content blockquote { padding: 1.25rem; }
    .author-header { flex-wrap: wrap; }
    .kg-bookmark-thumbnail { display: none; }
    .footer-inner { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 2rem; }
    .copyright { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
