/* ============================================================
   Monil Sanghavi — personal site
   Editorial-finance revamp: ink navy · warm paper · bronze accent.
   Sharp corners (zero radius), one consistent type system.
   Display: Fraunces (serif) · Body: Inter (sans)
   ============================================================ */

:root {
  /* ink + neutrals */
  --ink:        #16222C;
  --ink-2:      #1E2E3A;
  --ink-3:      #294050;
  --paper:      #F5F3EE;
  --paper-2:    #ECE9E2;
  --surface:    #FFFFFF;
  --line:       #DCD8CE;
  --line-2:     #C9C4B7;

  --body:       #3C4650;
  --muted:      #79828B;
  --faint:      #A6ACB2;

  --accent:     #9B6B39;
  --accent-dk:  #7E552B;
  --accent-soft:#EFE6DA;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 68px);
  --shadow: 0 20px 44px -30px rgba(22,34,44,.42);
  --shadow-sm: 0 10px 26px -22px rgba(22,34,44,.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--body);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 460; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--ink); font-optical-sizing: auto;
}
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; }

/* Elegant, professional ampersand (avoids the display font's stylized glyph) */
.amp { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad);
}
.brand { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 34px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 14px; letter-spacing: .01em; color: var(--body); position: relative;
  padding: 4px 0; transition: color .2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 22px; color: var(--ink); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 380px; }
  .nav-links a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* ============================================================
   Buttons — sharp, rectangular
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  padding: 13px 26px; border-radius: 0;
  border: 1px solid transparent; transition: all .2s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

/* ============================================================
   HERO (ink band)
   ============================================================ */
.hero-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 560px at 84% -12%, rgba(155,107,57,.24), transparent 60%),
    linear-gradient(162deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #E7EAEC;
}
.hero-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(circle at 50% 42%, #000, transparent 82%);
  pointer-events: none;
}
.hero { position: relative; padding: clamp(66px, 9vw, 118px) 0 clamp(58px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(38px, 6vw, 78px); align-items: center; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(48px, 8vw, 84px); margin: 18px 0 0; color: #fff; font-weight: 420; }
.hero .lede {
  font-size: clamp(18px, 2.3vw, 22px); color: #D9C4AB; font-family: var(--font-display);
  font-style: italic; font-weight: 400; margin-top: 14px;
}
.hero p.intro { color: #C3CBD1; font-size: 17.5px; max-width: 60ch; margin-top: 24px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.portrait {
  aspect-ratio: 4/5; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,.18);
}
.portrait::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 58px; height: 58px;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; order: -1; }
}

/* ============================================================
   Sections
   ============================================================ */
section { padding: clamp(54px, 7vw, 94px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 46px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--body); margin-top: 14px; font-size: 18px; }
.section-head .eyebrow { position: relative; padding-bottom: 14px; display: inline-block; }
.section-head .eyebrow::after { content:''; position:absolute; left:0; bottom:0; width:34px; height:2px; background: var(--accent); }

.prose p { color: var(--body); max-width: 66ch; margin-bottom: 18px; font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Cards (sharp) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--line); }
.card {
  background: var(--surface); padding: 32px 30px; position: relative;
  transition: background .2s ease; outline: 1px solid transparent;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); transition: width .28s ease; }
.card:hover::before { width: 100%; }
.card:hover { background: #fff; }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--ink); }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.card .num { font-family: var(--font-display); color: var(--accent); font-size: 15px; display: block; margin-bottom: 16px; }

/* ---------- Link cards ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.link-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  padding: 34px 32px; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.link-card .eyebrow { font-size: 11px; }
.link-card h3 { margin: 12px 0; }
.link-card p { color: var(--muted); font-size: 15px; }
.link-card .arrow { color: var(--accent); font-weight: 700; margin-top: 18px; display: inline-block; transition: transform .2s ease; }
.link-card:hover .arrow { transform: translateX(5px); }

/* ============================================================
   Timeline (sharp square nodes)
   ============================================================ */
.timeline { border-left: 1px solid var(--line-2); margin-left: 5px; }
.job { position: relative; padding: 0 0 52px 42px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ''; position: absolute; left: -7px; top: 8px; width: 13px; height: 13px;
  background: var(--accent); border: 0;
}
.job .when { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.job h3 { margin: 8px 0 6px; font-size: 25px; font-weight: 460; }
.job .org { color: var(--body); font-weight: 500; font-size: 14.5px; letter-spacing: 0; }
.job .org .co { color: var(--accent); font-weight: 700; }
.job .lead { color: var(--ink); font-weight: 500; margin-top: 16px; font-size: 16.5px; max-width: 74ch; }

/* Select transaction experience block */
.ste-label { font-weight: 700; color: var(--muted); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; margin: 26px 0 2px; }
.ste { border-top: 1px solid var(--line); margin-top: 12px; }
.ste-row {
  display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 12px 34px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ste-row .cat { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.ste-row .sectors { color: var(--muted); font-size: 13px; margin-top: 4px; }
.ste-row .work { display: flex; flex-wrap: wrap; gap: 6px; align-self: center; }
.ste-row .work .pill {
  font-size: 12.5px; line-height: 1.35; color: var(--muted);
  background: rgba(22,34,44,.022); border: 1px solid rgba(22,34,44,.075); padding: 5px 10px;
}
@media (max-width: 620px) {
  .ste-row { grid-template-columns: 1fr; gap: 6px; }
  .ste-row .work { align-self: start; }
}

/* ============================================================
   Education (timeline variant) + skills + beyond
   ============================================================ */
.job.edu h3 { font-size: 22px; }
.job.edu .degree { color: var(--ink); font-weight: 600; margin-top: 10px; font-size: 15.5px; }
.job.edu .detail { color: var(--body); font-size: 14.5px; margin-top: 6px; max-width: 74ch; }

.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--line); }
.skill-col { background: var(--surface); padding: 30px 32px; }
.skill-col h3 { font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.skill-col .items { margin-top: 6px; }
.skill-col .item { color: var(--body); font-size: 14.5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.skill-col .item:last-child { border-bottom: 0; }
.skill-col .item .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* Beyond the desk — two columns */
.beyond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--line); }
.beyond-col { background: var(--surface); padding: 30px 32px; }
.beyond-col h3 { font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.vol-list { display: grid; gap: 0; margin-top: 4px; }
.vol { border-bottom: 1px solid var(--line); padding: 12px 0 12px 16px; position: relative; }
.vol:last-child { border-bottom: 0; }
.vol::before { content:''; position:absolute; left:0; top:18px; width:7px; height:7px; background: var(--accent); }
.vol .role { font-weight: 600; color: var(--ink); }
.vol .org { color: var(--muted); }
.interest-list { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.interest-list .item { color: var(--body); font-size: 14px; }
.interest-list .item:not(:last-child)::after { content: '·'; color: var(--line-2); margin-left: 10px; }
@media (max-width: 640px) { .beyond-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Featured / brief / podcast (Deep Dives page)
   ============================================================ */
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 44px; box-shadow: var(--shadow); transition: transform .2s ease;
}
.featured:hover { transform: translateY(-3px); }
.featured .meta { padding: clamp(30px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured .visual {
  position: relative; overflow: hidden; color: #E7EAEC; text-align: left;
  padding: clamp(30px,4vw,48px); display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(600px 400px at 90% 0%, rgba(155,107,57,.30), transparent 60%),
              linear-gradient(155deg, var(--ink), var(--ink-2));
}
.featured .visual .eyebrow { color: var(--accent); }
.featured .visual .issue-no { font-family: var(--font-display); font-size: clamp(34px, 5vw, 56px); color: #fff; line-height: 1; display: block; font-weight: 420; }
.featured .visual .issue-date { color: #D9C4AB; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-top: 12px; display: block; }
.featured .visual::after { content: ''; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.08); right: -100px; bottom: -130px; }
.featured h3 { font-size: 28px; margin: 12px 0 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink); background: var(--accent-soft); padding: 5px 11px; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured .visual { order: -1; } }

.pod-embed { background: var(--surface); border: 1px solid var(--line); padding: 16px; box-shadow: var(--shadow-sm); }
.pod-embed iframe { display: block; border: 0; width: 100%; }
.pod-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.ta-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
  background: radial-gradient(560px 300px at 90% 0%, rgba(155,107,57,.26), transparent 60%),
              linear-gradient(155deg, var(--ink), var(--ink-2));
  padding: 26px 30px; margin-bottom: 44px;
}
.ta-cta p { color: #C3CBD1; font-size: 16px; max-width: 48ch; }
.ta-cta p strong { color: #fff; }

.dd-card {
  display: grid; grid-template-columns: 0.8fr 1.2fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.dd-card:hover { transform: translateY(-3px); }
.dd-card .side {
  color: #E7EAEC; padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(500px 320px at 15% 110%, rgba(155,107,57,.32), transparent 60%),
              linear-gradient(150deg, var(--ink-2), var(--ink));
  position: relative;
}
.dd-card .side .kicker { font-size: 11px; letter-spacing:.2em; text-transform:uppercase; color: var(--accent); font-weight: 700; }
.dd-card .side .big { font-family: var(--font-display); font-size: clamp(26px,3.4vw,40px); color:#fff; margin-top: 12px; line-height: 1.08; font-weight: 420; }
.dd-card .body { padding: clamp(28px,4vw,44px); display:flex; flex-direction:column; justify-content:center; }
.dd-card .body p { color: var(--body); font-size: 16px; max-width: 52ch; }
.dd-card .body .btn { margin-top: 22px; align-self: flex-start; }
@media (max-width: 760px){ .dd-card { grid-template-columns: 1fr; } }

/* ============================================================
   Contact — colorful brand-icon buttons (single line)
   ============================================================ */
.contact-box { text-align: center; max-width: 680px; margin: 0 auto; }
.contact-box h2 { margin: 14px 0 16px; }
.contact-box p { color: var(--body); font-size: 19px; }
.contact-social { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ci:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.ci svg { width: 26px; height: 26px; display: block; }

/* ============================================================
   Masthead (Deep Dives / Target Acquired)
   ============================================================ */
.masthead {
  text-align: center; background: var(--paper);
  padding: clamp(48px, 7vw, 84px) var(--pad) clamp(34px, 5vw, 52px);
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.masthead::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 50% -40%, rgba(155,107,57,.08), transparent 70%);
  pointer-events: none;
}
.masthead .inner { position: relative; max-width: 780px; margin: 0 auto; }
.masthead .wordmark {
  font-family: var(--font-display); font-weight: 460; color: var(--ink);
  font-size: clamp(42px, 8.5vw, 84px); line-height: 1; letter-spacing: -0.02em; margin: 6px 0 8px;
}
.masthead .wordmark-sub {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  color: var(--ink); font-size: clamp(12px, 1.9vw, 16px); margin-bottom: 18px;
}
.masthead .rule { width: min(540px, 84%); margin: 18px auto 0; border: 0; border-top: 3px double var(--accent); }
.masthead .issue-line {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 20px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted);
}

.about-author { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.about-author .mono {
  flex: none; width: 76px; height: 76px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--ink-2), var(--ink)); color: var(--accent);
  font-family: var(--font-display); font-size: 30px; border: 1px solid rgba(255,255,255,.08);
}
.about-author .bio { flex: 1; min-width: 260px; }
.about-author .bio h3 { font-size: 22px; }
.about-author .bio p { color: var(--body); margin-top: 8px; max-width: 62ch; }
.about-author .bio .more { color: var(--accent); font-weight: 700; margin-top: 12px; display: inline-block; }
.about-author .bio .more:hover { color: var(--accent-dk); }

/* ============================================================
   Footer (ink)
   ============================================================ */
.site-footer { background: var(--ink); color: #B9C1C7; padding: 50px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-inner .brand { color: #fff; font-size: 19px; }
.footer-inner .brand span { color: var(--accent); }
.footer-links { display: flex; gap: 26px; list-style: none; }
.footer-links a { color: #93A0A9; font-size: 13.5px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.copyright { color: #6A7883; font-size: 13px; width: 100%; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 4px; }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s ease forwards; }
.reveal:nth-child(2){animation-delay:.07s} .reveal:nth-child(3){animation-delay:.14s}
.reveal:nth-child(4){animation-delay:.21s} .reveal:nth-child(5){animation-delay:.28s}
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal.is-in { opacity: 1 !important; transform: none !important; animation: none; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }
