* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --black: #050405;
    --dark: #0b0709;
    --panel: #120b0e;

    --red: #a80f29;
    --bright-red: #ef2347;
    --deep-red: #3b0712;

    --cream: #eadfd8;
    --muted: #9b8d89;

    --line: rgba(239, 35, 71, 0.25);
}


html {
    scroll-behavior: smooth;
}


body {

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(126, 0, 24, 0.18),
            transparent 34%
        ),
        var(--black);

    color: var(--cream);

    font-family:
        "Cormorant Garamond",
        serif;

    overflow-x: hidden;

    cursor: none;
}


a,
button {
    color: inherit;
}


button {
    font: inherit;
}



/* ================= CURSOR ================= */

#cursor {

    position: fixed;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--bright-red);

    box-shadow:
        0 0 12px var(--bright-red),
        0 0 30px rgba(239, 35, 71, 0.55);

    pointer-events: none;

    z-index: 9999;

    transform: translate(-50%, -50%);
}


#cursorGlow {

    position: fixed;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: 1px solid rgba(239, 35, 71, 0.55);

    pointer-events: none;

    z-index: 9998;

    transform: translate(-50%, -50%);

    transition:
        width 0.2s,
        height 0.2s,
        border-color 0.2s;
}



/* ================= PARTICLES ================= */

#particleContainer {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 500;

    overflow: hidden;
}


.vignette {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 40;

    box-shadow:
        inset 0 0 180px 70px #000;
}



/* ================= HEADER ================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 24px 6vw;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 4, 5, 0.94),
            transparent
        );
}


.logo {

    font-family: Cinzel, serif;

    text-decoration: none;

    letter-spacing: 0.18em;

    font-size: 1rem;

    font-weight: 700;
}


.logo span,
.footer-logo span,
h1 span,
h2 span,
.contact-box h2 span {

    color: var(--bright-red);
}


nav {

    display: flex;

    gap: 30px;
}


nav a {

    position: relative;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.16em;

    font:
        600 0.72rem Cinzel,
        serif;

    color: #c8bbb6;

    transition: color 0.25s;
}


nav a:hover {

    color: var(--bright-red);
}


nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--bright-red);

    transition: width 0.25s;
}


nav a:hover::after {

    width: 100%;
}


.menu-toggle {

    display: none;

    background: transparent;

    border: 1px solid var(--line);

    color: var(--cream);

    padding: 7px 10px;
}



/* ================= HERO ================= */

.hero {

    min-height: 100vh;

    display: grid;

    place-items: center;

    text-align: center;

    position: relative;

    padding: 130px 20px 70px;

    isolation: isolate;

    overflow: hidden;
}


.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -2;

    background:

        radial-gradient(
            circle at 50% 45%,
            rgba(166, 0, 28, 0.25),
            transparent 25%
        ),

        radial-gradient(
            circle at 15% 75%,
            rgba(120, 0, 20, 0.12),
            transparent 24%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(120, 0, 20, 0.12),
            transparent 24%
        );
}


.hero::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    opacity: 0.22;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        );

    background-size: 45px 45px;
}


.hero h1 {

    font:
        800 clamp(4rem, 12vw, 10rem)/0.78 Cinzel,
        serif;

    letter-spacing: 0.08em;

    text-shadow:
        0 0 25px rgba(239,35,71,0.18);

    animation:
        titlePulse 4s ease-in-out infinite;
}


.eyebrow,
.small-label,
.section-heading > p,
.quote-section > span,
.book-number,
.contact-link span,
footer {

    font-family: Cinzel, serif;

    letter-spacing: 0.2em;
}


.eyebrow {

    color: var(--bright-red);

    font-size: 0.7rem;

    margin-bottom: 30px;
}


.hero-subtitle {

    max-width: 620px;

    color: #b7a9a5;

    font-size: 1.25rem;

    margin: 35px auto;
}


.primary-btn,
.book-btn {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    text-decoration: none;

    text-transform: uppercase;

    font:
        700 0.72rem Cinzel,
        serif;

    letter-spacing: 0.16em;

    border: 1px solid var(--red);

    padding: 15px 22px;

    background: rgba(120,0,20,0.12);

    transition: 0.3s;
}


.primary-btn:hover,
.book-btn:hover {

    background: var(--red);

    box-shadow:
        0 0 28px rgba(239,35,71,0.3);

    transform: translateY(-2px);
}


.scroll-hint {

    position: absolute;

    bottom: 24px;

    font:
        0.62rem Cinzel,
        serif;

    letter-spacing: 0.18em;

    color: #766a67;
}


.scroll-hint span {

    color: var(--bright-red);

    margin-left: 8px;
}



/* BLOOD MOON */

.blood-moon {

    position: absolute;

    width: 270px;
    height: 270px;

    border-radius: 50%;

    top: 13%;
    right: 12%;

    z-index: -1;

    background:
        radial-gradient(
            circle at 35% 30%,
            #b93b49,
            #5d0a18 55%,
            #170308 75%
        );

    opacity: 0.34;

    box-shadow:
        0 0 90px rgba(174,0,25,0.22);
}


.hero-eyes {

    position: absolute;

    left: 8%;
    bottom: 22%;

    display: flex;

    gap: 18px;

    opacity: 0.55;
}


.hero-eyes span {

    width: 14px;
    height: 8px;

    border-radius: 50%;

    background: var(--bright-red);

    box-shadow:
        0 0 16px var(--bright-red);

    animation:
        blink 5s infinite;
}


.bat {

    position: absolute;

    opacity: 0.45;

    filter: grayscale(1);

    animation:
        fly 13s linear infinite;
}


.bat-one {

    top: 25%;
    left: -80px;

    font-size: 30px;
}


.bat-two {

    top: 65%;
    left: -100px;

    font-size: 22px;

    animation-delay: 5s;
}



/* ================= SECTIONS ================= */

.section {

    padding: 120px 7vw;

    position: relative;
}


.section-heading {

    margin-bottom: 60px;
}


.section-heading > p {

    color: var(--bright-red);

    font-size: 0.65rem;

    margin-bottom: 12px;
}


.section-heading h2,
.contact-box h2 {

    font:
        600 clamp(2.4rem, 5vw, 4.8rem)/1 Cinzel,
        serif;
}



/* ================= AUTHOR ================= */

.author-grid {

    max-width: 1120px;

    margin: auto;

    display: grid;

    grid-template-columns:
        0.8fr 1.2fr;

    gap: 9vw;

    align-items: center;
}


.author-portrait {

    text-align: center;
}


.portrait-frame {

    width: min(100%, 390px);

    aspect-ratio: 3 / 4;

    margin: auto;

    border: 1px solid var(--line);

    padding: 12px;

    background:
        linear-gradient(
            145deg,
            #170a0d,
            #070507
        );

    box-shadow:
        20px 20px 0 rgba(92,0,18,0.18),
        0 0 70px rgba(160,0,25,0.1);
}


.portrait-placeholder {

    height: 100%;

    display: grid;

    place-items: center;

    font:
        700 4rem Cinzel,
        serif;

    letter-spacing: 0.12em;

    color: rgba(239,35,71,0.7);

    background:

        radial-gradient(
            circle,
            rgba(239,35,71,0.13),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #17090d,
            #030203
        );
}


.portrait-caption {

    display: block;

    margin-top: 15px;

    font:
        0.6rem Cinzel,
        serif;

    letter-spacing: 0.18em;

    color: #766a67;
}


.small-label {

    font-size: 0.65rem;

    color: var(--bright-red);
}


.author-copy h3 {

    font:
        600 clamp(2.5rem,5vw,5rem)/0.95 Cinzel,
        serif;

    margin: 18px 0 28px;
}


.author-copy h3 em {

    color: var(--bright-red);

    font-family:
        "Cormorant Garamond",
        serif;
}


.red-line {

    width: 90px;

    height: 2px;

    background: var(--bright-red);

    margin: 22px 0;

    box-shadow:
        0 0 14px rgba(239,35,71,0.5);
}


.author-copy > p:not(.small-label) {

    color: var(--muted);

    font-size: 1.18rem;

    line-height: 1.65;

    margin-bottom: 18px;

    max-width: 680px;
}


.contact-mini {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 28px;
}


.contact-mini a {

    color: #d5c9c4;

    text-decoration: none;

    border-bottom: 1px solid var(--line);

    padding-bottom: 7px;

    font-size: 0.95rem;
}



/* ================= BOOKS ================= */

.books-section {

    background:

        linear-gradient(
            rgba(11,7,9,0.94),
            rgba(11,7,9,0.97)
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0 90px,
            rgba(239,35,71,0.025) 90px 91px
        );
}


.books-grid {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 40px;
}


.book-card {

    background:
        rgba(18,11,14,0.8);

    border:
        1px solid rgba(239,35,71,0.16);

    transition:
        transform 0.35s,
        border-color 0.35s,
        box-shadow 0.35s;

    overflow: hidden;
}


.book-card:hover {

    transform: translateY(-9px);

    border-color:
        rgba(239,35,71,0.55);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.45),
        0 0 35px rgba(150,0,25,0.1);
}


.book-cover {

    min-height: 390px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    position: relative;

    overflow: hidden;
}


.cover-one {

    background:

        radial-gradient(
            circle at 70% 35%,
            rgba(230,25,55,0.35),
            transparent 16%
        ),

        linear-gradient(
            135deg,
            #260812,
            #090406 62%,
            #000
        );
}


.cover-two {

    background:

        radial-gradient(
            circle at 25% 35%,
            rgba(220,25,55,0.28),
            transparent 16%
        ),

        linear-gradient(
            145deg,
            #080507,
            #250812 55%,
            #050304
        );
}


.cover-noise {

    position: absolute;

    inset: 0;

    opacity: 0.12;

    background-image:
        radial-gradient(#fff 1px, transparent 1px);

    background-size: 8px 8px;

    mix-blend-mode: overlay;
}


.book-cover span {

    font:
        0.65rem Cinzel,
        serif;

    letter-spacing: 0.2em;

    color: #d5b8b8;

    margin-bottom: auto;

    position: relative;
}


.book-cover h3 {

    font:
        700 clamp(2rem,4vw,3.7rem)/0.9 Cinzel,
        serif;

    position: relative;

    text-shadow:
        0 8px 35px #000;
}


.book-cover small {

    position: relative;

    margin-top: 16px;

    color: #c1aaa7;

    letter-spacing: 0.08em;
}


.book-info {

    padding: 28px;
}


.book-number {

    color: var(--bright-red);

    font-size: 0.58rem;
}


.book-info h3 {

    font:
        600 1.7rem Cinzel,
        serif;

    margin: 10px 0;
}


.book-info > p:not(.book-number) {

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.45;

    margin-bottom: 22px;
}



/* ================= QUOTE ================= */

.quote-section {

    min-height: 55vh;

    display: grid;

    place-items: center;

    align-content: center;

    text-align: center;

    padding: 100px 20px;

    background:

        radial-gradient(
            circle,
            rgba(153,0,25,0.16),
            transparent 40%
        ),

        #070507;

    position: relative;
}


.quote-mark {

    color: var(--bright-red);

    font:
        7rem Georgia,
        serif;

    height: 80px;
}


#quote {

    max-width: 850px;

    font-size:
        clamp(2rem,5vw,4.5rem);

    line-height: 1;

    font-style: italic;
}


.quote-section > span {

    color: #736865;

    font-size: 0.6rem;

    margin: 25px 0;
}


#quoteButton {

    border: 0;

    border-bottom:
        1px solid var(--red);

    background: transparent;

    color: #b9aaa5;

    padding: 8px 0;

    cursor: none;

    font:
        0.65rem Cinzel,
        serif;

    letter-spacing: 0.15em;
}



/* ================= ARCHIVE ================= */

.archive-grid {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}


.archive-card {

    min-height: 220px;

    text-align: left;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #12090c,
            #080608
        );

    border:
        1px solid rgba(239,35,71,0.12);

    color: var(--cream);

    cursor: none;

    transition: 0.3s;
}


.archive-card:hover {

    border-color: var(--red);

    transform: translateY(-5px);
}


.archive-card span {

    color: var(--bright-red);

    font:
        0.65rem Cinzel,
        serif;
}


.archive-card strong {

    display: block;

    font:
        600 1.7rem Cinzel,
        serif;

    margin: 55px 0 20px;
}


.archive-card em {

    color: #796c68;
}



/* ================= CONTACT ================= */

.contact-section {

    padding-bottom: 150px;
}


.contact-box {

    max-width: 1050px;

    margin: auto;

    padding: 70px;

    border:
        1px solid rgba(239,35,71,0.18);

    background:

        radial-gradient(
            circle at 90% 10%,
            rgba(180,0,30,0.13),
            transparent 25%
        ),

        #0c0709;
}


.contact-box > p:not(.small-label) {

    color: var(--muted);

    font-size: 1.15rem;

    margin: 18px 0 35px;
}


.contact-links {

    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 15px;
}


.contact-link {

    text-decoration: none;

    border:
        1px solid rgba(239,35,71,0.13);

    padding: 22px;

    background:
        rgba(0,0,0,0.2);

    transition: 0.25s;
}


.contact-link:hover {

    border-color: var(--red);

    transform: translateY(-3px);
}


.contact-link span {

    display: block;

    color: var(--bright-red);

    font-size: 0.55rem;

    margin-bottom: 10px;
}


.contact-link strong {

    font-size: 1rem;

    font-weight: 500;

    overflow-wrap: anywhere;
}



/* ================= FOOTER ================= */

footer {

    padding: 35px 7vw;

    border-top:
        1px solid rgba(239,35,71,0.12);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: #716562;

    font-size: 0.55rem;
}


.footer-logo {

    color: var(--cream);

    font-size: 0.9rem;

    font-weight: 700;
}


footer a {

    color: #8f7f7a;

    text-decoration: none;
}



/* ================= MODAL ================= */

.modal {

    position: fixed;

    inset: 0;

    display: grid;

    place-items: center;

    padding: 25px;

    background:
        rgba(0,0,0,0.78);

    backdrop-filter: blur(9px);

    opacity: 0;

    visibility: hidden;

    transition: 0.25s;

    z-index: 5000;
}


.modal.open {

    opacity: 1;

    visibility: visible;
}


.modal-inner {

    width: min(620px,100%);

    padding: 50px;

    background: #0e080a;

    border:
        1px solid rgba(239,35,71,0.4);

    box-shadow:
        0 30px 100px #000;

    position: relative;
}


.modal-inner > p:first-child {

    color: var(--bright-red);

    font:
        0.6rem Cinzel,
        serif;

    letter-spacing: 0.2em;
}


.modal-inner h2 {

    font:
        600 2.2rem Cinzel,
        serif;

    margin-top: 15px;
}


.modal-inner p:last-child {

    color: #a99b96;

    font-size: 1.2rem;

    line-height: 1.6;
}


#closeModal {

    position: absolute;

    right: 18px;
    top: 12px;

    background: transparent;

    border: 0;

    color: #c7b8b4;

    font-size: 2rem;

    cursor: none;
}



/* ================= SPARKS ================= */

.spark {

    position: fixed;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--bright-red);

    pointer-events: none;

    z-index: 10000;

    box-shadow:
        0 0 10px var(--bright-red);

    animation:
        spark 0.7s forwards;
}


.trail {

    position: fixed;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--bright-red);

    pointer-events: none;

    z-index: 9999;

    box-shadow:
        0 0 10px rgba(239,35,71,0.6);

    animation:
        fadeTrail 0.55s forwards;
}



/* ================= ANIMATIONS ================= */

@keyframes titlePulse {

    0%,100% {
        text-shadow:
            0 0 25px rgba(239,35,71,0.12);
    }

    50% {
        text-shadow:
            0 0 45px rgba(239,35,71,0.32);
    }
}


@keyframes blink {

    0%,46%,50%,100% {
        opacity: 0.7;
    }

    48% {
        opacity: 0;
    }
}


@keyframes fly {

    from {
        transform:
            translateX(-100px)
            translateY(0)
            rotate(-5deg);
    }

    50% {
        transform:
            translateX(55vw)
            translateY(-70px)
            rotate(8deg);
    }

    to {
        transform:
            translateX(110vw)
            translateY(20px)
            rotate(-4deg);
    }
}


@keyframes spark {

    from {

        transform:
            translate(0,0)
            scale(1);

        opacity: 1;
    }

    to {

        transform:
            translate(var(--x),var(--y))
            scale(0.1);

        opacity: 0;
    }
}


@keyframes fadeTrail {

    from {

        opacity: 0.8;

        transform:
            scale(1);
    }

    to {

        opacity: 0;

        transform:
            scale(0.1);
    }
}



/* ================= MOBILE ================= */

@media (max-width: 800px) {

    body {
        cursor: auto;
    }

    #cursor,
    #cursorGlow {
        display: none;
    }


    .site-header {

        padding:
            18px 5vw;
    }


    .menu-toggle {

        display: block;

        cursor: pointer;
    }


    nav {

        position: absolute;

        top: 70px;

        right: 5vw;

        display: none;

        flex-direction: column;

        gap: 20px;

        padding: 25px;

        background: #0d080a;

        border:
            1px solid var(--line);
    }


    nav.open {
        display: flex;
    }


    .hero h1 {

        font-size:
            clamp(3.5rem,17vw,7rem);
    }


    .blood-moon {

        width: 160px;
        height: 160px;

        right: 4%;
        top: 18%;
    }


    .author-grid,
    .books-grid,
    .archive-grid,
    .contact-links {

        grid-template-columns: 1fr;
    }


    .section {

        padding:
            90px 6vw;
    }


    .contact-box {

        padding:
            35px 25px;
    }


    footer {

        flex-direction: column;

        text-align: center;
    }

}