/* rafyhossain.com shared stylesheet for inner pages (blog, ventures, 404, book shell).
   Design system: Apple-style restyle, October 2026. The homepage keeps its own inline CSS. */

:root { --cream: #F5F0E8; --cream2: #EDE7D9; --ink: #1C1A16; --dark: #0E0C09; --taupe: #6B6253; --mist: #6B6253; --bronze: #7A5F14; --gold: #B8972A; --gold-lt: #D4AF50; --hair: #E3DCCD; --serif: 'Playfair Display', Georgia, serif; --sans: 'Outfit', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bronze); }
:lang(bn) { font-family: 'Noto Sans Bengali', var(--serif); font-weight: 600; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

/* Buttons */
.btn, .btn-gold, .error-link { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), background-color .3s, color .3s; }
.btn:hover, .btn-gold:hover, .error-link:hover { transform: translateY(-2px); }
.btn-ink, .btn-gold, .error-link { background: var(--ink); color: var(--cream); box-shadow: 0 10px 30px -12px rgba(28,26,22,.55); }
.btn-ink:hover, .btn-gold:hover, .error-link:hover { color: var(--cream); box-shadow: 0 18px 40px -14px rgba(28,26,22,.6); }
.btn-glass, .error-link-secondary { background: rgba(255,255,255,.45); border-color: rgba(28,26,22,.1); color: var(--ink); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-glass:hover, .error-link-secondary:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.error-link-secondary { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid rgba(28,26,22,.1); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; padding: 14px 24px; pointer-events: none; margin-bottom: -84px; }
.nav-pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 6px; height: 56px; padding: 6px 8px 6px 20px; border-radius: 999px; background: rgba(245,240,232,.62); border: 1px solid rgba(28,26,22,.08); backdrop-filter: saturate(160%) blur(22px); -webkit-backdrop-filter: saturate(160%) blur(22px); box-shadow: 0 10px 40px -18px rgba(28,26,22,.35), inset 0 1px 0 rgba(255,255,255,.6); max-width: 100%; }
.nav-brand { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin-right: 10px; white-space: nowrap; color: var(--ink); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: 999px; color: var(--ink); transition: background-color .3s; }
.nav-links a:hover { background: rgba(28,26,22,.06); color: var(--ink); }
.nav-cta { height: 42px; padding: 0 18px; font-size: 14px; margin-left: 8px; position: relative; isolation: isolate; overflow: visible; }
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nav-cta::before { content: ""; position: absolute; inset: -1.5px; border-radius: 999px; z-index: -2; background: conic-gradient(from var(--angle), transparent 0deg, transparent 60deg, #B8972A 120deg, #FFF8E7 180deg, #B8972A 240deg, transparent 300deg); animation: spin-border 3.2s linear infinite; }
.nav-cta::after { content: ""; position: absolute; inset: 1px; border-radius: 999px; background: var(--ink); z-index: -1; transition: background .3s; }
.nav-cta:hover::after { background: #B8972A; }
.nav-cta:hover { color: var(--ink); }
@keyframes spin-border { to { --angle: 360deg; } }
.nav-menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(28,26,22,.12); background: rgba(255,255,255,.5); align-items: center; justify-content: center; cursor: pointer; margin-left: 4px; padding: 0; }
.nav-menu svg { width: 18px; height: 18px; stroke: var(--ink); }
.nav-drawer { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 24px; background: rgba(245,240,232,.92); border: 1px solid rgba(28,26,22,.08); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 20px 50px -20px rgba(28,26,22,.4); }
.nav-drawer a { padding: 12px 16px; border-radius: 14px; font-size: 16px; font-weight: 500; color: var(--ink); }
.nav-drawer a:hover { background: rgba(28,26,22,.06); }
.nav-pill.open .nav-drawer { display: flex; }
@media (max-width: 960px) { .nav-links { display: none; } .nav-pill { padding-left: 16px; } .nav-menu { display: inline-flex; } }

/* Page shells */
.article-wrap, .venture-wrap, .blog-wrap { width: 100%; margin: 0 auto; padding: 150px 32px 0; }
.article-wrap { max-width: 760px; }
.venture-wrap, .blog-wrap { max-width: 1200px; }
@media (max-width: 640px) { .article-wrap, .venture-wrap, .blog-wrap { padding: 124px 20px 0; } }

/* Breadcrumb (nav.article-back / venture-back / blog-back) */
nav.article-back, nav.venture-back, nav.blog-back { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 14px; color: var(--taupe); margin-bottom: 28px; }
nav.article-back a, nav.venture-back a, nav.blog-back a { color: inherit; border-bottom: 1px solid rgba(184,151,42,.45); padding-bottom: 1px; }
nav.article-back a:hover, nav.venture-back a:hover, nav.blog-back a:hover { color: var(--ink); }
nav.article-back [aria-current], nav.venture-back [aria-current], nav.blog-back [aria-current] { color: var(--ink); }

/* Labels and titles */
.article-tag, .venture-tag, .blog-eyebrow, .card-tag, .related-card-tag { font-size: 14px; font-weight: 500; color: var(--bronze); }
.article-title, .venture-title, .blog-header h1, .error-title { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin: 14px 0 0; }
.article-title { font-size: clamp(36px, 5vw, 56px); max-width: 760px; }
.venture-title { font-size: clamp(40px, 5.4vw, 64px); max-width: 900px; }
.blog-header h1 { font-size: clamp(40px, 5.4vw, 64px); max-width: 900px; }
.blog-header h1 em { font-style: normal; }
.venture-subtitle { font-size: 20px; line-height: 1.55; color: var(--taupe); font-weight: 300; max-width: 720px; margin: 20px 0 0; }
.venture-role { font-size: 14px; color: var(--taupe); margin-top: 18px; }
.venture-role span { color: var(--ink); font-weight: 500; }

/* Article meta and body */
.article-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin: 28px 0 40px; padding: 22px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.article-author-name { font-weight: 500; font-size: 15px; }
.article-author-role { font-size: 13px; color: var(--taupe); margin-top: 2px; }
.article-date { font-size: 13.5px; color: var(--taupe); }
.article-body { font-size: 18px; line-height: 1.75; color: #3F392F; font-weight: 300; }
.article-body p { margin: 0 0 1.5em; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--serif); color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; margin: 2.2em 0 .7em; }
.article-body h2 { font-size: 30px; font-weight: 600; }
.article-body h3 { font-size: 26px; font-weight: 600; }
.article-body h4 { font-size: 22px; font-weight: 600; }
.article-body blockquote { margin: 2em 0; padding: 24px 28px; border-radius: 22px; background: rgba(255,255,255,.5); border: 1px solid rgba(28,26,22,.07); font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink); font-weight: 400; font-style: italic; }
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.5em; }
.article-body li { margin-bottom: .5em; }
.article-body img, .article-body figure img { width: 100%; border-radius: 20px; display: block; margin: 2rem 0; }
.article-body figure { margin: 2rem 0; }
.article-body figure img { margin: 0; }
.article-body figcaption, .img-caption { font-size: 13.5px; color: var(--taupe); text-align: center; margin: 10px 0 0; }
.img-caption { margin: -1.2rem 0 2rem; }
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2rem 0; }
.img-grid img { margin: 0; }
@media (max-width: 600px) { .img-grid { grid-template-columns: 1fr; } }
.article-body a { color: var(--ink); border-bottom: 1px solid rgba(184,151,42,.5); }
.article-body a:hover { color: var(--bronze); }

.author-card { margin-top: 64px; padding: 28px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)); border: 1px solid rgba(28,26,22,.07); display: flex; gap: 22px; align-items: flex-start; }
.author-monogram { width: 52px; height: 52px; min-width: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); background: conic-gradient(from 210deg, #D4AF50, #F3E6C2 25%, #B8972A 50%, #7A5F14 70%, #D4AF50 100%); }
.author-card-name { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.author-card-bio { font-size: 15px; line-height: 1.65; color: var(--taupe); font-weight: 300; }
.author-card-bio a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(184,151,42,.5); }

.related-articles { margin-top: 64px; }
.related-articles h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 20px; letter-spacing: -0.01em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: minmax(0, 1fr); } }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)); border: 1px solid rgba(28,26,22,.07); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(28,26,22,.35); border-color: rgba(184,151,42,.35); color: var(--ink); }
.related-card-tag { font-size: 13px; }
.related-card-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; }
.related-card-time { font-size: 13px; color: var(--taupe); margin-top: auto; }

/* Blog index */
.blog-header { max-width: 900px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 40px; }
.filter-tag { font-family: inherit; font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(28,26,22,.12); background: rgba(255,255,255,.45); color: var(--ink); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.filter-tag:hover { background: rgba(255,255,255,.75); }
.filter-tag.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: minmax(0, 1fr); } }
.blog-card { display: flex; flex-direction: column; min-height: 280px; padding: 28px; border-radius: 26px; background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)); border: 1px solid rgba(28,26,22,.07); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s cubic-bezier(.2,.8,.2,1), border-color .4s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -28px rgba(28,26,22,.35); border-color: rgba(184,151,42,.35); color: var(--ink); }
.blog-card--featured { grid-column: 1 / -1; background: linear-gradient(150deg, #1C1A16, #2A251C 60%, #3A3020); border-color: rgba(212,175,80,.3); color: var(--cream); min-height: 0; }
.blog-card--featured .card-tag { color: var(--gold-lt); }
.blog-card--featured .card-excerpt, .blog-card--featured .card-date { color: #CFC6B4; }
.blog-card--featured .card-title { font-size: 32px; max-width: 720px; }
.blog-card--featured:hover { color: var(--cream); }
.card-emoji, .featured-visual { display: none; }
.card-title { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 10px 0 10px; }
.card-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--taupe); font-weight: 300; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--taupe); }
.card-read { display: none; }
.blog-card[hidden] { display: none; }

/* Venture pages */
.venture-hero { margin: 40px 0 0; border-radius: 32px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(28,26,22,.45); }
.venture-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.venture-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 16px 0 0; border-radius: 28px; background: rgba(255,255,255,.42); border: 1px solid rgba(28,26,22,.07); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); overflow: hidden; }
.venture-stat { padding: 30px 28px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.venture-stat-val { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1; }
.venture-stat-label { font-size: 13.5px; color: var(--taupe); margin-top: 10px; }
.venture-body { max-width: 760px; margin: 64px 0 0; font-size: 18px; line-height: 1.75; color: #3F392F; font-weight: 300; }
.venture-body p { margin: 0 0 1.5em; }
.venture-body strong { font-weight: 500; color: var(--ink); }
.venture-body h2, .venture-body h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.venture-body h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 0 0 .6em; }
.venture-body h3 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 .6em; }
.venture-body ul { padding-left: 1.3em; } .venture-body li { margin-bottom: .5em; }
.status-badge { display: inline-block; font-size: 13px; font-weight: 500; color: var(--bronze); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(184,151,42,.35); background: rgba(255,255,255,.4); margin-bottom: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0 32px; }
.stat-item { padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.5); border: 1px solid rgba(28,26,22,.07); }
.stat-num { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; color: var(--taupe); margin-top: 8px; }
.floor-map { margin: 8px 0 40px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(28,26,22,.07); background: rgba(255,255,255,.42); }
.floor-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.55; }
.floor-item:last-child { border-bottom: 0; }
.floor-level { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.floor-desc { color: #3F392F; font-weight: 300; }
.floor-desc strong { font-weight: 500; color: var(--ink); }
@media (max-width: 600px) { .floor-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.venture-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.venture-gallery figure { margin: 0; border-radius: 24px; overflow: hidden; }
.venture-gallery figure.full-width { grid-column: 1 / -1; }
.venture-gallery img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.venture-gallery figure.full-width img { aspect-ratio: auto; }
.venture-gallery figure:hover img { transform: scale(1.04); }
.venture-gallery figcaption { font-size: 13.5px; color: var(--taupe); padding: 10px 4px 0; }
@media (max-width: 640px) { .venture-gallery { grid-template-columns: minmax(0, 1fr); } }
.venture-cta { position: relative; margin: 96px 0 0; border-radius: 40px; overflow: hidden; padding: 72px 48px; text-align: center; background: linear-gradient(135deg, #F7EFDD 0%, #EEDFB8 35%, #D9BC6F 70%, #B8972A 100%); box-shadow: 0 50px 90px -50px rgba(122,95,20,.5); }
.venture-cta h3 { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); font-weight: 600; margin: 0 0 14px; letter-spacing: -0.015em; }
.venture-cta p { font-size: 18px; color: #5A4A1E; font-weight: 300; max-width: 560px; margin: 0 auto 32px; }
@media (max-width: 640px) { .venture-cta { padding: 56px 24px; border-radius: 28px; } }

/* 404 */
.error-wrap { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 160px 24px 80px; }
.error-code { font-family: var(--serif); font-size: clamp(80px, 14vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; background: linear-gradient(100deg, #6E5410 0%, #B8972A 45%, #D9B85C 70%, #8A6D1C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-title { font-size: clamp(28px, 4vw, 44px); margin-top: 16px; }
.error-desc { font-size: 18px; color: var(--taupe); font-weight: 300; max-width: 480px; margin: 18px 0 32px; line-height: 1.6; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 56px 0 48px; margin-top: 96px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--taupe); }
.foot .brand { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--taupe); padding: 6px 0; } .foot nav a:hover { color: var(--ink); }

/* Motion */
.rv { transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.rv.hid { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv.hid { opacity: 1 !important; transform: none !important; } }
