@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

@font-face {
    font-family: 'Scriptorium';
    src: url('fonts/Scriptorium-Beaumarchais.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-abyss: #0a0a0a;
    --bg-surface: #1a1a1a;
    --text-parchment: #F4F1EA;
    --text-muted: #A09D96;
    --cthulhu-green: #B87333;
    /*--cthulhu-green: #17B169;*/
    /*--cthulhu-green-glow: rgba(23, 177, 105, 0.3);*/
    --cthulhu-green-glow: rgba(184, 115, 51, 0.3);
    --coffee-copper: #B87333;
    /*--font-heading: 'Cinzel', serif;*/
    --font-heading: 'Scriptorium', serif;
    --font-body: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-padding-top: 70px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-abyss);
    color: var(--text-parchment);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6, .brand-title {
    font-family: var(--font-heading);
    color: var(--text-parchment);
    letter-spacing: 0.05em;
    font-weight: bold;
}



.card-grimoire {
    background-color: var(--bg-surface);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin: 10px 0px;
    transition: transform 0.3s ease-in-out;
}

.card-grimoire:hover {
    transform: translateY(-5px);
    border-color: var(--coffee-copper);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.8);
}

.card-grimoire-title {
    color: var(--coffee-copper);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.text-copper {
    color: var(--coffee-copper);
}

.text-muted-custom {
    color: var(--text-muted);
}

.heading-accent {
    font-family: var(--font-heading);
    color: var(--coffee-copper);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align:center;
    margin: 3px 0px;
}

.link-mystic, a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.link-mystic:hover, a:hover {
    color: var(--cthulhu-green);
    text-shadow: 0 0 8px var(--cthulhu-green-glow);
}

.divider-abyss {
    border-color: #1a1a1a;
    opacity: 1;
}

.badge-mystic {
    background-color: var(--coffee-copper);
    color: var(--bg-abyss);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: inline-block;
    text-wrap: nowrap;
}

.text-parchment {
    color: var(--text-parchment);
}


main > section:nth-of-type(1) {
    margin-top: 70px;
}

main > section:nth-of-type(odd) {
    background-color: color-mix(in srgb, var(--bg-abyss) 50%, transparent);
}

main > section:nth-of-type(even) {
    background-color: color-mix(in srgb, var(--bg-surface) 50%, transparent);
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}


.section-padding {
    padding: 2rem 0;
}

.section-divider {
    border-top: 1px solid rgba(184, 115, 51, 0.1);
}


.card {
    background-color: var(--bg-surface);
    border-left: 3px solid #b87333;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}

    .card .title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card .submit {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.select-card {
    border: 2px solid rgba(184, 115, 51, 0.2);
    background-color: #121212;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}

    .select-card:hover {
        background-color: rgba(184, 115, 51, 0.05);
    }

    .select-card.active {
        border-color: #b87333;
        background-color: rgba(184, 115, 51, 0.1);
    }