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

html {
    scroll-behavior: smooth;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #000;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Utilities */
.is-hidden {
    display: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "content image";
    align-items: center;
    background-color: #000;
    overflow: hidden;
    gap: 2rem;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255, 255, 255, 0.03)' stroke-width='0.5'/%3E%3C/pattern%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='url(%23smallGrid)'/%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255, 255, 255, 0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

.hero-graphics {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    animation: subtleFloat 8s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-5px) rotate(0.5deg); }
    66% { transform: translateY(3px) rotate(-0.3deg); }
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(247, 223, 30, 0.1) 0%, rgba(247, 223, 30, 0) 70%);
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    left: -100px;
    opacity: 0.4;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 40%;
    opacity: 0.3;
}

/* Hero Decorative Elements */

.hero-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(rgba(247, 223, 30, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.3;
}

.hero-dots-1 {
    top: 15%;
    right: 15%;
    transform: rotate(15deg);
}

.hero-dots-2 {
    bottom: 10%;
    left: 10%;
    transform: rotate(-10deg);
}

.hero-content {
    grid-area: content;
    padding: 2rem;
    position: relative;
    z-index: 3;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    grid-area: image;
    height: 90vh;
    min-height: 600px;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 2;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
    border-radius: 0 20px 20px 0;
}







.hero-image picture {
    display: block;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) contrast(1.1);
}

.hero-image:hover img {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.2);
}

.hero-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(247, 223, 30, 0.15) 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-image:after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(247, 223, 30, 0.3);
    border-radius: 15px;
    z-index: 2;
    pointer-events: none;
}

/* Typografia */
.subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.subtitle:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #f7df1e;
}

.title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f7df1e 0%, #fff100 100%);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    padding: 18px 35px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(247, 223, 30, 0.3);
    text-transform: uppercase;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(247, 223, 30, 0.5);
    background: linear-gradient(135deg, #fff100 0%, #f7df1e 100%);
}

.cta-button:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 0.1s;
}

.cta-button:hover:before {
    left: 100%;
}

.time-info {
    font-size: 16px;
    margin-bottom: 50px;
    opacity: 0.85;
    font-weight: 500;
}

/* Testimonial Section */
.testimonial {
    margin-top: 60px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    border-left: 3px solid #f7df1e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.testimonial:before {
    content: '"';
    font-size: 80px;
    position: absolute;
    top: -30px;
    left: 15px;
    color: rgba(247, 223, 30, 0.2);
    font-family: Georgia, serif;
}

.stars {
    color: #f7df1e;
    margin-bottom: 15px;
    font-size: 18px;
    letter-spacing: 3px;
}

.testimonial p {
    font-style: italic;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Footer - przeprojektowany */
.footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid #222;
}

.footer-bio {
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f7df1e;
}

.footer-credits {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits a {
    color: #f7df1e;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-credits a:hover {
    opacity: 0.8;
}

.heart {
    color: #ff4d4d;
    animation: pulse 1.3s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.popup {
    background-color: #0c1229;
    width: 90%;
    max-width: 600px;
    padding: 50px 40px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.4s ease-out;
    border-top: 4px solid #f7df1e;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 35px;
    color: white;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-status {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f87171;
}

.form-status[data-type="success"] {
    color: #22c55e;
}

.form-status[data-type="info"] {
    color: #60a5fa;
}

.form-status[hidden] {
    display: none;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    background-color: #f7f7f7;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 223, 30, 0.3);
    background-color: white;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-right: 12px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    /* Reset default styles */
    appearance: none;
    -webkit-appearance: none;
    /* Podstawowe style */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0; /* No border radius */
    background-color: transparent;
    position: relative;
    box-shadow: none;
    flex-shrink: 0;
}

.form-checkbox input:checked {
    background-color: #f7df1e;
    border-color: #f7df1e;
}

.form-checkbox input:checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-checkbox label {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.form-checkbox label a {
    color: #f7df1e;
    text-decoration: none;
    transition: opacity 0.3s;
}

.form-checkbox label a:hover {
    opacity: 0.8;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 18px;
    background-color: #f7df1e;
    color: #000;
    font-size: 22px;
    font-weight: 900;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
    margin-top: 30px;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.submit-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 223, 30, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
    font-size: 0;
}

.close-popup:before,
.close-popup:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
}

.close-popup:before {
    transform: rotate(45deg);
}

.close-popup:after {
    transform: rotate(-45deg);
}

.close-popup:hover {
    transform: rotate(90deg);
}

/* Success message */
.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-message h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #f7df1e;
}

.success-message p {
    font-size: 16px;
    opacity: 0.9;
}

.success-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #f7df1e;
}

/* Style dla podstron */
.page-header {
    padding: 60px 0 30px;
    background-color: #0c1229;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247, 223, 30, 0.5), transparent);
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}

.page-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #f7df1e;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul, .page-content ol {
    margin: 0 0 20px 20px;
}

.page-content li {
    margin-bottom: 10px;
}

.back-to-home {
    display: inline-block;
    margin-top: 40px;
    color: #f7df1e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.back-to-home:before {
    content: '← ';
}

.back-to-home:hover {
    opacity: 0.8;
}

/* Books Page */
body.books-page {
    background-color: #111;
    color: #eee;
}

body.books-page .container {
    max-width: 1280px;
    padding: 0 20px;
}

body.books-page .page-header {
    padding: 60px 0 30px;
    background-color: #0c1229;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.books-page .page-header:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(247, 223, 30, 0.5), transparent);
}

body.books-page .page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

body.books-page .page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
}

body.books-page .intro-text {
    max-width: 800px;
    margin: 2rem auto 3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    padding: 0 20px;
}

body.books-page .intro-text p {
    margin-bottom: 1rem;
}

body.books-page .filters-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

body.books-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

body.books-page .filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

body.books-page .filter-group input,
body.books-page .filter-group select {
    background-color: #111;
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

body.books-page .filter-group input:focus,
body.books-page .filter-group select:focus {
    outline: none;
    border-color: #f7df1e;
}

body.books-page #reset-filters {
    background: transparent;
    border: 1px solid rgba(247, 223, 30, 0.5);
    color: #f7df1e;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
    height: 44px;
}

body.books-page #reset-filters:hover {
    background: rgba(247, 223, 30, 0.1);
}

body.books-page .year-section {
    max-width: 800px;
    margin: 4rem auto 0;
}

body.books-page .year-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f7df1e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.books-page .year-message {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #f7df1e;
    border-radius: 4px;
}

body.books-page .book-list {
    display: flex;
    flex-direction: column;
}

body.books-page .book-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease-in-out;
}

body.books-page .book-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.books-page .book-row.hidden {
    display: none;
}

body.books-page .book-details {
    display: flex;
    flex-direction: column;
}

body.books-page .book-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #eee;
}

body.books-page .book-author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

body.books-page .book-rating {
    font-size: 1.2rem;
    color: #f7df1e;
    min-width: 100px;
    text-align: right;
    letter-spacing: 2px;
}

body.books-page .rating-10 .book-rating { color: rgba(247, 223, 30, 1); }
body.books-page .rating-9 .book-rating { color: rgba(247, 223, 30, 0.95); }
body.books-page .rating-8 .book-rating { color: rgba(247, 223, 30, 0.85); }
body.books-page .rating-7 .book-rating { color: rgba(247, 223, 30, 0.75); }
body.books-page .rating-6 .book-rating { color: rgba(247, 223, 30, 0.65); }
body.books-page .rating-5 .book-rating { color: rgba(247, 223, 30, 0.55); }
body.books-page .rating-4 .book-rating { color: rgba(247, 223, 30, 0.45); }
body.books-page .rating-3 .book-rating { color: rgba(247, 223, 30, 0.35); }
body.books-page .rating-2 .book-rating { color: rgba(247, 223, 30, 0.25); }
body.books-page .rating-1 .book-rating { color: rgba(247, 223, 30, 0.15); }

body.books-page .caution {
    color: #ff4d4d;
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    body.books-page .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    body.books-page .page-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body.books-page .book-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    body.books-page .book-rating {
        text-align: left;
    }

    body.books-page .year-title {
        font-size: 1.8rem;
    }
}

/* ===============================================
   RESPONSYWNOŚĆ - NOWY SYSTEM BREAKPOINTÓW
   =============================================== */

/* Desktop Large (1200px+) */

/* Desktop Medium (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 1140px;
        padding: 0 1.5rem;
    }
    
    .hero {
        gap: 1.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 42px;
    }
}

/* Tablet Large (768px - 991px) */
@media (max-width: 991px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "image";
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-image {
        height: 70vh;
        min-height: 500px;
        clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
    }
    
    .title {
        font-size: 38px;
        margin-bottom: 2rem;
    }
    
    .subtitle {
        font-size: 20px;
        text-align: center;
        padding-left: 0;
    }
    
    .subtitle:before {
        display: none;
    }
}

/* Tablet Small (576px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1.5rem 0.5rem;
    }
    
    .hero-image {
        height: 60vh;
        min-height: 400px;
        margin: 0 -1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 16px;
    }
    
    .testimonial {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .testimonial p {
        font-size: 14px;
    }
}

/* Mobile Large (481px - 575px) */
@media (max-width: 575px) {
    .hero-image {
        height: 50vh;
        min-height: 350px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 15px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 0.5rem 0;
    }
    
    .hero-content {
        padding: 1rem 0.25rem;
    }
    
    .hero-image {
        height: 45vh;
        min-height: 300px;
        margin: 0 -0.75rem;
        border-radius: 10px 10px 0 0;
    }
    
    .title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 1rem;
    }
    
    .time-info {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }
    
    .testimonial {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .testimonial:before {
        font-size: 60px;
        top: -20px;
    }
    
    .stars {
        font-size: 16px;
    }
    
    .testimonial p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 0.75rem 1rem;
        font-size: 14px;
        border-radius: 8px;
    }
}

/* Extra styles for very small screens and footer */
@media (max-width: 480px) {
    .footer-credits {
        text-align: center;
        font-size: 13px;
    }
    
    .book-list {
        grid-template-columns: 1fr;
    }
}


/* Archive Page */
/* UNIFIED DESIGN SYSTEM - MiroBurn Archive */
/* "Sir, implementing visual harmony protocol" - JARVIS */

:root {
    /* Brand Colors - Synchronized with main site */
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-yellow: #f7df1e;
    --color-yellow-dim: rgba(247, 223, 30, 0.1);
    --color-white: #ffffff;
    --color-gray-light: #f0f0f0;
    --color-gray: #888888;
    --color-gray-dark: #333333;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;
    --font-weight-black: 900;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Effects */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-yellow: 0 0 30px rgba(247, 223, 30, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base */
body.archive-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.archive-page html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.archive-page body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background Pattern - Signature MiroBurn Style */
body.archive-page .grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

body.archive-page .grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='smallGrid' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 20 0 L 0 0 0 20' fill='none' stroke='rgba(255, 255, 255, 0.03)' stroke-width='0.5'/%3E%3C/pattern%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Crect width='100' height='100' fill='url(%23smallGrid)'/%3E%3Cpath d='M 100 0 L 0 0 0 100' fill='none' stroke='rgba(255, 255, 255, 0.05)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Decorative Elements */
body.archive-page .hero-graphics {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

body.archive-page .hero-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--color-yellow-dim) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

body.archive-page .hero-circle-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -100px;
    opacity: 0.3;
}

body.archive-page .hero-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: 10%;
    opacity: 0.2;
    animation-delay: -5s;
}

body.archive-page .hero-dots {
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-yellow-dim) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.3;
}

body.archive-page .hero-dots-1 {
    top: 20%;
    left: 5%;
    transform: rotate(15deg);
}

body.archive-page .hero-dots-2 {
    bottom: 15%;
    right: 10%;
    transform: rotate(-10deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-20px) scale(1.02); }
    66% { transform: translateY(10px) scale(0.98); }
}

/* Typography System */
body.archive-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

body.archive-page h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

body.archive-page h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}

body.archive-page .subtitle {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-yellow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons - Yellow Brand Style */
body.archive-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-yellow);
    color: var(--color-black);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

body.archive-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

body.archive-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 223, 30, 0.3);
}

body.archive-page .btn-primary:hover::before {
    left: 100%;
}

/* Forms - Minimal Style */
body.archive-page input[type="email"], body.archive-page input[type="text"], body.archive-page textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

body.archive-page input[type="email"]:focus, body.archive-page input[type="text"]:focus, body.archive-page textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 2px rgba(247, 223, 30, 0.1);
}

body.archive-page input::placeholder, body.archive-page textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Tags and Badges */
body.archive-page .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(247, 223, 30, 0.1);
    color: var(--color-yellow);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(247, 223, 30, 0.2);
}

/* Testimonial Style */
body.archive-page .testimonial {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--color-yellow);
    position: relative;
}

body.archive-page .testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-yellow);
    opacity: 0.2;
    font-weight: var(--font-weight-black);
}

body.archive-page .stars {
    color: var(--color-yellow);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Container */
body.archive-page .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    body.archive-page .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 640px) {
    body.archive-page .container {
        padding: 0 1rem;
    }

    body.archive-page h1 {
        font-size: 2rem;
    }

    body.archive-page h2 {
        font-size: 1.5rem;
    }
}

/* Dark Mode Support (already dark by default) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme regardless of system preference */
}

/**
 * JARVIS DESIGN PROTOCOL:
 * "Sir, I've created a unified design system that matches
 *  your main site perfectly. Black, yellow, and minimalist.
 *  Just like your suit preference - classic with a touch of flair."
 */

/* Reset i podstawowe style */
body.archive-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #f7df1e;
    --color-primary-dark: #e5ce00;
    --color-secondary: #f7df1e;
    --color-text: #ffffff;
    --color-text-light: #999999;
    --color-bg: #000000;
    --color-bg-light: #0a0a0a;
    --color-bg-gray: #111111;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease;
}

body.archive-page html {
    scroll-behavior: smooth;
}

body.archive-page body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* Container */
body.archive-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
body.archive-page h1, body.archive-page h2, body.archive-page h3, body.archive-page h4, body.archive-page h5, body.archive-page h6 {
    line-height: 1.2;
    font-weight: 700;
}

body.archive-page h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

body.archive-page h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

body.archive-page h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

body.archive-page a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

body.archive-page a:hover {
    color: var(--color-primary-dark);
}

/* Hero Section */
body.archive-page .hero-section {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
    color: white;
    border-bottom: 3px solid var(--color-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

body.archive-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

body.archive-page .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

body.archive-page .hero-title {
    margin-bottom: 1rem;
    color: white;
}

body.archive-page .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Subscribe Form */
body.archive-page .subscribe-form-wrapper {
    margin: 2rem 0;
}

body.archive-page .subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

body.archive-page .form-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
}

body.archive-page .email-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    color: var(--color-text);
    transition: var(--transition);
}

body.archive-page .email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.archive-page .cta-button {
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

body.archive-page .cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

body.archive-page .cta-button:active {
    transform: translateY(0);
}

body.archive-page .privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

body.archive-page .icon-lock {
    opacity: 0.7;
}

/* Social Proof */
body.archive-page .social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

body.archive-page .subscriber-avatars {
    display: flex;
}

body.archive-page .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid white;
    margin-left: -10px;
}

body.archive-page .avatar:first-child {
    margin-left: 0;
}

body.archive-page .social-proof-text {
    font-size: 0.875rem;
}

/* Search Section */
body.archive-page .search-section {
    background: var(--color-bg-light);
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(249, 250, 251, 0.95);
}

body.archive-page .search-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.archive-page .search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

body.archive-page .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

body.archive-page .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

body.archive-page .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body.archive-page .search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: none;
}

body.archive-page .search-input:not(:placeholder-shown) ~ .search-clear {
    display: block;
}

body.archive-page .search-results-info {
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Newsletter Grid */
body.archive-page .archive-section {
    padding: 3rem 0;
}

body.archive-page .section-title {
    margin-bottom: 2rem;
    color: var(--color-text);
}

body.archive-page .newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Newsletter Card */
body.archive-page .newsletter-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

body.archive-page .newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f7df1e, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

body.archive-page .newsletter-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    transform: translateY(-5px);
    border-color: rgba(247, 223, 30, 0.2);
}

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

body.archive-page .card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

body.archive-page .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.archive-page .card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f7df1e;
    color: #000000;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

body.archive-page .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.archive-page .card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

body.archive-page .reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

body.archive-page .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    line-height: 1.4;
}

body.archive-page .card-description {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.archive-page .card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

body.archive-page .tag {
    padding: 0.25rem 0.75rem;
    background: var(--color-bg-gray);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

body.archive-page .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

body.archive-page .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

body.archive-page .card-link:hover {
    gap: 0.75rem;
}

body.archive-page .share-button {
    padding: 0.5rem;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

body.archive-page .share-button:hover {
    background: var(--color-bg-gray);
    color: var(--color-text);
}

/* Load More */
body.archive-page .load-more-wrapper {
    text-align: center;
    padding: 2rem 0;
}

body.archive-page .load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

body.archive-page .load-more-button:hover {
    background: var(--color-primary);
    color: white;
}

/* Loading Spinner */
body.archive-page .loading-spinner {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

body.archive-page .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    body.archive-page .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* Responsive Design - Mobile */
@media (max-width: 640px) {
    body.archive-page .hero-section {
        padding: 3rem 0;
    }

    body.archive-page .form-group {
        flex-direction: column;
    }

    body.archive-page .email-input {
        width: 100%;
    }

    body.archive-page .cta-button {
        width: 100%;
    }

    body.archive-page .search-wrapper {
        gap: 1rem;
    }

    body.archive-page .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    body.archive-page h1 {
        font-size: 2rem;
    }

    body.archive-page h2 {
        font-size: 1.5rem;
    }

    body.archive-page h3 {
        font-size: 1.25rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    body.archive-page *, body.archive-page *::before, body.archive-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body.archive-page .hero-section, body.archive-page .search-section, body.archive-page .share-button, body.archive-page .load-more-button {
        display: none;
    }

    body.archive-page .newsletter-card {
        break-inside: avoid;
    }
}

/* Visual refresh for archive to keep parity with the main landing experience. */

body.archive-page .hero-section {
    background: linear-gradient(135deg, #050505 0%, #111111 100%);
    border-bottom: none;
    padding: clamp(4rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
    isolation: isolate;
}

body.archive-page .hero-section::before {
    opacity: 0.35;
}

body.archive-page .hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

body.archive-page .hero-content {
    text-align: left;
    max-width: 640px;
    margin: 0;
}

body.archive-page .hero-content .subtitle {
    margin-bottom: 1rem;
}

body.archive-page .hero-content .hero-title {
    margin-bottom: 1.25rem;
}

body.archive-page .hero-content .hero-subtitle {
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
}

body.archive-page .hero-bullets {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

body.archive-page .hero-bullet {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: rgba(247, 223, 30, 0.08);
    border: 1px solid rgba(247, 223, 30, 0.3);
    border-radius: 999px;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
}

body.archive-page .hero-aside {
    align-self: stretch;
    display: flex;
    justify-content: center;
}

body.archive-page .hero-highlight-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(247, 223, 30, 0.12) 0%, rgba(247, 223, 30, 0.03) 100%);
    border: 1px solid rgba(247, 223, 30, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

body.archive-page .hero-highlight-card::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(247, 223, 30, 0.18);
    border-radius: 16px;
    opacity: 0.7;
    pointer-events: none;
}

body.archive-page .hero-highlight-label {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    background: rgba(247, 223, 30, 0.18);
    color: #f7df1e;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

body.archive-page .hero-metrics {
    display: grid;
    gap: 1.5rem;
}

body.archive-page .hero-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

body.archive-page .hero-metric .metric-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #f7df1e;
    line-height: 1;
}

body.archive-page .hero-metric .metric-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

body.archive-page .hero-highlight-footer {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.5;
}

body.archive-page .subscribe-form {
    align-items: stretch;
}

body.archive-page .hero-subscribe {
    max-width: 520px;
}

body.archive-page .hero-subscribe .form-group {
    display: flex;
    gap: 0.75rem;
}

body.archive-page .hero-subscribe .cta-button {
    flex-shrink: 0;
}

body.archive-page .email-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(247, 223, 30, 0.18);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.archive-page .email-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

body.archive-page .email-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(247, 223, 30, 0.6);
    box-shadow: 0 0 0 4px rgba(247, 223, 30, 0.15);
}

body.archive-page .privacy-notice {
    color: rgba(255, 255, 255, 0.65);
}

body.archive-page .privacy-notice a {
    color: #f7df1e;
}

body.archive-page .social-proof {
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

body.archive-page .subscriber-avatars {
    padding-left: 0.5rem;
}

body.archive-page .avatar {
    background: linear-gradient(135deg, rgba(247, 223, 30, 0.25) 0%, rgba(247, 223, 30, 0.6) 100%);
    border-color: rgba(0, 0, 0, 0.45);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

body.archive-page .social-proof-text {
    color: rgba(255, 255, 255, 0.75);
}

body.archive-page .search-section {
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid rgba(247, 223, 30, 0.15);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    padding: 1.75rem 0;
}

body.archive-page .search-wrapper {
    align-items: stretch;
}

body.archive-page .search-box {
    max-width: 640px;
    width: 100%;
}

body.archive-page .search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f5f5;
}

body.archive-page .search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

body.archive-page .search-icon, body.archive-page .search-clear {
    color: rgba(255, 255, 255, 0.55);
}

body.archive-page .search-clear:hover {
    color: #f7df1e;
}

body.archive-page .search-results-info {
    color: rgba(255, 255, 255, 0.6);
}

body.archive-page .newsletter-grid {
    gap: 2.5rem;
}

body.archive-page .newsletter-card {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at top left, rgba(247, 223, 30, 0.08), rgba(5, 5, 5, 0.96));
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

body.archive-page .newsletter-card::before {
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(247, 223, 30, 0.8), transparent);
}

body.archive-page .newsletter-card:hover {
    transform: translateY(-8px);
    border-color: rgba(247, 223, 30, 0.35);
}

body.archive-page .card-image {
    height: 200px;
}

body.archive-page .card-badge {
    background: rgba(247, 223, 30, 0.9);
    color: #000;
}

body.archive-page .card-meta {
    color: rgba(255, 255, 255, 0.55);
}

body.archive-page .card-title {
    color: #ffffff;
}

body.archive-page .card-description {
    color: rgba(255, 255, 255, 0.68);
}

body.archive-page .card-tags {
    gap: 0.75rem;
}

body.archive-page .tag {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.archive-page .card-actions {
    gap: 1.25rem;
}

body.archive-page .card-link {
    color: #f7df1e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.archive-page .card-link svg {
    transition: transform 0.2s ease;
}

body.archive-page .card-link:hover svg {
    transform: translateX(4px);
}

body.archive-page .share-button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
}

body.archive-page .share-button:hover {
    background: rgba(247, 223, 30, 0.12);
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.4);
}

body.archive-page .load-more-button {
    background: transparent;
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.6);
    box-shadow: inset 0 0 0 1px rgba(247, 223, 30, 0.15);
}

body.archive-page .load-more-button:hover {
    background: rgba(247, 223, 30, 0.15);
    color: #000;
}

@media (max-width: 1024px) {
    body.archive-page .hero-grid {
        grid-template-columns: 1fr;
    }

    body.archive-page .hero-aside {
        margin-top: 2.5rem;
    }

    body.archive-page .hero-highlight-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    body.archive-page .hero-section {
        padding: 3.5rem 0 3rem;
    }

    body.archive-page .hero-bullets {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    body.archive-page .hero-subscribe .form-group {
        flex-direction: column;
    }

    body.archive-page .hero-subscribe .cta-button {
        width: 100%;
    }

    body.archive-page .search-wrapper {
        align-items: stretch;
    }

}

/* Footer - aligned with main landing page */
body.archive-page .footer {
    background-color: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid #222;
}

body.archive-page .footer-bio {
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    opacity: 0.9;
}

body.archive-page .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-top: none;
    text-align: center;
}

body.archive-page .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

body.archive-page .footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

body.archive-page .footer-links a:hover {
    color: #f7df1e;
}

body.archive-page .footer-credits {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

body.archive-page .footer-credits a {
    color: #f7df1e;
    text-decoration: none;
    transition: opacity 0.3s;
}

body.archive-page .footer-credits a:hover {
    opacity: 0.8;
}

body.archive-page .heart {
    color: #ff4d4d;
    animation: pulse 1.3s infinite;
    display: inline-block;
}

/* Archive Issue Page */
body.issue-page {
    background: #050505;
    color: #ffffff;
    min-height: 100vh;
}

body.issue-page .issue-article {
    max-width: 740px;
    margin: 3.5rem auto 5rem;
    padding: 0 1.5rem;
}

body.issue-page .issue-article header {
    margin-bottom: 2.5rem;
}

body.issue-page .issue-article h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

body.issue-page .issue-meta {
    opacity: 0.65;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

body.issue-page .issue-section + .issue-section {
    margin-top: 2.75rem;
}

body.issue-page .issue-section h2 {
    font-size: 1.55rem;
    margin-bottom: 1.35rem;
    color: #f7df1e;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

body.issue-page .issue-section h3 {
    font-size: 1.2rem;
    margin: 1.8rem 0 0.9rem;
    color: rgba(247, 223, 30, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.issue-page .issue-section p {
    margin-bottom: 1rem;
    line-height: 1.75;
    font-size: 1.05rem;
    opacity: 0.94;
}

body.issue-page .issue-section ol,
body.issue-page .issue-section ul {
    margin: 1.2rem 0 1.4rem 1.5rem;
    line-height: 1.7;
}

body.issue-page .issue-section li {
    margin-bottom: 0.6rem;
}

body.issue-page .issue-section strong {
    color: #f7df1e;
}

body.issue-page .issue-actions {
    margin-top: 3rem;
}

body.issue-page .issue-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(247, 223, 30, 0.15);
    color: #f7df1e;
    border: 1px solid rgba(247, 223, 30, 0.3);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.issue-page .issue-download:hover {
    background: #f7df1e;
    color: #000000;
}

body.issue-page .issue-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

body.issue-page .issue-back:hover {
    color: #f7df1e;
}
