/* ONEWallet — Blog (Paper language). Loaded after home.css, which provides
   the shared chrome: :root vars, header, footer, theme toggle, reveal. */

.nav a.active { background: var(--accent); color: var(--accent-ink); }

.blog-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Blog hero ---------- */
.blog-hero {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
    padding: 48px 0 26px;
}
.blog-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 700; color: var(--accent); font-family: var(--font); }
.blog-hero h1 { font-size: clamp(48px, 8vw, 88px); line-height: .92; letter-spacing: -.05em; margin-top: 18px; }
.blog-hero p { font-size: 17px; line-height: 1.55; color: var(--dim); max-width: 340px; }

/* ---------- Filters ---------- */
.blog-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 26px; border-bottom: 1px solid var(--line); }
.blog-filters a { font-size: 14px; font-weight: 500; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.blog-filters a.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

/* ---------- Featured ---------- */
.blog-featured {
    display: grid; grid-template-columns: 1.06fr .94fr; gap: 44px; align-items: center;
    margin-top: 44px; background: var(--card); border: 1px solid var(--line);
    border-radius: 28px; padding: 44px 0 44px 44px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(21,18,14,.07);
}
.blog-featured:hover { opacity: 1; }
.post-kicker { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .14em; font-weight: 700; }
.post-kicker .cat { color: var(--accent); }
.post-kicker .sep { color: var(--dim); opacity: .6; }
.post-kicker .tag { color: var(--dim); letter-spacing: .06em; }
.blog-featured h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; margin: 20px 0 18px; }
.blog-featured .excerpt { font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 440px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--dim); flex-wrap: wrap; }
.post-meta .avatar { width: 30px; height: 30px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.post-meta .author { font-weight: 600; color: var(--fg); }
.post-meta .dot { opacity: .5; }
.featured-art {
    position: relative; height: 330px; background: var(--accent);
    border-radius: 24px 0 0 24px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.featured-art .art-title {
    position: absolute; top: 26px; left: 30px; color: #fff; font-family: var(--display);
    font-size: 34px; line-height: 1; letter-spacing: -.03em; font-weight: 700; opacity: .9;
}
.featured-art img { width: 196px; height: 250px; object-fit: cover; object-position: top; border-radius: 24px 24px 0 0; border: 7px solid #0E1A4D; border-bottom: 0; }

/* ---------- Post grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 20px 44px rgba(21,18,14,.09); }
.post-thumb { height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.post-thumb img { width: 150px; height: 150px; object-fit: cover; object-position: top; border-radius: 18px 18px 0 0; border: 6px solid rgba(0,0,0,.42); border-bottom: 0; margin-top: 40px; }
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-size: 11.5px; letter-spacing: .16em; font-weight: 700; color: var(--accent); }
.post-card h3 { font-size: 25px; line-height: 1.1; letter-spacing: -.03em; margin: 12px 0 10px; }
.post-card .excerpt { font-size: 15.5px; line-height: 1.5; color: var(--dim); }
.post-card .post-meta { margin-top: 20px; font-size: 13.5px; }

/* thumb variants */
.t-brown { background: #6B4A32; }
.t-dark { background: #15120E; }
.t-green { background: #00A97C; }
.t-blue { background: #1B45FF; }
.t-orange { background: #FF5E3A; }
.t-paper { background: var(--bg); border-bottom: 1px solid var(--line); }
.thumb-text { color: #fff; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; padding: 0 20px; }
.thumb-text.lg { font-size: 38px; }
.thumb-text.md { font-size: 30px; }
.thumb-text .amber { color: #F2A93B; }
.thumb-text .sub { display: block; font-family: var(--font); font-size: 13px; letter-spacing: .16em; margin-top: 10px; opacity: .75; font-weight: 600; }
.thumb-widget { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; width: 200px; color: #fff; }
.thumb-widget .wlabel { font-size: 13px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.thumb-widget .wbar { height: 26px; width: 100%; background: repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 4px,#fff 4px 5px,transparent 5px 9px); opacity: .9; }
.thumb-widget .wcard { font-size: 14px; font-weight: 600; }
.thumb-versions { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 26px 30px; width: 100%; }
.thumb-versions div { display: flex; justify-content: space-between; font-size: 14px; }
.thumb-versions div span:first-child { font-weight: 600; }
.thumb-versions div span:last-child { color: var(--dim); }
.thumb-versions div:nth-child(2) { opacity: .75; }
.thumb-versions div:nth-child(3) { opacity: .5; }

/* pagination */
.blog-more { display: flex; justify-content: center; padding: 44px 0 0; }
.blog-more a { border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 15px; font-weight: 600; padding: 15px 34px; border-radius: 999px; }

/* ---------- CTA banner ---------- */
.blog-cta {
    margin-top: 80px; background: var(--accent); border-radius: 28px; padding: 52px 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 48px; color: #fff;
}
.blog-cta h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.04em; }
.blog-cta p { font-size: 17px; opacity: .82; margin-top: 16px; }
.blog-cta .cta-badges { display: flex; gap: 12px; align-items: center; flex: none; flex-wrap: wrap; }
.blog-cta .cta-badges img { height: 56px; width: auto; }

/* ---------- Article page ---------- */
.article { padding-bottom: 40px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); padding: 40px 0 0; }
.article-back:hover { color: var(--fg); }
.article-head { max-width: 760px; margin: 0 auto; padding: 32px 0 8px; text-align: center; }
.article-head .post-kicker { justify-content: center; }
.article-head h1 { font-size: clamp(36px, 5.5vw, 60px); line-height: 1.02; letter-spacing: -.04em; margin: 20px 0 20px; text-wrap: pretty; }
.article-head .post-meta { justify-content: center; }
.article-band { height: 200px; border-radius: 22px; margin: 34px auto 0; max-width: 900px; display: flex; align-items: center; justify-content: center; }

.prose { max-width: 720px; margin: 0 auto; padding: 44px 0 0; font-size: 18px; line-height: 1.7; color: var(--fg); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin-top: 46px; }
.prose h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-top: 34px; }
.prose p { color: #33302B; }
:root[data-theme="dark"] .prose p { color: #D9D4CC; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li { padding-left: 4px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 700; }
.prose blockquote {
    border-left: 3px solid var(--accent); padding: 6px 0 6px 22px; margin-left: 0;
    font-family: var(--display); font-size: 22px; line-height: 1.35; letter-spacing: -.02em; color: var(--fg);
}
.prose .callout {
    background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px;
    font-size: 16px; line-height: 1.6; color: var(--dim);
}
.prose .callout b { color: var(--fg); }
.prose .path { font-family: 'Instrument Sans', monospace; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 15px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.article-author { max-width: 720px; margin: 48px auto 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; align-items: center; gap: 16px; }
.article-author .avatar { width: 46px; height: 46px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: none; }
.article-author .who { font-weight: 700; }
.article-author .role { font-size: 14px; color: var(--dim); margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .blog-hero { flex-direction: column; align-items: flex-start; gap: 18px; }
    .blog-featured { grid-template-columns: 1fr; padding: 0; }
    .blog-featured > div:first-child { padding: 34px 34px 0; }
    .featured-art { border-radius: 0; height: 280px; order: 2; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
    .header-cta { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .prose { font-size: 17px; }
    .prose blockquote { font-size: 20px; }
    .article-band { height: 160px; }
}
