:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #666666;
    --light: #f5f5f5;
    --border: #e5e5e5;
    --accent: #1a1a1a;
    --link-hover: #555555;
    --nav-link: #5badf0;
    --nav-link-hover: #6991ff;
    --article-link: #0066cc;

    --max-width: 1100px;
    --content-width: 720px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;

    --gh-font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gh-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1 0 auto;
    padding: 3.5rem 0 var(--space-lg);
}

.home-template .site-main {
    padding-top: 0;
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-header {
    padding: var(--space-md) 0;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    z-index: 110;
}

.home-template .site-logo {
    display: block;
}

.site-logo a {
    text-decoration: none;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-md);
}

.site-nav a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--nav-link);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--nav-link-hover);
}

/* Blog CTA button on the far right */
.nav-blog a {
    background: var(--nav-link);
    color: #1c1c1c;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    margin-left: 0.25rem;
    font-weight: 500;
}

.nav-blog a:hover {
    background: var(--nav-link-hover);
    color: #1c1c1c;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 110;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nav-link);
    margin: 5px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Dark hero on homepage */
.is-home-hero .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.is-home-hero .site-logo a {
    color: #f0f0f0;
}

.is-home-hero .site-nav a {
    color: var(--nav-link);
}

.is-home-hero .site-nav a:hover {
    color: var(--nav-link-hover);
}

.is-home-hero .menu-toggle .bar {
    background: #f0f0f0;
}

.is-home-hero .site-nav {
    background: #0d0d0d;
}

.is-home-hero .nav-blog a {
    background: var(--nav-link);
    color: #1c1c1c;
}
.home-intro {
    background: #0d0d0d;
    color: #f0f0f0;
    padding: 7rem 0 var(--space-xl);
}

.home-intro-name {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 var(--space-sm);
    color: #ffffff;
}

.home-intro-role {
    font-size: 1.5rem;
    color: #aaaaaa;
    margin: 0 0 var(--space-md);
}

.home-intro-bio {
    font-size: 1.1rem;
    max-width: var(--content-width);
    margin: 0 0 var(--space-lg);
    color: #dddddd;
}

.home-latest {
    border-top: 1px solid var(--border);
    padding-top: var(--space-lg);
}

.home-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--space-md);
    color: var(--muted);
}

.home-view-all {
    margin-top: var(--space-md);
    text-align: right;
}
.blog-header {
    margin-bottom: var(--space-lg);
}

.blog-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 var(--space-sm);
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--muted);
    margin: 0;
    max-width: var(--content-width);
}

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-list-item {
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
}

.post-list-item:first-child {
    border-top: 1px solid var(--border);
}

.post-list-link {
    display: block;
    text-decoration: none;
}

.post-list-link:hover {
    text-decoration: none;
}

.post-list-link:hover .post-list-title {
    text-decoration: underline;
}

.post-list-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: var(--space-xs);
}

.post-list-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 var(--space-xs);
}

.post-list-excerpt {
    font-size: 1rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.post-list-excerpt p {
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.pagination a {
    font-weight: 500;
}

.pagination-prev:empty,
.pagination-next:empty {
    display: none;
}
.article {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-title {
    font: 300 32px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0 0 0.25rem;
    color: #222;
}

.article-excerpt {
    font-size: 0.95rem;
    font-style: italic;
    color: #777;
    margin: 0 auto 1rem;
    line-height: 1.5;
    max-width: 560px;
}

.article-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: -0.25rem;
}

.article-feature-image {
    margin: 1.5rem auto;
}

.article-feature-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.article-feature-image figcaption {
    font-size: 0.7rem;
    color: #777;
    text-align: center;
    margin-top: 0.25rem;
}

.article-content {
    font: 16px/1.7 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2 {
    font: 600 24px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.article-content h3 {
    font: 600 20px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.article-content h4 {
    font: 600 18px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.article-content em,
.article-content i {
    font: 16px/1.7 "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: italic;
}

.article-content p {
    margin: 0 0 1.15rem;
}

.article-content a {
    color: var(--article-link);
    text-decoration: none;
}

.article-content a:hover {
    color: #004499;
    text-decoration: underline;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.15rem 1.25rem;
    padding: 0;
}

.article-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.article-content blockquote {
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid #e5e5e5;
    color: #555;
    font-style: italic;
}

.article-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.2em 0;
    border-radius: 3px;
    font-size: 0.85em;
}

.article-content pre {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0 0 1.15rem;
}

.article-content pre code {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

.article-content figure {
    margin: 1.5rem 0;
}

.article-content figcaption {
    font-size: 0.7rem;
    color: #777;
    text-align: center;
    margin-top: 0.25rem;
}

.article-content hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.15rem;
}

.article-content th,
.article-content td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.article-content th {
    font-weight: 600;
}

.article-cta {
    text-align: center;
    margin: 2.5rem 0;
    font-size: 0.95rem;
    color: #777;
}

.article-cta a {
    color: var(--article-link);
    text-decoration: none;
}

.article-cta a:hover {
    text-decoration: underline;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
}

.article-nav a {
    font-weight: 500;
    color: #555;
}

.article-nav a:hover {
    color: var(--article-link);
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
}

.article-nav-next {
    text-align: right;
}

/* Responsive video embeds */
.article-content iframe[src*="youtube.com"],
.article-content iframe[src*="youtube-nocookie.com"],
.article-content iframe[src*="player.vimeo.com"],
.article-content iframe[src*="vimeo.com/video"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block;
}

.page .article-title {
    margin-bottom: var(--space-lg);
}

/* Koenig editor wide/full image support */
.kg-width-wide {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: 100vw;
    margin-left: calc(-1 * 2.25rem);
    margin-right: calc(-1 * 2.25rem);
}

@media (max-width: 768px) {
    .kg-width-full {
        margin-left: calc(-1 * 1rem);
        margin-right: calc(-1 * 1rem);
    }
}

/* Post footer: author + sharing + newsletter */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

#post-meta {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    padding-top: 40px;
    margin-bottom: 0;
    padding-bottom: 32px;
    margin-top: 40px;
    color: #444;
}

.post-meta-author {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-meta-author > div {
    margin: 0 25px 0 0;
    float: left;
}

#post-meta .avatar {
    height: 36px;
    width: 36px;
    float: left;
    border-radius: 50%;
    margin-top: 3px;
    margin-right: 20px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 4px #eee;
}

#post-meta .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

#post-meta .avatar-placeholder svg {
    width: 65%;
    height: 65%;
}

#post-meta .post-meta-author span {
    color: #aaa;
    font-weight: 500;
    display: block;
}

#sharing {
    float: right;
    margin: -2px;
    margin-top: 20px;
}

#sharing a {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}

#sharing a:hover {
    opacity: 0.8;
}

#sharing a.twitter { background: #4fafed; }
#sharing a.linkedin { background: #0077b5; }
#sharing a.facebook { background: #4361b3; }

#newsletterform {
    margin: 15px 0 0;
}

.newsletterform-text {
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.newsletterform-widget {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.newsletterform-input {
    border: 0;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    background: transparent;
    outline: none;
    width: 180px;
    font-family: inherit;
}

.newsletterform-input::placeholder {
    color: #aaa;
}

.newsletterform-action {
    border: 0;
    background: #7c3aed;
    color: #fff;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.newsletterform-message {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

@media (max-width: 640px) {
    #post-meta {
        margin-top: 60px;
    }

    .post-meta-author,
    #sharing {
        float: none;
    }

    #sharing {
        margin-top: 20px;
    }
}
.site-footer {
    padding: var(--space-md) 0;
    border-top: 1px solid #eee;
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: #999;
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .site-header-inner {
        padding: 0 var(--space-sm);
    }

    .content {
        padding: 0 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        padding: 5rem var(--space-md) var(--space-md);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 100;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .site-nav a {
        font-size: 1rem;
    }

    .home-intro {
        padding: var(--space-lg) 0;
    }

    .home-intro-name {
        font-size: clamp(2.25rem, 10vw, 3.5rem);
    }

    .article-title {
        font-size: clamp(1.5rem, 7vw, 1.75rem);
    }

    .article-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .article-nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .content {
        padding: 0 1rem;
    }

    .blog-header h1,
    .home-intro-name {
        letter-spacing: -0.03em;
    }
}
