/* ================================================================
   blog.css — mehmoodferoz.com blog (editorial, matches homepage)
   Tokens from /styles.css: --bg --ink --gold --dark --border
   On light backgrounds gold is decorative only; text stays ink.
   ================================================================ */

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }
.article { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 720px){ .wrap { padding: 0 1.4rem; } }

/* ── NAV (matches homepage) ── */
#nav { position: sticky; top: 0; z-index: 100; padding: 1rem 0; background: rgba(245,242,237,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.05em; color: var(--ink); text-decoration: none; line-height: 1; }
.wordmark span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-family: var(--font-body); font-size: 0.86rem; color: var(--ink-dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; color: var(--ink); text-decoration: none; padding: 0.5rem 1.1rem; border: 1.5px solid var(--ink); border-radius: 100px; transition: all .2s; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { width: 24px; height: 1.6px; background: var(--ink); display: block; transition: transform .3s, opacity .3s; }
@media (max-width: 820px){ .nav-links { display: none; } .nav-burger { display: flex; } }
#mobile-nav { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: 2.5rem; transform: translateY(-100%); transition: transform .5s cubic-bezier(.7,0,.2,1); }
#mobile-nav.open { transform: translateY(0); }
#mobile-nav a { font-family: var(--font-display); font-size: clamp(2.2rem,9vw,3.5rem); color: var(--ink); text-decoration: none; letter-spacing: 0.02em; line-height: 1.15; }
#mobile-nav a span { color: var(--gold); }

/* ── Shared bits ── */
.kicker { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 0.5rem; }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tag { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.24rem 0.65rem; border-radius: 100px; background: rgba(0,0,0,0.05); border: 1px solid var(--border); color: #555; }
.meta-line { font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-dim); }

/* ── INDEX: hero + listing ── */
.blog-hero { padding: 8rem 0 3.5rem; }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 9vw, 6.5rem); line-height: 0.9; letter-spacing: 0.01em; color: var(--ink); margin: 1.4rem 0 1.2rem; }
.blog-hero h1 em { color: var(--gold); font-style: normal; }
.blog-hero p { font-family: var(--font-body); font-size: 1.02rem; color: var(--ink-dim); line-height: 1.7; max-width: 52ch; }
.blog-rule { height: 1px; background: var(--border); max-width: 1120px; margin: 0 auto; }

.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding: 3.5rem 0 6rem; }
@media (min-width: 760px){ .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2.2rem; text-decoration: none; color: inherit; transition: border-color .25s, transform .25s; }
.post-card:hover { border-color: rgba(200,150,62,0.45); transform: translateY(-3px); }
.post-card .tags { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.post-card h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.02; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 0.9rem; }
.post-card p { font-family: var(--font-body); font-size: 0.92rem; color: #555; line-height: 1.65; flex: 1; }
.post-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.post-card .read { font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.post-card .read span { color: var(--gold); }

/* ── ARTICLE ── */
.article-head { padding: 7rem 0 0; }
.article-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.article-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 0.96; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 1.4rem; }
.article-lede { font-family: var(--font-body); font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #3a3a3a; line-height: 1.6; max-width: 60ch; margin-bottom: 2.5rem; font-weight: 500; }
.article-rule { height: 1px; background: var(--border); margin-bottom: 2.8rem; }

.prose { font-family: var(--font-body); }
.prose p { font-size: 1.08rem; line-height: 1.85; color: #2c2c2c; margin-bottom: 1.5rem; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: 0.01em; color: var(--ink); line-height: 1; margin: 3rem 0 1.1rem; }
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin: 2.2rem 0 0.8rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.prose ul li { padding-left: 1.6rem; position: relative; font-size: 1.06rem; line-height: 1.75; color: #2c2c2c; margin-bottom: 0.7rem; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 9px; height: 2px; background: var(--gold); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 2px solid var(--gold); transition: background .2s; }
.prose a:hover { background: rgba(200,150,62,0.14); }
.prose blockquote { margin: 2.5rem 0; padding: 0; }
.prose blockquote p, .prose blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: 0.01em; color: var(--ink); font-style: normal; position: relative; }
.prose blockquote::before { content: '“'; font-family: var(--font-display); color: var(--gold); font-size: 2.5rem; display: block; line-height: 0.5; margin-bottom: 0.6rem; }

.faq-q { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 1.9rem 0 0.5rem; }
.faq-a { font-family: var(--font-body); font-size: 1rem; line-height: 1.8; color: #444; }

/* ── Article CTA ── */
.article-cta { margin-top: 4rem; padding: 2.8rem; background: var(--dark); border-radius: 14px; }
.article-cta h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #F5F2ED; line-height: 1; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.article-cta p { font-family: var(--font-body); font-size: 0.98rem; color: rgba(245,242,237,0.65); line-height: 1.7; margin-bottom: 1.6rem; max-width: 52ch; }
.article-cta .cta-h { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #F5F2ED; line-height: 1; margin-bottom: 0.9rem; letter-spacing: 0.01em; }
.article-cta .cta-p { font-family: var(--font-body); font-size: 0.98rem; color: rgba(245,242,237,0.65); line-height: 1.7; margin-bottom: 1.6rem; max-width: 54ch; }
.article-cta a.inline { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(200,150,62,0.5); }
.btn-solid { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; background: var(--gold); color: var(--ink); padding: 0.85rem 1.6rem; border-radius: 100px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: transform .2s; }
.btn-solid:hover { transform: translateY(-2px); }

/* ── Author ── */
.author { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; align-items: flex-start; gap: 1.25rem; }
.author .ava { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.author .name { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.3rem; }
.author .bio { font-family: var(--font-body); font-size: 0.88rem; color: var(--ink-dim); line-height: 1.65; }
.author .bio a { color: var(--ink); border-bottom: 1px solid var(--gold); text-decoration: none; }

/* ── Footer ── */
.blog-footer { background: var(--dark); padding: 2.5rem 0; margin-top: 4rem; }
.blog-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.blog-footer p { font-family: var(--font-body); font-size: 0.8rem; color: rgba(245,242,237,0.4); }
.blog-footer a { font-family: var(--font-body); font-size: 0.8rem; color: rgba(245,242,237,0.55); text-decoration: none; }
.blog-footer a:hover { color: var(--gold); }
