/* perso.news - Vaporwave + Book-Scholarly Magazine */
/* Colors: #e57373, #c2185b, #4a0e2a, #2d0a1a, #fafafa, #bdbdbd, #fce4ec, #b39ddb */
/* Fonts: Abril Fatface, Lora, IBM Plex Mono */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: #2d0a1a;
    color: #fafafa;
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== GRAIN OVERLAY ===== */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a0e2a 0%, #2d0a1a 25%, #c2185b 50%, #b39ddb 75%, #fce4ec 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-ornament {
    position: absolute;
    top: 0;
    height: 100%;
    width: 60px;
    z-index: 1;
    opacity: 0.5;
}

.hero-ornament-left {
    left: 40px;
}

.hero-ornament-right {
    right: 40px;
}

.hero-ornament svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fce4ec;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.meta-divider {
    margin: 0 1rem;
    color: #b39ddb;
}

.hero-title {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 1;
    color: #fafafa;
    text-shadow: 0 0 60px rgba(179, 157, 219, 0.4), 0 0 120px rgba(194, 24, 91, 0.2);
    margin-bottom: 1.5rem;
}

.kinetic-letter {
    display: inline-block;
    animation: kineticBounce 3s ease-in-out infinite;
    animation-delay: calc(var(--delay) * 0.15s);
}

.kinetic-dot {
    display: inline-block;
    color: #e57373;
    animation: kineticPulse 2s ease-in-out infinite;
}

@keyframes kineticBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    75% { transform: translateY(4px); }
}

@keyframes kineticPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-rule {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b39ddb, transparent);
    margin: 0 auto 1.5rem;
}

.hero-tagline {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #fce4ec;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.hero-statue {
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 180px;
    height: 300px;
    z-index: 1;
    opacity: 0.6;
    animation: statueFloat 6s ease-in-out infinite;
}

@keyframes statueFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-statue svg {
    width: 100%;
    height: 100%;
}

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

.scroll-indicator span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b39ddb;
    opacity: 0.6;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #b39ddb, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.chapter-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #b39ddb;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fafafa;
    margin-bottom: 1rem;
}

.ornamental-rule {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e57373, transparent);
    margin: 0 auto;
}

/* ===== MAGAZINE GRID ===== */
#magazine-grid {
    padding: 6rem 4rem;
    background: linear-gradient(180deg, #2d0a1a 0%, #4a0e2a 100%);
}

.grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-article {
    grid-row: 1 / 3;
}

.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gradient-bg-1 {
    background: linear-gradient(135deg, #c2185b, #b39ddb, #e57373);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #4a0e2a, #c2185b, #fce4ec);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #b39ddb, #2d0a1a, #e57373);
}

.article-icon {
    width: 60px;
    height: 60px;
    opacity: 0.7;
}

.article-body {
    padding: 1.5rem 0;
}

.article-category {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e57373;
    display: block;
    margin-bottom: 0.75rem;
}

.article-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.5rem;
    color: #fafafa;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-article .article-title {
    font-size: 2rem;
}

.article-excerpt {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #bdbdbd;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.article-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #b39ddb;
    display: flex;
    gap: 1.5rem;
}

.grid-item {
    background: rgba(74, 14, 42, 0.3);
    border: 1px solid rgba(179, 157, 219, 0.1);
    border-radius: 6px;
    overflow: hidden;
    padding: 1rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    border-color: rgba(179, 157, 219, 0.3);
}

/* ===== PULL QUOTE ===== */
#pull-quote-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #4a0e2a 0%, #2d0a1a 50%, #4a0e2a 100%);
    position: relative;
}

.pull-quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pull-quote-ornament-top,
.pull-quote-ornament-bottom {
    font-size: 2rem;
    color: #b39ddb;
    opacity: 0.4;
    line-height: 1;
}

.pull-quote-ornament-bottom {
    transform: rotate(180deg);
    display: inline-block;
}

.pull-quote {
    margin: 2rem 0;
}

.pull-quote p {
    font-family: 'Abril Fatface', cursive;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.4;
    color: #fce4ec;
    font-style: normal;
}

.pull-quote-cite {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #b39ddb;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1rem;
    font-style: normal;
}

/* ===== EDITORIAL COLUMNS ===== */
#editorial-columns {
    padding: 6rem 4rem;
    background: #2d0a1a;
}

.columns-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.editorial-column {
    border-top: 1px solid rgba(179, 157, 219, 0.2);
    padding-top: 2rem;
}

.column-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(194, 24, 91, 0.2);
    margin-bottom: 1rem;
    line-height: 1;
}

.column-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.4rem;
    color: #fafafa;
    margin-bottom: 1.25rem;
}

.column-text {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: #bdbdbd;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.column-ornament {
    font-size: 1rem;
    color: #e57373;
    opacity: 0.5;
    margin-top: 1.5rem;
}

/* ===== VAPORWAVE GRID / SIGNAL ARCHIVE ===== */
#vaporwave-grid {
    padding: 6rem 4rem;
    background: linear-gradient(180deg, #2d0a1a 0%, #4a0e2a 50%, #2d0a1a 100%);
    position: relative;
}

#vaporwave-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 95%, rgba(179, 157, 219, 0.03) 95%),
        linear-gradient(90deg, transparent 95%, rgba(179, 157, 219, 0.03) 95%);
    background-size: 60px 60px;
    pointer-events: none;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.archive-card {
    background: rgba(45, 10, 26, 0.6);
    border: 1px solid rgba(179, 157, 219, 0.15);
    border-radius: 4px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.archive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c2185b, #b39ddb, #e57373);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.archive-card:hover {
    border-color: rgba(179, 157, 219, 0.35);
    transform: translateY(-3px);
    background: rgba(45, 10, 26, 0.8);
}

.archive-card:hover::before {
    opacity: 1;
}

.archive-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.archive-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e57373;
    letter-spacing: 0.1em;
}

.archive-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #bdbdbd;
    opacity: 0.6;
}

.archive-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.25rem;
    color: #fafafa;
    margin-bottom: 0.75rem;
}

.archive-desc {
    font-family: 'Lora', serif;
    font-size: 0.85rem;
    color: #bdbdbd;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.archive-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b39ddb;
    border: 1px solid rgba(179, 157, 219, 0.25);
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
}

/* ===== COUNTER-ANIMATE ===== */
.counter-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.counter-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.counter-animate-left.visible,
.counter-animate-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FOOTER ===== */
#site-footer {
    padding: 4rem 2rem;
    background: #2d0a1a;
    border-top: 1px solid rgba(179, 157, 219, 0.1);
}

.footer-ornament {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-ornament svg {
    width: 200px;
    height: 30px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 1.5rem;
    color: #fafafa;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #b39ddb;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #bdbdbd;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #e57373;
}

.footer-meta p {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #bdbdbd;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.65rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .feature-article {
        grid-row: auto;
    }
    
    .columns-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    #magazine-grid,
    #editorial-columns,
    #vaporwave-grid {
        padding: 4rem 2rem;
    }
    
    .hero-ornament {
        display: none;
    }
    
    .hero-statue {
        opacity: 0.3;
        right: 5%;
        width: 120px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
