:root {
    --ink: #0a0a0a;
    --paper-soft: #f5efe2;
    --muted: #c9c2b2;
    --muted-dim: #998;
    --gold: #ff9d00;
    --line: rgba(255, 250, 240, 0.12);
    --line-mid: rgba(255, 250, 240, 0.18);
    --line-strong: rgba(255, 250, 240, 0.25);
    --gold-line: rgba(255, 157, 0, 0.5);
    --gold-wash: rgba(255, 157, 0, 0.06);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --font-heading: "Outfit", "Arial Black", sans-serif;
    --font-body: "Inter", Arial, sans-serif;
    --ease: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper-soft);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--font-heading);
    line-height: 1.02;
    letter-spacing: 0;
}

p {
    margin: 0;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Trending ticker */
.ticker {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    background: var(--gold);
    color: var(--ink);
    padding: 6px 14px;
}

.ticker-tag {
    flex: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ticker-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: ticker 26s linear infinite;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none;
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px clamp(20px, 4vw, 44px);
    background: rgba(10, 10, 10, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-vs {
    color: var(--gold);
}

.brand-sm {
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 28px);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.site-nav a {
    text-decoration: none;
    color: inherit;
    transition: color var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--gold);
}

.site-nav .nav-active {
    color: var(--gold);
}

.site-nav .nav-tl {
    padding: 4px 10px;
    border: 1px solid var(--gold-line);
    border-radius: 6px;
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform var(--ease), background var(--ease), color var(--ease);
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-subscribe {
    flex: none;
}

section {
    padding: clamp(36px, 5vw, 56px) 0;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rail-heading {
    margin-bottom: 18px;
}

.rail-heading.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.rail-heading h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    letter-spacing: 0.02em;
}

.rail-note {
    margin-top: 6px;
    color: var(--muted-dim);
    font-size: 0.8rem;
}

.loading-note {
    color: var(--muted-dim);
    font-size: 0.85rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link::after {
    content: "\2192";
}

.text-link-sm {
    font-size: 0.72rem;
}

/* Latest insights rail — sits within the same centered column as the rest of the page */
.insights-rail {
    padding-bottom: clamp(28px, 4vw, 40px);
}

.insights-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 10px;
}

.insights-track::-webkit-scrollbar {
    display: none;
}

.insights-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.insight-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line-strong);
    cursor: pointer;
    transition: background var(--ease), transform var(--ease);
}

.insight-dot:hover,
.insight-dot:focus-visible {
    background: var(--muted);
}

.insight-dot.active {
    background: var(--gold);
    transform: scale(1.35);
}

.insight-card {
    flex: none;
    width: 190px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line-mid);
    transition: transform var(--ease), border-color var(--ease);
}

.insight-card:hover,
.insight-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--gold-line);
}

.insight-card-filler {
    border-style: dashed;
    opacity: 0.82;
}

.insight-cover {
    height: 118px;
    background-size: cover;
    background-position: center;
    background-color: #141005;
}

.insight-meta {
    padding: 8px 10px 10px;
    background: #101010;
}

.insight-source {
    display: block;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.insight-title {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1.2;
}

/* Format tabs */
.format-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.format-tab {
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    padding: 7px 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.format-tab:hover,
.format-tab:focus-visible {
    color: var(--paper-soft);
}

.format-tab.active {
    background: var(--paper-soft);
    color: var(--ink);
    border-color: var(--paper-soft);
}

.format-tab-own {
    border-color: var(--gold-line);
    color: var(--gold);
}

.format-tab-own.active {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

/* Signal stack */
.signal-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--ease), border-color var(--ease);
}

.signal-row:hover,
.signal-row:focus-visible {
    transform: translateY(-2px);
}

.signal-row.is-latest {
    border: 1px solid var(--gold-line);
    background: var(--gold-wash);
}

.signal-cover {
    flex: none;
    width: 116px;
    height: 72px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #141005;
}

.signal-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.signal-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--line-strong);
    color: var(--muted);
}

.badge-time {
    color: var(--muted-dim);
}

.badge-tier-thought-leaders {
    border-color: var(--gold-line);
    color: var(--gold);
}

.signal-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.15;
}

.signal-excerpt {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.signal-cta {
    font-weight: 800;
    color: var(--paper-soft);
}

.signal-row.is-latest .signal-cta,
.signal-row[data-format="own"] .signal-cta {
    color: var(--gold);
}

/* Discussion + email capture */
.discussion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.discussion-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discussion-card {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.85rem;
}

.discussion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px dashed var(--line-strong);
}

.discussion-source {
    color: var(--muted-dim);
    font-size: 0.72rem;
}

.discussion-card p {
    color: #e8e0cd;
    line-height: 1.45;
}

.discussion-card-cta {
    border-style: dashed;
    background: var(--gold-wash);
}

.discussion-card-cta p {
    color: var(--muted);
}

.discussion-card .text-link {
    margin-top: 6px;
}

.email-capture {
    padding: 18px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-wash);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-capture h3 {
    font-size: 1.1rem;
}

.email-capture p {
    color: var(--muted);
    font-size: 0.85rem;
}

.substack-embed {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: var(--paper-soft);
    border: 1px solid var(--gold-line);
    box-shadow: var(--shadow);
}

.substack-embed iframe {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
}

/* TL store */
.store-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.store-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    background: var(--gold-wash);
    text-decoration: none;
    color: inherit;
    transition: transform var(--ease);
}

.store-card:hover,
.store-card:focus-visible {
    transform: translateY(-4px);
}

.store-cover {
    height: 100px;
    border-radius: 7px;
    background-size: cover;
    background-position: center;
    background-color: #141005;
}

.store-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.2;
}

.store-price {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.85rem;
}

.gumroad-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--gold-line);
    border-radius: 10px;
    background: var(--gold-wash);
}

.gumroad-feature h3 {
    font-size: 1.15rem;
}

.gumroad-feature p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Thought Leaders landing page */
.tl-hero {
    padding-top: clamp(48px, 7vw, 72px);
}

.tl-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.tl-hero-copy h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.tl-hero-lead {
    margin-top: 16px;
    max-width: 56ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.tl-hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.tl-hero-art {
    aspect-ratio: 1;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-color: #141005;
    border: 1px solid var(--gold-line);
    box-shadow: var(--shadow);
}

.tl-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tl-value-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.tl-value-num {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--gold);
}

.tl-value-card h3 {
    margin-top: 10px;
    font-size: 1.05rem;
}

.tl-value-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.tl-format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tl-format-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    background: var(--gold-wash);
}

.tl-format-cover {
    height: 120px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #141005;
}

.tl-format-card h3 {
    font-size: 1.05rem;
}

.tl-format-card p {
    flex: 1;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tl-format-price {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.85rem;
}

.tl-closing-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

.tl-closing-grid h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.tl-closing-grid > div:first-child p {
    margin-top: 12px;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.6;
}

.tl-closing-grid > div:first-child .btn {
    margin-top: 22px;
}

/* Footer */
.site-footer {
    padding: 26px 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-grid p {
    color: var(--muted-dim);
    font-size: 0.8rem;
}

.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.channel-list a {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--line-mid);
    border-radius: 7px;
    color: var(--paper-soft);
    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--ease), border-color var(--ease);
}

.channel-list a:hover,
.channel-list a:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .discussion-grid {
        grid-template-columns: 1fr;
    }

    .signal-row {
        flex-wrap: wrap;
    }

    .signal-cover {
        width: 100%;
        height: 140px;
    }

    .tl-hero-grid {
        grid-template-columns: 1fr;
    }

    .tl-hero-art {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }

    .tl-value-grid,
    .tl-format-grid {
        grid-template-columns: 1fr;
    }

    .tl-closing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-nav {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}
