/* shambhaviwork.com — main stylesheet
   Design system: terracotta + sage + warm off-white
   Typography: Lora (serif) + Inter (sans)
*/

:root {
  --terracotta: #C2553D;
  --terracotta-dark: #9E3F2A;
  --terracotta-light: #E8B3A3;
  --sage: #889F84;
  --sage-dark: #5E7A5A;
  --sage-light: #BFD2BC;
  --bg: #FAF6F0;
  --bg-warm: #F2EBE0;
  --ink: #2D2826;
  --ink-soft: #5A4F48;
  --accent: #38423E;
  --rule: #D9D0C3;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--terracotta-dark); }

img { max-width: 100%; height: auto; display: block; }

/* TOP NAV */
.topnav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.topnav-brand {
  font-family: 'Lora', serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-size: 17px;
}
.topnav-links a {
  color: var(--ink-soft);
  margin-left: 28px;
  font-weight: 500;
}
.topnav-links a:hover { color: var(--terracotta); }
.topnav-links a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 4px;
}

/* SHARED */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 22px;
}

/* HERO (homepage) */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: 56px;
  line-height: 1.12;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--terracotta); font-style: italic; }
.hero-prose {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 620px;
}
.hero-prose p { margin: 0 0 18px; }
.hero-prose p:last-child { margin: 0; }

/* SECTIONS */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px;
}
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 32px;
}

/* FEATURED PROJECT */
.featured {
  background: var(--bg-warm);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.featured-content {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 16px;
}
.featured h3 {
  font-family: 'Lora', serif;
  font-size: 32px;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 500;
}
.featured .sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.55;
}
.featured-link {
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
}
.featured-visual {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 32px;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 40, 38, 0.08);
}
.card-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-visual.whatsapp { background: linear-gradient(135deg, var(--sage-dark) 0%, var(--accent) 100%); }
.card-visual.pockets { background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%); }
.card-visual.statday { background: linear-gradient(135deg, #6B8B95 0%, #4A6770 100%); }
.card-visual.paid { background: linear-gradient(135deg, #B8946A 0%, #8B6F4E 100%); }
.card-visual.seenathome { background: linear-gradient(135deg, var(--accent) 0%, #1E2624 100%); }

/* Line-art illustration variant for cards */
.card-visual.card-illustration {
  background: var(--bg-warm);
  height: auto;
  aspect-ratio: 5 / 4;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
}
.card-visual.card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-visual.card-illustration img {
  transform: scale(1.02);
}
.card-visual.card-illustration .status-badge {
  background: rgba(45, 40, 38, 0.78);
  color: #fff;
  z-index: 2;
}
.card-visual.card-illustration .status-badge.live { background: var(--terracotta); }
.card-visual.card-illustration .status-badge.next { background: var(--sage-dark); }

/* Featured illustration variant (homepage hero piece) */
.featured-visual.featured-illustration {
  background: var(--bg-warm);
  padding: 0;
  min-height: 400px;
  overflow: hidden;
}
.featured-visual.featured-illustration img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.featured:hover .featured-visual.featured-illustration img {
  transform: scale(1.02);
}

/* Work-card illustration variant (writing page) */
.work-card-visual.card-illustration {
  background: var(--bg-warm);
  height: auto;
  aspect-ratio: 5 / 4;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
}
.work-card-visual.card-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.work-card:hover .work-card-visual.card-illustration img {
  transform: scale(1.02);
}
.work-card-visual.card-illustration .status-badge {
  background: rgba(45, 40, 38, 0.78);
  color: #fff;
  z-index: 2;
}
.work-card-visual.card-illustration .status-badge.live { background: var(--terracotta); }
.work-card-visual.card-illustration .status-badge.next { background: var(--sage-dark); }
.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.42);
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.status-badge.live { background: var(--terracotta); }
.status-badge.next { background: var(--sage-dark); color: #fff; }
.card-body {
  padding: 24px 24px 26px;
  flex: 1 1 auto;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}
.card-type {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.card h4 {
  font-family: 'Lora', serif;
  font-size: 21px;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 500;
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}
.card-link {
  font-weight: 600;
  font-size: 14px;
}

/* ABOUT (dark sage block on homepage) */
.about-short {
  background: var(--accent);
  color: var(--bg);
  margin-top: 32px;
}
.about-short .about-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 32px;
}
.about-short .section-eyebrow { color: var(--sage-light); }
.about-short p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  margin: 0 0 18px;
  max-width: 700px;
}
.about-link {
  color: var(--terracotta-light);
  border-bottom: 1px solid var(--terracotta-light);
  padding-bottom: 2px;
  font-weight: 500;
}
.about-link:hover { color: #fff; border-bottom-color: #fff; }

/* WRITING PAGE */
.page-header {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}
.page-header h1 {
  font-family: 'Lora', serif;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}
.page-intro {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
}

.filter-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.filter-strip-inner {
  display: flex;
  gap: 8px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 30px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--rule);
  font-family: inherit;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.work-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.work-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(45, 40, 38, 0.1);
  color: inherit;
}
.work-card-visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.work-card-body {
  padding: 28px 28px 30px;
  flex: 1 1 auto;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.work-card .card-type { margin-bottom: 14px; }
.work-card h3 {
  font-family: 'Lora', serif;
  font-size: 24px;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 500;
}
.work-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

/* NOTIFY FORM (writing page) */
.notify {
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.notify-card {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 40px 36px;
}
.notify-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.notify-card h3 {
  font-family: 'Lora', serif;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 500;
}
.notify-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  line-height: 1.6;
}
.notify-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.notify-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}
.notify-form input::placeholder { color: #B4AC9D; }
.notify-form input:focus {
  outline: none;
  border-color: var(--terracotta);
}
.notify-form button {
  padding: 12px 24px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease;
}
.notify-form button:hover { background: var(--terracotta-dark); }
.notify-footer {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 14px;
  font-style: italic;
}

/* ABOUT PAGE */
.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 56px;
  align-items: start;
}
.about-side { position: sticky; top: 100px; }
.portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--bg-warm);
  border-radius: 10px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-dark);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 0;
  line-height: 1.4;
  overflow: hidden;
}
.portrait-photo { padding: 0; background: var(--bg-warm); }
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.quickfacts {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.quickfacts > div { margin-bottom: 14px; }
.quickfacts strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.about-content { min-width: 0; }
.about-lede {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 32px;
  font-weight: 500;
}
.about-bio p {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.75;
}
.about-bio p:last-child { margin-bottom: 0; }

.pubs {
  margin-top: 40px;
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 32px 36px;
}
.pubs-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 18px;
}
.pubs ul { list-style: none; }
.pubs li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pubs li:last-child { border-bottom: none; padding-bottom: 0; }
.pubs li strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

/* Sidebar contact card (smaller, fits narrow sidebar) */
.side-contact {
  margin-top: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 22px 20px;
  border-radius: 10px;
  text-align: center;
}
.side-contact h3 {
  font-family: 'Lora', serif;
  font-size: 18px;
  color: var(--bg);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.25;
}
.side-contact p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
}
.side-contact-btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.3;
}
.side-contact-btn:hover { background: var(--terracotta-dark); color: #fff !important; }

/* Section break between AI reflection and Background */
.section-break {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.section-break .eyebrow { margin-bottom: 20px; }

/* Body text wrap improvements (avoid orphans) */
.about-bio p, .about-lede, .pubs li, .hero-prose p {
  text-wrap: pretty;
}
.about-lede { text-wrap: balance; }

.contact-card {
  margin-top: 32px;
  background: var(--accent);
  color: var(--bg);
  padding: 36px 32px;
  border-radius: 10px;
  text-align: center;
}
.contact-card h3 {
  font-family: 'Lora', serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--bg);
  font-weight: 500;
}
.contact-card p {
  color: rgba(255,255,255,0.88);
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.65;
  max-width: 400px;
}
.contact-btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff !important;
  padding: 12px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.contact-btn:hover { background: var(--terracotta-dark); color: #fff !important; }

/* ARTICLE (data essay page) */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.article-eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 22px;
}
.article h1 {
  font-family: 'Lora', serif;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.article-deck {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-weight: 400;
}
.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.article-meta-item { display: flex; align-items: center; gap: 8px; }
.article-meta-item strong { color: var(--ink); font-weight: 600; }
.article h2 {
  font-family: 'Lora', serif;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 500;
  color: var(--ink);
  margin: 56px 0 22px;
  letter-spacing: -0.003em;
}
.article p {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 17px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 40px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 400px;
}
.footer-col h5 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
}

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topnav-inner { padding: 14px 20px; }
  .topnav-links a { margin-left: 16px; font-size: 13px; }
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 36px; }
  .hero-prose { font-size: 17px; }
  section { padding: 48px 20px; }
  .section-eyebrow { margin-bottom: 24px; }
  .featured { grid-template-columns: 1fr; }
  .featured-content { padding: 36px 28px; }
  .featured h3 { font-size: 26px; }
  .featured-visual { min-height: 240px; }
  .featured-visual.featured-illustration { min-height: 320px; }
  .featured-visual.featured-illustration img { min-height: 320px; }
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-body { min-height: 120px; }
  .about-short .about-inner { padding: 56px 20px; }
  .page-header { padding: 50px 20px 36px; }
  .page-header h1 { font-size: 32px; }
  .filter-strip { padding: 0 20px; }
  .filter-strip-inner { overflow-x: auto; flex-wrap: nowrap; padding: 18px 0; }
  .filter-chip { flex-shrink: 0; }
  .work-grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px; }
  .work-card-visual { height: 180px; }
  .work-card-body { min-height: 160px; }
  .notify { padding: 0 20px; margin-bottom: 40px; }
  .notify-card { padding: 28px 24px; }
  .notify-form { flex-direction: column; max-width: none; }
  .notify-form button { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; padding: 50px 20px; }
  .about-side { position: static; max-width: 280px; }
  .about-lede { font-size: 19px; }
  .pubs { padding: 24px; }
  .contact-card { padding: 28px 22px; }
  .article { padding: 36px 20px 60px; }
  .article h1 { font-size: 32px; }
  .article-deck { font-size: 18px; }
  .article h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 20px 20px 0; }
}
