@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Special+Elite&family=Lora:ital,wght@0,400;1,400&display=swap');

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

body {
    font-family: 'Lora', serif;
    background: #b5311e;
    color: #2c2c2c;
    min-height: 100vh;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes swing {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(20deg); }
}

/* Navbar */
nav {
    background: #f5f0e8;
    border-bottom: 3px solid #2c2c2c;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
    color: #c0392b;
    text-decoration: none;
    transform: rotate(-2deg);
    display: inline-block;
}

nav ul { display: flex; gap: 0.5rem; list-style: none; }

nav ul li a {
    font-family: 'Special Elite', monospace;
    text-decoration: none;
    color: #2c2c2c;
    padding: 0.5rem 1.2rem;
    background: #fff;
    border: 2px solid #2c2c2c;
    transition: all 0.2s;
}

nav ul li a:hover {
    background: #c0392b;
    color: #fff;
    transform: rotate(-1deg);
}

nav ul li:nth-child(odd) a { transform: rotate(0.5deg); }
nav ul li:nth-child(even) a { transform: rotate(-0.5deg); }

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #f5f0e8;
    text-shadow: 3px 3px 0 #2c2c2c;
    transform: rotate(-2deg);
    margin-bottom: 1rem;
}

.hero p {
    font-family: 'Special Elite', monospace;
    color: #f5f0e8;
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    transform: rotate(0.5deg);
}

/* Hero Video */
.hero-video {
    max-width: 720px;
    margin: 2rem auto;
    border: 4px solid #f5f0e8;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.hero-video video { width: 100%; display: block; }

/* Content area */
.content-area {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.3s ease;
}

/* Paper cards */
.paper {
    background: #f5f0e8;
    padding: 2.5rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    border: 1px solid #d4c9b8;
    animation: fadeIn 0.4s ease;
}

.paper::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 60px;
    height: 20px;
    background: rgba(200, 200, 100, 0.6);
    transform: rotate(-2deg);
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.paper:nth-child(even)::before {
    left: auto;
    right: 40px;
    transform: rotate(1deg);
    background: rgba(100, 180, 200, 0.5);
}

.paper:nth-child(odd) { transform: rotate(-0.5deg); }
.paper:nth-child(even) { transform: rotate(0.7deg); }

.paper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #c0392b;
    border-bottom: 2px dashed #c0392b;
    padding-bottom: 0.5rem;
}

.paper p, .paper li {
    font-size: 1.05rem;
    line-height: 1.8;
    font-family: 'Special Elite', monospace;
}

/* Clip icon */
.clip {
    position: absolute;
    top: -12px;
    right: 20px;
    font-size: 1.5rem;
    animation: swing 3s ease-in-out infinite;
}

/* News items - Carousel */
.news-item {
    display: none;
    background: #fff;
    border-left: 5px solid #c0392b;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

.news-item.active { display: block; transform: rotate(0.3deg); }

.news-item a {
    text-decoration: none;
    color: #2c2c2c;
}

.news-item:hover {
    transform: scale(1.02) rotate(0deg);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.news-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border: 3px solid #2c2c2c;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.news-item h3 {
    font-family: 'Playfair Display', serif;
    color: #c0392b;
    margin-bottom: 0.5rem;
}

.news-item .date {
    font-family: 'Special Elite', monospace;
    font-size: 0.85rem;
    color: #888;
}

.news-item p {
    font-family: 'Special Elite', monospace;
    margin-top: 0.5rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.carousel-btn {
    font-family: 'Special Elite', monospace;
    background: #c0392b;
    color: #fff;
    border: 2px solid #2c2c2c;
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-btn:hover { transform: rotate(-1deg) scale(1.05); }



/* Post content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.4s ease;
}

.post-header {
    background: #f5f0e8;
    padding: 2.5rem 2.5rem 1.5rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    border: 1px solid #d4c9b8;
    border-bottom: none;
    box-shadow: none;
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #c0392b;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-family: 'Special Elite', monospace;
    color: #888;
    font-size: 0.9rem;
}

.post-body {
    background: #f5f0e8;
    padding: 0 2.5rem 2.5rem;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
    border: 1px solid #d4c9b8;
    border-top: none;
    font-family: 'Special Elite', monospace;
    line-height: 1.8;
}

.post-body p { margin-bottom: 1rem; }
.post-body img { max-width: 100%; margin: 1rem 0; }

.back-link {
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Special Elite', monospace;
    color: #f5f0e8;
    background: #c0392b;
    padding: 0.5rem 1rem;
    border: 2px solid #2c2c2c;
    text-decoration: none;
    transition: transform 0.2s;
}

.back-link:hover { transform: rotate(-1deg) scale(1.05); }

/* Contact form */
form { display: flex; flex-direction: column; gap: 1rem; }

input, textarea {
    font-family: 'Special Elite', monospace;
    padding: 0.8rem;
    border: 2px solid #2c2c2c;
    background: #fff;
    font-size: 1rem;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 3px 3px 0 #c0392b;
}

button[type="submit"] {
    font-family: 'Special Elite', monospace;
    background: #c0392b;
    color: #fff;
    border: 2px solid #2c2c2c;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.2s;
}

button[type="submit"]:hover { transform: rotate(-1deg) scale(1.05); }

/* Footer */
footer {
    background: #2c2c2c;
    color: #f5f0e8;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-family: 'Special Elite', monospace;
    position: relative;
    z-index: 1;
}

footer a { color: #f5f0e8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #e74c3c; }

.ig-icon { width: 24px; height: 24px; fill: currentColor; vertical-align: middle; margin-right: 0.3rem; }

.sponsors { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 1rem; }

/* Ghost Koenig editor */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.kg-width-wide img, .kg-width-full img { max-width: 100%; }

/* Responsive */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    nav { flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem; }
    .logo a { font-size: 1.5rem; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
    nav ul li a { font-size: 0.7rem; padding: 0.4rem 0.6rem; }
    .paper { padding: 1.5rem; }
    .hero-video { margin: 1rem auto; }
}
