:root {
    --ghost-bg: #120f0d;
    --ghost-text: #f1efed;
    --ghost-body: #bcb6b1;
    --ghost-muted: #85817d;
    --ghost-line: rgba(196, 188, 181, .14);
    --ghost-soft: #191613;
    --ghost-link: #d7dfe3;
}

.ghost-blog,
.ghost-article-page {
    min-height: 65vh;
    overflow: hidden;
    background: transparent;
    color: var(--ghost-body);
    font-family: var(--wdev-body, Inter, Lato, "Segoe UI", Arial, sans-serif);
}

.ghost-shell {
    width: min(1760px, calc(100% - 80px));
    margin-inline: auto;
}

.ghost-hero {
    border-bottom: 1px solid var(--ghost-line);
}

.ghost-hero .ghost-shell {
    padding-block: 44px 31px;
}

.ghost-hero h1,
.ghost-article-header h1 {
    max-width: 1050px;
    margin: 0;
    color: var(--ghost-text);
    font-family: var(--wdev-body, Inter, Lato, "Segoe UI", Arial, sans-serif);
    font-size: clamp(32px, 3vw, 46px);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-transform: none;
}

.ghost-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: #98938f;
    font-size: 14px;
    line-height: 1.6;
}

.ghost-feed {
    padding-block: 28px 88px;
}

.ghost-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 54px 40px;
}

.ghost-card {
    min-width: 0;
    animation: ghost-fade .34s ease-out both;
}

.ghost-card:nth-child(2n) { animation-delay: 35ms; }

.ghost-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.7;
    overflow: hidden;
    border-radius: 4px;
    background: #0d0c0b;
}

.ghost-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    filter: saturate(.96) contrast(1.01);
    transform: translateZ(0) scale(1);
    transform-origin: center center;
    transition: transform .58s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.ghost-card:hover .ghost-card-media img,
.ghost-card-media:focus-visible img {
    transform: translateZ(0) scale(1.045);
}

.ghost-media-empty::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    content: "WARSHIP";
    color: rgba(255, 255, 255, .055);
    font-family: var(--wdev-body, Inter, sans-serif);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .18em;
}

.ghost-card-copy {
    padding-top: 17px;
}

.ghost-card h2 {
    margin: 10px 0 0;
}

.ghost-tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 23px;
    padding: 3px 9px;
    border-radius: 2px;
    color: #c7d2d8;
    background: #202a30;
    font-size: 11px;
    font-weight: 720;
    line-height: 1;
}

.ghost-tag-update {
    color: #bdd5c5;
    background: #203027;
}

.ghost-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ghost-text) !important;
    font-family: var(--wdev-body, Inter, Lato, "Segoe UI", Arial, sans-serif);
    font-size: clamp(19px, 1.35vw, 23px);
    font-weight: 760;
    line-height: 1.22;
    letter-spacing: -.015em;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ghost-card h2 a:hover {
    color: #fff !important;
}

.ghost-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
    color: #929ca2;
    font-size: 12px;
    line-height: 1.4;
}

.ghost-meta span + span::before {
    margin-inline: 10px;
    content: "—";
    color: #5f5b58;
}

.ghost-card-copy > p {
    display: -webkit-box;
    max-width: 760px;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--ghost-body);
    font-size: 14px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ghost-read {
    display: inline-flex;
    align-items: center;
    margin-top: 13px;
    color: var(--ghost-link) !important;
    font-size: 12px;
    font-weight: 700;
}

.ghost-pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.ghost-pagination .ui.pagination.menu {
    border: 1px solid var(--ghost-line) !important;
    border-radius: 3px !important;
    background: var(--ghost-soft) !important;
    box-shadow: none !important;
}

.ghost-pagination .ui.pagination.menu .item {
    min-width: 39px;
    color: #aaa5a0 !important;
    border-radius: 0 !important;
}

.ghost-pagination .ui.pagination.menu .active.item {
    color: #fff !important;
    background: #302b27 !important;
}

.ghost-empty {
    padding: 90px 24px;
    border-top: 1px solid var(--ghost-line);
    border-bottom: 1px solid var(--ghost-line);
    text-align: center;
}

.ghost-empty .wb-material {
    color: #77736f;
    font-size: 36px;
}

.ghost-empty h2 {
    margin: 14px 0 7px;
    color: var(--ghost-text);
    font-family: var(--wdev-body, Inter, sans-serif);
    font-size: 23px;
    font-weight: 750;
}

.ghost-empty p { margin: 0; color: var(--ghost-muted); }

/* Article page */
.ghost-article {
    width: min(1500px, calc(100% - 80px));
    margin-inline: auto;
    padding-block: 50px 88px;
}

.ghost-article-header {
    max-width: 940px;
    animation: ghost-fade .32s ease-out both;
}

.ghost-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: #91877f !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.ghost-back:hover { color: #d5cec7 !important; }

.ghost-back .wb-material { font-size: 17px; }

.ghost-article-header .ghost-kicker {
    display: none;
}

.ghost-article-header > .ghost-tag {
    margin-top: 14px;
}

.ghost-article-lead {
    max-width: 800px;
    margin: 15px 0 0;
    color: #aaa49f;
    font-size: 16px;
    line-height: 1.65;
}

.ghost-byline {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
}

.ghost-byline img {
    width: 34px;
    height: 34px;
    border-radius: 3px;
    object-fit: cover;
}

.ghost-byline div { display: flex; flex-direction: column; }
.ghost-byline strong { color: #dedad6; font-size: 12px; font-weight: 700; }
.ghost-byline span { color: #85817d; font-size: 11px; }

.ghost-cover {
    width: 100%;
    max-height: 610px;
    aspect-ratio: 16 / 7;
    margin: 38px 0 0;
    overflow: hidden;
    border-radius: 4px;
    background: #0d0c0b;
    animation: ghost-fade .36s ease-out both;
}

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

.ghost-prose {
    max-width: none;
    margin: 44px 0 0;
    color: #c8c2bd;
    font-family: var(--wdev-body, Inter, Lato, "Segoe UI", Arial, sans-serif);
    font-size: 16px;
    line-height: 1.78;
}

.ghost-prose > :first-child { margin-top: 0; }
.ghost-prose p { margin: 0 0 1.25em; }

.ghost-prose h2,
.ghost-prose h3,
.ghost-prose h4 {
    margin: 1.8em 0 .65em;
    color: #efedea;
    font-family: var(--wdev-body, Inter, Lato, "Segoe UI", Arial, sans-serif);
    font-weight: 760;
    line-height: 1.22;
    letter-spacing: -.015em;
    text-transform: none;
}

.ghost-prose h2 {
    padding-bottom: 13px;
    border-bottom: 1px solid #3b322b;
    font-size: 28px;
}
.ghost-prose h3 { font-size: 23px; }
.ghost-prose h4 { font-size: 19px; }
.ghost-prose strong { color: #e7e3df; font-weight: 750; }
.ghost-prose a { color: #c9d2d6 !important; text-decoration: underline; text-underline-offset: 3px; }
.ghost-prose img { display: block; max-width: 100%; height: auto; margin: 1.7em auto; border-radius: 3px; }
.ghost-prose figure { max-width: 100%; margin: 1.8em 0; }
.ghost-prose figcaption { margin-top: 8px; color: #817b76; font-size: 12px; text-align: center; }
.ghost-prose ul, .ghost-prose ol { padding-left: 1.4em; }
.ghost-prose li { margin-bottom: .42em; }

.ghost-prose hr {
    width: 100%;
    height: 1px;
    margin: 36px 0;
    border: 0;
    background: #40372f;
    box-shadow: none;
}

.ghost-prose blockquote {
    margin: 1.8em 0;
    padding: 7px 0 7px 22px;
    border-left: 2px solid #676f73;
    color: #aaa49f;
}

.ghost-prose table {
    width: 100%;
    margin-block: 1.7em;
    border-collapse: collapse;
    font-size: 14px;
}

.ghost-prose thead th {
    color: #e2ddd8;
    background: rgba(255, 255, 255, .025);
    font-weight: 720;
}

.ghost-prose code {
    padding: 2px 5px;
    border-radius: 2px;
    background: #1d1916;
    color: #d7d2cd;
    font-family: Consolas, Monaco, monospace;
    font-size: .88em;
}

.ghost-prose pre {
    max-width: 100%;
    margin: 1.7em 0;
    padding: 18px 20px;
    overflow: auto;
    border: 1px solid #352e28;
    border-radius: 2px;
    background: #100e0c;
}

.ghost-prose pre code {
    padding: 0;
    background: transparent;
}

.ghost-prose iframe,
.ghost-prose video {
    display: block;
    max-width: 100%;
    margin: 1.8em auto;
}

.ghost-prose th,
.ghost-prose td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--ghost-line);
    text-align: left;
}

.ghost-related {
    width: min(1500px, calc(100% - 80px));
    padding-bottom: 88px;
}

.ghost-section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 24px;
    color: #98938f;
    font-family: var(--wdev-body, Inter, sans-serif);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
}

.ghost-section-heading::after {
    flex: 1;
    height: 1px;
    background: var(--ghost-line);
    content: "";
}

.ghost-related .ghost-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

@keyframes ghost-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .ghost-shell,
    .ghost-article,
    .ghost-related { width: min(100% - 46px, 1760px); }
    .ghost-grid,
    .ghost-related .ghost-grid { gap: 38px 24px; }
    .ghost-cover { aspect-ratio: 16 / 8; }
}

@media (max-width: 680px) {
    .ghost-shell,
    .ghost-article,
    .ghost-related { width: min(100% - 28px, 1760px); }
    .ghost-hero .ghost-shell { padding-block: 34px 25px; }
    .ghost-feed { padding-block: 28px 62px; }
    .ghost-grid,
    .ghost-related .ghost-grid { grid-template-columns: 1fr; gap: 40px; }
    .ghost-card-media { aspect-ratio: 16 / 9; }
    .ghost-article { padding-block: 38px 64px; }
    .ghost-back { margin-bottom: 28px; }
    .ghost-cover { margin-top: 30px; aspect-ratio: 16 / 9; }
    .ghost-prose { margin-top: 34px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .ghost-card,
    .ghost-article-header,
    .ghost-cover { animation: none !important; }
}
