/* ============================================================
   palashmukherjee.org — Global Stylesheet
   Visual system: Deep navy · Electric blue · Warm gold · Warm ivory
   Typography: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* --- TOKENS --- */
:root {
  --navy:       #0A1628;
  --navy-light: #112040;
  --black:      #060E1C;
  --blue:       #2563EB;
  --linkedin:   #0A66C2;
  --gold:       #C9963B;
  --ivory:      #F8F6F0;
  --ivory-alt:  #F0EDE5;
  --silver:     #94A3B8;
  --radius:     6px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--ivory); color: var(--navy); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* --- UTILITY --- */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: var(--navy);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201,150,59,0.12);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--silver);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ivory); }
.nav-link.email { font-size: 12px; }

.nav-divider {
  color: rgba(148,163,184,0.25);
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
}

/* LinkedIn IN button — nav */
.nav-in-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--navy-light);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background 0.2s, transform 0.2s;
}
.nav-in-btn:hover {
  background: var(--linkedin);
  transform: scale(1.12);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  padding: 80px 48px 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 960px;
}

.hero-text { flex: 1; }

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-mcips {
  font-size: 12px;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 7px;
}

.hero-rule {
  width: 40px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
  margin: 22px 0;
}

.hero-identity {
  font-size: 20px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.55;
  max-width: 520px;
}
.hero-identity em {
  font-style: normal;
  color: var(--gold);
  font-weight: 400;
}

.hero-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  max-width: 460px;
  font-style: italic;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(201,150,59,0.25);
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(248,246,240,0.2);
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: rgba(248,246,240,0.5); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--ivory);
  padding: 72px 48px;
}

.about-inner { max-width: 720px; }

.about-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--navy);
}
.about-text p + p { margin-top: 18px; }

/* ============================================================
   MENTORING
   ============================================================ */
.mentoring {
  background: var(--ivory);
  padding: 48px 48px 72px;
  border-top: 1px solid rgba(10,22,40,0.06);
}

.mentoring-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
}

.mentoring-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--navy);
  margin-top: 16px;
}

.org-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.org-card {
  background: var(--ivory-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
}

.org-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.org-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.org-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  margin-top: 8px;
  line-height: 1.6;
}

/* ============================================================
   WRITING
   ============================================================ */
.writing {
  background: var(--ivory-alt);
  padding: 72px 48px;
}

.writing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.writing-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  transition: opacity 0.2s;
}
.writing-all:hover { opacity: 0.75; }

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.writing-card {
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(10,22,40,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.writing-card:hover { box-shadow: 0 4px 20px rgba(10,22,40,0.08); }

.writing-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.writing-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  flex: 1;
}

.writing-teaser {
  font-size: 12px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.65;
  margin-top: 10px;
}

.writing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(10,22,40,0.06);
}

.writing-date { font-size: 11px; color: var(--silver); }

.writing-read {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  transition: opacity 0.2s;
}
.writing-read:hover { opacity: 0.75; }

/* ============================================================
   S2P HONEST CHECK
   ============================================================ */
.honest {
  background: var(--navy);
  padding: 72px 48px;
}

.honest-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.8;
  max-width: 600px;
}
.honest-intro em {
  font-style: normal;
  color: var(--ivory);
}

.honest-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--ivory);
  margin-top: 20px;
  line-height: 1.25;
}

.honest-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
  margin-top: 10px;
  max-width: 500px;
  line-height: 1.65;
}

.honest-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
}

.form-group { display: flex; flex-direction: column; }

.form-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

.honest-select {
  background: var(--navy-light);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--ivory);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 12px 16px;
  border-radius: var(--radius);
  appearance: none;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s;
}
.honest-select:focus {
  outline: none;
  border-color: var(--gold);
}

.honest-btn {
  margin-top: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.honest-btn:hover { opacity: 0.88; }

.honest-output {
  margin-top: 24px;
  background: var(--navy-light);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  max-width: 640px;
  display: none;
}
.honest-output.visible { display: block; }

.output-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.output-honest-read {
  font-size: 15px;
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.75;
  margin-bottom: 16px;
}

.output-section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  margin-top: 14px;
}

.output-means {
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
  font-style: italic;
}

.output-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.output-action {
  font-size: 13px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.output-action::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============================================================
   FLOW BRIDGE
   ============================================================ */
.bridge {
  background: var(--ivory);
  padding: 52px 48px;
  text-align: center;
}

.bridge-text {
  font-size: 17px;
  font-weight: 300;
  color: var(--silver);
  font-style: italic;
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--navy);
  padding: 72px 48px 80px;
  text-align: center;
}

.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 12px;
}

.contact-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.75;
  max-width: 440px;
  margin: 0 auto 36px;
}

.contact-email {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,150,59,0.3);
  padding-bottom: 4px;
  transition: border-color 0.2s;
}
.contact-email:hover { border-color: var(--gold); }

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.contact-in-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-light);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}
.contact-in-btn:hover {
  background: var(--linkedin);
  transform: scale(1.04);
}
.contact-in-icon { font-weight: 700; font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy { font-size: 11px; color: rgba(148,163,184,0.4); }

.footer-privacy {
  font-size: 11px;
  color: rgba(148,163,184,0.4);
  transition: color 0.2s;
}
.footer-privacy:hover { color: var(--silver); }

/* ============================================================
   ARTICLE PAGES — shared styles
   ============================================================ */
.article-hero {
  background: var(--navy);
  padding: 64px 48px 56px;
}

.article-back {
  font-size: 13px;
  color: var(--silver);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.article-back:hover { color: var(--ivory); }

.article-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1.2;
  max-width: 720px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.article-meta span {
  font-size: 12px;
  color: var(--silver);
}

.article-meta span + span::before {
  content: '·';
  margin-right: 20px;
  color: rgba(148,163,184,0.4);
}

.article-body {
  background: var(--ivory);
  padding: 56px 48px 72px;
  max-width: 760px;
}

.article-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--navy);
  margin-bottom: 22px;
}

.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 18px;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 14px;
}

.article-body strong {
  font-weight: 500;
  color: var(--navy);
}

.article-pullquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
}

.article-diagram {
  margin: 36px 0;
  background: var(--ivory-alt);
  border-radius: var(--radius);
  padding: 32px;
}

.article-series-note {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(10,22,40,0.08);
  font-size: 14px;
  font-weight: 300;
  color: var(--silver);
  font-style: italic;
  line-height: 1.7;
}

.article-author {
  background: var(--ivory-alt);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 760px;
}

.author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.author-bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  margin-top: 3px;
}

.author-linkedin {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  margin-top: 5px;
  display: inline-block;
}

/* ============================================================
   WRITING INDEX PAGE
   ============================================================ */
.writing-index-hero {
  background: var(--navy);
  padding: 64px 48px 56px;
}

.writing-index-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ivory);
  margin-top: 12px;
}

.writing-index-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--silver);
  margin-top: 12px;
  max-width: 500px;
  line-height: 1.65;
}

.writing-index-body {
  background: var(--ivory);
  padding: 56px 48px 80px;
}

.writing-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
}

.writing-card-coming {
  background: transparent;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px dashed rgba(10,22,40,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.coming-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 8px;
}

.coming-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: rgba(10,22,40,0.35);
  line-height: 1.4;
  font-style: italic;
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-body {
  background: var(--ivory);
  padding: 56px 48px 80px;
  max-width: 680px;
}

.privacy-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 32px;
  margin-bottom: 10px;
}

.privacy-body p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--navy);
  margin-bottom: 16px;
}

/* ============================================================
   RESPONSIVE — basic mobile adjustments
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-link.email { display: none; }
  .nav-divider:nth-child(5) { display: none; }

  .hero { padding: 48px 20px 56px; }
  .hero-inner { flex-direction: column-reverse; gap: 32px; }
  .hero-name { font-size: 36px; }
  .hero-photo { width: 120px; height: 120px; }

  .about { padding: 48px 20px; }
  .mentoring { padding: 40px 20px 56px; }
  .mentoring-inner { grid-template-columns: 1fr; gap: 32px; }

  .writing { padding: 48px 20px; }
  .writing-grid { grid-template-columns: 1fr; }

  .honest { padding: 48px 20px; }
  .honest-form { grid-template-columns: 1fr; }

  .bridge { padding: 36px 20px; }
  .contact { padding: 56px 20px 64px; }
  .footer { padding: 16px 20px; }

  .article-hero { padding: 40px 20px 40px; }
  .article-body { padding: 40px 20px 56px; }
  .article-title { font-size: 28px; }
  .article-author { padding: 24px 20px; }

  .writing-index-hero { padding: 40px 20px 40px; }
  .writing-index-body { padding: 40px 20px 56px; }
  .writing-index-grid { grid-template-columns: 1fr; }

  .privacy-body { padding: 40px 20px 56px; }
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.article-share {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(10,22,40,0.08);
}

.share-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.share-li {
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid rgba(10,22,40,0.15);
}

.share-x {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}

.share-icon {
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   WRITING INDEX — 2-ROW GRID
   ============================================================ */
.writing-index-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  margin-top: 40px;
  display: block;
}
.writing-index-section-label:first-child { margin-top: 0; }
