/* historygrapher.net - Generative Art Canvas */

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

:root {
    --canvas-dark: #080810;
    --particle-cyan: #4DD0E1;
    --particle-amber: #FFB74D;
    --particle-magenta: #F06292;
    --particle-white: #E0E0E0;
    --overlay-bg: rgba(8, 8, 16, 0.7);
    --text-primary: #E8E8E8;
    --text-dim: #888888;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--canvas-dark);
    overflow-x: hidden;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    will-change: transform;
}

.particle.active {
    transition: opacity 0.3s ease;
}

/* Content Sections */
.content-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

/* Glass Containers */
.glass-container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--overlay-bg);
    border: 1px solid rgba(224, 224, 224, 0.1);
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-container.visible {
    opacity: 1;
}

.hero-glass {
    margin: 0 auto;
    text-align: center;
}

.edge-left {
    margin-right: auto;
}

.edge-right {
    margin-left: auto;
}

.center-container {
    margin: 0 auto;
    text-align: center;
}

/* Typography */
.display-title {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.display-sub {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--particle-cyan);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

/* Growth Rings */
#growth-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.growth-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--particle-cyan);
    background: transparent;
    opacity: 0;
    animation: ring-expand 3s ease-out forwards;
}

@keyframes ring-expand {
    0% { transform: scale(0); opacity: 0.15; }
    100% { transform: scale(1); opacity: 0.03; }
}

/* Year Input */
.year-field {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    color: var(--particle-cyan);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--particle-cyan);
    text-align: center;
    outline: none;
    width: 120px;
    padding: 0.3rem 0;
    margin: 1rem 0;
}

.year-field::placeholder {
    color: rgba(77, 208, 225, 0.3);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Closing text */
.closing-text {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}
