/* ============================================================
   Founder Series Foundation — Stories
   Design system: Documentary Bold (Option 4)
   ============================================================ */

:root {
    --black: #050505;
    --black-2: #111;
    --black-3: #1A1A1A;
    --ivory: #F7F4ED;
    --ivory-2: #E8E3D7;
    --ivory-3: #D9D2BF;
    --gold: #C9A23D;
    --gold-deep: #9F7E2A;
    --gold-light: #DDBA5C;
    --rust: #8B3A2E;
    --muted: rgba(247, 244, 237, 0.6);
    --muted-strong: rgba(247, 244, 237, 0.8);
    --line: rgba(247, 244, 237, 0.12);
    --line-strong: rgba(247, 244, 237, 0.22);

    --track-biz: var(--gold);
    --track-prod: var(--rust);
    --track-tech: #5E8B7E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Source Serif 4', serif;
    background: var(--black);
    color: var(--ivory);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'ss01';
}
a { color: inherit; text-decoration: none; }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ── Reading progress bar ── */
.reading-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0;
    background: var(--gold);
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* ── Top nav ── */
.fs-nav {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(5, 5, 5, 0.92);
}
.fs-nav .fs-nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    gap: 2rem;
}
.fs-nav .logo {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ivory);
}
.fs-nav-links {
    list-style: none; display: flex; gap: 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
}
.fs-nav-links a {
    color: rgba(247, 244, 237, 0.6);
    transition: color 0.15s;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}
.fs-nav-links a:hover,
.fs-nav-links a.active { color: var(--ivory); border-bottom-color: var(--gold); }
@media (max-width: 720px) {
    .fs-nav { padding: 1rem 1.25rem; }
    .fs-nav .fs-nav-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .fs-nav-links { gap: 1.25rem; font-size: 0.72rem; flex-wrap: wrap; }
}

/* ── Stories Hero ── */
.blog-hero {
    min-height: 88vh;
    padding: 5rem 2.5rem 4rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(201, 162, 61, 0.12), transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(139, 58, 46, 0.13), transparent 60%),
        var(--black);
    position: relative;
    border-bottom: 1px solid var(--line);
}
.blog-hero::before {
    content: 'A founder series in real time';
    position: absolute;
    top: 2.5rem; right: 2.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); opacity: 0.7;
}
.blog-hero .hero-inner { max-width: 1280px; margin: 0 auto; width: 100%; }
.blog-hero .eyebrow {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 2.5rem;
}
.blog-hero .eyebrow::before { content: 'Ch. '; color: rgba(247, 244, 237, 0.4); }
.blog-hero h1 {
    font-family: 'Source Serif 4', serif; font-weight: 400;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    line-height: 1.02; letter-spacing: -0.02em;
    color: var(--ivory);
    margin-bottom: 2rem;
    max-width: 18ch;
}
.blog-hero h1 .accent { font-style: italic; color: var(--gold); }
.blog-hero h1 .trades { color: var(--ivory); }
.blog-hero p {
    font-family: 'Source Serif 4', serif;
    font-size: 1.15rem; line-height: 1.65;
    color: var(--muted-strong);
    max-width: 56ch;
    margin-top: 2rem;
}
.blog-hero .scroll-cue {
    margin-top: 3rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold);
    display: flex; align-items: center; gap: 0.75rem;
}
.blog-hero .scroll-cue .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}
@media (max-width: 720px) {
    .blog-hero { min-height: auto; padding: 4rem 1.25rem 3rem; }
    .blog-hero::before { display: none; }
}

/* ── Series timeline (the journey strip) ── */
.series-timeline {
    background: var(--black-2);
    padding: 4rem 2.5rem;
    border-bottom: 1px solid var(--line);
}
.timeline-inner { max-width: 1280px; margin: 0 auto; }
.timeline-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2.5rem;
}
.timeline-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    position: relative;
    padding-top: 1.5rem;
}
.timeline-rail::before {
    content: ''; position: absolute;
    top: 0.5rem; left: 0; right: 0;
    height: 1px; background: var(--line-strong);
}
.timeline-step {
    position: relative;
    padding-top: 1.25rem;
}
.timeline-dot {
    position: absolute;
    top: -1.5rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--black-2);
}
.timeline-month {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700; font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.5rem;
}
.timeline-label {
    font-family: 'Source Serif 4', serif;
    font-size: 0.92rem;
    color: var(--muted-strong);
    line-height: 1.5;
}

/* ── Blog list (track blocks) ── */
.blog-list {
    padding: 6rem 2.5rem;
    max-width: 1280px; margin: 0 auto;
}
.track-block {
    margin-bottom: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.track-block:last-child { border-bottom: none; margin-bottom: 0; }
.track-heading {
    display: flex; align-items: baseline; gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    font-family: 'Source Serif 4', serif; font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ivory);
    line-height: 1.15; letter-spacing: -0.015em;
}
.track-heading .swatch {
    width: 14px; height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
    align-self: center;
}
.track-block.biz  .track-heading .swatch { background: var(--track-biz); }
.track-block.prod .track-heading .swatch { background: var(--track-prod); }
.track-block.tech .track-heading .swatch { background: var(--track-tech); }
.track-heading .count {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold-deep);
    margin-left: auto;
}

/* Blog card markup uses h2 inside the card, not h3 */
.blog-card h2 {
    font-family: 'Source Serif 4', serif; font-weight: 500;
    font-size: 1.35rem; line-height: 1.25;
    color: var(--ivory);
    margin-bottom: 1rem;
    letter-spacing: -0.005em;
}
.blog-card .meta {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 0.85rem;
}
.blog-card .read-time-pill { color: var(--gold-deep); }
.blog-card .tags {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin: 1rem 0 0;
}
.blog-card .tag {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted);
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--line-strong);
}
.blog-card .read-more .arrow { margin-left: 0.4rem; }

/* ── Card grid (post cards) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.blog-card {
    background: rgba(247, 244, 237, 0.03);
    border: 1px solid var(--line);
    padding: 2rem 2rem 2.25rem;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex; flex-direction: column;
    min-height: 240px;
}
.blog-card[data-status="draft"] { display: none; }
.blog-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; bottom: 0; width: 3px;
    transition: width 0.3s;
}
.blog-card.biz::before  { background: var(--track-biz); }
.blog-card.prod::before { background: var(--track-prod); }
.blog-card.tech::before { background: var(--track-tech); }
.blog-card:hover {
    border-color: var(--line-strong);
    background: rgba(247, 244, 237, 0.06);
    transform: translateY(-2px);
}
.blog-card:hover::before { width: 5px; }
.blog-card .card-meta {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.blog-card h3 {
    font-family: 'Source Serif 4', serif; font-weight: 500;
    font-size: 1.35rem; line-height: 1.25;
    color: var(--ivory);
    margin-bottom: 1rem;
    letter-spacing: -0.005em;
}
.blog-card p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem; line-height: 1.65;
    color: var(--muted);
    flex-grow: 1;
}
.blog-card .read-more {
    margin-top: 1.5rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
}

/* ── Coming next (drafts placeholder) ── */
.coming-next {
    padding: 4rem 2.5rem;
    background: var(--black-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.coming-next-inner { max-width: 720px; margin: 0 auto; }
.coming-next .eyebrow {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.25rem;
}
.coming-next h3 {
    font-family: 'Source Serif 4', serif; font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ivory);
    line-height: 1.2; margin-bottom: 1rem;
}
.coming-next h3 em { font-style: italic; color: var(--gold); }
.coming-next .phase-dates {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1.25rem;
}
.coming-next p {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem; line-height: 1.7;
    color: var(--muted-strong);
}
.coming-next .coming-next-meta {
    margin-top: 1.25rem;
    font-family: 'Source Serif 4', serif; font-style: italic;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ────────────────────────────────────────────────
   Individual blog post pages
   ──────────────────────────────────────────────── */

.blog-post {
    max-width: 760px; margin: 0 auto;
    padding: 5rem 2rem 6rem;
}

.post-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2.5rem;
}
.back-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--muted);
    display: inline-block;
    margin-bottom: 2rem;
    transition: color 0.15s;
}
.back-link:hover { color: var(--gold); }
.series-label {
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.5rem;
}
.series-label.biz  { background: rgba(201, 162, 61, 0.15); color: var(--gold); }
.series-label.prod { background: rgba(139, 58, 46, 0.18); color: #C5654F; }
.series-label.tech { background: rgba(94, 139, 126, 0.15); color: var(--track-tech); }
.post-header h1 {
    font-family: 'Source Serif 4', serif; font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ivory);
    margin-bottom: 1rem;
}
.post-header h1 em { font-style: italic; color: var(--gold); }
.post-header .meta {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-deep);
}

.author-byline {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}
.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(40%);
}
.author-meta { flex: 1; }
.author-name {
    font-family: 'Source Serif 4', serif; font-weight: 500;
    font-size: 1rem; color: var(--ivory);
}
.author-role {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.15rem;
}
.read-time {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--gold);
}

/* ── Post body content ── */
.post-body {
    font-family: 'Source Serif 4', serif;
    font-size: 1.08rem; line-height: 1.85;
    color: var(--muted-strong);
}
.post-body section {
    margin-bottom: 2.5rem;
}
.post-body h2 {
    font-family: 'Source Serif 4', serif; font-weight: 500;
    font-size: 1.6rem; color: var(--ivory);
    margin: 2.5rem 0 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.post-body h3 {
    font-family: 'Source Serif 4', serif; font-weight: 600;
    font-size: 1.25rem; color: var(--gold-light);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}
.post-body p {
    margin-bottom: 1.5rem;
    color: var(--muted-strong);
}
.post-body p strong { color: var(--ivory); font-weight: 600; }
.post-body em { font-style: italic; color: var(--gold-light); }
.post-body ul, .post-body ol {
    margin: 0 0 1.75rem 1.5rem;
    color: var(--muted-strong);
}
.post-body li { margin-bottom: 0.65rem; }
.post-body li::marker { color: var(--gold); }
.post-body a {
    color: var(--gold-light);
    border-bottom: 1px dotted var(--gold-deep);
    transition: color 0.15s;
}
.post-body a:hover { color: var(--ivory); }
.post-body blockquote {
    margin: 2rem 0;
    padding: 0 0 0 2rem;
    border-left: 3px solid var(--gold);
    font-style: italic;
    color: var(--ivory);
}
.post-body code {
    font-family: 'Source Code Pro', Monaco, monospace;
    background: rgba(247, 244, 237, 0.08);
    color: var(--gold-light);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.92em;
}
.post-body pre {
    background: var(--black-2);
    border: 1px solid var(--line);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 4px;
}
.post-body pre code { background: none; padding: 0; color: var(--muted-strong); }

/* ── Post callouts ── */
.key-takeaways {
    margin: 2.5rem 0;
    padding: 2rem 2.25rem;
    background: rgba(247, 244, 237, 0.04);
    border-left: 3px solid var(--gold);
}
.key-takeaways h3 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.key-takeaways ul {
    list-style: none;
    margin: 0;
}
.key-takeaways li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    font-size: 1rem; line-height: 1.65;
    color: var(--muted-strong);
}
.key-takeaways li::before {
    content: '·'; position: absolute; left: 0; top: 0.5rem;
    color: var(--gold); font-weight: 700;
}

.honest-note {
    margin: 2.5rem 0;
    padding: 2rem 2.25rem;
    background: rgba(139, 58, 46, 0.08);
    border-left: 3px solid var(--rust);
}
.honest-note h4 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: #C5654F;
    margin-bottom: 1rem;
}
.honest-note p {
    font-style: italic;
    color: var(--ivory);
    margin-bottom: 0;
}

/* ── Author footer (bottom of post) ── */
.author-footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    display: flex; gap: 1.5rem; align-items: flex-start;
}
.footer-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    filter: grayscale(40%);
}
.footer-bio { flex: 1; }
.footer-name {
    font-family: 'Source Serif 4', serif; font-weight: 500;
    font-size: 1.2rem;
    color: var(--ivory);
    margin-bottom: 0.5rem;
}
.footer-text {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem; line-height: 1.7;
    color: var(--muted);
}

/* ── Prev/Next nav ── */
.post-nav {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between;
    gap: 2rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
}
.post-nav a {
    color: var(--gold);
    transition: color 0.15s;
}
.post-nav a:hover { color: var(--ivory); }
.post-nav .next { margin-left: auto; }

@media (max-width: 720px) {
    .blog-post { padding: 3rem 1.25rem 4rem; }
    .author-footer { flex-direction: column; }
}
