/* ============================================
   veritynull.com — Styles
   ============================================ */

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

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --accent: #4a9bc7;
    --border: #e0e0e0;
    --surface: #f5f5f5;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Scanline Effect --- */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    animation: scanline-flicker 8s infinite;
}

@keyframes scanline-flicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.4; }
    97% { opacity: 1; }
    98% { opacity: 0.6; }
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    padding: 2rem;
}

.domain {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 1.5s ease;
    letter-spacing: 0.02em;
    margin-bottom: 2.5rem;
}

.tagline.visible {
    opacity: 1;
}

.book-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 400;
    color: var(--text);
    opacity: 0;
    transition: opacity 1.2s ease;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.book-title.visible {
    opacity: 1;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 1.2s ease;
    margin-bottom: 0.75rem;
}

.subtitle.visible {
    opacity: 1;
}

.status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    opacity: 0;
    transition: opacity 1.2s ease;
}

.status.visible {
    opacity: 1;
}

.book-cover {
    margin-top: 2.5rem;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.book-cover.visible {
    opacity: 1;
}

.book-cover img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border: 2px solid #bbb;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* --- Queries / Terminal --- */
.queries {
    padding: 0 0 6rem;
}

.terminal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.terminal-header {
    background: #e8e8e8;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-body {
    padding: 1.5rem;
    min-height: 200px;
}

.query {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text);
    margin-bottom: 1.25rem;
    opacity: 0;
    line-height: 1.5;
}

.query.visible {
    opacity: 1;
}

.query .prompt {
    color: var(--accent);
    margin-right: 0.5rem;
    user-select: none;
}

.query-cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--accent);
    opacity: 0;
}

.query.typing .query-cursor {
    opacity: 1;
}

.query.done .query-cursor {
    display: none;
}

/* --- Footer --- */
.footer {
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .queries {
        padding: 0 0 4rem;
    }

    .terminal-body {
        padding: 1rem;
    }

    .query {
        word-break: break-word;
    }

    .book-cover img {
        max-width: 200px;
    }

    .footer {
        padding: 2rem 0 1.5rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .terminal-body {
        padding: 0.75rem;
    }

    .terminal-header {
        padding: 0.5rem 0.75rem;
    }

    .terminal-dot {
        width: 8px;
        height: 8px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .scanline {
        animation: none;
        opacity: 0.5;
    }

    .cursor,
    .query-cursor {
        animation: none;
        opacity: 1;
    }

    .tagline,
    .book-title,
    .subtitle,
    .status,
    .book-cover {
        opacity: 1;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}
