/* ============================================================
   Chinmoy Rajurkar — personal site
   Minimalist black-on-white, inspired by douglasbrion.com
   One shared stylesheet for every page in /personal.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f4f4f2;   /* page background (soft grey) */
  --card:    #ffffff;   /* content panels */
  --border:  #e5e5e1;   /* panel + rule borders */
  --line:    #ececea;   /* faint internal rules */
  --ink:     #262626;   /* headings / near-black */
  --body:    #4a4a4a;   /* body copy */
  --muted:   #9a9a96;   /* meta / captions */
  --link:    #2b2b2b;
  --maxw:    1160px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'PT Serif', Georgia, serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Anything in Montserrat = the "display" voice: nav, headings, labels */
.brand, .nav-links a, .page-title, .eyebrow, .profile-name,
.profile-email, .btn-outline, .card h3, .entry-title, .foot-legal,
.copyright, .skill-group h4, .job-role, .stat strong, .empty h3 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  height: 74px; gap: 24px;
}
.brand {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.nav-divider { width: 1px; height: 26px; background: var(--border); flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center;
  margin-left: auto; flex-wrap: nowrap; justify-content: flex-end;
}
.nav-links a {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 6px 12px; transition: color 0.15s;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.nav-links a:first-child { border-left: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }

/* Prominent CTA pill — stands out from the muted nav links */
.nav-links a.nav-cta {
  border-left: none;
  margin-left: 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}
.nav-links a.nav-cta:hover { background: #000; color: #fff; transform: translateY(-1px); }
.nav-links a.nav-cta.active { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--ink); line-height: 1;
}

@media (max-width: 1080px) {
  .nav-divider { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; width: 100%;
    flex-direction: column; align-items: stretch;
    order: 3; margin: 0; padding-bottom: 10px;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 16px 0; row-gap: 12px; }
  .nav-links a {
    border-left: none; border-top: 1px solid var(--line);
    padding: 12px 4px;
  }
  .nav-links a:first-child { border-top: none; }
  .nav-links a.nav-cta {
    border-top: none; margin: 10px 4px 0;
    text-align: center; padding: 13px 20px;
  }
}

/* ── PAGE / CARD ─────────────────────────────────────── */
main { padding: 44px 0 8px; }

/* ── HOME: two-column landing (profile left, welcome right) ── */
.home-grid { display: grid; grid-template-columns: 300px 1fr; gap: 52px; align-items: start; }
.home-side { text-align: center; position: sticky; top: 98px; }
.home-side .avatar { margin: 0 auto 22px; }
.home-side .profile-name { font-size: 21px; letter-spacing: 0.18em; margin-bottom: 10px; }
.home-side .profile-role {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.home-side .rule { margin: 26px auto; max-width: 100%; }
.home-side .profile-about { max-width: none; }
.home-side .profile-about p { font-size: 14px; }
.home-side .socials { margin-top: 24px; }
.home-main .card { margin-bottom: 28px; }
.home-main .card:last-child { margin-bottom: 0; }
.all-posts-link { margin-top: 20px; font-size: 14px; }
@media (max-width: 820px) {
  .home-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-side { position: static; padding: 8px 0 20px; }
  .home-side .profile-about { max-width: 560px; margin: 0 auto; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 56px 60px;
  margin-bottom: 44px;
}
@media (max-width: 640px) { .card { padding: 36px 26px; } }

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.page-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink);
  line-height: 1.15;
}
.page-sub {
  font-size: 15px; color: var(--muted);
  font-style: italic; margin-top: 12px;
}
.card-head { padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }

/* Body prose */
.prose p { margin-bottom: 20px; font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .inline-link {
  color: var(--link); text-decoration: none;
  border-bottom: 1px solid #cfcfca; transition: border-color 0.15s;
}
.prose a:hover, .inline-link:hover { border-color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }

/* ── ENTRY LIST (blog / projects / distractions) ─────── */
.entry {
  border: 1px solid var(--border); border-radius: 3px;
  padding: 26px 30px; margin-bottom: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.entry:last-child { margin-bottom: 0; }
.entry:hover { box-shadow: 0 6px 26px rgba(0,0,0,0.05); }
.entry-title {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 6px;
}
.entry-meta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  font-family: 'Montserrat', sans-serif; margin-bottom: 12px;
}
.entry p { font-size: 15px; color: var(--body); }
.entry .metrics {
  display: flex; flex-wrap: wrap; gap: 22px; margin: 16px 0 4px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.entry .metric strong {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em;
}
.entry .metric span { font-size: 12px; color: var(--muted); }

/* Empty / coming-soon state */
.empty { text-align: center; padding: 40px 20px; }
.empty h3 {
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.empty p { font-size: 15px; color: var(--muted); max-width: 460px; margin: 0 auto; }

/* ── RESUME BITS ─────────────────────────────────────── */
.res-section + .res-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.res-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
  text-align: center; margin-bottom: 30px;
}
.job { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 22px 0; }
.job + .job { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; gap: 8px; } }
.job-period { font-size: 12px; color: var(--muted); font-family: 'Montserrat', sans-serif; letter-spacing: 0.06em; }
.job-org { font-size: 12px; font-weight: 700; color: var(--ink); font-family: 'Montserrat', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.job-role { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; margin-bottom: 6px; }
.job-context { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 12px; }
.job ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.job li { font-size: 15px; padding-left: 18px; position: relative; }
.job li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }
.job li strong { color: var(--ink); font-weight: 700; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.skill-group { border: 1px solid var(--border); border-radius: 3px; padding: 20px 22px; }
.skill-group h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tag { font-family: 'Montserrat', sans-serif; font-size: 11.5px; font-weight: 500; color: var(--body); border: 1px solid var(--border); border-radius: 3px; padding: 4px 10px; }

.edu-list { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.edu-list li { font-size: 15px; }
.edu-list li strong { color: var(--ink); font-weight: 700; }

/* ── CONTACT ─────────────────────────────────────────── */
.contact-lines p { font-size: 17px; margin-bottom: 8px; }
.contact-lines a { color: var(--link); border-bottom: 1px solid #cfcfca; text-decoration: none; }
.contact-lines a:hover { border-color: var(--ink); }

/* ── PROFILE BLOCK (repeats on every page, à la Brion) ── */
.profile { text-align: center; padding: 52px 20px 20px; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%;
  margin: 0 auto 26px;
  background: #1f2937; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 40px; letter-spacing: 0.08em;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name {
  font-size: clamp(24px, 4vw, 30px); font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.profile-email {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.profile-email:hover { color: var(--ink); }
.rule { border: none; border-top: 1px solid var(--border); max-width: 1000px; margin: 34px auto; }
.profile-about { max-width: 720px; margin: 0 auto; }
.profile-about h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.profile-about p { font-size: 15px; color: var(--body); margin-bottom: 22px; }
.btn-outline {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--ink); border-radius: 2px;
  padding: 11px 22px; transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.socials { display: flex; gap: 20px; justify-content: center; margin-top: 34px; }
.socials a { color: var(--muted); transition: color 0.15s; display: inline-flex; }
.socials a:hover { color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer { padding: 30px 0 48px; text-align: center; }
.foot-legal { display: flex; gap: 14px; justify-content: center; margin-bottom: 10px; }
.foot-legal a { font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }
.copyright { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── BLOG: clickable list entries ─────────────────────── */
.entry-link { display: block; text-decoration: none; color: inherit; }
.entry-link:hover .entry-title { color: #000; }

/* ── BLOG POST (single article page) ─────────────────── */
.post { max-width: 760px; margin: 0 auto; }
.post .post-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.post-body { margin-top: 36px; }
.post-body p { font-size: 17px; margin-bottom: 22px; }
.post-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); margin: 40px 0 14px;
}
.post-body h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 30px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body li { font-size: 17px; margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--border); padding-left: 22px;
  margin: 0 0 22px; font-style: italic; color: var(--muted);
}
.post-body a { color: var(--link); border-bottom: 1px solid #cfcfca; text-decoration: none; }
.post-body a:hover { border-color: var(--ink); }
.post-body img { max-width: 100%; height: auto; border-radius: 3px; margin: 10px 0 22px; }
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px; background: #f2f2ef; padding: 2px 6px; border-radius: 3px;
}
.post-back {
  display: inline-block; margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.post-back:hover { color: var(--ink); }

/* ── ABOUT: career-arc narrative ─────────────────────── */
.narrative-head { margin-bottom: 8px; }
.big-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(30px, 5vw, 46px); font-weight: 800;
  letter-spacing: 0.01em; line-height: 1.05; color: var(--ink);
  margin-bottom: 18px;
}
.narrative-lead { font-size: 17px; color: var(--body); max-width: 720px; }
.narrative-lead strong { color: var(--ink); font-weight: 700; }

.arc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; margin-top: 44px; }
@media (max-width: 860px) { .arc { grid-template-columns: 1fr; gap: 40px; } }

/* Balanced single-column flow: story first, then calm sections */
.about-head { margin-bottom: 32px; }
.about-head .big-title { margin-bottom: 0; }
.about-lead { max-width: 760px; }
.about-section { margin-top: 46px; padding-top: 36px; border-top: 1px solid var(--line); }
.about-section .timeline { max-width: 760px; }
.stat-tiles.stat-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .stat-tiles.stat-row { grid-template-columns: repeat(2, 1fr); } }
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.domain-grid .entry.domain { margin-bottom: 0; }
.domain-grid .entry.domain.wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .domain-grid { grid-template-columns: 1fr; } }

.col-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}

/* timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:var(--border); }
.phase { position: relative; padding-bottom: 30px; }
.phase:last-child { padding-bottom: 0; }
.phase::before {
  content:''; position:absolute; left:-25px; top:4px;
  width:11px; height:11px; border-radius:50%;
  background:var(--card); border:2px solid var(--ink);
}
.phase.current::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(38,38,38,0.08); }
.phase-label {
  font-family:'Montserrat',sans-serif; font-size:10.5px; font-weight:700;
  letter-spacing:0.13em; text-transform:uppercase; color:var(--muted); margin-bottom:6px;
}
.phase-title {
  font-family:'Montserrat',sans-serif; font-size:19px; font-weight:800;
  color:var(--ink); letter-spacing:0.01em; margin-bottom:8px; line-height:1.2;
}
.phase p { font-size:14.5px; color:var(--body); line-height:1.7; }
.phase p strong { color: var(--ink); font-weight:700; }

/* sidebar */
.side-block + .side-block { margin-top: 36px; }
.role-card { border:1px solid var(--border); border-radius:3px; padding:22px 24px; background:var(--card); }
.role-title { font-family:'Montserrat',sans-serif; font-size:16px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.role-meta { font-size:13px; color:var(--muted); }

.stat-tiles { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.stat-tile { border:1px solid var(--border); border-radius:3px; padding:18px 20px; }
.stat-tile strong {
  display:block; font-family:'Montserrat',sans-serif; font-size:30px; font-weight:800;
  color:var(--ink); line-height:1; letter-spacing:-0.02em; margin-bottom:9px;
}
.stat-tile span { font-size:12px; color:var(--muted); line-height:1.4; display:block; }

/* domain cards (reuse .entry) */
.entry.domain { padding:20px 22px; }
.entry.domain:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.05); }
.entry.domain .entry-meta { margin-bottom:10px; }
.entry.domain p { font-size:14px; }

.narrative-foot { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
