/* Nishant Sharma — personal site. Editorial layout: serif headlines, generous white space, story cards. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --navy: #1f1e1c;
  --navy-2: #3a3832;
  --gold: #c9a24a;
  --gold-soft: #f3e9d2;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #1d1f22;
  --muted: #5d6470;
  --line: #e6e0d4;
  --teal: #1f6f6b;
  --coral: #d9694f;
  --max: 1180px;
  --read: 700px;
  --serif: 'Poppins', 'Segoe UI', Arial, sans-serif; /* headings also use Poppins (user choice) */
  --sans: 'Poppins', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 17px;
}
img.mark { padding: 0; object-fit: cover; border: 2px solid var(--gold); background: var(--cream); }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--navy); }
.brand .name span { color: var(--gold); }
nav.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
nav.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a.active { border-bottom-color: var(--gold); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 9px 18px !important; border-radius: 999px; border: 0 !important; }
.nav-cta:hover { background: var(--navy-2); }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--navy); cursor: pointer; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 16px; font-weight: 600; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 24px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: inline-block; }
.lede { font-size: 20px; color: var(--muted); max-width: 640px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.paper { background: var(--paper); }
.section.navy { background: var(--navy); color: #f1efe8; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.link-arrow:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Home hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 64px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #4a473f 100%);
  box-shadow: 0 30px 60px -30px rgba(20, 36, 58, .55);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .monogram {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 120px; color: var(--gold); font-weight: 600;
}
.portrait .tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(255,255,255,.95); border-radius: 16px; padding: 14px 18px;
  font-size: 14px; color: var(--navy); line-height: 1.45;
}
.portrait .tag b { display: block; font-family: var(--serif); font-size: 18px; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 44px; color: var(--navy); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- Featured story ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px -35px rgba(20,36,58,.4); text-decoration: none; }
.feature .art { min-height: 420px; }
.feature .body { padding: 54px 50px; display: flex; flex-direction: column; justify-content: center; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); }
.feature p { color: var(--muted); }
.feature:hover h3 { color: var(--navy-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* ---------- Cover art (CSS + SVG, no stock images) ---------- */
.art { position: relative; overflow: hidden; display: grid; place-items: center; }
.art svg { width: 78%; max-width: 380px; height: auto; }
.art.a1 { background: #efece4; }
.art.a2 { background: var(--gold-soft); }
.art.a3 { background: #e4f0ee; }
.art.a4 { background: #f7e4dd; }
.art.a5 { background: #efe6da; }
.art.a6 { background: #eef1e4; }

/* ---------- Post cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.card { background: var(--paper); border-radius: 22px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 10px 30px -24px rgba(20,36,58,.45); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(20,36,58,.5); }
.card .art { aspect-ratio: 16 / 10; }
.card .art svg { width: 62%; }
.card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.card .meta b { color: var(--gold); font-weight: 600; letter-spacing: .8px; text-transform: uppercase; font-size: 12px; }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.card .more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--navy); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { padding: 34px 30px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.pillar .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 700; margin-bottom: 20px; font-family: var(--serif); font-size: 20px; }
.pillar p { color: #cfcac0; font-size: 15.5px; margin: 0; }

/* ---------- Quote band ---------- */
.quote { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; color: var(--navy); max-width: 900px; margin: 0 auto; text-align: center; }
.quote::before { content: "\201C"; display: block; font-size: 90px; color: var(--gold); line-height: .6; margin-bottom: 18px; }
.quote-by { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---------- About page ---------- */
.about-hero { padding: 80px 0 40px; }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.prose p { margin: 0 0 20px; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 38px 34px; border-left: 2px solid var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); }
.timeline .when { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .8px; text-transform: uppercase; }
.timeline h3 { font-size: 22px; margin: 4px 0 2px; }
.timeline .org { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.timeline p { margin: 0; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.builds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.build { background: var(--paper); border-radius: 20px; padding: 30px; border-top: 4px solid var(--gold); }
.build h3 { font-size: 21px; }
.build p { margin: 0; color: var(--muted); font-size: 15.5px; }
.build .stack { margin-top: 14px; font-size: 13px; color: var(--teal); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-box { background: var(--navy); color: #f1efe8; border-radius: 30px; padding: 64px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.contact-box h2 { color: #fff; }
.contact-box p { color: #cfcac0; }
.contact-links a { display: block; color: #fff; text-decoration: none; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-weight: 500; }
.contact-links a span { display: block; font-size: 12px; color: var(--gold); letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600; }
.contact-links a:hover { color: var(--gold); }

/* ---------- Blog index ---------- */
.blog-hero { padding: 80px 0 30px; text-align: center; }
.blog-hero .lede { margin: 0 auto; }
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 30px 0 50px; }
.filters button { font-family: var(--sans); border: 1px solid var(--line); background: var(--paper); padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--navy); }
.filters button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Article ---------- */
.article-hero { padding: 70px 0 0; text-align: center; }
.article-hero .meta { color: var(--muted); font-size: 15px; margin-top: 8px; }
.article-hero h1 { max-width: 920px; margin: 10px auto 18px; font-size: clamp(34px, 4.8vw, 58px); }
.article-hero .lede { margin: 0 auto; }
.article-cover { max-width: 980px; margin: 50px auto 0; border-radius: 28px; overflow: hidden; }
.article-cover .art { aspect-ratio: 21 / 9; }
.article-cover .art svg { width: 38%; }
.article-body { max-width: var(--read); margin: 0 auto; padding: 60px 24px 30px; font-size: 18px; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { font-size: 32px; margin: 48px 0 18px; }
.article-body h3 { font-size: 24px; margin: 34px 0 12px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 24px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--navy); }
.article-body blockquote { margin: 36px 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 25px; line-height: 1.4; color: var(--navy); }
.callout { background: var(--paper); border-radius: 18px; padding: 26px 28px; margin: 34px 0; border: 1px solid var(--line); }
.callout h4 { font-size: 19px; margin-bottom: 10px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.dropcap::first-letter { font-family: var(--serif); float: left; font-size: 74px; line-height: .85; padding: 8px 12px 0 0; color: var(--gold); font-weight: 600; }
.author-box { max-width: var(--read); margin: 20px auto 0; padding: 30px 24px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: center; }
.author-box .mark { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.author-box .author-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
.author-box b { color: var(--navy); font-family: var(--serif); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #1f1e1c; color: #a8a398; padding: 0 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,74,.16), transparent 65%); pointer-events: none; }
.foot-cta { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 80px 0 56px; border-bottom: 1px solid #34322d; margin-bottom: 52px; }
.foot-kicker { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.foot-cta h2 { color: #f1efe8; font-size: clamp(28px, 3.6vw, 46px); font-weight: 600; margin: 10px 0 10px; max-width: 640px; letter-spacing: -0.5px; }
.foot-cta p { margin: 0; font-size: 17px; color: #bdb8ad; }
.site-footer a.foot-mail { display: inline-flex; flex-direction: column; gap: 6px; background: none; color: #fff; padding: 0; font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -0.5px; margin: 0; }
.site-footer a.foot-mail span { font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.site-footer a.foot-mail b { display: inline-block; color: var(--gold); transition: transform .2s; }
.site-footer a.foot-mail em { border-bottom: 2px solid transparent; padding-bottom: 4px; transition: border-color .2s; }
.site-footer a.foot-mail:hover { color: #fff; }
.site-footer a.foot-mail:hover em { border-bottom-color: var(--gold); }
.site-footer a.foot-mail:hover b { transform: translateX(4px); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr 0.9fr; gap: 40px; }
.foot-brand p { margin: 16px 0 18px; max-width: 360px; font-size: 15px; line-height: 1.65; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: #e9e6dd; border: 1px solid #403f3a; border-radius: 999px; padding: 7px 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #5fbf8f; box-shadow: 0 0 0 0 rgba(95,191,143,.6); animation: status-ping 2s infinite; }
@keyframes status-ping { 70% { box-shadow: 0 0 0 8px rgba(95,191,143,0); } 100% { box-shadow: 0 0 0 0 rgba(95,191,143,0); } }
.site-footer h4 { color: #f1efe8; font-family: var(--sans); font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #cfcac0; text-decoration: none; display: block; margin-bottom: 10px; font-size: 15px; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand .name { color: #fff; }
.site-footer .small { position: relative; font-size: 13px; margin-top: 52px; padding-top: 22px; border-top: 1px solid #34322d; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-footer .small a.to-top { display: inline; margin: 0; font-size: 13px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col, .feature, .contact-box { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .cards, .pillars { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature .art { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-box { padding: 44px 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .cards, .pillars, .builds { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  nav.main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  nav.main-nav li a { display: block; padding: 12px 0; }
  .nav-cta { display: inline-block !important; margin-top: 8px; }
  .feature .body { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
  .article-cover { border-radius: 0; }
}

/* ---------- Animated infographics (cover art) ---------- */
.art svg.ig { width: 90%; max-width: 460px; max-height: 92%; }
.ig .ig-dash { stroke-dasharray: 5 6; animation: ig-dash 1.4s linear infinite; }
.ig .ig-pulse, .ig .ig-pop, .ig .ig-float, .ig .ig-grow, .ig .ig-step, .ig .ig-ring, .ig .ig-spin-slow, .ig .ig-smoke, .ig .ig-move { transform-box: fill-box; transform-origin: center; }
.ig .ig-pulse { animation: ig-pulse 2.6s ease-in-out infinite; }
.ig .ig-pop { animation: ig-pop 3.2s ease-in-out infinite; }
.ig .ig-float { animation: ig-float 4s ease-in-out infinite; }
.ig .d2 { animation-delay: .4s; } .ig .d3 { animation-delay: .8s; } .ig .d4 { animation-delay: 1.2s; } .ig .d5 { animation-delay: 1.6s; }
.ig .ig-grow { transform-origin: bottom; animation: ig-grow 6s cubic-bezier(.2,.8,.2,1) infinite; }
.ig .ig-grow.d2 { animation-delay: .12s; } .ig .ig-grow.d3 { animation-delay: .24s; } .ig .ig-grow.d4 { animation-delay: .36s; } .ig .ig-grow.d5 { animation-delay: .48s; }
.ig .ig-draw { stroke-dasharray: 200; animation: ig-draw 6s ease-in-out infinite; }
.ig .ig-orbit { transform-origin: 200px 150px; animation: ig-spin 8s linear infinite; }
.ig .ig-spin-slow { animation: ig-spin 9s linear infinite; }
.ig .ig-step { animation: ig-step 8s ease-in-out infinite; }
.ig .ig-step.s2 { animation-delay: 2s; } .ig .ig-step.s3 { animation-delay: 4s; } .ig .ig-step.s4 { animation-delay: 6s; }
.ig .ig-ring { animation: ig-ring 2.6s ease-in-out infinite; }
.ig .ig-smoke { animation: ig-smoke 3s ease-in-out infinite; }
.ig .ig-progress { stroke-dasharray: 280; animation: ig-progress 6s ease-in-out infinite; }
.ig .ig-move { animation: ig-move 5s ease-in-out infinite; }
.ig .ig-line { opacity: 0; animation: ig-line 6s steps(1) infinite; }
.ig .ig-line.l2 { animation-name: ig-line2; } .ig .ig-line.l3 { animation-name: ig-line3; }
@keyframes ig-dash { to { stroke-dashoffset: -22; } }
@keyframes ig-pulse { 50% { transform: scale(1.05); } }
@keyframes ig-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.18); } }
@keyframes ig-float { 50% { transform: translateY(-4px); } }
@keyframes ig-grow { 0% { transform: scaleY(0); } 18%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes ig-draw { 0% { stroke-dashoffset: 200; } 30%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 200; } }
@keyframes ig-spin { to { transform: rotate(360deg); } }
@keyframes ig-step { 0%, 20%, 100% { transform: scale(1); } 8% { transform: scale(1.12); } }
@keyframes ig-ring { 50% { transform: scale(1.06); opacity: .85; } }
@keyframes ig-smoke { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes ig-progress { 0% { stroke-dashoffset: 280; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 280; } }
@keyframes ig-move { 0%, 25% { transform: translateX(0); } 45%, 80% { transform: translateX(72px); } 100% { transform: translateX(0); } }
@keyframes ig-line { 0% { opacity: 0; } 15%, 95% { opacity: 1; } }
@keyframes ig-line2 { 0% { opacity: 0; } 35%, 95% { opacity: 1; } }
@keyframes ig-line3 { 0% { opacity: 0; } 55%, 95% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ig * { animation: none !important; }
  .ig .ig-line { opacity: 1; }
  .ig .ig-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .status i { animation: none; } }
.site-footer a.foot-mail em { font-style: normal; white-space: nowrap; }
.site-footer a.brand { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
