:root {
    --bg: #f5f0ff;
    --bg-elev: #faf7ff;
    --bg-card: #ffffff;
    --ink: #1a1033;
    --ink-soft: #3b2d5c;
    --muted: #5e4f7a;
    --dim: #8c7da6;
    --line: rgba(106, 80, 160, 0.10);
    --line-strong: rgba(106, 80, 160, 0.18);
    --accent: #7c3aed;
    --accent-deep: #6d28d9;
    --accent-soft: #ede0ff;
    --accent-glow: #a78bfa;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(80, 40, 160, 0.05);
    --shadow: 0 12px 36px rgba(80, 30, 180, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 240, 255, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo-mark { font-size: 22px; color: var(--accent); }
.logo-text em {
    font-style: italic;
    font-weight: 500;
    color: var(--muted);
}
.nav { display: flex; gap: 32px; }
.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.edition {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(139, 30, 63, 0.25);
}

/* HERO */
.hero {
    padding: 96px 0 56px;
    border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 920px; }
.kicker {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 22px;
}
.hero h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(46px, 7.5vw, 92px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
    color: var(--ink);
}
.hero h1 em {
    font-style: italic;
    font-weight: 700;
    color: var(--accent);
}
.lede {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 640px;
    margin-bottom: 32px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}
.hero-meta strong { color: var(--ink); font-weight: 700; }
.hero-meta a { color: var(--accent); text-decoration: none; font-weight: 500; }
.hero-meta a:hover { text-decoration: underline; }
.dot {
    width: 4px; height: 4px;
    background: var(--dim);
    border-radius: 50%;
    display: inline-block;
}

/* FEATURED */
.featured { padding: 56px 0 24px; }
.card-feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.card-feature-media {
    position: relative;
    min-height: 440px;
    overflow: hidden;
    background: var(--bg-elev);
}
.card-feature-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card-feature:hover .card-feature-media img { transform: scale(1.04); }

.badge {
    position: absolute;
    top: 24px; left: 24px;
    background: var(--ink);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.card-feature-body {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card-feature-body h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 16px 0 18px;
    color: var(--ink);
}
.card-feature-body p {
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 28px;
}

/* FILTERS */
.filters {
    padding: 36px 0 20px;
    position: sticky;
    top: 70px;
    background: rgba(245, 240, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 50;
    border-bottom: 1px solid var(--line);
}
.filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}
.chip:hover {
    background: var(--bg-card);
    color: var(--ink);
}
.chip.active {
    background: var(--ink);
    color: var(--bg-elev);
    border-color: var(--ink);
}

/* GRID */
.grid-section { padding: 48px 0 80px; }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.6s ease-out backwards;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.card-media {
    height: 200px;
    overflow: hidden;
    background: var(--bg-elev);
    position: relative;
}
.card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder::after {
    font-size: 80px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.placeholder-cristianismo { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.placeholder-cristianismo::after { content: '✝'; }
.placeholder-islamismo    { background: linear-gradient(135deg, #059669, #047857); }
.placeholder-islamismo::after { content: '☪'; }
.placeholder-judaismo     { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.placeholder-judaismo::after { content: '✡'; }
.placeholder-hinduismo    { background: linear-gradient(135deg, #ec4899, #db2777); }
.placeholder-hinduismo::after { content: '🕉'; }
.placeholder-budismo      { background: linear-gradient(135deg, #f97316, #ea580c); }
.placeholder-budismo::after { content: '☸'; }
.placeholder-sikhismo     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.placeholder-sikhismo::after { content: '☬'; }
.placeholder-indigena     { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.placeholder-indigena::after { content: '◉'; }
.placeholder-outras       { background: linear-gradient(135deg, #6b5b95, #4a3b70); }
.placeholder-outras::after { content: '✦'; }

.card-body {
    padding: 22px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 14px 0 10px;
    color: var(--ink);
}
.card-body p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.5;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
}
.tag-cristianismo { background: #ede0ff; color: #6d28d9; }
.tag-islamismo    { background: #c6ffd9; color: #059669; }
.tag-judaismo     { background: #dbe4ff; color: #2563eb; }
.tag-hinduismo    { background: #ffe0ec; color: #be185d; }
.tag-budismo      { background: #ffe4c4; color: #ea580c; }
.tag-sikhismo     { background: #fef3c7; color: #d97706; }
.tag-indigena     { background: #fecaca; color: #dc2626; }
.tag-outras       { background: #e8e5f0; color: #4c3d6b; }

.meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--dim);
    align-items: center;
    flex-wrap: wrap;
}
.read-arrow {
    margin-left: auto;
    color: var(--accent);
    font-weight: 600;
}

.card.hidden, .card-feature.hidden { display: none; }
.empty {
    text-align: center;
    color: var(--muted);
    padding: 80px 0;
    font-size: 16px;
}

/* NEWSLETTER */
.newsletter { padding: 24px 0 96px; }
.newsletter-card {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4c1d95 100%);
    color: #f5f0ff;
    border-radius: var(--radius-lg);
    padding: 64px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}
.newsletter-card .kicker { color: #c4b5fd; }
.newsletter-card h3 {
    font-family: 'Fraunces', serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
    color: #fff;
}
.newsletter-card p {
    color: #ddd6fe;
    font-size: 16px;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}
.newsletter-form input {
    flex: 1;
    min-width: 220px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}
.newsletter-form .btn-primary { padding: 14px 26px; }
.newsletter-form .success {
    width: 100%;
    color: #a7f3d0;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s;
}
.newsletter-form .success.show { opacity: 1; transform: translateY(0); }

/* FOOTER */
.footer {
    border-top: 1px solid var(--line);
    background: var(--bg-elev);
    padding: 64px 0 28px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}
.footer-tag {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.5;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-cols h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    margin-bottom: 14px;
    font-weight: 700;
}
.footer-cols a {
    display: block;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-cols a:hover { color: var(--accent); }
.copyright {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .nav { display: none; }
    .edition { display: none; }
    .hero { padding: 56px 0 36px; }
    .card-feature { grid-template-columns: 1fr; }
    .card-feature-media { min-height: 240px; }
    .card-feature-body { padding: 32px 24px; }
    .newsletter-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .hero h1 { font-size: 42px; }
    .lede { font-size: 16px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
