/* Blog styles — matches the harshitakarande.com home page palette */
:root {
  --bg-1: #0f0f12;
  --bg-2: #1a1a22;
  --bg-3: #0d0d12;
  --text: #e8e6e3;
  --muted: rgba(232, 230, 227, 0.55);
  --soft: rgba(232, 230, 227, 0.72);
  --rose: #b76e79;
  --rose-light: #e8c4c4;
  --line: rgba(183, 110, 121, 0.28);
  --card: rgba(255, 255, 255, 0.025);
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--bg-3) 100%) fixed;
  overflow-x: hidden;
}

/* Soft rose glow in the corner */
body::before {
  content: "";
  position: fixed;
  top: -20vmax;
  right: -20vmax;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(183, 110, 121, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--rose); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rose-light); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / nav ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0 0;
}
.site-header .home {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header nav a {
  margin-left: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--rose-light); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 5rem 0 3rem; }
.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin: 0.6rem 0 0.4rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-light) 50%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--soft);
}
.divider {
  width: 60px;
  height: 1px;
  margin: 2rem auto;
  background: linear-gradient(90deg, transparent, rgba(183, 110, 121, 0.65), transparent);
}

/* ---------- Filter chips ---------- */
.filters { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.chip {
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover, .chip.active { color: #fff; border-color: var(--rose); background: rgba(183, 110, 121, 0.14); }

/* ---------- Post list ---------- */
.posts { list-style: none; display: grid; gap: 1.25rem; padding-bottom: 4rem; }
.post-card a {
  display: block;
  padding: 1.75rem 1.75rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.post-card a:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  background: rgba(183, 110, 121, 0.05);
}
.meta {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta .tag { color: var(--rose); }
.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin: 0.45rem 0 0.5rem;
}
.post-card p { color: var(--soft); font-size: 0.98rem; }
.post-card .more {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}
.post-card a:hover .more { color: var(--rose-light); }

/* ---------- Article ---------- */
.article-head { text-align: center; padding: 4.5rem 0 1rem; }
.article-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin: 0.8rem 0 0.8rem;
}
.article-head .lede {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--soft);
}

.prose { font-size: 1.08rem; color: rgba(232, 230, 227, 0.86); padding-bottom: 2rem; }
.prose p { margin: 0 0 1.4rem; }
.prose > p:first-of-type::first-letter {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.2rem;
  line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--rose-light);
}
.prose h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: #fff;
  margin: 2.6rem 0 0.9rem;
}
.prose ul, .prose ol { margin: 0 0 1.4rem 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--rose); }
.prose blockquote {
  margin: 2.2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 2px solid var(--rose);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--rose-light);
}
.prose strong { font-weight: 500; color: #fff; }

.post-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2.5rem 0 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade { opacity: 0; transform: translateY(12px); animation: fadeUp .8s ease forwards; }
  .fade.d1 { animation-delay: .1s; }
  .fade.d2 { animation-delay: .2s; }
  .fade.d3 { animation-delay: .3s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

@media (max-width: 560px) {
  .site-header nav a { margin-left: 1rem; letter-spacing: 0.18em; }
  .post-card a { padding: 1.4rem; }
}

/* Work-in-progress placeholder */
.soon {
  margin: 0 0 4rem;
  border: 1px dashed var(--line); border-radius: 14px;
  padding: 3rem 1.5rem; text-align: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem; color: var(--muted);
}
.soon span { display: block; font-size: 2rem; margin-bottom: 0.4rem; font-style: normal; }
