:root,
html.theme-dark {
    --bg-color: #0a0a09;
    --text-color: #d1d1d1;
    --accent-color: #888;
    --font-serif: 'Lora', 'Garamond', 'Georgia', serif;
    --gh-font-heading: 'Lora', 'Garamond', 'Georgia', serif;
    --gh-font-body: 'Lora', 'Garamond', 'Georgia', serif;

    /* Ghost shared theme vars — dark adapted */
    --color-primary-text: #d1d1d1;
    --color-secondary-text: #888;
    --color-white: #0a0a09;
    --color-lighter-gray: #161616;
    --color-light-gray: #222;
    --color-mid-gray: #555;
    --color-dark-gray: #aaa;
    --color-darker-gray: #d1d1d1;
    --color-black: #000;
    --font-sans: 'EB Garamond', 'Garamond', 'Georgia', serif;
    --font-mono: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
    --head-nav-gap: 2.8rem;
    --h1-size: 4.6rem;
    --gap: 3.6rem;
    --header-spacing: 80px;
    --navbar-height: 80px;
    --content-font-size: 1.7rem;

    /* Oramind-dawn vars — dark adapted */
    --brand-color: var(--ghost-accent-color, #ff572f);
    --primary-text-color: #d1d1d1;
    --secondary-text-color: #888;
    --white-color: #0a0a09;
    --lighter-gray-color: #161616;
    --light-gray-color: #222;
    --mid-gray-color: #555;
    --dark-gray-color: #aaa;
    --darker-gray-color: #d1d1d1;
    --black-color: #000;
    --green-color: #28a745;
    --orange-color: #ffc107;
    --red-color: #dc3545;
    --facebook-color: #3b5998;
    --twitter-color: #1da1f2;
    --rss-color: #f26522;
    --animation-base: ease-in-out;
    --header-bg: rgba(10, 10, 9, 0.85);
}

html.theme-light {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #666;

    --color-primary-text: #000000;
    --color-secondary-text: #666;
    --color-white: #ffffff;
    --color-lighter-gray: #f0f0ec;
    --color-light-gray: #dcdcd7;
    --color-mid-gray: #999;
    --color-dark-gray: #555;
    --color-darker-gray: #222;
    --color-black: #000;

    --primary-text-color: #000000;
    --secondary-text-color: #666;
    --white-color: #ffffff;
    --lighter-gray-color: #f0f0ec;
    --light-gray-color: #dcdcd7;
    --mid-gray-color: #999;
    --dark-gray-color: #555;
    --darker-gray-color: #222;
    --black-color: #000;
    --header-bg: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
    :root {
        --h1-size: 3.2rem;
        --gap: 2rem;
        --header-spacing: 48px;
    }
}

/* ============ Reset ============ */

*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    text-rendering: optimizespeed;
    font-family: var(--gh-font-body);
    font-size: 1.6rem;
    color: var(--color-primary-text);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

img, picture {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

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

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gh-font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-darker-gray);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.4rem; }
h4 { font-size: 2.2rem; }
h5 { font-size: 2rem; }
h6 { font-size: 1.8rem; }

hr {
    width: 100%;
    height: 1px;
    background-color: var(--color-light-gray);
    border: 0;
}

blockquote:not([class]) {
    padding-left: 2rem;
    border-left: 4px solid var(--ghost-accent-color);
}

figcaption {
    margin-top: 1.6rem;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--color-secondary-text);
    text-align: center;
}

.kg-width-full figcaption {
    padding: 0 1.6rem;
}

pre {
    padding: 1.6rem 2.4rem;
    overflow-x: scroll;
    hyphens: none;
    line-height: 1.5;
    white-space: pre;
    background-color: var(--color-lighter-gray);
    -webkit-overflow-scrolling: touch;
}

code {
    font-family: var(--font-mono);
    font-size: 15px;
}

:not(pre) > code {
    padding: 0.4rem;
    color: var(--ghost-accent-color);
    background-color: var(--color-lighter-gray);
    border-radius: 3px;
}

iframe {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 0;
}

@media (max-width: 767px) {
    h2 { font-size: 2.4rem; }
    h3 { font-size: 2.1rem; }
}

/* ============ Grain Canvas ============ */

#grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.25s ease;
}

/* ============ Layout ============ */

.gh-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

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

.gh-main {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.site-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    padding: 6rem 0;
}

.gh-head,
.gh-foot {
    position: relative;
    z-index: 3;
}

.page-template .site-content,
.page-template .gh-main {
    padding-block: 0;
}

.gh-outer {
    padding-right: var(--gap);
    padding-left: var(--gap);
}

.gh-inner {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
}

.gh-canvas {
    --main: min(var(--content-width, 720px), 100% - var(--gap) * 2);
    --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 720px)) / 2));
    --full: minmax(var(--gap), 1fr);

    display: grid;
    grid-template-columns:
        [full-start] var(--full)
        [wide-start] var(--wide)
        [main-start] var(--main) [main-end]
        var(--wide) [wide-end]
        var(--full) [full-end];
}

.gh-canvas > * {
    grid-column: main;
}

.kg-width-wide,
.kg-content-wide > div {
    grid-column: wide;
}

.kg-width-full {
    grid-column: full;
}

.kg-width-full img {
    width: 100%;
}

@media (max-width: 767px) {
    .gh-main {
        padding-top: 4.8rem;
        padding-bottom: 4.8rem;
    }

    .site-content {
        padding: 3rem 0;
    }
}

/* ============ Header ============ */

.gh-head {
    height: 100px;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.gh-head-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-auto-flow: row dense;
    column-gap: var(--head-nav-gap);
    align-items: center;
    height: 100%;
}

.gh-head-brand {
    line-height: 1;
}

.gh-head-brand-wrapper {
    display: flex;
    align-items: center;
}

.gh-head-logo {
    position: relative;
    font-family: var(--gh-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gh-head-logo img {
    max-height: 40px;
}

.gh-head-logo img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.gh-head-menu,
.gh-head-actions {
    font-size: 1.5rem;
    font-weight: 700;
}

.gh-head-menu {
    display: flex;
    gap: var(--head-nav-gap);
    align-items: center;
}

.gh-head .nav {
    display: inline-flex;
    gap: var(--head-nav-gap);
    align-items: center;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    list-style: none;
}

.gh-head .nav-more-toggle {
    position: relative;
    margin: 0 -6px;
    font-size: inherit;
    text-transform: inherit;
}

.gh-head .nav-more-toggle svg {
    width: 24px;
    height: 24px;
}

.gh-head-actions {
    display: flex;
    gap: var(--head-nav-gap);
    align-items: center;
    justify-content: flex-end;
}

.gh-head-members {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.gh-head-btn.gh-btn {
    font-size: inherit;
    font-weight: 600;
}

.gh-head-btn:not(.gh-btn) {
    display: inline-flex;
    align-items: center;
    color: var(--ghost-accent-color);
}

.gh-head-btn svg {
    width: 1.3em;
    height: 1.3em;
}

.gh-search {
    margin-right: -6px;
    margin-left: -6px;
}

.gh-search:hover {
    opacity: 0.9;
}

.gh-head-brand .gh-search {
    margin-right: 8px;
}

/* Header variants */

.is-head-left-logo .gh-head-inner {
    grid-template-columns: auto 1fr auto;
}

@media (min-width: 992px) {
    .is-head-left-logo .gh-head-menu {
        margin-right: 64px;
        margin-left: 16px;
    }
}

.is-head-middle-logo .gh-head-inner {
    grid-template-columns: 1fr auto 1fr;
}

.is-head-middle-logo .gh-head-brand {
    grid-column-start: 2;
}

.is-head-middle-logo .gh-head-actions {
    gap: 28px;
}

@media (min-width: 992px) {
    .is-head-middle-logo .gh-head-menu {
        margin-right: 64px;
    }
}

.is-head-stacked .gh-head {
    position: relative;
    height: auto;
}

.is-head-stacked .gh-head-inner {
    grid-template-columns: 1fr auto 1fr;
}

.is-head-stacked .gh-head-brand {
    display: flex;
    grid-row-start: 1;
    grid-column-start: 2;
    min-height: 80px;
}

@media (max-width: 767px) {
    .is-head-stacked .gh-head-brand {
        min-height: unset;
    }
}

@media (min-width: 992px) {
    .is-head-stacked .gh-head-inner {
        padding: 0;
    }

    .is-head-stacked .gh-head-brand {
        display: flex;
        align-items: center;
        height: 80px;
    }

    .is-head-stacked .gh-head-menu {
        grid-row-start: 2;
        grid-column: 1 / 4;
        justify-content: center;
        height: 56px;
        margin: 0 48px;
    }

    .is-head-stacked .gh-head-menu::before,
    .is-head-stacked .gh-head-menu::after {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        height: 1px;
        content: "";
        background-color: var(--color-light-gray);
    }

    .is-head-stacked .gh-head-menu::after {
        top: 136px;
    }

    .is-head-stacked .gh-head-actions {
        grid-row-start: 1;
        grid-column: 1 / 4;
        justify-content: space-between;
    }
}

/* Burger / Mobile menu */

.gh-burger {
    position: relative;
    display: none;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-right: -3px;
    appearance: none;
    cursor: pointer;
    background-color: transparent;
    border: 0;
}

.gh-burger::before,
.gh-burger::after {
    position: absolute;
    left: 3px;
    width: 24px;
    height: 1px;
    content: "";
    background-color: var(--color-darker-gray);
    transition: all 0.2s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.gh-burger::before {
    top: 11px;
}

.gh-burger::after {
    bottom: 11px;
}

.is-head-open .gh-burger::before {
    top: 15px;
    transform: rotate(45deg);
}

.is-head-open .gh-burger::after {
    bottom: 14px;
    transform: rotate(-45deg);
}

@media (max-width: 767px) {
    #gh-head {
        height: 64px;
    }

    #gh-head .gh-head-inner {
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
        gap: 48px;
    }

    #gh-head .gh-head-brand {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-column-start: 1;
        align-items: center;
        height: 64px;
    }

    #gh-head .gh-head-logo {
        font-size: 2.2rem;
    }

    .gh-burger {
        display: block;
    }

    #gh-head .gh-head-menu,
    #gh-head .gh-head-actions {
        position: fixed;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
    }

    #gh-head .gh-head-menu {
        transition: none;
        transform: translateY(0);
    }

    #gh-head .nav {
        gap: 20px;
        align-items: center;
        line-height: 1.4;
    }

    #gh-head .nav a {
        font-size: 2.6rem;
        font-weight: 600;
        text-transform: none;
    }

    #gh-head .nav li {
        opacity: 0;
        transform: translateY(-4px);
    }

    #gh-head .gh-head-actions {
        text-align: center;
    }

    #gh-head :is(.gh-head-btn, .gh-head-link) {
        opacity: 0;
        transform: translateY(8px);
    }

    #gh-head .gh-head-btn {
        width: 100%;
        font-size: 1.8rem;
        text-transform: none;
    }

    #gh-head .gh-head-btn:not(.gh-btn) {
        font-size: 2rem;
    }

    #gh-main {
        transition: opacity 0.4s;
    }

    .is-head-open #gh-head {
        position: fixed;
        inset: 0;
        z-index: 3999999;
        height: 100%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .is-head-open #gh-head {
        background-color: var(--bg-color);
    }

    .is-head-open #gh-head .gh-head-menu,
    .is-head-open #gh-head .gh-head-actions {
        position: static;
        visibility: visible;
        opacity: 1;
    }

    .is-head-open #gh-head .nav {
        display: flex;
        flex-direction: column;
    }

    .is-head-open #gh-head .nav li {
        opacity: 1;
        transition: transform 0.2s, opacity 0.2s;
        transform: translateY(0);
    }

    .is-head-open #gh-head .gh-head-actions {
        position: sticky;
        right: 0;
        bottom: 0;
        left: 0;
        display: inline-flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        padding: var(--gap) 0 calc(var(--gap) + 8px);
        background-color: var(--bg-color);
    }

    .is-head-open #gh-head :is(.gh-head-btn, .gh-head-link) {
        opacity: 1;
        transition: transform 0.4s, opacity 0.4s;
        transition-delay: 0.2s;
        transform: translateY(0);
    }

    .is-head-open #gh-head .gh-head-link {
        transition-delay: 0.4s;
    }

    .is-head-open #gh-main {
        opacity: 0;
    }
}

/* ============ Footer ============ */

.gh-foot {
    padding-top: 8rem;
    padding-bottom: 8rem;
    color: var(--color-secondary-text);
    white-space: nowrap;
    background: var(--bg-color);
    border-top: 1px solid var(--color-light-gray);
    position: relative;
    z-index: 2;
}

.gh-foot-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    font-size: 1.3rem;
}

.no-menu .gh-foot-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.gh-foot-menu .nav {
    display: inline-flex;
    flex-wrap: wrap;
    row-gap: 4px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.gh-foot-menu .nav li {
    display: flex;
    align-items: center;
}

.gh-foot-menu .nav li + li::before {
    padding: 0 1.2rem;
    font-size: 0.9rem;
    line-height: 0;
    content: "\2022";
}

.gh-foot a {
    color: var(--color-secondary-text);
}

.gh-foot a:hover {
    color: var(--color-darker-gray);
    opacity: 1;
}

.gh-copyright {
    color: var(--accent-color);
}

@media (max-width: 767px) {
    .gh-foot {
        padding-top: 6.4rem;
        padding-bottom: 12rem;
    }

    .gh-foot-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gh-foot-menu .nav {
        flex-direction: column;
    }

    .gh-foot-menu .nav li + li {
        margin-top: 0.4rem;
    }

    .gh-foot-menu .nav li + li::before {
        display: none;
    }
}

/* ============ Home Hero ============ */

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem;
    max-width: 960px;
    width: 100%;
    pointer-events: none;
}

.home-hero-content > * {
    pointer-events: auto;
}

.home-hero-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.home-hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.8rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.home-hero-description {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem;
    max-width: 520px;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.home-hero-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.home-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s, border-color 0.25s;
}

.home-hero-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--ghost-accent-color);
    transform: translateY(-2px);
}

.home-hero-link--social svg {
    flex-shrink: 0;
}

.home-featured {
    width: 100%;
    max-width: 900px;
    margin-bottom: 3rem;
}

.home-featured-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1.5rem;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.home-featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.home-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--ghost-accent-color);
}

.home-featured-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-featured-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.home-featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.home-featured-card:hover .home-featured-card-image img {
    transform: scale(1.05);
}

.home-featured-card-body {
    padding: 1.2rem 1.4rem 1.4rem;
}

.home-featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.home-featured-card-excerpt {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: home-bounce 2s ease-in-out infinite;
}

.home-scroll-indicator svg {
    opacity: 0.6;
}

@keyframes home-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (max-width: 767px) {
    .home-hero-content {
        padding: 4rem 1.5rem;
    }

    .home-hero-title {
        font-size: 2.6rem;
    }

    .home-hero-description {
        font-size: 1.5rem;
    }

    .home-featured-grid {
        grid-template-columns: 1fr;
    }

    .home-featured-card-image {
        height: 140px;
    }
}

/* ============ Post Feed (loop) ============ */

.post-feed {
    margin: 0;
}

.feed {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    overflow: hidden;
    line-height: 1;
}

.feed:hover .feed-title {
    opacity: 0.8;
}

.feed:hover .feed-right {
    margin-right: 1.6rem;
}

.feed:hover .feed-icon {
    transform: translateX(0.4rem);
}

.feed + .feed {
    border-top: 1px solid var(--color-light-gray);
}

.feed + .feed.feed-paged {
    margin-top: 3rem;
    border-top: 0;
}

.feed-calendar {
    display: flex;
    min-width: 55px;
    margin-right: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-color);
    white-space: nowrap;
}

.feed-calendar-day {
    display: inline;
}

.feed-title {
    flex-grow: 1;
    padding-right: 1rem;
    margin-bottom: 0;
    overflow: hidden;
    font-family: var(--gh-font-body);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
    text-overflow: ellipsis;
    letter-spacing: 0;
    white-space: nowrap;
}

.feed-body {
    flex-grow: 1;
    min-width: 0;
    padding-right: 1rem;
}

.feed-body .feed-title {
    padding-right: 0;
}

.feed-excerpt {
    max-width: 62ch;
    margin-top: 0.6rem;
    overflow: hidden;
    font-size: 1.45rem;
    line-height: 1.45;
    color: var(--color-secondary-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-right {
    display: flex;
    align-items: center;
    transition: margin 0.2s var(--animation-base);
}

.icon-star {
    width: 16px;
    height: 16px;
    margin-right: 1rem;
    color: var(--orange-color);
}

.public .icon-star {
    display: none;
}

.feed-length {
    font-size: 1.4rem;
    color: var(--color-secondary-text);
    white-space: nowrap;
}

.feed-icon {
    position: absolute;
    right: 0;
    width: 16px;
    height: 16px;
    color: var(--color-secondary-text);
    transition: transform 0.2s var(--animation-base);
    transform: translateX(2rem);
}

/* ============ Single Article ============ */

.single-header {
    margin-bottom: 4.5rem;
    text-align: center;
}

.page-template .single-header {
    margin-top: var(--header-spacing);
}

.single-meta {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-secondary-text);
    text-transform: uppercase;
}

.single-meta-item + .single-meta-item::before {
    padding: 0 0.3rem;
    font-family: serif;
    content: "\02022";
}

.single-meta-tag .post-tag {
    color: var(--brand-color);
}

.single-title {
    margin-bottom: 0;
    font-size: 4rem;
    line-height: 1.2;
    letter-spacing: -0.1rem;
    word-break: break-word;
}

.single-excerpt {
    margin-top: 2rem;
    font-size: 1.8rem;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.65);
}

.single-media {
    margin-top: 4.5rem;
}

.single-footer {
    display: flex;
    align-items: center;
    margin-top: 4.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-footer-left,
.single-footer-right {
    display: flex;
    flex: 2;
}

.single-footer-right {
    justify-content: flex-end;
}

.single-footer-middle {
    display: flex;
    flex-direction: column;
}

.single-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.single-footer-title {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.author-list {
    display: flex;
}

.author-list .author-image-placeholder {
    width: 54px;
    margin: 0 -4px;
    border: 2px solid var(--bg-color);
}

.author-list .author-image-placeholder:first-child { z-index: 10; }
.author-list .author-image-placeholder:nth-child(2) { z-index: 9; }
.author-list .author-image-placeholder:nth-child(3) { z-index: 8; }
.author-list .author-image-placeholder:nth-child(4) { z-index: 7; }
.author-list .author-image-placeholder:nth-child(5) { z-index: 6; }

@media (max-width: 767px) {
    .single-header {
        margin-bottom: 3rem;
    }

    .single-title {
        font-size: 2.6rem;
    }

    .single-excerpt {
        font-size: 1.7rem;
    }

    .single-media {
        margin-top: 3rem;
    }
}

/* ============ Content Styles ============ */

.gh-content {
    margin-top: 4rem;
    font-size: var(--content-font-size);
    letter-spacing: 0;
    word-break: break-word;
    position: relative;
}

.single-content-body {
    grid-column: main;
    min-width: 0;
    color: var(--color-primary-text);
    line-height: 1.75;
}

.gh-content > * + * {
    margin-top: calc(1.6em * var(--content-spacing-multiplier, 1));
    margin-bottom: 0;
}

.single-content-body > * + * {
    margin-top: calc(1.6em * var(--content-spacing-multiplier, 1));
    margin-bottom: 0;
}

.gh-content > [id] {
    margin: 0;
}

.gh-content > .kg-card + [id] {
    margin-top: calc(2em * var(--content-spacing-multiplier, 1)) !important;
}

.single-content-body > .kg-card + [id] {
    margin-top: calc(2em * var(--content-spacing-multiplier, 1)) !important;
}

.gh-content > [id]:not(:first-child) {
    margin-top: calc(1.6em * var(--content-spacing-multiplier, 1));
}

.single-content-body > [id]:not(:first-child) {
    margin-top: calc(1.6em * var(--content-spacing-multiplier, 1));
}

.gh-content > [id] + * {
    margin-top: calc(0.8em * var(--content-spacing-multiplier, 1));
}

.single-content-body > [id] + * {
    margin-top: calc(0.8em * var(--content-spacing-multiplier, 1));
}

.gh-content > hr,
.gh-content > blockquote {
    position: relative;
    margin-top: calc(2.4em * var(--content-spacing-multiplier, 1));
}

.single-content-body > hr,
.single-content-body > blockquote {
    position: relative;
    margin-top: calc(2.4em * var(--content-spacing-multiplier, 1));
}

.gh-content > hr + *,
.gh-content > blockquote + * {
    margin-top: calc(2.4em * var(--content-spacing-multiplier, 1));
}

.single-content-body > hr + *,
.single-content-body > blockquote + * {
    margin-top: calc(2.4em * var(--content-spacing-multiplier, 1));
}

.gh-content h2 {
    font-size: 1.6em;
}

.gh-content h3 {
    font-size: 1.4em;
}

.gh-content a {
    color: var(--ghost-accent-color);
    text-decoration: underline;
    word-break: break-word;
}

.gh-content blockquote {
    border-left-color: var(--ghost-accent-color);
    color: rgba(255, 255, 255, 0.8);
}

.gh-content code {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

.gh-content pre {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gh-content hr {
    background: rgba(255, 255, 255, 0.1);
}

.gh-content ul,
.gh-content ol,
.gh-content dl {
    padding-left: 2.8rem;
}

.gh-content :is(li + li, li :is(ul, ol)) {
    margin-top: 0.8rem;
}

.gh-content ol ol li {
    list-style-type: lower-alpha;
}

.gh-content ol ol ol li {
    list-style-type: lower-roman;
}

.gh-content table:not(.gist table) {
    display: inline-block;
    width: auto;
    max-width: 100%;
    overflow-x: auto;
    font-size: 1.6rem;
    white-space: nowrap;
    vertical-align: top;
    border-spacing: 0;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.gh-content table:not(.gist table) th {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark-gray);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.gh-content table:not(.gist table) th,
.gh-content table:not(.gist table) td {
    padding: 6px 12px;
    border: 1px solid var(--color-light-gray);
}

.page-template .gh-content:only-child {
    margin-top: 0 !important;
}

.page-template .gh-content:only-child > *:first-child:not(.kg-width-full) {
    margin-top: var(--header-spacing, 80px);
}

@media (max-width: 767px) {
    .gh-content {
        margin-top: 3.2rem;
        font-size: 1.7rem;
    }
}

/* ============ Navigation (prev/next post) ============ */

.navigation-previous .navigation-icon {
    margin-left: -2px;
}

.navigation-next .navigation-link {
    justify-content: flex-end;
}

.navigation-next .navigation-icon {
    margin-right: -2px;
}

.navigation-link {
    display: flex;
    align-items: center;
    width: 30px;
    height: 30px;
    color: rgba(255, 255, 255, 0.5);
}

.navigation-link:hover {
    color: var(--ghost-accent-color);
}

.gh-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 2.4rem;
    align-items: center;
}

.gh-navigation > div {
    display: flex;
    align-items: center;
}

.gh-navigation-next {
    justify-content: flex-end;
}

.gh-navigation-link {
    display: inline-flex;
    align-items: center;
}

.gh-navigation-link svg {
    width: 16px;
    height: 16px;
}

.gh-navigation-previous svg {
    margin-right: 0.4rem;
}

.gh-navigation-next svg {
    margin-left: 0.4rem;
}

@media (max-width: 767px) {
    .gh-navigation-hide {
        display: none;
    }
}

/* ============ Pagination ============ */

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin-top: 6.4rem;
}

.page-number {
    grid-column-start: 2;
    color: var(--accent-color);
}

.older-posts {
    text-align: right;
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* ============ Buttons ============ */

.gh-btn {
    display: inline-flex;
    gap: 0.4em;
    align-items: center;
    justify-content: center;
    padding: calc(0.75em * var(--multiplier, 1)) calc(1.15em * var(--multiplier, 1));
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-darker-gray);
    letter-spacing: inherit;
    cursor: pointer;
    background-color: var(--color-darker-gray);
    border: 0;
    border-radius: 100px;
}

.gh-btn:hover {
    opacity: 0.95;
}

.gh-primary-btn {
    background-color: var(--ghost-accent-color);
    color: #fff;
}

.gh-outline-btn {
    color: var(--color-darker-gray);
    text-decoration: none;
    background-color: transparent;
    border: 1px solid var(--color-light-gray);
}

.gh-outline-btn:hover {
    border-color: var(--color-mid-gray);
    opacity: 1;
}

.gh-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--darker-gray-color);
    cursor: pointer;
    background-color: transparent;
    border: 0;
    outline: none;
}

.gh-icon-btn svg {
    width: 20px;
    height: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    background-color: var(--color-lighter-gray);
    border: 1px solid var(--color-light-gray);
    border-radius: 3px;
    outline: none;
}

.button:hover {
    border-color: var(--color-mid-gray);
    opacity: 1;
}

.button-secondary {
    color: var(--darker-gray-color);
}

.button-text {
    padding: 0;
    margin: 0;
    line-height: inherit;
    color: var(--color-darker-gray);
    cursor: pointer;
    background-color: transparent;
    border: 0;
    outline: none;
}

/* ============ Tag Page ============ */

.tag {
    margin-bottom: 4.5rem;
    text-align: center;
}

.tag .tag-name {
    margin-bottom: 0;
    font-size: 3rem;
    color: var(--brand-color);
}

.tag .tag-name::before {
    content: "#";
}

.tag .tag-description {
    max-width: 520px;
    margin: 16px auto 0;
}

.tag .tag-list {
    margin-top: 2rem;
    font-weight: 700;
}

.tag .tag-list-label {
    margin-right: 0.5rem;
    color: var(--color-secondary-text);
}

.tag .tag-list-item::before {
    content: "#";
}

.tag .tag-list-item + .tag-list-item {
    margin-left: 0.3rem;
}

.tag .tag-media {
    margin-top: 4.5rem;
}

@media (max-width: 767px) {
    .tag {
        margin-bottom: 2.5rem;
    }

    .tag .tag-media {
        margin-top: 3rem;
    }
}

/* ============ Author Page ============ */

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4.5rem;
    text-align: center;
}

.author-image-placeholder {
    flex-shrink: 0;
    width: 70px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 50%;
}

.author-name {
    margin-bottom: 0;
    font-size: 2.4rem;
}

.author-meta {
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-secondary-text);
    text-transform: uppercase;
}

.author-bio {
    max-width: 520px;
    margin-top: 16px;
}

.author-social {
    margin-top: 2rem;
}

/* ============ Share ============ */

.share {
    display: flex;
}

.share-link {
    display: flex;
    align-items: center;
    height: 2.6rem;
    padding: 0 0.8rem;
    margin: 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-darker-gray);
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    border-radius: 3px;
}

.share-link .icon {
    width: 14px;
    height: 14px;
}

.share-link .icon-facebook {
    margin-right: 0.2rem;
    margin-left: -0.3rem;
}

.share-link .icon-twitter {
    margin-right: 0.4rem;
}

.share-link-facebook {
    background-color: var(--facebook-color);
    color: #fff;
}

.share-link-twitter {
    background-color: var(--twitter-color);
    color: #fff;
}

/* ============ Utility Classes ============ */

.u-permalink {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    outline: none;
}

.u-placeholder {
    position: relative;
    z-index: 10;
    background-color: var(--color-lighter-gray);
}

.u-placeholder::before {
    display: block;
    content: "";
}

.u-placeholder.horizontal::before {
    padding-bottom: 50%;
}

.u-placeholder.rectangle::before {
    padding-bottom: 62.5%;
}

.u-placeholder.square::before {
    padding-bottom: 100%;
}

.u-object-fit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

symbol {
    fill: currentColor;
}

.icon {
    width: 20px;
    height: 20px;
}

/* ============ KG Card Styles ============ */

.kg-card {
    margin: 1.5rem 0;
}

.gh-content :not(.kg-card):not(table):not([id]) + :is(.kg-card, table) {
    margin-top: calc(2em * var(--content-spacing-multiplier, 1));
}

.gh-content :is(.kg-card, table) + :not(.kg-card):not(table):not([id]) {
    margin-top: calc(2em * var(--content-spacing-multiplier, 1));
}

.gh-content > .kg-width-full + .kg-width-full:not(.kg-width-full.kg-card-hascaption + .kg-width-full) {
    margin-top: 0;
}

.kg-image {
    margin-right: auto;
    margin-left: auto;
}

.kg-image[width][height],
.kg-gallery-image {
    cursor: pointer;
}

.kg-image-card a:hover,
.kg-gallery-image a:hover {
    opacity: 1 !important;
}

.kg-image-card img {
    width: 100%;
    height: auto;
}

.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 1.5rem 0;
}

.kg-embed-card > iframe,
.kg-embed-card > div > iframe {
    max-width: 100%;
    border-radius: 4px;
}

.kg-video-card {
    margin: 1.5rem 0;
}

.kg-video-card video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.kg-video-card .kg-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.kg-video-card .kg-video-container iframe,
.kg-video-card .kg-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kg-card.kg-toggle-card .kg-toggle-heading-text {
    font-size: 2rem;
    font-weight: 700;
}

.kg-callout-card.kg-card {
    border-radius: 0.25em;
}

.kg-callout-card-accent a {
    text-decoration: underline;
}

blockquote.kg-blockquote-alt {
    font-style: normal;
    font-weight: 400;
    color: var(--color-secondary-text);
}

.kg-card.kg-button-card .kg-btn {
    font-size: 1em;
}

.kg-bookmark-card a.kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container:hover,
.kg-file-card-container,
.kg-file-card-container:hover,
.kg-audio-card,
.kg-product-card-container {
    background: var(--color-lighter-gray) !important;
    color: var(--color-darker-gray) !important;
    opacity: 1;
}

.kg-bookmark-card .kg-bookmark-container {
    border-radius: 0.25em !important;
}

.kg-bookmark-card .kg-bookmark-content {
    padding: 1.15em;
}

.kg-bookmark-card .kg-bookmark-title {
    font-size: 0.9em;
}

.kg-bookmark-card .kg-bookmark-description {
    max-height: none;
    margin-top: 0.3em;
    font-size: 0.8em;
}

.kg-bookmark-card .kg-bookmark-metadata {
    font-size: 0.8em;
}

.kg-bookmark-card .kg-bookmark-thumbnail img {
    border-radius: 0 0.2em 0.2em 0;
}

.has-light-text .kg-audio-card button {
    color: #fff;
}

/* ============ Ghost-specific overrides ============ */

.gh-content figcaption a {
    color: var(--color-darker-gray);
    text-decoration: none;
}

.gh-head-logo img:first-child:not(:only-child) {
    display: none;
}

/* ============ Animations ============ */

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes bounceIn {
    from, 20%, 40%, 60%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.7, 0.7, 0.7);
    }
    40% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    to {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

.animate__bounceIn {
    animation-name: bounceIn;
    animation-duration: 0.3s;
}

@keyframes zoomOut {
    from { opacity: 1; }
    50% {
        opacity: 0;
        transform: scale3d(0.7, 0.7, 0.7);
    }
    to { opacity: 0; }
}

.animate__zoomOut {
    animation-name: zoomOut;
    animation-duration: 0.3s;
}

html.theme-light .home-hero-title,
html.theme-light .home-hero-link,
html.theme-light .home-featured-card-title {
    color: var(--text-color);
}

html.theme-light .home-hero-title {
    text-shadow: none;
}

html.theme-light .home-hero-description {
    color: var(--color-secondary-text);
}

html.theme-light .home-hero-description {
    text-shadow: none;
}

html.theme-light .home-hero-link {
    color: var(--text-color);
    background: var(--color-lighter-gray);
    border-color: var(--color-light-gray);
}

html.theme-light .home-hero-link:hover {
    background: var(--color-light-gray);
    border-color: var(--ghost-accent-color);
}

html.theme-light .home-featured-title {
    color: var(--color-secondary-text);
}

html.theme-light .home-featured-card {
    background: var(--color-lighter-gray);
    border-color: var(--color-light-gray);
}

html.theme-light .home-featured-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

html.theme-light .home-featured-card-excerpt {
    color: var(--color-secondary-text);
}

html.theme-light .home-scroll-indicator {
    color: var(--color-secondary-text);
}

html.theme-light .single-excerpt {
    color: var(--color-secondary-text);
}

html.theme-light .single-footer {
    border-top-color: var(--color-light-gray);
}

html.theme-light .single-footer-title {
    color: var(--color-secondary-text);
}

html.theme-light .gh-content code {
    background: var(--color-lighter-gray);
    color: var(--text-color);
}

html.theme-light .gh-content pre {
    background: var(--color-lighter-gray);
    border-color: var(--color-light-gray);
}

html.theme-light .gh-content hr {
    background: var(--color-light-gray);
}

html.theme-light .gh-content blockquote {
    color: var(--color-secondary-text);
}

html.theme-light .navigation-link {
    color: var(--color-secondary-text);
}

html.theme-light .has-light-text .kg-audio-card button {
    color: var(--text-color);
}

[data-theme-toggle] {
    cursor: pointer;
}

[data-theme-toggle] .icon-moon {
    display: none;
}

html.theme-light [data-theme-toggle] .icon-sun {
    display: none;
}

html.theme-light [data-theme-toggle] .icon-moon {
    display: block;
}
