/* ============================================
   rajeshkumar.me — Professional & Warm
   ============================================ */

:root {
  --bg: #fdfaf6;
  --bg-soft: #f7f1e8;
  --text: #2d2a26;
  --text-soft: #6b6259;
  --accent: #b4530a;
  --accent-dark: #8f4108;
  --border: #eae2d6;
  --card: #ffffff;
  --radius: 14px;
  --max-width: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav .logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.nav .logo span { color: var(--accent); }

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav ul a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav ul a:hover, .nav ul a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(45, 42, 38, 0.14);
  transform: rotate(1.5deg);
}

.about-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 8px 0 28px;
}

@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 320px; margin: 0 auto; transform: none; }
}

.hero .eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 58ch;
}

.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost { border: 1.5px solid var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 48px 0; }

.section-title {
  font-size: 1.6rem;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title .view-all { font-size: 0.9rem; font-weight: 500; font-family: "Inter", sans-serif; }

/* ---------- Post cards ---------- */
.post-list { display: flex; flex-direction: column; gap: 18px; list-style: none; }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: all 0.2s ease;
  display: block;
  color: var(--text);
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(180, 83, 10, 0.08);
  transform: translateY(-2px);
  color: var(--text);
}

.post-card .post-date {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.post-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text); }
.post-card:hover h3 { color: var(--accent); }
.post-card p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Article ---------- */
.article { padding: 72px 0; }

.article .post-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.article h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 32px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 16px; }
.article h3 { font-size: 1.15rem; margin: 32px 0 12px; }
.article p { margin-bottom: 20px; }
.article ul, .article ol { margin: 0 0 20px 24px; }
.article li { margin-bottom: 8px; }

.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--text-soft);
  font-style: italic;
}

.article img { max-width: 100%; border-radius: var(--radius); margin: 24px 0; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- About ---------- */
.about-grid { display: flex; flex-direction: column; gap: 8px; }

.fact-list { list-style: none; margin-top: 20px; }

.fact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
}

.fact-list li strong { min-width: 130px; color: var(--text); font-weight: 600; }
.fact-list li span { color: var(--text-soft); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 48px;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner .social a { margin-left: 18px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .hero { padding: 56px 0 40px; }
  .nav ul { gap: 18px; }
  .post-card { padding: 20px 22px; }
  .fact-list li { flex-direction: column; gap: 2px; }
}
