/* =============================================================
 * RAXINT — Ghost Theme Stylesheet (screen.css)
 * Editorial system: Fraunces (display) + Plus Jakarta Sans (body)
 *                   + IBM Plex Mono (labels)
 * Palette: cream base + emerald + gold + ocean accents
 * ============================================================= */

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; }
a { color: inherit; text-decoration: none; }

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
    --sans:   'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif:  'Fraunces', Georgia, 'Times New Roman', serif;
    --mono:   'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Monaco, monospace;

    /* Ink scale */
    --ink:    #0A0E14;
    --ink-2:  #1A1F28;
    --ink-3:  #3A4150;
    --ink-4:  #6A7180;
    --ink-5:  #9CA3B0;

    /* Background scale */
    --bg:     #FAFAF7;
    --bg-2:   #F4F2EC;
    --bg-3:   #EBE8DF;

    /* Borders */
    --bd:     #DAD7CE;
    --bd-2:   #E8E5DD;

    /* Brand accents */
    --emerald:    #0F7355;
    --emerald-d:  #0A4A38;
    --emerald-l:  #16A37A;
    --emerald-bg: #E6F2EE;

    --gold:       #B8860B;
    --gold-d:     #8B6508;
    --gold-l:     #D4A82C;
    --gold-bg:    #FBF6E9;

    --ocean:      #1C5680;
    --ocean-d:    #123A5A;
    --ocean-bg:   #E8F0F6;

    --plum:       #5B3A87;
    --plum-bg:    #F0EAF6;

    --crimson:    #A02540;

    /* Typography sizes (mobile-first) */
    --fs-xs:  0.75rem;   /* 12 */
    --fs-sm:  0.875rem;  /* 14 */
    --fs-base: 1rem;     /* 16 */
    --fs-md:  1.125rem;  /* 18 */
    --fs-lg:  1.25rem;   /* 20 */
    --fs-xl:  1.5rem;    /* 24 */
    --fs-2xl: 2rem;      /* 32 */
    --fs-3xl: 2.5rem;    /* 40 */
    --fs-4xl: 3rem;      /* 48 */
    --fs-5xl: 4rem;      /* 64 */

    /* Layout */
    --container:   1180px;
    --container-narrow: 760px;
    --gutter:      24px;
    --radius:      10px;
    --radius-sm:   6px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(10,14,20,.05), 0 1px 2px rgba(10,14,20,.03);
    --shadow-md: 0 4px 14px rgba(10,14,20,.08), 0 2px 6px rgba(10,14,20,.04);
    --shadow-lg: 0 12px 40px rgba(10,14,20,.10), 0 4px 12px rgba(10,14,20,.05);

    /* Transitions */
    --t-fast: 120ms ease;
    --t:      200ms ease;
}

/* ── BASE ───────────────────────────────────────────────────── */
html {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { background: rgba(15,115,85,.18); color: var(--ink); }

/* ── A11Y ──────────────────────────────────────────────────── */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--ink); color: #fff;
    padding: 12px 18px; z-index: 9999;
    font-family: var(--mono); font-size: var(--fs-sm);
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible {
    outline: 2px solid var(--emerald);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}
.container--narrow {
    max-width: var(--container-narrow);
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--emerald); transition: color var(--t-fast); }
a:hover { color: var(--emerald-d); }

/* ── SITE HEADER ────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,250,247,.94);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--bd-2);
}
.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--emerald);
    line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--ink);
}
.brand-sub {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-top: 2px;
}

.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 28px; list-style: none; justify-content: center; }
.site-nav a {
    font-family: var(--sans);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--ink-3);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border var(--t), color var(--t);
}
.site-nav a:hover { color: var(--emerald); border-bottom-color: var(--emerald); }

.site-header__cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.site-header__toggle {
    display: none;
    width: 36px; height: 36px;
    flex-direction: column; justify-content: center; gap: 5px;
    padding: 0;
}
.site-header__toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--ink-2);
    border-radius: 1px;
    transition: var(--t);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-family: var(--sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--t);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
.btn--primary {
    background: linear-gradient(135deg, var(--emerald-d), var(--emerald));
    color: #fff;
    box-shadow: 0 1px 3px rgba(10,74,56,.25);
}
.btn--primary:hover {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-l));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,74,56,.3);
}
.btn--ghost {
    background: transparent;
    color: var(--ink-2);
    border-color: var(--bd);
}
.btn--ghost:hover {
    background: var(--bg-2);
    color: var(--ink);
    border-color: var(--ink-5);
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-d), var(--gold));
    color: #fff;
}
.btn--gold:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-l));
    color: #fff;
}
.btn--lg { padding: 14px 26px; font-size: var(--fs-base); }
.btn--sm { padding: 7px 13px; font-size: var(--fs-xs); }

/* ── PILL ───────────────────────────────────────────────────── */
.pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
}
.pill--dark   { background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); color: #fff; }
.pill--emerald { background: var(--emerald-bg); color: var(--emerald); border: 1px solid rgba(15,115,85,.3); }
.pill--gold   { background: var(--gold-bg); color: var(--gold); border: 1px solid rgba(184,134,11,.3); }
.pill--ocean  { background: var(--ocean-bg); color: var(--ocean); border: 1px solid rgba(28,86,128,.3); }

/* ── HOME HERO ─────────────────────────────────────────────── */
.home-hero {
    padding: 80px 0 64px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 8% 15%, rgba(15,115,85,.07), transparent 45%),
        radial-gradient(ellipse at 92% 12%, rgba(184,134,11,.05), transparent 40%),
        var(--bg);
}
.home-hero__pill-row {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 28px;
}
.home-hero__title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5.5vw, var(--fs-5xl));
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 20px;
    font-weight: 600;
}
.home-hero__title em {
    font-style: italic;
    color: var(--emerald);
}
.home-hero__sub {
    font-size: clamp(var(--fs-md), 2vw, var(--fs-lg));
    color: var(--ink-4);
    max-width: 620px;
    line-height: 1.5;
    margin-bottom: 36px;
}
.home-hero__actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 56px;
}
.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border: 1px solid var(--bd-2);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255,255,255,.7);
    max-width: 720px;
}
.stat-cell {
    padding: 18px 22px;
    border-right: 1px solid var(--bd-2);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: var(--fs-3xl);
    font-weight: 600;
    line-height: 1;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.stat-num--emerald { color: var(--emerald); }
.stat-num--gold    { color: var(--gold); }
.stat-num--ocean   { color: var(--ocean); }
.stat-lbl {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-5);
    font-weight: 600;
}

/* ── HOME SECTIONS ─────────────────────────────────────────── */
.home-section {
    padding: 64px 0;
    border-top: 1px solid var(--bd-2);
}
.home-section--alt {
    background: var(--bg-2);
    border-top: 1px solid var(--bd-2);
    border-bottom: 1px solid var(--bd-2);
}
.section-header {
    margin-bottom: 36px;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
    color: var(--ink);
    letter-spacing: -0.015em;
    line-height: 1.1;
    font-weight: 600;
}
.section-sub {
    font-size: var(--fs-md);
    color: var(--ink-4);
    line-height: 1.55;
    margin-top: 8px;
    max-width: 680px;
}
.section-cta-row { margin-top: 28px; }
.link-arrow {
    font-family: var(--mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--emerald);
    letter-spacing: 0.5px;
}
.link-arrow:hover { color: var(--emerald-d); }

/* ── POST GRID ─────────────────────────────────────────────── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.post-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ── POST CARD ─────────────────────────────────────────────── */
.post-card {
    background: #fff;
    border: 1px solid var(--bd-2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--t);
    display: flex; flex-direction: column;
}
.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--bd);
}
.post-card__media {
    aspect-ratio: 16 / 9;
    background: var(--bg-3);
    overflow: hidden;
    display: block;
}
.post-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card__tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 8px;
}
.post-card__title {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--emerald); }
.post-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--ink-4);
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}
.post-card__meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-5);
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
    letter-spacing: 0.3px;
}
.post-card__lock {
    color: var(--gold);
    font-family: var(--sans);
    font-weight: 600;
}

/* ── PRODUCT GRID ──────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.product-card {
    display: block;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: #fff;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.product-card--emerald { border-color: var(--emerald-bg); }
.product-card--emerald::before { background: linear-gradient(90deg, var(--emerald-d), var(--emerald), var(--emerald-l)); }
.product-card--gold    { border-color: var(--gold-bg); }
.product-card--gold::before    { background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l)); }
.product-card--ocean   { border-color: var(--ocean-bg); }
.product-card--ocean::before   { background: linear-gradient(90deg, var(--ocean-d), var(--ocean), #2E7DB8); }

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.product-card__tier {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.product-card--emerald .product-card__tier { background: var(--emerald-bg); color: var(--emerald); }
.product-card--gold .product-card__tier    { background: var(--gold-bg); color: var(--gold); }
.product-card--ocean .product-card__tier   { background: var(--ocean-bg); color: var(--ocean); }

.product-card__title {
    font-family: var(--serif);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.2;
}
.product-card__desc {
    font-size: var(--fs-sm);
    color: var(--ink-4);
    line-height: 1.6;
    margin-bottom: 18px;
}
.product-card__cta {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.product-card--emerald .product-card__cta { color: var(--emerald); }
.product-card--gold .product-card__cta    { color: var(--gold); }
.product-card--ocean .product-card__cta   { color: var(--ocean); }

/* ── GLOSSARY GRID ─────────────────────────────────────────── */
.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.glossary-item {
    padding: 16px 18px;
    border: 1px solid var(--bd-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink-3);
    transition: all var(--t);
    display: flex; flex-direction: column; gap: 6px;
}
.glossary-item:hover {
    border-color: var(--emerald);
    background: var(--emerald-bg);
    color: var(--emerald-d);
}
.glossary-item__term {
    font-family: var(--serif);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--ink);
}
.glossary-item:hover .glossary-item__term { color: var(--emerald-d); }
.glossary-item__excerpt {
    font-size: var(--fs-xs);
    color: var(--ink-4);
    line-height: 1.5;
}

/* ── POST ARTICLE ──────────────────────────────────────────── */
.post-article { padding-bottom: 64px; }
.post-header {
    padding: 64px 0 28px;
    text-align: center;
}
.post-header__tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
    display: inline-block;
}
.post-header__title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--ink);
}
.post-header__lead {
    font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
    color: var(--ink-4);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto 24px;
}
.post-header__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-5);
    letter-spacing: 0.3px;
}
.post-header__author { display: inline-flex; align-items: center; gap: 8px; }
.post-header__avatar {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
}
.post-header__badge {
    color: var(--gold);
    font-weight: 600;
}

.post-feature {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 var(--gutter);
}
.post-feature img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.post-feature figcaption {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-5);
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

/* ── POST CONTENT (markdown / Koenig blocks) ───────────────── */
.post-content {
    font-size: var(--fs-md);
    line-height: 1.75;
    color: var(--ink-2);
}
.post-content > * + * { margin-top: 1.2em; }
.post-content h2 {
    font-family: var(--serif);
    font-size: var(--fs-2xl);
    font-weight: 600;
    margin: 2em 0 0.6em;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
.post-content h3 {
    font-family: var(--serif);
    font-size: var(--fs-xl);
    font-weight: 600;
    margin: 1.8em 0 0.5em;
    line-height: 1.25;
}
.post-content h4 {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin: 1.5em 0 0.4em;
}
.post-content p { font-size: var(--fs-md); }
.post-content a {
    color: var(--emerald);
    text-decoration: underline;
    text-decoration-color: rgba(15,115,85,.4);
    text-underline-offset: 3px;
    transition: var(--t);
}
.post-content a:hover {
    color: var(--emerald-d);
    text-decoration-color: var(--emerald);
}
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content em { font-style: italic; }
.post-content blockquote {
    border-left: 3px solid var(--emerald);
    padding: 6px 20px;
    margin: 1.6em 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: var(--fs-lg);
    color: var(--ink-3);
    background: var(--emerald-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.post-content ul, .post-content ol { padding-left: 1.6em; }
.post-content li { margin-bottom: 0.4em; }
.post-content code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--bg-3);
    padding: 2px 7px;
    border-radius: 4px;
    color: #B05C2E;
}
.post-content pre {
    background: var(--ink-2);
    color: #E8E5DD;
    padding: 18px 22px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: var(--fs-sm);
    line-height: 1.6;
}
.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}
.post-content img {
    border-radius: var(--radius-sm);
    margin: 1.4em auto;
}
.post-content hr {
    border: 0;
    height: 1px;
    background: var(--bd);
    margin: 2.5em 0;
}
.post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    margin: 1.4em 0;
}
.post-content th, .post-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--bd-2);
    text-align: left;
}
.post-content th {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-3);
    background: var(--bg-2);
}

.kg-bookmark-card,
.kg-callout-card,
.kg-toggle-card { margin: 1.6em 0; }

/* ── KOENIG EDITOR REQUIRED WIDTHS ─────────────────────────── */
/* Wide & full image/embed/gallery — required for Ghost theme validation */
.kg-width-wide {
    position: relative;
    width: 85vw;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    margin: 2em auto;
}
.kg-width-full {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    margin: 2em auto;
}
.kg-width-full img,
.kg-width-wide img { width: 100%; height: auto; display: block; }
.kg-image-card figcaption,
.kg-embed-card figcaption,
.kg-gallery-card figcaption,
.kg-video-card figcaption {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-3);
    text-align: center;
}
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}
.kg-gallery-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.kg-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── POST TAGS ─────────────────────────────────────────────── */
.post-tags { padding: 28px 0; }
.tag-chip {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 11px;
    border-radius: 3px;
    background: var(--bg-2);
    color: var(--ink-3);
    margin: 4px 4px 0 0;
    transition: var(--t);
}
.tag-chip:hover { background: var(--emerald-bg); color: var(--emerald); }

/* ── CTA FUNNEL ────────────────────────────────────────────── */
.cta-funnel {
    margin: 56px 0 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--emerald-d), var(--emerald));
    color: #fff;
    overflow: hidden;
    position: relative;
}
.cta-funnel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.08), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(212,168,44,.12), transparent 50%);
    pointer-events: none;
}
.cta-funnel__inner {
    padding: 36px 32px;
    position: relative;
    z-index: 1;
}
.cta-funnel__eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212,168,44,.95);
    margin-bottom: 12px;
}
.cta-funnel__title {
    font-family: var(--serif);
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.cta-funnel__sub {
    font-size: var(--fs-base);
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 600px;
}
.cta-funnel__actions {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.cta-funnel .btn--primary {
    background: var(--gold);
    color: #fff;
    box-shadow: none;
}
.cta-funnel .btn--primary:hover {
    background: var(--gold-l);
    box-shadow: 0 4px 12px rgba(184,134,11,.4);
}
.cta-funnel .btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.3);
}
.cta-funnel .btn--ghost:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.6);
}

/* ── AUTHOR BIO ────────────────────────────────────────────── */
.post-author-bio { padding: 32px 0; border-top: 1px solid var(--bd-2); margin-top: 32px; }
.post-author-bio .container { display: flex; gap: 18px; align-items: flex-start; }
.post-author-bio__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.post-author-bio__name {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 6px;
}
.post-author-bio__text {
    font-size: var(--fs-sm);
    color: var(--ink-4);
    line-height: 1.6;
}

/* ── POST RELATED ──────────────────────────────────────────── */
.post-related {
    padding: 56px 0;
    border-top: 1px solid var(--bd-2);
    background: var(--bg-2);
}
.post-related .section-title { margin-bottom: 28px; }

/* ── PAGE ──────────────────────────────────────────────────── */
.page-header {
    padding: 64px 0 32px;
    text-align: center;
}
.page-header__title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-header__lead {
    font-size: var(--fs-lg);
    color: var(--ink-4);
    line-height: 1.5;
    max-width: 640px;
    margin: 0 auto;
}
.page-feature { max-width: 1100px; margin: 0 auto 32px; padding: 0 var(--gutter); }
.page-feature img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-md); }
.page-body { padding-bottom: 64px; }

/* ── ARCHIVE (Tag/Author) ──────────────────────────────────── */
.archive-header {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--bd-2);
    background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.archive-header--author { text-align: center; }
.archive-header__avatar {
    width: 92px; height: 92px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
}
.archive-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 10px;
}
.archive-title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}
.archive-desc {
    font-size: var(--fs-md);
    color: var(--ink-4);
    max-width: 700px;
    margin-bottom: 14px;
    line-height: 1.55;
}
.archive-meta {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-5);
    letter-spacing: 0.4px;
    display: flex; gap: 12px; flex-wrap: wrap;
}
.archive-list { padding: 48px 0 64px; }
.archive-empty { color: var(--ink-4); text-align: center; padding: 40px 0; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    font-family: var(--mono);
    font-size: var(--fs-sm);
}
.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--bd);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
}
.pagination a:hover { background: var(--emerald-bg); border-color: var(--emerald); color: var(--emerald-d); }
.pagination .nav-current { color: var(--ink-4); }

/* ── ERROR ─────────────────────────────────────────────────── */
.error-page {
    min-height: 65vh;
    display: flex; align-items: center;
    padding: 80px 0;
}
.error-page__inner {
    text-align: center;
}
.error-code {
    font-family: var(--serif);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 600;
    color: var(--emerald);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}
.error-title {
    font-family: var(--serif);
    font-size: var(--fs-2xl);
    font-weight: 600;
    margin-bottom: 12px;
}
.error-desc {
    color: var(--ink-4);
    font-size: var(--fs-md);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
}
.error-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── TRAINING (CUSTOM TEMPLATE) ────────────────────────────── */
.training-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,31,53,.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.training-bar__brand {
    display: flex; align-items: center; gap: 8px;
    color: #E8C97A;
}
.training-bar__brand .brand-mark { color: #E8C97A; }
.training-bar__brand .brand-name {
    color: #F5E8C0;
    font-size: 16px;
    letter-spacing: 1px;
}
.training-bar__nav {
    display: flex; align-items: center; gap: 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: rgba(240,234,224,.7);
}
.training-bar__nav a { color: rgba(240,234,224,.7); transition: var(--t); }
.training-bar__nav a:hover { color: #E8C97A; }
.training-bar__nav .btn { color: #fff; }
.training-bar__account {
    color: rgba(240,234,224,.7);
    border-left: 1px solid rgba(255,255,255,.1);
    padding-left: 18px;
}

.training-article {
    background: #05101E;
    color: #F0EAE0;
}
.training-funnel {
    background: #05101E;
    color: #F0EAE0;
    padding: 56px 0 64px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.training-funnel .cta-funnel__eyebrow {
    color: #E8C97A;
}
.training-funnel .cta-funnel__title {
    font-family: 'Cormorant Garamond', var(--serif);
    color: #F5E8C0;
    font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
}
.training-funnel .cta-funnel__sub {
    color: rgba(240,234,224,.78);
    margin-bottom: 26px;
}
.training-funnel .btn--primary {
    background: linear-gradient(135deg, #8B6508, #C9A84C);
    color: #fff;
    border-color: rgba(232,201,122,.3);
}
.training-funnel .btn--primary:hover {
    background: linear-gradient(135deg, #C9A84C, #E8C97A);
    box-shadow: 0 4px 18px rgba(201,168,76,.4);
}
.training-funnel .btn--ghost {
    background: transparent;
    color: #F0EAE0;
    border-color: rgba(255,255,255,.2);
}
.training-funnel .btn--ghost:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.5);
}

.training-footer {
    background: #03080F;
    color: rgba(240,234,224,.5);
    padding: 18px 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* Training Gate (paywall) */
.training-gate {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(15,115,85,.08), transparent 50%),
        var(--bg);
}
.training-gate .container { text-align: center; }
.gate-lock {
    display: inline-block;
    font-size: 48px;
    margin-bottom: 18px;
    filter: grayscale(0.2);
}
.gate-title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}
.gate-desc {
    font-size: var(--fs-md);
    color: var(--ink-4);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto; margin-right: auto;
    line-height: 1.55;
}
.gate-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 48px;
}
.gate-info {
    max-width: 520px;
    margin: 0 auto;
    padding: 22px 24px;
    background: var(--bg-2);
    border-radius: var(--radius);
    text-align: left;
}
.gate-info__title {
    font-family: var(--serif);
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 8px;
}
.gate-info p { font-size: var(--fs-sm); color: var(--ink-4); line-height: 1.55; }

/* ── WELCOME PAGE ──────────────────────────────────────────── */
.welcome-hero {
    padding: 72px 0 36px;
    background:
        radial-gradient(ellipse at 10% 30%, rgba(15,115,85,.07), transparent 45%),
        var(--bg);
}
.welcome-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 14px;
}
.welcome-title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.welcome-lead {
    font-size: var(--fs-lg);
    color: var(--ink-4);
    line-height: 1.5;
    max-width: 640px;
}
.welcome-body { padding: 24px 0 56px; }
.welcome-section { padding: 48px 0; border-top: 1px solid var(--bd-2); }
.welcome-section--alt { background: var(--bg-2); }
.welcome-empty {
    background: var(--bg-2);
    border: 1px dashed var(--bd);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--ink-4);
    font-size: var(--fs-sm);
}

.welcome-materi-grid {
    display: grid; gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .welcome-materi-grid { grid-template-columns: 1fr 1fr; }
}
.welcome-materi-card {
    display: flex; gap: 18px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--bd-2);
    border-radius: var(--radius);
    transition: all var(--t);
    color: var(--ink-2);
}
.welcome-materi-card:hover {
    border-color: var(--emerald);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.welcome-materi-card__num {
    font-family: var(--serif);
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--emerald);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
}
.welcome-materi-card__title {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
    line-height: 1.25;
}
.welcome-materi-card__excerpt {
    font-size: var(--fs-sm);
    color: var(--ink-4);
    line-height: 1.55;
    margin-bottom: 10px;
}
.welcome-materi-card__cta {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--emerald);
}

/* ── TRAINING INDEX ────────────────────────────────────────── */
.training-index-header { padding: 64px 0 32px; }
.training-index-list {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 32px;
}
.training-index-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--bd-2);
    border-radius: var(--radius);
    color: var(--ink-2);
    transition: all var(--t);
}
.training-index-item:hover {
    border-color: var(--emerald);
    background: var(--emerald-bg);
    transform: translateX(3px);
}
.training-index-item__tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 6px;
}
.training-index-item__title {
    font-family: var(--serif);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
    line-height: 1.25;
}
.training-index-item__excerpt {
    font-size: var(--fs-sm);
    color: var(--ink-4);
    line-height: 1.5;
    margin-bottom: 8px;
}
.training-index-item__meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-5);
    display: flex; gap: 8px; flex-wrap: wrap;
    letter-spacing: 0.3px;
}
.training-index-item__arrow {
    font-family: var(--mono);
    font-size: 24px;
    color: var(--emerald);
    flex-shrink: 0;
    transition: var(--t);
}
.training-index-item:hover .training-index-item__arrow { transform: translateX(4px); }

/* ── LANDING PRODUK ────────────────────────────────────────── */
.landing-hero {
    padding: 80px 0 40px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(15,115,85,.06), transparent 50%),
        var(--bg);
}
.landing-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
}
.landing-title {
    font-family: var(--serif);
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-5xl));
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
}
.landing-lead {
    font-size: var(--fs-lg);
    color: var(--ink-4);
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto 32px;
}
.landing-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.landing-feature {
    max-width: 1100px;
    margin: 0 auto 48px;
    padding: 0 var(--gutter);
}
.landing-feature img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.landing-body { padding: 24px 0 64px; }
.landing-final-cta {
    text-align: center;
    padding: 72px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--bd-2);
}
.landing-final-cta__title {
    font-family: var(--serif);
    font-size: var(--fs-3xl);
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}
.landing-final-cta__sub {
    font-size: var(--fs-md);
    color: var(--ink-4);
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.55;
}

/* ── SITE FOOTER ───────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.7);
    padding: 56px 0 0;
    margin-top: 80px;
}
.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter) 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}
.site-footer__col--brand { padding-right: 20px; }
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.footer-brand .brand-mark { color: var(--gold-l); font-size: 22px; }
.footer-brand .brand-name { color: #fff; font-size: 20px; font-family: var(--serif); }
.footer-tagline {
    color: rgba(255,255,255,.55);
    font-size: var(--fs-sm);
    line-height: 1.55;
    margin-bottom: 14px;
}
.footer-legal {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,.4);
}
.footer-h4 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-l);
    margin-bottom: 14px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.footer-list a {
    color: rgba(255,255,255,.65);
    font-size: var(--fs-sm);
    transition: var(--t-fast);
}
.footer-list a:hover { color: #fff; }

/* Secondary nav from Ghost (if used) */
.site-footer ul { list-style: none; }
.site-footer__col ul li { margin-bottom: 8px; font-size: var(--fs-sm); }

.site-footer__bottom {
    padding: 18px var(--gutter);
    border-top: 1px solid rgba(255,255,255,.08);
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.5px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 980px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
    .site-footer__col--brand { grid-column: 1 / -1; padding-right: 0; }
}

@media (max-width: 760px) {
    .site-header__inner { gap: 12px; }
    .site-nav { display: none; }
    .site-header__toggle { display: flex; }
    .site-header.is-open .site-nav {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--bd-2);
        padding: 16px var(--gutter);
        box-shadow: var(--shadow-md);
    }
    .site-header.is-open .site-nav ul {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .site-header.is-open .site-nav a {
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid var(--bd-2);
    }
    .site-header__cta { gap: 6px; }
    .site-header__cta .btn { padding: 8px 12px; font-size: 12px; }
    .site-header__cta .btn--ghost { display: none; }

    .home-hero { padding: 56px 0 40px; }
    .home-hero__stats { grid-template-columns: 1fr 1fr; }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell { border-bottom: 1px solid var(--bd-2); }
    .stat-cell:nth-last-child(-n+2) { border-bottom: none; }

    .home-section { padding: 48px 0; }

    .post-header { padding: 40px 0 20px; }
    .training-bar { padding: 10px 16px; }
    .training-bar__nav { gap: 12px; font-size: 11px; }
    .training-bar__account { padding-left: 12px; }

    .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }

    .post-author-bio .container { flex-direction: column; }
    .post-author-bio__avatar { width: 56px; height: 56px; }

    .cta-funnel__inner { padding: 28px 22px; }
}

@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .home-hero__stats { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--bd-2); }
    .stat-cell:last-child { border-bottom: none; }
    .btn--lg { padding: 12px 22px; }
    .post-header__meta { font-size: 11px; gap: 6px; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .cta-funnel, .post-related, .training-bar, .training-funnel { display: none !important; }
    body { background: #fff; color: #000; }
    .post-content { font-size: 11pt; }
    a { color: #000; text-decoration: underline; }
}

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
