/* CSS Variables - Strict Palette */
:root {
    --royal-black: #0A0A0A;
    --soft-gold: #D4AF37;
    --gold-highlight: #FFD95E;
    --deep-gold: #B8831B;
    --off-white: #F7FAFC;
    
    --halo-alpha: rgba(212, 175, 55, 0.22);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--royal-black);
    color: var(--off-white);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover,
.logo-link:focus {
    transform: scale(1.05);
    outline: 2px solid var(--soft-gold);
    outline-offset: 4px;
}

.logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(var(--shadow-strong));
}

/* Main Canvas Container */
.main {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* Invisible Sun Button for Accessibility */
.sun-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
}

.sun-button:focus {
    outline: 3px solid var(--soft-gold);
    outline-offset: 8px;
    box-shadow: 0 0 20px var(--halo-alpha);
}

.sun-button:hover {
    background: var(--halo-alpha);
}

.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;
}

/* Footer CTA */
.footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.cta-link {
    color: var(--soft-gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
}

.cta-link:hover,
.cta-link:focus {
    color: var(--gold-highlight);
    border-color: var(--soft-gold);
    text-shadow: 0 0 10px var(--halo-alpha);
    outline: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        height: 28px;
    }
    
    .sun-button {
        width: 100px;
        height: 100px;
    }
    
    .footer {
        bottom: 20px;
    }
    
    .cta-link {
        font-size: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .logo-link,
    .sun-button,
    .cta-link {
        transition: none;
    }
}

/* High DPI Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .solar-canvas {
        image-rendering: crisp-edges;
    }
}