/* ══════════════════════════════════════════════════════════════
   Nammu Blog — "Field Notes" editorial layer
   Extends style.css (Electric Horizon brand). Light theme only,
   like the rest of the site. Sora throughout (brand font);
   Fraunces italic reserved for pull quotes only.
   ══════════════════════════════════════════════════════════════ */

:root {
    --blog-paper: #FFFDF6;
    --blog-cream: #FFF5DA;
    --blog-green: #10b981;
    --blog-green-deep: #0b7d5c;
    --blog-measure: 680px;
    --font-serif: 'Sora', sans-serif; /* body reading font = brand font */
    --font-quote: 'Fraunces', Georgia, serif;
}

body.blog-body {
    background: var(--blog-paper);
}

/* ── Reading progress (progressive enhancement) ── */
.progress-root {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    z-index: 200; pointer-events: none;
}
.progress-root::before {
    content: ''; display: block; height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--blog-green));
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: grow-progress linear both;
    animation-timeline: scroll(root);
}
@keyframes grow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Entrance reveals ── */
@keyframes rise-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .progress-root::before { animation: none; }
}

/* ══════════════════════════════════════════
   Blog index
   ══════════════════════════════════════════ */
.blog-hero {
    padding: 132px 0 40px;
    background:
        radial-gradient(1200px 420px at 70% -10%, rgba(91,115,237,0.08), transparent 65%),
        radial-gradient(900px 380px at 10% 0%, rgba(16,185,129,0.07), transparent 60%),
        var(--blog-paper);
}
.blog-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--color-primary);
}
.blog-kicker::before {
    content: ''; width: 22px; height: 2px;
    background: var(--color-primary); border-radius: 1px;
}
.blog-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin: 14px 0 12px; max-width: 640px;
}
.blog-hero .blog-hero-sub {
    font-family: var(--font-serif);
    font-size: 1.15rem; color: var(--color-text-muted);
    max-width: 560px; line-height: 1.65;
}

.blog-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
    padding: 36px 0 72px;
}
@media (max-width: 780px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid rgba(38,20,28,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(38,20,28,0.04);
    transition: transform 0.28s cubic-bezier(0.22,1,0.36,1), box-shadow 0.28s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(38,20,28,0.10);
}
.post-card-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.post-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.post-card:hover .post-card-media img { transform: scale(1.045); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.post-card h2 a:hover { color: var(--color-primary); }
.post-card p {
    font-family: var(--font-serif); color: var(--color-text-muted);
    font-size: 0.98rem; line-height: 1.6; flex: 1;
}
.post-card-meta { display: flex; align-items: center; gap: 10px; }
.post-card-read {
    font-size: 0.82rem; color: var(--color-text-muted); font-weight: 600;
}

.pill {
    display: inline-flex; align-items: center;
    padding: 5px 12px; border-radius: 100px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
}
.pill-indigo { background: var(--color-lavender); color: var(--color-primary); }
.pill-green  { background: rgba(16,185,129,0.12); color: var(--blog-green-deep); }

/* ── Subscribe band ── */
.subscribe-band {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 80px;
    padding: 48px 40px;
    color: #fff;
    background: #123c2e url('img/leaves-texture.jpg') center/cover;
}
.subscribe-band::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8,42,32,0.92) 20%, rgba(8,42,32,0.55) 70%, rgba(8,42,32,0.35));
}
.subscribe-inner { position: relative; max-width: 480px; }
.subscribe-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.subscribe-inner p {
    font-family: var(--font-serif); font-size: 1rem;
    color: rgba(255,255,255,0.85); margin-bottom: 20px; line-height: 1.6;
}

/* ══════════════════════════════════════════
   Article pages
   ══════════════════════════════════════════ */
.article-hero { padding: 118px 0 0; }
.article-hero-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    min-height: 320px;
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(38,20,28,0) 40%, rgba(38,20,28,0.28));
}
.article-title-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(38,20,28,0.07);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 44px rgba(38,20,28,0.09);
    padding: 34px 40px 30px;
    max-width: 760px;
    margin: -84px auto 0;
}
@media (max-width: 640px) {
    .article-hero-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
    .article-title-card { margin-top: -40px; padding: 24px 22px 22px; }
}
.article-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
    margin-bottom: 14px;
}
.article-meta time, .article-meta .dot, .article-meta .read {
    font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600;
}
.article-title-card h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.article-title-card .standfirst {
    font-family: var(--font-serif);
    font-size: 1.12rem; color: var(--color-text-muted);
    line-height: 1.6; margin-top: 12px;
}

.article-body {
    max-width: var(--blog-measure);
    margin: 0 auto;
    padding: 48px 24px 24px;
    font-family: var(--font-serif);
    font-size: 1.01rem;
    line-height: 1.85;
    color: #33222b;
}
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em;
    margin-top: 2.2em; color: var(--color-text);
}
.article-body h2 .h-num {
    color: var(--color-primary);
    font-weight: 800;
    margin-right: 6px;
}
.article-body strong { color: var(--color-text); }
.article-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Drop cap on the lede — Sora, on brand */
.article-body > p.lede::first-letter {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3.1em;
    float: left;
    line-height: 0.9;
    padding: 4px 12px 0 0;
    color: var(--color-primary);
}

/* App clip — integrated split card: copy left, frameless screen video
   bleeding off the card's bottom edge (Cash App × Phantom) */
.article-body figure.app-clip {
    width: min(860px, 94vw);
    margin: 2.6em 0 2.6em 50%;
    transform: translateX(-50%);
    background: #EEF1FE;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    column-gap: 12px;
}
.app-clip .clip-copy {
    padding: 44px 8px 44px 48px;
}
.clip-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.clip-copy h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 800;
    letter-spacing: -0.01em; line-height: 1.2;
    color: var(--color-text);
}
.clip-copy p {
    font-family: var(--font-body);
    font-size: 0.92rem; line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: 10px;
}
.app-clip .clip-media { align-self: end; }
.app-clip video {
    display: block;
    width: min(250px, 62vw);
    height: auto;
    aspect-ratio: 1206 / 2622;
    margin: 48px auto -150px;
    border-radius: 14.6% 14.6% 0 0 / 7% 7% 0 0;
    transform: translateZ(0);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06), 0 -8px 40px rgba(91,115,237,0.16);
    background: #fff;
}
@media (max-width: 720px) {
    .app-clip { grid-template-columns: 1fr; }
    .app-clip .clip-copy { padding: 32px 28px 0; text-align: center; }
    .app-clip video { margin: 28px auto -120px; }
}

/* Scroll-grow — sticky card; the jungle advances through its growth
   phases as the reader scrolls (Apple/Cash App scroll-storytelling) */
.article-body figure.grow-scroll {
    width: min(920px, 96vw);
    margin: 2.6em 0 2.6em 50%;
    transform: translateX(-50%);
}
.grow-scroll.enhanced { height: 340vh; }
/* No card — the screen floats centered on the page (Cash App treatment) */
.grow-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.grow-scroll.enhanced .grow-card {
    position: sticky;
    top: max(84px, calc(50vh - 390px));
}
.grow-copy { padding: 0 24px; }
.grow-copy .grow-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.015em; line-height: 1.1;
    color: var(--color-text);
}
.grow-copy .grow-sub {
    font-family: var(--font-body);
    font-size: 0.95rem; line-height: 1.6;
    color: var(--color-text-muted);
    margin-top: 8px;
    min-height: 1.6em;
}
.grow-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.grow-dots span {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(91,115,237,0.22);
    transition: background 0.3s, transform 0.3s;
}
.grow-dots span.on { background: var(--color-primary); transform: scale(1.25); }
.grow-media {
    position: relative;
    margin-top: 30px;
    /* ambient glow instead of a card — reads as hovering */
}
.grow-media::before {
    content: '';
    position: absolute;
    inset: 6% -14% 10% -14%;
    background: radial-gradient(closest-side, rgba(91,115,237,0.16), rgba(16,185,129,0.05) 62%, transparent 78%);
    z-index: -1;
}
.article-body .grow-scroll .grow-media img {
    display: block;
    width: min(400px, 86vw);
    height: auto;
    aspect-ratio: 780 / 1127;
    margin: 0 auto;
    border-radius: 0; /* the composited iPhone frame provides the silhouette */
    transform: translateZ(0);
    /* framed phone is cropped above the action pills; dissolve the cut edge */
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%);
    mask-image: linear-gradient(180deg, #000 80%, transparent 99%);
}
.grow-note {
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    max-width: 460px;
    margin: 14px auto 0;
}
/* Layers stack upward: lower phases stay fully opaque beneath, so crossfades
   never expose the base layer. Opacity is driven per-frame by scroll position
   (no CSS transition — it would lag behind the scrub). */
.article-body .grow-scroll .grow-media img + img {
    position: absolute; inset: 0;
    margin: 0 auto;
    opacity: 0;
}

/* Highlighter underline — reuse of the landing's green marker motif */
.mark-green {
    background: linear-gradient(transparent 62%, rgba(16,185,129,0.35) 62%, rgba(16,185,129,0.35) 92%, transparent 92%);
    padding: 0 2px;
}
.mark-indigo {
    background: linear-gradient(transparent 62%, rgba(91,115,237,0.28) 62%, rgba(91,115,237,0.28) 92%, transparent 92%);
    padding: 0 2px;
}

/* Pull quote */
.pull-quote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: 1.55rem;
    line-height: 1.35;
    color: var(--color-text);
    text-align: center;
    padding: 1.2em 1em;
    margin: 2em 0;
    position: relative;
}
.pull-quote::before, .pull-quote::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 54px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--blog-green));
}
.pull-quote::before { top: 0; }
.pull-quote::after { bottom: 0; }

/* Figures */
.article-body figure { margin: 2.2em 0; }
.article-body figure img {
    border-radius: var(--radius-md);
    width: 100%;
}
.article-body figcaption {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 10px;
    text-align: center;
}
.article-body figcaption a { color: inherit; }

/* Fact / stat strip */
.stat-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    margin: 2em 0;
}
@media (max-width: 560px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-tile {
    background: #fff;
    border: 1px solid rgba(38,20,28,0.08);
    border-radius: var(--radius-md);
    padding: 18px 16px 14px;
    text-align: center;
}
.stat-tile .stat-num {
    font-family: var(--font-heading);
    font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}
.stat-tile .stat-num.green { color: var(--blog-green-deep); }
.stat-tile .stat-label {
    font-family: var(--font-body);
    font-size: 0.78rem; font-weight: 600;
    color: var(--color-text-muted); margin-top: 4px; line-height: 1.4;
}

/* Receipt card (post 2 motif) */
.receipt {
    background: #fff;
    border: 1.5px dashed rgba(38,20,28,0.25);
    border-radius: 6px;
    max-width: 420px;
    margin: 2.2em auto;
    padding: 26px 28px 22px;
    font-family: var(--font-body);
    box-shadow: 0 10px 30px rgba(38,20,28,0.07);
    position: relative;
}
.receipt::before {
    content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(38,20,28,0.18) 0 8px, transparent 8px 16px);
}
.receipt-head {
    text-align: center; font-weight: 800; letter-spacing: 0.16em;
    text-transform: uppercase; font-size: 0.78rem; margin-bottom: 14px;
}
.receipt-row {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: 0.9rem; padding: 7px 0;
    border-bottom: 1px dotted rgba(38,20,28,0.15);
}
.receipt-row:last-of-type { border-bottom: none; }
.receipt-row .k { color: var(--color-text-muted); font-weight: 600; }
.receipt-row .v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.receipt-row .v.green { color: var(--blog-green-deep); }
.receipt-foot {
    margin-top: 12px; padding-top: 12px;
    border-top: 1.5px dashed rgba(38,20,28,0.2);
    text-align: center; font-size: 0.75rem; color: var(--color-text-muted);
}

/* Partner cards (post 2) */
.partner-card {
    display: grid; grid-template-columns: 168px 1fr; gap: 20px;
    background: #fff;
    border: 1px solid rgba(38,20,28,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1.6em 0;
}
@media (max-width: 560px) { .partner-card { grid-template-columns: 1fr; } }
.partner-card img { width: 100%; height: 100%; object-fit: cover; min-height: 140px; }
.partner-card-body { padding: 18px 20px 16px 0; }
@media (max-width: 560px) { .partner-card-body { padding: 0 20px 18px; } }
.partner-card h3 {
    font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800;
    margin-bottom: 4px;
}
.partner-card .partner-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.partner-card p {
    font-size: 0.95rem; line-height: 1.6; color: #4a3742;
    font-family: var(--font-serif); margin: 0;
}
.partner-card figcaption {
    font-family: var(--font-body); font-size: 0.68rem;
    color: var(--color-text-muted); padding: 4px 8px; text-align: left;
}

/* Promises list */
.promise-list { list-style: none; counter-reset: promise; margin: 1.6em 0; padding: 0; }
.promise-list li {
    counter-increment: promise;
    position: relative;
    padding: 16px 18px 16px 62px;
    background: #fff;
    border: 1px solid rgba(38,20,28,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}
.promise-list li::before {
    content: counter(promise);
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(16,185,129,0.12); color: var(--blog-green-deep);
    font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
}

/* Founder sign-off */
.byline-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--blog-cream);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 2.4em 0 0;
}
.byline-card img {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(91,115,237,0.10);
    flex: none;
}
.byline-card .byline-name { font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem; }
.byline-card .byline-role { font-family: var(--font-body); font-size: 0.8rem; color: var(--color-text-muted); }

/* Mantra close */
.mantra {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    letter-spacing: -0.01em;
    text-align: center;
    margin: 2.4em 0 0.6em;
}
.mantra .m-green { color: var(--blog-green-deep); }
.mantra .m-indigo { color: var(--color-primary); }

/* Disclaimer */
.disclaimer {
    max-width: var(--blog-measure);
    margin: 40px auto 0;
    padding: 18px 24px;
    border-top: 1px solid rgba(38,20,28,0.1);
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Next-post footer nav */
.next-post {
    max-width: var(--blog-measure);
    margin: 28px auto 72px;
    padding: 0 24px;
}
.next-post a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff;
    border: 1px solid rgba(38,20,28,0.08);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.next-post a:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(38,20,28,0.08); }
.next-post .np-label {
    font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted);
}
.next-post .np-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; margin-top: 3px; }
.next-post .np-arrow { font-size: 1.3rem; color: var(--color-primary); }
