/* ============================================================
   DRAFT STACKS — Ghost Theme Stylesheet
   Brand: Turf Neon #C6FF00 · Motion Blue #1E90FF · Dark Navy #0a0e27
   Typography: Inter (headlines) · JetBrains Mono (data) · Inter Regular (body)
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
    --ds-navy:        #0a0e27;
    --ds-navy-2:      #0f1535;
    --ds-navy-3:      #141b3f;
    --ds-navy-4:      #1a2248;
    --ds-neon:        #C6FF00;
    --ds-neon-dim:    rgba(198,255,0,0.12);
    --ds-blue:        #1E90FF;
    --ds-blue-dim:    rgba(30,144,255,0.12);
    --ds-white:       #ffffff;
    --ds-text:        #e2e8f0;
    --ds-text-muted:  #8896b0;
    --ds-text-faint:  #4a5568;
    --ds-border:      rgba(255,255,255,0.08);
    --ds-border-hover:rgba(255,255,255,0.16);

    --ds-font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --ds-font-mono:   'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    --ds-radius-sm:   4px;
    --ds-radius-md:   8px;
    --ds-radius-lg:   12px;

    --ds-content-width: 720px;
    --ds-wide-width:    1100px;
    --ds-gutter:        clamp(1rem, 5vw, 2.5rem);
}

/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--ds-navy);
    color: var(--ds-text);
    font-family: var(--ds-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ds-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ds-neon); }
::selection { background: var(--ds-neon); color: var(--ds-navy); }

/* ── Typography utilities ───────────────────────────────────── */
.ds-mono { font-family: var(--ds-font-mono); }
.ds-accent { color: var(--ds-neon); }

/* ── Buttons ────────────────────────────────────────────────── */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--ds-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--ds-radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.ds-btn--primary {
    background: var(--ds-neon);
    color: var(--ds-navy);
    border-color: var(--ds-neon);
}
.ds-btn--primary:hover {
    background: #d4ff1a;
    color: var(--ds-navy);
    transform: translateY(-1px);
}
.ds-btn--ghost {
    background: transparent;
    color: var(--ds-white);
    border-color: var(--ds-border-hover);
}
.ds-btn--ghost:hover {
    border-color: var(--ds-neon);
    color: var(--ds-neon);
}
.ds-btn--lg { padding: 14px 28px; font-size: 1rem; }
.ds-btn__loading { display: none; }
.ds-btn.loading .ds-btn__default { display: none; }
.ds-btn.loading .ds-btn__loading { display: inline; }

/* ── Inputs ─────────────────────────────────────────────────── */
.ds-input {
    background: var(--ds-navy-3);
    border: 1.5px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    color: var(--ds-white);
    font-family: var(--ds-font-sans);
    font-size: 1rem;
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.2s;
    outline: none;
}
.ds-input:focus { border-color: var(--ds-neon); }
.ds-input::placeholder { color: var(--ds-text-faint); }

/* ── Pills & tags ───────────────────────────────────────────── */
.ds-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-family: var(--ds-font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    background: var(--ds-neon-dim);
    color: var(--ds-neon);
    border: 1px solid rgba(198,255,0,0.2);
}
.ds-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    background: var(--ds-navy-3);
    color: var(--ds-text-muted);
    border: 1px solid var(--ds-border);
    transition: all 0.2s;
    text-decoration: none;
}
.ds-tag-pill:hover { border-color: var(--ds-neon); color: var(--ds-neon); }
.ds-tag-pill__count {
    font-family: var(--ds-font-mono);
    font-size: 0.7rem;
    color: var(--ds-text-faint);
}

/* ── Section layout ─────────────────────────────────────────── */
.ds-section-inner {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 5rem var(--ds-gutter);
}
.ds-section-header { margin-bottom: 2.5rem; }
.ds-section-title {
    font-family: var(--ds-font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    font-style: italic;
    color: var(--ds-white);
    letter-spacing: -0.02em;
}

/* ── Header / Navigation ────────────────────────────────────── */
.ds-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,14,39,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ds-border);
}
.ds-header__inner {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 0 var(--ds-gutter);
    height: 80px;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.ds-header__logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.ds-header__logo img { height: 72px; width: auto; }
.ds-header__wordmark {
    font-family: var(--ds-font-sans);
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    color: var(--ds-white);
    letter-spacing: -0.02em;
}
.ds-nav { margin-left: auto; }
.ds-nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}
.ds-nav__link {
    display: block;
    padding: 6px 12px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ds-text-muted);
    border-radius: var(--ds-radius-sm);
    text-decoration: none;
    transition: color 0.2s;
}
.ds-nav__link:hover, .ds-nav__item--active .ds-nav__link {
    color: var(--ds-white);
}
.ds-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ds-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.ds-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ds-text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile nav */
.ds-mobile-menu {
    display: none;
    padding: 1rem var(--ds-gutter) 1.5rem;
    border-top: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}
.ds-mobile-menu.open { display: block; }
.ds-mobile-menu__list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ds-mobile-menu__link {
    display: block;
    padding: 10px 0;
    color: var(--ds-text-muted);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
.ds-mobile-menu__cta { margin-top: 1rem; width: 100%; justify-content: center; }

/* ── Hero ───────────────────────────────────────────────────── */
.ds-hero {
    position: relative;
    padding: 7rem var(--ds-gutter) 6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--ds-border);
}
.ds-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--ds-wide-width);
    margin: 0 auto;
}
.ds-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.ds-hero__tagline-label {
    font-family: var(--ds-font-mono);
    font-size: 0.8rem;
    color: var(--ds-text-muted);
}
.ds-hero__headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ds-white);
    margin-bottom: 1.5rem;
}
.ds-hero__sub {
    max-width: 580px;
    font-size: 1.125rem;
    color: var(--ds-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Subtle grid background */
.ds-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(198,255,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198,255,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.ds-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, var(--ds-navy));
    pointer-events: none;
}

/* ── Featured section ───────────────────────────────────────── */
.ds-featured { background: var(--ds-navy); }
.ds-featured__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Topics bar ─────────────────────────────────────────────── */
.ds-topics {
    border-top: 1px solid var(--ds-border);
    border-bottom: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}
.ds-topics .ds-section-inner { padding: 1.5rem var(--ds-gutter); }
.ds-topics__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.ds-topics__label {
    font-family: var(--ds-font-mono);
    font-size: 0.75rem;
    color: var(--ds-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.ds-topics__list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Post grid ──────────────────────────────────────────────── */
.ds-latest { background: var(--ds-navy); }
.ds-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.ds-post-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Post card ──────────────────────────────────────────────── */
.ds-post-card {
    display: flex;
    flex-direction: column;
    background: var(--ds-navy-2);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}
.ds-post-card:hover {
    border-color: var(--ds-border-hover);
    transform: translateY(-2px);
}
.ds-post-card--featured { border-color: rgba(198,255,0,0.2); }
.ds-post-card__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.ds-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.ds-post-card:hover .ds-post-card__image { transform: scale(1.03); }
.ds-post-card__featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}
.ds-post-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
    gap: 0.75rem;
}
.ds-post-card__tag {
    font-family: var(--ds-font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ds-neon);
    text-decoration: none;
}
.ds-post-card__tag:hover { color: var(--ds-white); }
.ds-post-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ds-white);
    flex: 1;
}
.ds-post-card__title a { color: inherit; text-decoration: none; }
.ds-post-card__title a:hover { color: var(--ds-neon); }
.ds-post-card__excerpt {
    font-size: 0.875rem;
    color: var(--ds-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ds-post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ds-border);
    flex-wrap: wrap;
}
.ds-post-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ds-text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.2s;
}
.ds-post-card__author:hover { color: var(--ds-white); }
.ds-post-card__author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.ds-post-card__author-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ds-blue-dim);
    color: var(--ds-blue);
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}
.ds-post-card__meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ds-font-mono);
    font-size: 0.72rem;
    color: var(--ds-text-faint);
}
.ds-post-card__reading-time::before { content: '· '; }

/* ── Newsletter ─────────────────────────────────────────────── */
.ds-newsletter {
    border-top: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}
.ds-newsletter__inner {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 5rem var(--ds-gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ds-newsletter__eyebrow {
    font-size: 0.8rem;
    color: var(--ds-neon);
    margin-bottom: 1rem;
    display: block;
}
.ds-newsletter__headline {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ds-white);
    margin-bottom: 1rem;
}
.ds-newsletter__sub {
    color: var(--ds-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.ds-newsletter__input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 0.75rem;
}
.ds-newsletter__input-row .ds-input { flex: 1; }
.ds-newsletter__disclaimer {
    font-size: 0.75rem;
    color: var(--ds-text-faint);
}
.ds-newsletter__subscribed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ds-text-muted);
}
.ds-newsletter__success {
    font-size: 0.875rem;
    color: var(--ds-neon);
    margin-top: 0.75rem;
}

/* ── Post page ──────────────────────────────────────────────── */
.ds-post__header {
    padding: 4rem var(--ds-gutter) 3rem;
    border-bottom: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}
.ds-post__header-inner {
    max-width: var(--ds-content-width);
    margin: 0 auto;
}
.ds-post__meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}
.ds-post__reading-time {
    font-size: 0.75rem;
    color: var(--ds-text-faint);
}
.ds-pill--tag { }
.ds-post__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ds-white);
    margin-bottom: 1.25rem;
}
.ds-post__excerpt {
    font-size: 1.15rem;
    color: var(--ds-text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.ds-post__byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.875rem;
}
.ds-post__author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ds-text-muted);
    text-decoration: none;
    font-weight: 700;
}
.ds-post__author-link:hover { color: var(--ds-white); }
.ds-post__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.ds-post__author-initials-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ds-blue-dim);
    color: var(--ds-blue);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-post__byline-sep { color: var(--ds-text-faint); }
.ds-post__date { color: var(--ds-text-faint); font-size: 0.8rem; }

/* Feature image */
.ds-post__feature-image-wrap {
    max-width: var(--ds-content-width);
    margin: 0 auto;
    padding: 2.5rem var(--ds-gutter) 0;
}
.ds-post__feature-image-figure { border-radius: var(--ds-radius-lg); overflow: hidden; }
.ds-post__feature-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ds-post__feature-image-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ds-text-faint);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Post content area */
.ds-post__content-wrap {
    max-width: var(--ds-content-width);
    margin: 0 auto;
    padding: 3rem var(--ds-gutter) 4rem;
}

/* Ghost rich content */
.gh-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--ds-text);
}
.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    font-style: italic;
    color: var(--ds-white);
    letter-spacing: -0.02em;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
}
.gh-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ds-white);
    margin-top: 2em;
    margin-bottom: 0.5em;
}
.gh-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ds-neon);
    font-family: var(--ds-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}
.gh-content a { color: var(--ds-blue); border-bottom: 1px solid rgba(30,144,255,0.3); }
.gh-content a:hover { color: var(--ds-neon); border-color: var(--ds-neon); }
.gh-content strong { color: var(--ds-white); font-weight: 700; }
.gh-content em { font-style: italic; color: var(--ds-text); }
.gh-content blockquote {
    border-left: 3px solid var(--ds-neon);
    padding: 1rem 1.5rem;
    background: var(--ds-neon-dim);
    border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) 0;
    font-size: 1.1rem;
    color: var(--ds-white);
    font-style: italic;
}
.gh-content code {
    font-family: var(--ds-font-mono);
    font-size: 0.875em;
    background: var(--ds-navy-3);
    color: var(--ds-neon);
    padding: 2px 6px;
    border-radius: var(--ds-radius-sm);
    border: 1px solid var(--ds-border);
}
.gh-content pre {
    background: var(--ds-navy-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
}
.gh-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--ds-text);
}
.gh-content ul, .gh-content ol {
    padding-left: 1.5rem;
}
.gh-content li { margin-bottom: 0.4em; }
.gh-content ul li::marker { color: var(--ds-neon); }
.gh-content ol li::marker { color: var(--ds-neon); font-family: var(--ds-font-mono); }
.gh-content hr {
    border: none;
    border-top: 1px solid var(--ds-border);
    margin: 3em 0;
}
.gh-content figure { margin: 2em 0; }
.gh-content figure img { border-radius: var(--ds-radius-md); width: 100%; }
.gh-content figcaption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ds-text-faint);
    margin-top: 0.5rem;
    font-style: italic;
}
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    font-family: var(--ds-font-mono);
}
.gh-content th {
    background: var(--ds-navy-3);
    color: var(--ds-neon);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid rgba(198,255,0,0.3);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gh-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ds-border);
    color: var(--ds-text);
}
.gh-content tr:hover td { background: var(--ds-navy-3); }

/* Post footer elements */
.ds-post__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--ds-border);
}
.ds-post__tags-label {
    font-size: 0.7rem;
    color: var(--ds-text-faint);
    margin-right: 4px;
}
.ds-post__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--ds-border);
}
.ds-post__share-label {
    font-size: 0.7rem;
    color: var(--ds-text-faint);
}
.ds-post__share-links { display: flex; gap: 8px; }
.ds-share-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-text-muted);
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.ds-share-btn:hover { border-color: var(--ds-neon); color: var(--ds-neon); }

/* ── Author box ─────────────────────────────────────────────── */
.ds-author-box {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    background: var(--ds-navy-2);
}
.ds-author-box__inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.ds-author-box__avatar-link { flex-shrink: 0; }
.ds-author-box__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.ds-author-box__label {
    font-family: var(--ds-font-mono);
    font-size: 0.7rem;
    color: var(--ds-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.ds-author-box__name {
    font-size: 1rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.ds-author-box__name a { color: var(--ds-white); text-decoration: none; }
.ds-author-box__name a:hover { color: var(--ds-neon); }
.ds-author-box__bio { font-size: 0.875rem; color: var(--ds-text-muted); line-height: 1.6; }
.ds-author-box__links { display: flex; gap: 12px; margin-top: 0.75rem; }
.ds-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ds-blue);
    text-decoration: none;
}
.ds-link:hover { color: var(--ds-neon); }
.ds-author-box__link { font-size: 0.8rem; font-weight: 700; color: var(--ds-blue); }

/* ── Related posts ──────────────────────────────────────────── */
.ds-related {
    border-top: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}

/* ── Archive ────────────────────────────────────────────────── */
.ds-archive__header {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 4rem var(--ds-gutter) 0;
}
.ds-archive__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    font-style: italic;
    color: var(--ds-white);
    letter-spacing: -0.03em;
    margin: 1rem 0 0.75rem;
}
.ds-archive__desc { font-size: 1rem; color: var(--ds-text-muted); max-width: 600px; }
.ds-archive__count { font-size: 0.8rem; color: var(--ds-text-faint); margin-top: 0.5rem; }
.ds-archive__cover {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}
.ds-archive__cover img { width: 100%; height: 100%; object-fit: cover; }
.ds-archive__author-hero {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.ds-archive__author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ds-archive__author-links { display: flex; gap: 12px; margin-top: 0.75rem; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 3rem;
    font-family: var(--ds-font-mono);
    font-size: 0.8rem;
    color: var(--ds-text-faint);
}
.pagination .older-posts, .pagination .newer-posts {
    padding: 8px 16px;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-sm);
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination .older-posts:hover, .pagination .newer-posts:hover {
    border-color: var(--ds-neon);
    color: var(--ds-neon);
}

/* ── Footer ─────────────────────────────────────────────────── */
.ds-footer {
    border-top: 1px solid var(--ds-border);
    background: var(--ds-navy-2);
}
.ds-footer__inner {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 3.5rem var(--ds-gutter) 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
}
.ds-footer__logo img { height: 28px; width: auto; }
.ds-footer__tagline { font-size: 0.825rem; color: var(--ds-text-faint); margin-top: 0.75rem; max-width: 240px; line-height: 1.6; }
.ds-footer__nav ul, .ds-footer__secondary-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ds-footer__nav a, .ds-footer__secondary-nav a {
    font-size: 0.875rem;
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.ds-footer__nav a:hover, .ds-footer__secondary-nav a:hover { color: var(--ds-white); }
.ds-footer__bottom {
    border-top: 1px solid var(--ds-border);
    background: var(--ds-navy);
}
.ds-footer__bottom-inner {
    max-width: var(--ds-wide-width);
    margin: 0 auto;
    padding: 1.25rem var(--ds-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.ds-footer__legal { font-size: 0.75rem; color: var(--ds-text-faint); }
.ds-footer__powered { font-size: 0.75rem; color: var(--ds-text-faint); }
.ds-footer__powered a { color: var(--ds-text-faint); }
.ds-footer__powered a:hover { color: var(--ds-neon); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ds-featured__grid { grid-template-columns: 1fr; }
    .ds-post-grid--3 { grid-template-columns: 1fr 1fr; }
    .ds-newsletter__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .ds-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .ds-nav, .ds-header__actions .ds-btn--primary { display: none; }
    .ds-nav-toggle { display: flex; }
    .ds-post-grid { grid-template-columns: 1fr; }
    .ds-post-grid--3 { grid-template-columns: 1fr; }
    .ds-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
    .ds-footer__bottom-inner { flex-direction: column; text-align: center; }
    .ds-newsletter__input-row { flex-direction: column; }
    .ds-author-box__inner { flex-direction: column; }
    .ds-archive__author-hero { flex-direction: column; }
}

/* ── Ghost card styles passthrough ─────────────────────────── */
/* ── Ghost card & feature classes (required by GScan) ────────── */
.kg-width-wide {
    grid-column: wide-start / wide-end;
    width: 85vw;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.kg-width-full {
    grid-column: full-start / full-end;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.kg-card { margin: 2rem 0; }
.kg-image-card img { width: 100%; border-radius: var(--ds-radius-md); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ds-radius-sm); }
.kg-bookmark-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
    background: var(--ds-navy-3);
}
.kg-bookmark-container { display: flex; text-decoration: none; }
.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 700; color: var(--ds-white); font-size: 0.9rem; margin-bottom: 4px; }
.kg-bookmark-description { font-size: 0.8rem; color: var(--ds-text-muted); line-height: 1.5; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.75rem; color: var(--ds-text-faint); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--ds-radius-md);
    background: var(--ds-navy-3);
    border-left: 3px solid var(--ds-blue);
    display: flex;
    gap: 1rem;
}
.kg-callout-emoji { font-size: 1.25rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.95rem; color: var(--ds-text); line-height: 1.7; }
.kg-toggle-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
}
.kg-toggle-heading { padding: 1rem 1.25rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.kg-toggle-heading-text { font-weight: 700; color: var(--ds-white); }
.kg-toggle-content { padding: 0 1.25rem 1rem; font-size: 0.9rem; color: var(--ds-text-muted); }
.kg-video-card video { width: 100%; border-radius: var(--ds-radius-md); }
.kg-audio-card {
    background: var(--ds-navy-3);
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    padding: 1rem 1.25rem;
}
.kg-product-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    padding: 1.25rem;
    background: var(--ds-navy-3);
}
.kg-header-card {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--ds-navy-2);
    border-radius: var(--ds-radius-lg);
}
.kg-header-card h2 { font-size: 2rem; font-weight: 800; font-style: italic; color: var(--ds-white); }
.kg-button-card { text-align: center; margin: 2rem 0; }
.kg-button-card a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--ds-neon);
    color: var(--ds-navy);
    font-weight: 700;
    border-radius: var(--ds-radius-md);
    text-decoration: none;
}
.kg-file-card {
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md);
    padding: 1rem 1.25rem;
    background: var(--ds-navy-3);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.kg-file-card a { color: var(--ds-white); font-weight: 700; text-decoration: none; }
.kg-nft-card, .kg-embed-card { border-radius: var(--ds-radius-md); overflow: hidden; }
.kg-embed-card iframe { width: 100%; border: none; }
.kg-signup-card {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--ds-navy-2);
    border-radius: var(--ds-radius-lg);
    border: 1px solid var(--ds-border);
}
.kg-paywall { text-align: center; padding: 2rem; border-top: 1px solid var(--ds-border); }
