/* 
 * ============================================================
 *  THE PRIME SWEETIEPORT GENERATOR — Home Page Styles
 * ============================================================
 *  
 *  Clean. Crisp. Precise. Like a well-typeset physics paper.
 *  No glow. No shimmer. Just structure.
 *
 *  Total CSS rules in this file: let's not count.
 *  But the number of sections? 7. Prime.
 * ============================================================
 */

/* ---- 1. Reset & Foundation ---- */

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

:root {
    /* The void — pure black, continuous from the landing page */
    --bg-primary: #000000;
    --bg-secondary: #080808;
    
    /* Text — warm white, not clinical */
    --text-primary: #e8e6e3;
    --text-secondary: #b0ada7;
    --text-dim: #6b6660;
    
    /* Gold — carried over from the landing page */
    --gold: #c9a84c;
    --gold-bright: #f0d27a;
    --gold-dim: #a08040;
    
    /* The button */
    --btn-border: var(--gold-dim);
    --btn-hover: var(--gold-bright);
    
    /* Category colors — for the small labels */
    --cat-math: #64B5F6;
    --cat-music: #FFB74D;
    --cat-relationships: #F48FB1;
    --cat-ken: #66BB6A;
    --cat-toniken: #FF8A65;
    --cat-coast: #4DB6AC;
    --cat-patents: #CE93D8;
    
    /* Typography — a physicist would appreciate these */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    animation: pageEnter 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

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

/* ---- 2. Layout ---- */

.container {
    text-align: center;
    max-width: 680px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* ---- 3. Typography ---- */

.title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--gold);
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 3rem;
    font-style: italic;
}

/* ---- 4. The Button ---- */
/* One button. Clean. Precise. No decoration. */

.prime-button {
    background: transparent;
    border: 1px solid var(--btn-border);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 3rem;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.prime-button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.prime-button:active {
    transform: scale(0.98);
}

/* ---- 5. The Output ---- */
/* Where the quip appears. Clean transitions. No magic. Just facts. */

.output-area {
    margin-top: 3rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.prime-number {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    color: var(--gold-bright);
    opacity: 0;
    transform: translateY(16px);
    margin-bottom: 1.5rem;
    line-height: 1;
}

/* Fade OUT: fast, sucked into the void */
.prime-number.fading-out {
    transition: opacity 0.2s ease-in, transform 0.2s ease-in;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
}

/* Fade IN: slow, emerging from the dark */
.prime-number.visible {
    transition: opacity 1.4s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.prime-quip {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 540px;
    opacity: 0;
    transform: translateY(14px);
}

.prime-quip.fading-out {
    transition: opacity 0.2s ease-in, transform 0.2s ease-in;
    opacity: 0;
    transform: translateY(-6px);
}

.prime-quip.visible {
    transition: opacity 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s, transform 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.category-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0;
}

.category-label.fading-out {
    transition: opacity 0.15s ease-in;
    opacity: 0;
}

.category-label.visible {
    transition: opacity 1.4s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s;
    opacity: 0.5;
}

/* ---- 6. The Constant ---- */
/* α ≈ 1/137. Quiet. Precise. A physicist will see it. */

.fine-structure {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    z-index: 10;
}

.fine-structure:hover {
    color: var(--gold);
}

/* ---- 7. Responsive (minimal — desktop-first gift) ---- */

@media (max-width: 600px) {
    .title {
        font-size: 1.2rem;
    }
    
    .prime-number {
        font-size: 2.5rem;
    }
    
    .prime-quip {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}
