/* :root variables define the color palette and are updated by JS */
:root {
    --background-color: #0a0014;
    --primary-text-color: #f0f0f0;
    --secondary-text-color: #c0c0c0;
    --accent-color-1: #a0a0a0;
    --accent-color-2: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.9);
    --shadow-color-light: rgba(0, 0, 0, 0.7);
}

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

/* Body and Typography */
body {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    background-color: var(--background-color);
    color: var(--primary-text-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.8s ease, color 0.8s ease;
}

/* Background Canvas */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3; /* Subtle background */
}

/* Main Content Container */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    font-family: 'Cormorant Garamond', serif;
    padding: 1rem; /* Added padding for smaller screens */
    /* Added for smooth initial load */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Added for revealing content after fonts are loaded */
.container.visible {
    opacity: 1;
    transform: translateY(0);
}

.big-nine {
    /* Fluid font size for responsiveness */
    font-size: clamp(5rem, 18vw, 14rem);
    word-break: break-word; /* Prevents overflow */
    color: var(--primary-text-color);
    line-height: 1;
    letter-spacing: 0.02em;
    /* Enhanced shadow for legibility of delicate font */
    text-shadow: 0 0 25px var(--shadow-color), 0 0 10px var(--shadow-color-light);
    transition: all 0.5s ease;
}

.date {
    margin-top: 2rem;
    /* Fluid font size for responsiveness */
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--secondary-text-color);
    transition: all 0.5s ease;
}

/* Footer */
footer {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
}

footer a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem; /* Made smaller */
    opacity: 0.7; /* Made more subtle */
}

footer a:hover {
    color: var(--accent-color-2);
    opacity: 1;
    transform: translateY(-2px);
}

#link-itsfine {
    font-weight: 300; /* Lighter */
    opacity: 0.6; /* More see-through */
}
#link-itsfine:hover {
    opacity: 1;
}

.sparkle {
    display: inline-block;

}

.loading {
    opacity: 0.3;
}

/* Responsiveness - `clamp()` handles most fluid scaling.
   This media query is for fine-tuning on very small screens. */
@media (max-width: 480px) {
    .date {
        margin-top: 1rem;
    }

    footer {
        gap: 1rem;
        flex-direction: column; /* Stack footer items on very small screens */
    }
}
