:root{
  --lavender: #CBBBEF;
  --lavender-600: #A994E8;
  --mint: #B7E4C7;
  --mint-600: #74C69D;
  --white: #FFFFFF;
  --off: #FAFAFD;
  --line: #ECEEF3;
  --text: #22252e;
  --muted: #6B7280;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(0,0,0,0.06);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  background:var(--off);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.65;
}

a{color:#3d2fa3;text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:980px;margin:0 auto;padding:24px}
.header{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,0.86);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;
  padding:14px 24px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800}
.brand-badge{width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg, var(--lavender) 0%, var(--mint) 100%);
  box-shadow:var(--shadow);}
.brand-text{letter-spacing:.3px}

.nav a{margin-left:18px;color:#2a2f3a;font-weight:600}
.hero{padding:28px 24px}
.hero h1{
  font-family: 'Merriweather', Georgia, serif;
  font-size:2.2rem;
  margin:.2em 0;
}
.hero p{color:var(--muted);margin:0}

.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media (max-width: 900px){ .grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width: 640px){ .grid{grid-template-columns:1fr;} }

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.card img{
  display:block;
  width:100%;
  height:220px;
  object-fit:cover;
  border-bottom:1px solid var(--line)
}
.card-inner{padding:16px 16px 18px}
.card-title{font-weight:800;font-size:1.05rem;margin:.2rem 0}
.card-meta{color:var(--muted);font-size:.9rem;margin-bottom:.4rem}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.tag{
  font-size:.8rem;
  color:#334155;
  background:#F1F5F9;
  border:1px solid #E2E8F0;
  padding:4px 10px;
  border-radius:999px
}

.post{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.post h1{
  font-family:'Merriweather', Georgia, serif;
  font-size:2rem;
  margin:.3em 0
}
.post .meta{color:var(--muted);font-size:.95rem;margin-bottom:14px}
.cover{margin:0 0 14px}
.cover img{width:100%;height:auto;border-radius:14px}

figure{margin:18px 0}
figcaption{color:var(--muted);font-size:.9rem;margin-top:6px}

.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  background:linear-gradient(135deg, var(--lavender) 0%, var(--mint) 100%);
  border:1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
}
.btn:hover{transform:translateY(-1px)}

.footer{padding:32px 0;color:var(--muted);text-align:center}
.hr{height:1px;background:var(--line);margin:24px 0}

/* --- Ads (placeholders) --- */
.ad{
  background:#F8FAFC;
  border:2px dashed #E2E8F0;
  border-radius:14px;
  color:#64748B;
  text-align:center;
  padding:14px;
  margin:18px 0;
  font-weight:600
}
.ad small{display:block;color:#94A3B8;font-weight:500}
.ad-banner{min-height:90px}
.ad-infeed{min-height:200px}

/* Ensure images always fit their containers */
.post figure{margin:18px 0; overflow:hidden; border-radius:14px}
.post figure img{display:block; width:100%; height:auto}
.post img{max-width:100%; height:auto; display:block}
.card img{width:100%; height:clamp(200px, 24vw, 280px); object-fit:cover; display:block}

/* --- Post content containment (added Oct 2025) --- */
.prose {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Figures and photos inside posts */
.prose figure,
.prose img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 1.5rem 0;
  object-fit: cover;
}

/* Hero image: keep wide but not towering */
.prose .figure-hero img {
  max-height: 65vh;
  object-fit: cover;
}

/* Two-up grids stay clean and responsive */
.grid.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid.grid-2 .text-block {
  align-self: center;
  padding: 0.25rem 0;
}

@media (max-width: 820px) {
  .grid.grid-2 {
    grid-template-columns: 1fr;
  }
  .prose .figure-hero img {
    max-height: 45vh;
  }
}

/* --- NEW: About blurb card on homepage --- */
.about-blurb {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 32px auto;
  text-align: center;
  max-width: 820px;
}
.about-blurb h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.6rem;
  margin-top: 0;
  color: var(--text);
}
.about-blurb p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-blurb a {
  color: var(--lavender-600);
  font-weight: 600;
}
.footer {
  margin-top: 64px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--lavender-600);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}
.footer {
  margin-top: 64px;
  padding: 24px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--lavender-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--lavender-700);
}

/* Highlighted Support link */
.footer-support {
  color: var(--mint-600);
  font-weight: 700;
  background: rgba(183, 228, 199, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.footer-support:hover {
  background: var(--mint-600);
  color: white;
  text-decoration: none;
}
