/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ACCESSIBILITY & SEO ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.85rem;
    z-index: 10;
}

.nav-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.nav-link:hover {
    color: #a3a3a3;
}

.nav-separator {
    margin: 0 0.5rem;
    color: #333;
    opacity: 0.8;
}

.hero {
    margin-bottom: 3rem;
    padding-top: 4rem;
}

.signup {
    margin-bottom: 4rem;
}

.footer {
    margin-top: 2rem;
}

/* ===== TYPOGRAPHY ===== */
.title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
    animation: titleFadeIn 2s ease-out;
}

.subtitle {
    font-size: 1rem;
    color: #a3a3a3;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
    animation: subtitleFadeIn 2s ease-out 0.5s both;
}

.hire-link-text {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.hire-link-text:hover {
    color: #a3a3a3;
    border-bottom-color: #666;
}

/* ===== SYMBOL ===== */
.symbol {
    font-size: 3rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #ffffff;
    display: block;
    animation: symbolPulse 4s ease-in-out infinite;
    position: relative;
}

.symbol::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: symbolSpin 8s linear infinite;
}

.symbol::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: symbolSpin 12s linear infinite reverse;
}

/* ===== FORM ===== */
.newsletter-form-container {
    margin-bottom: 1.5rem;
    text-align: center;
    animation: formSlideUp 2s ease-out 1s both;
}

.input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    transition: all 0.3s ease;
    position: relative;
}

.input-group::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.input-group:focus-within {
    border-color: #555;
    transform: translateY(-2px);
}

.input-group:focus-within::before {
    opacity: 1;
}

.input-group:hover {
    transform: translateY(-1px);
    border-color: #444;
}

.newsletter-form-input {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.newsletter-form-input::placeholder {
    color: #666;
}

.newsletter-form-button {
    padding: 1rem 1.5rem;
    border: none;
    background: #333;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    display: flex;
}

.newsletter-form-button:hover {
    background: #444;
}

.newsletter-form-button:active {
    transform: translateY(1px);
}

.newsletter-form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-loading-button {
    padding: 1rem 1.5rem;
    border: none;
    background: #333;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: -0.01em;
    display: none;
    opacity: 0.8;
}

/* ===== FORM STATES ===== */
.newsletter-success {
    display: none;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.newsletter-success-message {
    color: #10b981;
    font-size: 0.9rem;
    text-align: center;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.newsletter-error {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.newsletter-error-message {
    color: #ef4444;
    font-size: 0.9rem;
}

/* ===== META ===== */
.meta {
    margin-top: 1.5rem;
}

.frequency {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding: 2rem 1rem;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #222;
}

.footer-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}

.hire-link-text {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hire-link-text:hover {
    color: #a3a3a3;
    border-bottom-color: #666;
}

.email-icon {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hire-link-text:hover .email-icon {
    opacity: 1;
}

.social-link {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: #ffffff;
}

.instagram-icon {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-link:hover .instagram-icon {
    opacity: 1;
}

.credits {
    color: #666;
}

.legal-links {
    display: flex;
    align-items: center;
}

.legal-link {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: #888;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .container {
        max-width: 100%;
    }
    
    .top-nav {
        top: 1rem;
        right: 1rem;
        font-size: 0.8rem;
    }
    
    .hero {
        margin-bottom: 2.5rem;
    }
    
    .symbol {
        font-size: 2.5rem;
        margin-bottom: 3.5rem;
    }
    
    .symbol::before {
        width: 60px;
        height: 60px;
    }
    
    .symbol::after {
        width: 75px;
        height: 75px;
    }
    
    .input-group {
        max-width: 100%;
        flex-direction: column;
    }
    
    .newsletter-form-input {
        border-bottom: 1px solid #333;
    }
    
    .newsletter-form-button,
    .newsletter-loading-button {
        padding: 0.875rem 1.5rem;
        font-weight: 400;
        background: #333;
    }
    
    .newsletter-form-button:hover {
        background: #444;
    }
    
    .signup {
        margin-bottom: 3rem;
    }
    
    .footer-primary {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .footer-secondary {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 320px) {
    body {
        padding: 1rem 0.75rem;
    }
    
    .top-nav {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.75rem;
    }
    
    .nav-separator {
        margin: 0 0.25rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .symbol {
        font-size: 2rem;
    }
    
    .email-input,
    .submit-btn {
        font-size: 0.9rem;
    }
}

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

/* Focus styles for keyboard navigation */
.newsletter-form-input:focus,
.newsletter-form-button:focus,
.social-link:focus,
.hire-link-text:focus,
.nav-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== ARCHIVE PAGE ===== */
.archive-body {
    padding-top: 4rem;
}

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

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: titleFadeIn 1.5s ease-out;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.archive-subtitle {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.archive-item {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: archiveItemFadeIn 1s ease-out;
    display: block;
    text-decoration: none;
}

.archive-item:hover {
    transform: scale(1.02) rotate(0deg) !important;
    z-index: 10;
}

.archive-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

.archive-item:hover .archive-image-wrapper {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.archive-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.archive-item:hover .archive-image {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.archive-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.archive-item:hover .archive-overlay {
    opacity: 1;
}

.edition-label {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    text-transform: lowercase;
}

.edition-date {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.archive-footer {
    text-align: center;
    margin-bottom: 3rem;
}

.back-to-main {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.back-to-main:hover {
    color: #a3a3a3;
    border-bottom-color: #666;
}

/* Archive grain effect */
.archive-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
    pointer-events: none;
    opacity: 0.5;
    z-index: 1;
    mix-blend-mode: multiply;
}

/* Active nav link */
.nav-link.active {
    color: #ffffff;
    border-bottom: 1px solid #666;
}

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

/* Stagger animation for grid items */
.archive-item:nth-child(1) { animation-delay: 0.1s; }
.archive-item:nth-child(2) { animation-delay: 0.2s; }
.archive-item:nth-child(3) { animation-delay: 0.3s; }
.archive-item:nth-child(4) { animation-delay: 0.4s; }
.archive-item:nth-child(5) { animation-delay: 0.5s; }
.archive-item:nth-child(6) { animation-delay: 0.6s; }

/* Archive responsive */
@media (max-width: 768px) {
    .archive-container {
        padding: 0 1rem;
    }
    
    .archive-header {
        margin-bottom: 3rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .archive-body {
        padding-top: 3rem;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .archive-title {
        font-size: 1.75rem;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: lightboxImageIn 0.3s ease;
    cursor: default;
    touch-action: pan-y pinch-zoom;
    user-select: none;
}

@keyframes lightboxImageIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
    
    .lightbox-content {
        max-width: 100%;
        max-height: 100vh;
    }
    
    .lightbox-nav {
        padding: 0 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 3rem;
        height: 3rem;
        font-size: 1.75rem;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .lightbox-counter {
        bottom: 1rem;
        font-size: 0.8rem;
    }
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.legal-section h3 {
    font-size: 1rem;
    color: #e5e5e5;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 500;
}

.legal-section p {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-section ul, 
.legal-section ol {
    color: #a3a3a3;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #666;
    transition: border-color 0.2s ease;
}

.legal-section a:hover {
    border-bottom-color: #a3a3a3;
}

.legal-section strong {
    color: #ffffff;
}

.legal-back {
    margin-top: 3rem;
    text-align: center;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #a3a3a3;
    border-bottom-color: #666;
}

/* ===== DARK MODE OPTIMIZATION ===== */
@media (prefers-color-scheme: light) {
    /* Maintain dark theme regardless of system preference */
    body {
        background: #0a0a0a;
        color: #e5e5e5;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes symbolPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes symbolSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes formSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating particles background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.03), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255, 255, 255, 0.06), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: floatingParticles 60s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatingParticles {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

/* ===== FORM STYLING ===== */
.company {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}