/* ═══════════════════════════════════════════════════════════
   SRUTHI KHANNA — TPM CASE STUDY (LIGHT EDITORIAL THEME)
   Inspired by louiearthur.com layout philosophy
   Colors: warm off-white bg, deep forest green accent, charcoal text
   Fonts: Instrument Serif (headings) + DM Sans (body)
═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --bg:           #F6F4F0;        /* warm off-white — Louie-inspired */
  --bg-alt:       #EEEAE3;        /* slightly warmer for sidebar, footer band */
  --bg-cta:       #2D5016;        /* deep forest green CTA band */
  --text-primary: #1A1916;        /* near-black, warm not cold */
  --text-body:    #3D3A34;        /* body text, slightly lifted */
  --text-muted:   #7A7570;        /* labels, captions */
  --accent-green: #3A7219;        /* forest green — links, pills, active states */
  --accent-green-light: #EAF3E2;  /* very light green for pills bg, callouts */
  --accent-green-mid:   #C8E0B4;  /* green dividers, borders */
  --rule:         #DDD8CF;        /* dividers — warm light gray */
  --nav-bg:       rgba(246,244,240,0.92);

  /* Typography */
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --nav-h:        68px;
  --max-content:  1140px;
  --sidebar-w:    260px;
  --gap:          56px;           /* editorial gap between sidebar and main */
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
a { color: var(--accent-green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }

/* ─── Scroll animations ─── */
.js-ready .fade-up, .js-ready .animate-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-ready .fade-up.is-visible, .js-ready .animate-child.is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-green);
  color: #fff;
  border: 1.5px solid var(--accent-green);
}
.btn--primary:hover {
  background: #2D5016;
  border-color: #2D5016;
  text-decoration: none;
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.btn--outline:hover {
  background: var(--text-primary);
  color: var(--bg);
  text-decoration: none;
}
.btn--sm { padding: 8px 18px; font-size: 0.75rem; }
.btn--lg { padding: 14px 32px; font-size: 0.875rem; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__monogram {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--accent-green);
  letter-spacing: 0.01em;
}
.nav__name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.15s;
}
.nav__link:hover { color: var(--text-primary); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 80px 40px 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--rule);
}

/* Left: monogram + credentials + meta */
.hero__left {
  padding-top: 8px;
}
.hero__monogram-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent-green-light);
  border: 2px solid var(--accent-green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent-green);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.credential-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  color: var(--text-muted);
  background: transparent;
}
.credential-pill--green {
  border-color: var(--accent-green-mid);
  color: var(--accent-green);
  background: var(--accent-green-light);
}
.hero__meta-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__meta-value {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Right: headline */
.hero__right {
  padding-top: 4px;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
}
.eyebrow--light {
  color: rgba(255,255,255,0.7);
}
.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero__heading em {
  font-style: italic;
  color: var(--accent-green);
}
.hero__sub {
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Stats bar */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 0 80px;
  gap: 24px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}
.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat__number--text { font-style: italic; }
.stat__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 120px;
  text-align: center;
  line-height: 1.4;
}
.stat__divider {
  width: 1px;
  height: 56px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   EDITORIAL TWO-COLUMN LAYOUT
══════════════════════════════════════ */
.editorial-wrap {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: var(--gap);
  align-items: start;
  position: relative;
}

/* Vertical rule between sidebar and main */
.editorial-wrap::before {
  content: '';
  position: absolute;
  left: calc(40px + var(--sidebar-w) + var(--gap)/2);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}
.sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.sidebar__item:hover { text-decoration: none; }
.sidebar__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}
.sidebar__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.sidebar__item:hover .sidebar__num,
.sidebar__item:hover .sidebar__label,
.sidebar__item--active .sidebar__num,
.sidebar__item--active .sidebar__label {
  color: var(--accent-green);
}
.sidebar__item--active {
  border-bottom-color: var(--accent-green);
}

.sidebar__profile {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar__profile-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 4px;
}
.sidebar__profile-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sidebar__tool-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-green);
  text-decoration: none;
}
.sidebar__tool-link:hover { text-decoration: underline; }

/* ── MAIN COLUMN ── */
.main-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section {
  padding: 72px 0;
}
.section:first-child { padding-top: 72px; }

.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section__header {
  margin-bottom: 48px;
}
.section__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 20px;
}
.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.section__heading em {
  font-style: italic;
  color: var(--accent-green);
}

.section__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section__body p {
  font-size: 1.0rem;
  line-height: 1.75;
  color: var(--text-body);
}
.section__intro-note {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  font-style: italic;
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--accent-green);
  padding: 4px 0 4px 24px;
  margin: 8px 0;
}
.pull-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1875rem !important;
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
}

/* Callout box */
.callout {
  background: var(--accent-green-light);
  border: 1px solid var(--accent-green-mid);
  border-radius: 2px;
  padding: 24px 28px;
  margin-top: 8px;
}
.callout p {
  font-size: 0.9375rem !important;
  color: var(--text-primary) !important;
  line-height: 1.7 !important;
}

/* ══════════════════════════════════════
   APPROACH — ACTION LIST
══════════════════════════════════════ */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.action-entry {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.action-entry:first-child { border-top: 1px solid var(--rule); }
.action-entry__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent-green);
  line-height: 1.4;
  padding-top: 2px;
}
.action-entry__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.action-entry__title {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.action-entry__content p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* ══════════════════════════════════════
   RESULTS — EDITORIAL BIG NUMBERS (Louie-inspired)
══════════════════════════════════════ */
.results-editorial {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.result-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
.result-row:first-child { border-top: 1px solid var(--rule); }
.result-row__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.8rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.result-row__number--range,
.result-row__number--text {
  font-style: italic;
  color: var(--accent-green);
}
.result-row__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-body);
  padding-top: 8px;
}
.result-row__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ══════════════════════════════════════
   TOOLS — TAG CLOUD
══════════════════════════════════════ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 2px;
  border: 1px solid var(--rule);
  color: var(--text-body);
  background: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  cursor: default;
}
.tag:hover {
  border-color: var(--accent-green-mid);
  background: var(--accent-green-light);
  color: var(--accent-green);
}

/* ══════════════════════════════════════
   WHY ME
══════════════════════════════════════ */
.why-entry {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-entry:first-child { border-top: 1px solid var(--rule); }
.why-entry__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green);
}
.why-entry__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ══════════════════════════════════════
   CTA BAND
══════════════════════════════════════ */
.cta-band {
  background: var(--bg-cta);
  padding: 96px 40px;
  margin-top: 0;
}
.cta-band__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta-band__heading em {
  font-style: italic;
}
.cta-band__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 480px;
}
.cta-band__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--bg-cta);
  border-color: #fff;
}
.cta-band .btn--primary:hover {
  background: var(--accent-green-light);
  color: var(--bg-cta);
  border-color: var(--accent-green-light);
}
.cta-band .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.cta-band .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.cta-band__byline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 24px 40px;
}
.footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.footer__links {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer__link:hover { color: var(--accent-green); }
.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .editorial-wrap {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
  }
  .editorial-wrap::before { display: none; }
  .sidebar {
    position: static;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 32px;
    margin-bottom: 16px;
  }
  .sidebar__nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .sidebar__item { border-bottom: none; padding: 4px 0; }
  .sidebar__profile { display: none; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }
  .hero__left { display: flex; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
  .hero__monogram-circle { margin-bottom: 0; width: 64px; height: 64px; font-size: 1.5rem; }
  .hero__meta-stack { display: none; }
  .nav__links { display: none; }
  .stats-bar { gap: 16px; padding: 40px 0 48px; }
  .stat__divider { display: none; }
  .result-row { grid-template-columns: 120px 1fr; gap: 20px; }
  .result-row__number { font-size: 2.2rem; }
  .hero { padding: 48px 24px 0; }
}

@media (max-width: 600px) {
  .nav__inner { padding: 0 20px; }
  .hero { padding: 40px 20px 0; }
  .hero__heading { font-size: 2.8rem; }
  .cta-band { padding: 64px 20px; }
  .footer { padding: 20px; }
  .editorial-wrap { padding: 0 20px 48px; }
  .result-row { grid-template-columns: 1fr; gap: 8px; }
  .result-row__number { font-size: 2.5rem; }
  .stats-bar { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat { align-items: flex-start; text-align: left; }
}
