* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f7f9ff;
    --surface: rgba(255, 255, 255, 0.9);
    --card: #ffffff;
    --text: #1f2a3d;
    --muted: #516284;
    --accent: #c62828;
    --accent-2: #1e4bd8;
    --accent-3: #f5c77d;
    --shadow: 0 16px 45px rgba(29, 61, 114, 0.18);
    --radius: 18px;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(120% 120% at 15% 20%, rgba(255, 186, 209, 0.35), transparent 60%),
        radial-gradient(120% 110% at 80% 10%, rgba(142, 197, 252, 0.35), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #fff8f6 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0 20px 40px;
    position: relative;
    overflow-x: hidden;
}

.bg-clouds {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(300px 240px at 20% 30%, rgba(255, 186, 209, 0.35), transparent),
        radial-gradient(320px 260px at 80% 18%, rgba(142, 197, 252, 0.35), transparent),
        radial-gradient(420px 300px at 45% 72%, rgba(245, 199, 125, 0.3), transparent);
    filter: blur(48px);
    opacity: 0.6;
    z-index: -2;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

.topbar {
    max-width: 1200px;
    margin: 22px auto;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(30, 75, 216, 0.14), rgba(30, 75, 216, 0.06));
    border: 1px solid rgba(30, 75, 216, 0.14);
    box-shadow: 0 10px 30px rgba(61, 88, 150, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 52px;
    background: radial-gradient(circle at 30% 30%, rgba(142, 197, 252, 0.3), transparent),
                radial-gradient(circle at 70% 70%, rgba(245, 199, 125, 0.35), transparent);
    border-radius: 14px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(30, 75, 216, 0.1);
    box-shadow: var(--shadow);
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #1e4bd8;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav a:hover {
    background: rgba(30, 75, 216, 0.12);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(30, 75, 216, 0.2);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(61, 88, 150, 0.14);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: #1f2a3d;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pill {
    background: linear-gradient(120deg, #1e4bd8 0%, #c62828 100%);
    color: #fff !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 30px rgba(30, 75, 216, 0.25);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 28px;
    padding: 50px 0 36px;
}



.hero-banner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.86) 60%, rgba(255, 255, 255, 0.8) 100%),  center/cover no-repeat;
    border: 1px solid rgba(30, 75, 216, 0.08);
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 20px 50px rgba(61, 88, 150, 0.16);
    overflow: hidden;
}

.hero-copy h1 {
    font-family: 'Montserrat Bold', 'Poppins SemiBold', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    margin: 10px 0 12px;
    color: var(--accent);
}

.lede {
    color: #1e4bd8;
    margin-bottom: 18px;
    max-width: 560px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(30, 75, 216, 0.18);
    color: var(--text);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(140deg, #1e4bd8, #d62828);
    color: #fff;
    box-shadow: 0 14px 30px rgba(30, 75, 216, 0.25);
}

.btn.ghost {
    background: rgba(30, 75, 216, 0.12);
}

.btn.big {
    width: 100%;
    font-size: 16px;
    padding: 14px;
}

.btn:hover {
    transform: translateY(-2px);
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chips span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(30, 75, 216, 0.06);
    color: #1e4bd8;
    border: 1px solid rgba(30, 75, 216, 0.12);
    font-size: 13px;
}

.hero-visual {

      display: flex;
    justify-content: flex-end;
}
.hero-figure {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3 / 4;

    margin-left: auto;
    margin-right: 20px; /* distância da borda direita */

    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(30, 75, 216, 0.16);
    box-shadow: var(--shadow);

    background:
        radial-gradient(circle at 50% 20%, rgba(142, 197, 252, 0.25), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(255, 186, 209, 0.2), transparent 70%);
}

.hero-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.verse-card, .meta-card {
    margin-top: 16px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 75, 216, 0.12);
    color: var(--text);
    box-shadow: 0 12px 32px rgba(61, 88, 150, 0.12);
}

.verse {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.4;
}

.verse-ref {
    display: block;
    color: #4a5f88;
    margin-top: 8px;
}

.meta-label {
    color: #4a5f88;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.meta-title {
    font-size: 16px;
}

.meta-note {
    color: var(--muted);
}

.section {
    margin: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.section h2 {
    font-size: clamp(22px, 3vw, 30px);
    margin-top: 6px;
}

.section-lede {
    color: #4a5f88;
}

.link-inline {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 700;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.post-card {
    padding: 14px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(30, 75, 216, 0.12);
    box-shadow: 0 14px 30px rgba(61, 88, 150, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease;
    display: grid;
    gap: 10px;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(30, 75, 216, 0.2);
}

.thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(30, 75, 216, 0.12);
}

.tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(30, 75, 216, 0.08);
    color: #1e4bd8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.post-card h3 {
    font-size: 18px;
}

.excerpt {
    color: #4a5f88;
}

.post-meta {
    color: #4a5f88;
    font-size: 13px;
}

.single-card {
    background: #ffffff;
    border: 1px solid rgba(30, 75, 216, 0.12);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.post-hero {
    display: grid;
    grid-template-columns: 1fr 320px; /* TEXTO | IMAGEM */
    gap: 10px;
    align-items: center;
}
.post-hero .hero-copy {
    max-width: 700px;
}


.post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(30, 75, 216, 0.22), rgba(198, 40, 40, 0.28));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.post-hero-copy h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.rich-text {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    color: #1f2a3d;
}

.rich-text blockquote {
    border-left: 3px solid var(--accent-2);
    padding-left: 12px;
    color: var(--text);
}

.rich-text ul {
    padding-left: 18px;
    color: #4a5f88;
}

.admin {
    margin-top: 38px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(30, 75, 216, 0.14);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.panel h3 {
    margin-bottom: 10px;
}

form {
    display: grid;
    gap: 10px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(30, 75, 216, 0.16);
    background: #fff;
    color: var(--text);
    font-size: 14px;
}

input:disabled, textarea:disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hint {
    color: #4a5f88;
    font-size: 13px;
}

.status {
    font-weight: 700;
    color: #1e8e50;
}

.status.error {
    color: #d62828;
}

.footnote {
    color: #4a5f88;
    margin-top: 10px;
}

.footer {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 18px 0 8px;
    border-top: 1px solid rgba(30, 75, 216, 0.12);
    color: #4a5f88;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-actions a {
    margin-right: 10px;
    color: var(--text);
    text-decoration: none;
}

.rights {
    margin-top: 6px;
    font-size: 13px;
    color: #3d4b66;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(30, 75, 216, 0.08);
    border: 1px solid rgba(30, 75, 216, 0.14);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: #1e4bd8;
}

.social-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(61, 88, 150, 0.18);
}

.footer-note {
    margin-top: 8px;
    font-size: 13px;
}

body.is-logged .panel {
    border-color: rgba(30, 75, 216, 0.24);
}

.hidden {
    display: none !important;
}

@media (max-width: 820px) {
    .post-hero {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        order: 2;
    }

    .brand {
        order: 1;
    }

    .nav {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(30, 75, 216, 0.14);
        border-radius: 14px;
        padding: 10px 12px;
        box-shadow: 0 12px 28px rgba(61, 88, 150, 0.16);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 10px 12px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 0 12px 32px;
    }

    .actions {
        flex-direction: column;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 32px;
    }
}
