/* ============================================
   POETRESS OF NOWHERE — Premium Website
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #dda0dd;
    --color-bg-warm: #d494d4;
    --color-surface: #e4ade4;
    --color-surface-light: #e0a6e0;
    --color-text: #0d1b2a;
    --color-text-muted: #1c3a5c;
    --color-accent: #5c2d91;
    --color-accent-light: #7b44b2;
    --color-rose: #8b1a4a;
    --color-rose-deep: #6e1340;
    --color-lavender: #4a2080;
    --color-green: #5a8a6a;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(92, 45, 145, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: all 0.5s var(--ease-out-expo);
}

.nav--scrolled {
    padding: 1rem 3rem;
    background: rgba(221, 160, 221, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 45, 145, 0.1);
}

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.nav__logo:hover {
    opacity: 0.8;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-accent);
    transition: all 0.3s var(--ease-out-expo);
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__links a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
}

.nav__links a:hover {
    color: var(--color-accent);
}

.nav__links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, rgba(92, 45, 145, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(196, 104, 122, 0.05) 0%, transparent 50%),
                var(--color-bg);
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__particles canvas {
    width: 100%;
    height: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero__prelude {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.hero__title-line {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    color: var(--color-text);
}

.hero__title-line--accent {
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    background: linear-gradient(135deg, var(--color-accent), var(--color-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 500;
    color: #2a1040;
    line-height: 1.8;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.hero__cta {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background: #da70d6;
    border: 1px solid #da70d6;
    padding: 1rem 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
}

.hero__cta:hover {
    background: #c55fc1;
    border-color: #c55fc1;
    transform: translateY(-2px);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.hero__scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Shared --- */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* --- About Section --- */
.about {
    padding: 8rem 0;
    background: var(--color-bg-warm);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(92, 45, 145, 0.15), transparent);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about__divider {
    width: 60px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 2rem;
}

.about__paragraph {
    font-size: 1.05rem;
    color: #2a1040;
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about__visual {
    display: flex;
    justify-content: center;
}

.about__portrait {
    max-width: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(92, 45, 145, 0.15);
    border: 3px solid #3a1066;
}

.about__portrait-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.about__portrait:hover .about__portrait-img {
    transform: scale(1.03);
}

/* --- Books Section --- */
.books {
    padding: 8rem 0;
    background: var(--color-bg);
    position: relative;
}

.books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(92, 45, 145, 0.15), transparent);
}

.books__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.book-card {
    background: var(--color-surface);
    border: 2px solid #3a1066;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.book-card:hover {
    transform: translateY(-8px);
    border-color: rgba(92, 45, 145, 0.15);
    box-shadow: 0 30px 60px rgba(80, 70, 120, 0.1);
}

.book-card__cover-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2/3;
    background: var(--color-surface-light);
}

.book-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.book-card:hover .book-card__cover {
    transform: scale(1.05);
}

.book-card__cover--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(145deg, #e4ade4, #e0a6e0);
    padding: 2rem;
}

.book-card__cover-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent);
    text-align: center;
    line-height: 1.3;
}

.book-card__cover-author {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.book-card__shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s var(--ease-out-expo);
}

.book-card:hover .book-card__shine {
    left: 150%;
}

.book-card__info {
    padding: 2rem;
}

.book-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.3rem;
}

.book-card__series {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.book-card__description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.book-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(92, 45, 145, 0.2);
    transition: all 0.3s var(--ease-out-expo);
}

.book-card__btn:hover {
    border-color: var(--color-accent);
    gap: 1rem;
}

.book-card__btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.book-card__btn:hover svg {
    transform: translateX(4px);
}

/* --- Poetry Section --- */
.poetry {
    padding: 8rem 0;
    background: var(--color-bg-warm);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.poetry::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(92, 45, 145, 0.15), transparent);
}

.poetry__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(92, 45, 145, 0.06) 0%, transparent 70%);
}

.poetry__carousel {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.poetry__slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.poetry__slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.poetry__quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.poetry__cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-top: 2rem;
}

.poetry__dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.poetry__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(92, 45, 145, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.poetry__dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.poetry__dot:hover {
    border-color: var(--color-accent);
}

/* --- Connect Section --- */
.connect {
    padding: 8rem 0;
    background: var(--color-bg);
    text-align: center;
    position: relative;
}

.connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(92, 45, 145, 0.15), transparent);
}

.connect__text {
    font-size: 1.1rem;
    color: #2a1040;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.connect__links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.connect__link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: #da70d6;
    padding: 1rem 2rem;
    border: 1px solid #da70d6;
    border-radius: 2px;
    transition: all 0.4s var(--ease-out-expo);
}

.connect__link:hover {
    color: #fff;
    background: #c55fc1;
    border-color: #c55fc1;
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    background: var(--color-bg-warm);
    border-top: 1px solid rgba(92, 45, 145, 0.06);
}

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

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-accent);
    opacity: 0.6;
}

.footer__copy {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .books__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(212, 148, 212, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out-expo);
        border-left: 1px solid rgba(92, 45, 145, 0.08);
    }

    .nav__links.open {
        transform: translateX(0);
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .nav__links a {
        font-size: 0.9rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .books__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero__tagline br {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1.2rem 1.5rem;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .connect__links {
        flex-direction: column;
        align-items: center;
    }

    .connect__link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(92, 45, 145, 0.3);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(92, 45, 145, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 45, 145, 0.4);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(30, 20, 45, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(92, 45, 145, 0.3);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-banner__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cookie-banner__text p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #b8afc4;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-banner__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-banner__option {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
}

.cookie-banner__option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid rgba(92, 45, 145, 0.5);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s;
}

.cookie-banner__option input[type="checkbox"]:checked {
    background: #da70d6;
    border-color: #da70d6;
}

.cookie-banner__option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-banner__option input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: default;
}

.cookie-banner__label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cookie-banner__label strong {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: #e8e0f0;
}

.cookie-banner__label small {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #9088a0;
    line-height: 1.4;
}

.cookie-banner__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #9088a0;
    border: 1px solid rgba(144, 136, 160, 0.3);
}

.cookie-banner__btn--reject:hover {
    color: #e8e0f0;
    border-color: rgba(144, 136, 160, 0.6);
}

.cookie-banner__btn--save {
    background: transparent;
    color: #da70d6;
    border: 1px solid rgba(218, 112, 214, 0.4);
}

.cookie-banner__btn--save:hover {
    background: rgba(218, 112, 214, 0.1);
    border-color: #da70d6;
}

.cookie-banner__btn--accept {
    background: #da70d6;
    color: #fff;
}

.cookie-banner__btn--accept:hover {
    background: #c55fc1;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
    }

    .cookie-banner__options {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-banner__options {
        grid-template-columns: 1fr;
    }
}
