/* © 2026 TennoTenRyu Inh. Cesarano */
/* Soul to Soul — Blog Index Stylesheet
   Extracted as a standalone file so CSS changes never overwrite the
   auto-generated blog/index.html (which is owned by GitHub Actions cron).
   To update styles: edit this file and push it alone. Never push index.html
   from local unless all pending articles have been published first.        */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #666;
  --border: #f0f0f0;
}
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; font-size: 15px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Navigation ── */
nav { position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); z-index: 100; padding: 0 24px; }
.nav-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.nav-logo img { height: 32px; width: 32px; border-radius: 8px; }
.nav-logo-text { font-family: 'Cardo', serif; font-size: 18px; font-weight: 700; }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* ── Blog hero ── */
.hero-blog { max-width: 960px; margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.hero-blog h1 { font-family: 'Cardo', serif; font-size: 36px; margin-bottom: 12px; }
.hero-blog p { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Article grid ── */
.articles-grid { max-width: 960px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card { background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* ── Card thumbnail ── */
.article-card .card-img { height: 190px; overflow: hidden; position: relative; background: linear-gradient(135deg, #ede9fe, #c4b5fd); }
.article-card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.article-card:hover .card-img img { transform: scale(1.04); }
/* Brand overlay — matches article hero gradient so every thumbnail looks on-brand regardless of image colors */
.article-card .card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(109,40,217,0.22) 0%, rgba(20,0,50,0.58) 100%); pointer-events: none; }

/* ── Card body ── */
.article-card .card-body { padding: 24px; }
.article-card .card-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); background: #f5f3ff; padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; }
.article-card h2 { font-family: 'Cardo', serif; font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--accent); }
.article-card .card-excerpt { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }
.article-card .card-meta { font-size: 11px; color: #999; display: flex; gap: 12px; }
.article-card .card-cta { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 12px; }
.article-card .card-cta:hover { color: var(--accent-dark); }

/* ── CTA banner ── */
.cta-banner { max-width: 960px; margin: 0 auto 60px; padding: 0 24px; }
.cta-banner-inner { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: 16px; padding: 40px; text-align: center; color: white; }
.cta-banner-inner h2 { font-family: 'Cardo', serif; font-size: 24px; margin-bottom: 10px; }
.cta-banner-inner p { opacity: 0.9; margin-bottom: 16px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner-inner a.btn { display: inline-block; background: white; color: var(--accent-dark); font-weight: 700; padding: 12px 32px; border-radius: 8px; font-size: 14px; }
.cta-banner-inner a.btn:hover { background: #f5f3ff; }
.cta-banner-inner .ig { margin-top: 12px; font-size: 13px; opacity: 0.8; }
.cta-banner-inner .ig a { color: white; text-decoration: underline; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; font-size: 12px; color: #999; }
footer a { color: var(--text-secondary); }
footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero-blog h1 { font-size: 28px; }
  .articles-grid { grid-template-columns: 1fr; }
}
