/* Art for Homeless Youth — Warm Violet Nonprofit Theme */
:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  --accent: #F59E0B;
  --bg: #FAF5FF;
  --bg-alt: #EDE9FE;
  --text: #1F2937;
  --text-light: #6B7280;
  --text-white: #FFFFFF;
  --border: #DDD6FE;
  --card-bg: #FFFFFF;
  --footer-bg: #1E1B4B;
  --header-bg: #FFFFFF;
  --shadow: rgba(124, 58, 237, 0.1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; line-height: 1.7; color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.header { background: var(--header-bg); box-shadow: 0 2px 8px var(--shadow); position: sticky; top: 0; z-index: 100; }
.header__inner { max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.header__logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.header__nav { display: flex; align-items: center; }
.nav__list { list-style: none; display: flex; gap: 1.5rem; }
.nav__list a { color: var(--text); font-weight: 600; padding: .5rem 0; border-bottom: 2px solid transparent; transition: all .2s; }
.nav__list a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--text-white); padding: 4rem 1.5rem; text-align: center; max-width: 1100px; margin: 2rem auto; border-radius: 16px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero__tagline { font-size: 1.2rem; opacity: 0.9; margin-bottom: 1.5rem; }
.hero p { max-width: 700px; margin: 0 auto 1.5rem; line-height: 1.8; opacity: 0.95; }
.btn { display: inline-block; background: var(--accent); color: #1a1a1a; padding: .75rem 2rem; border-radius: 8px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(245,158,11,0.4); color: #1a1a1a; }

/* Main */
.main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Posts grid */
.posts-grid { margin: 3rem 0; }
.posts-grid h2 { font-size: 1.8rem; color: var(--primary-dark); margin-bottom: 1.5rem; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

/* Card */
.card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px var(--shadow); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--shadow); }
.card a { color: inherit; display: block; }
.card__img { width: 100%; height: 200px; object-fit: cover; }
.card__body { padding: 1.25rem; }
.card__title { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text); line-height: 1.4; }
.card__date { font-size: .85rem; color: var(--text-light); display: block; margin-bottom: .75rem; }
.card__excerpt { font-size: .95rem; color: var(--text-light); line-height: 1.6; }

/* Page content */
.page { background: var(--card-bg); border-radius: 12px; padding: 2.5rem; box-shadow: 0 2px 12px var(--shadow); }
.page h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.4rem; color: var(--primary); margin: 2rem 0 1rem; }
.page h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.page p { margin-bottom: 1.25rem; }
.page ul, .page ol { margin: 0 0 1.25rem 2rem; }
.page li { margin-bottom: .5rem; }
.contact-info { background: var(--bg-alt); padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; }
.contact-info ul { list-style: none; margin-left: 0; }
.contact-info li { padding: .5rem 0; }

/* Post single */
.post { background: var(--card-bg); border-radius: 12px; padding: 2.5rem; box-shadow: 0 2px 12px var(--shadow); }
.post h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: .5rem; line-height: 1.3; }
.post__date { display: block; color: var(--text-light); margin-bottom: 1.5rem; font-size: .9rem; }
.post__img { width: 100%; border-radius: 8px; margin-bottom: 2rem; max-height: 400px; object-fit: cover; }
.content h2 { font-size: 1.4rem; color: var(--primary); margin: 2rem 0 1rem; }
.content h3 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.content p { margin-bottom: 1.25rem; line-height: 1.8; }
.content ul, .content ol { margin: 0 0 1.25rem 2rem; }
.content li { margin-bottom: .5rem; }

/* Related */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.related h2 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 1rem; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.related__item { display: block; padding: 1rem; background: var(--bg-alt); border-radius: 8px; transition: background .2s; }
.related__item:hover { background: var(--border); }
.related__item h3 { font-size: 1rem; margin-bottom: .25rem; color: var(--text); }
.related__item time { font-size: .85rem; color: var(--text-light); }

/* Footer */
.footer { background: var(--footer-bg); color: var(--text-white); padding: 3rem 1.5rem 1rem; margin-top: 3rem; }
.footer__inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer__col h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--accent); }
.footer__col p { opacity: 0.85; line-height: 1.7; font-size: .95rem; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { color: rgba(255,255,255,0.8); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; opacity: 0.7; font-size: .9rem; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--header-bg); flex-direction: column; padding: 1rem 1.5rem; box-shadow: 0 4px 12px var(--shadow); }
  .nav__list.active { display: flex; }
  .hero { padding: 2.5rem 1rem; margin: 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .post, .page { padding: 1.5rem; }
  .related__grid { grid-template-columns: 1fr; }
}
