:root {
    --bg: #0f0a1a;
    /* deep cosmic */
    --panel: #1a122b;
    /* card background */
    --brand: #8657ff;
    /* mystical purple */
    --accent: #ff7bbb;
    /* rosy accent */
    --text: #f6f3ff;
    /* near-white */
    --muted: #cfc7ff;
    /* soft */
    --ok: #41d6b1;
    --warn: #ffd166;
    --maxw: 1200px;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 800px at 70% 10%, #543E9F 0%, var(--bg) 90%);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--maxw);
    padding: 0 10px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #000;
    color: #fff;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: blur(8px);
    background: rgba(15, 10, 26, .75);
    border-bottom: 1px solid #2a2042;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.love-tarot-link {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.2em;
    font-weight: bold;
}

.love-tarot-link:hover {
    color: #ff7bbb !important;
    text-decoration: none;
    font-size: 1.3em;
}

.brand h1 {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0;
    letter-spacing: .5px;
}

/* target the site menu specifically to avoid global overrides */
#site-menu ul {
    display: flex;
    gap: 14px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    align-items: center;
}

#site-menu a {
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-block;
}

#site-menu a:hover {
    background: rgba(134, 87, 255, .15);
    text-decoration: none;
}

.cta {
    margin-left: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0614;
    border-radius: 999px;
    font-weight: 700;
    border: 0;
    box-shadow: var(--shadow);
}

/* Menu button (hidden on desktop) */
.menu-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    width: auto;
}

.menu-btn:focus {
    outline: 3px solid rgba(134, 87, 255, .18);
    outline-offset: 3px;
}

/* Hero, sections... */
.hero {
    position: relative;
    isolation: isolate;
    padding: clamp(16px, 1vw, 24px) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.18;
    margin: 0 0 10px;
}

.hero h2 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.18;
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 500;
}

.hero p.lead {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted);
    margin: 0 0 18px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/*  shadow-image*/
.sombra-imagem {
    filter: drop-shadow(0 0 5px white);
}

/* BUTTONS */
.buttons .btn,
.card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid #3b2f5c;
    background: #1a122b;
    color: var(--text);
    width: 100%;
    text-align: center;
}

.buttons .btn.primary,
.card .btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0614;
    border: 0;
}

.note {
    font-size: 13px;
    color: var(--ok);
    margin-top: 8px;
}

.hero img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #2a2042;
}

/* Sections */
section {
    padding: clamp(18px, 4vw, 56px) 0;
}

.section-title {
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 5px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: linear-gradient(180deg, rgba(134, 87, 255, .05), rgba(9, 6, 17, .6));
    border: 2px solid #6A4FAB;
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: #8657ff;
}

.card h3 {
    margin: 6px 0 4px;
    font-size: clamp(18px, 2.2vw, 22px);
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    text-decoration: none;
}

.card-content {
    position: relative;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 12px;
}

.card-content .btn {
    pointer-events: auto;
    margin-top: auto;
    padding: 14px 18px;
}

.badge {
    font-size: 12px;
    background: #20183a;
    color: #d6cfff;
    border: 1px solid #3b2f5c;
    padding: 4px 8px;
    border-radius: 999px;
    width: max-content;
}

/* Card Images */
.card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

/* Article Content Styling */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(26, 18, 43, 0.7);
    border-radius: var(--radius);
    border: 1px solid #3b2f5c;
}

.article-content h2 {
    color: var(--accent);
    margin-top: 30px;
    font-size: 28px;
}

.article-content h3 {
    color: var(--brand);
    margin-top: 24px;
    font-size: 22px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(134, 87, 255, 0.1), rgba(255, 123, 187, 0.1));
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.article-image {
    width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid #3b2f5c;
}

/* Special Arcana Card */
.arcana-card {
    max-width: 900px;
    margin: 40px auto;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
}

.arcana-card h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 24px;
}

.arcana-card .btn {
    margin-top: 20px;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.arcana-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #2a2042;
}

.arcana-image img {
    width: 100%;
    height: auto;
    display: block;
}

.arcana-card:hover .arcana-image img {
    transform: scale(1.00);
}

/* Blog */
.blog .post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px;
    align-items: center;
    background: #120d21;
    border: 1px solid #2a2042;
    border-radius: var(--radius);
    padding: 14px;
}


/* FAQ */
details {
    background: #120d21;
    border: 1px solid #735AB3;
    border-radius: 12px;
    padding: 12px 14px;
}

details+details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* Footer */
footer {
    background: #0b0614;
    border-top: 1px solid #2a2042;
    padding: 28px 0;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.tiny {
    font-size: 12px;
    color: #a69be6;
}

/* Responsive menu behavior for mobile */
@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .blog .post {
        grid-template-columns: 1fr;
    }

    .grid.cards {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 150px;
    }

    .hero img {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .arcana-image img {
        max-width: 250px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    /* show the menu button */
    .menu-btn {
        display: inline-flex;
        margin-left: auto;
        background: linear-gradient(135deg, rgba(134, 87, 255, .06), rgba(255, 123, 187, .03));
        border: 1px solid #2a2042;
        padding: 8px 12px;
        width: auto;
    }

    /* hide the inline list by default on mobile */
    #site-menu ul {
        display: none;
    }

    /* when nav has class 'open' show the menu as a stacked dropdown */
    #site-menu.open ul {
        display: flex;
        position: absolute;
        right: 20px;
        top: 64px;
        flex-direction: column;
        gap: 8px;
        background: rgba(12, 8, 22, .98);
        padding: 12px;
        border-radius: 12px;
        border: 1px solid #2a2042;
        min-width: 180px;
        box-shadow: var(--shadow);
        z-index: 70;
    }

    #site-menu.open ul a {
        display: block;
        padding: 8px 12px;
    }
}

@media (min-width: 921px) {
    .menu-btn {
        display: none;
    }

    /* ensure desktop shows inline menu */
    #site-menu ul {
        display: flex !important;
    }
}

@media (prefers-reduced-motion:no-preference) {
    html {
        scroll-behavior: smooth
    }
}