/* RupyaOff blog — shares design tokens with the main app */

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.brand-mark {
  width: 36px; height: 36px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(34, 197, 94, 0.25));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-name .accent {
  color: #22C55E;
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a.active,
.nav-links a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero */
.blog-hero {
  position: relative;
  padding: 80px 24px 48px;
  text-align: center;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,146,174,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(217,255,61,0.2) 0%, transparent 50%);
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.blog-hero p.lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Listing grid */
.posts-grid {
  max-width: 1180px;
  margin: 24px auto 64px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,45,110,0.2);
  text-decoration: none;
}
.post-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, #F8EFD4 0%, #EFE5CC 100%);
  border-bottom: 1px solid rgba(181,135,41,0.18);
}
.post-thumb svg {
  display: block;
  width: 100%; height: 100%;
}
/* legacy emoji-style classes — kept as soft tints in case any old card lingers */
.post-thumb-1 { background: linear-gradient(180deg, #FBF6E8 0%, #F3E6BD 100%); }
.post-thumb-2 { background: linear-gradient(180deg, #F4ECD0 0%, #EDE2BE 100%); }
.post-thumb-3 { background: linear-gradient(180deg, #EFE5CC 0%, #E6D193 100%); }
.post-thumb-4 { background: linear-gradient(180deg, #FBF6E8 0%, #F0DFA9 100%); }

.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.post-meta .tag {
  background: var(--brand-50);
  color: var(--brand-600);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.post-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.post-card p.excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.read-more {
  margin-top: 14px;
  color: var(--brand-500);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Article view */
article.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
article.post .breadcrumbs {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}
article.post .breadcrumbs a { color: var(--brand-500); }
article.post h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
article.post .post-meta {
  margin-bottom: 32px;
  font-size: 13px;
}
article.post h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
article.post h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 28px 0 10px;
}
article.post p, article.post li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 16px;
}
article.post ul, article.post ol {
  margin: 0 0 16px 20px;
}
article.post li { margin-bottom: 8px; }
article.post strong { color: var(--text-primary); font-weight: 700; }
article.post blockquote {
  border-left: 4px solid var(--brand-500);
  padding: 8px 0 8px 20px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-style: italic;
}
article.post .cta-box {
  margin: 32px 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--gradient-hero);
  color: white;
  text-align: center;
}
article.post .cta-box h3 {
  color: white;
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 6px;
}
article.post .cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 16px; }
article.post .cta-box a.btn {
  display: inline-block;
  padding: 10px 24px;
  background: white;
  color: var(--brand-600);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 24px 32px;
  margin-top: 48px;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-tertiary);
  font-size: 13px;
}

@media (max-width: 640px) {
  .nav-links a { padding: 8px 10px; font-size: 13px; }
  article.post p, article.post li { font-size: 15px; }
}
