/* reasr.one - Radical minimalism */

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

/* === Root Variables === */
:root {
    --frost-white: #FAFAFA;
    --ice-mist: #F0F4F8;
    --whisper-gray: #B0B8C0;
    --graphite: #4A5568;
    --accent-blue: #5B8FB9;
    --ghost: rgba(90, 143, 185, 0.03);
    --period-black: #2D3748;
    --font-main: 'Commissioner', sans-serif;
}

/* === Body === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.9;
    color: var(--whisper-gray);
    background: linear-gradient(180deg, var(--ice-mist) 0%, var(--frost-white) 40%, var(--frost-white) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === HUD Elements (Sci-fi at perception threshold) === */
.hud-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.hud-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

.hud-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
}

.hud-bottom-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.hud-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Hide HUD on narrow screens */
@media (max-width: 1024px) {
    .hud-elements {
        display: none;
    }
}

/* === Void Section (Hero) === */
.void-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 24px;
}

.void-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.wordmark {
    font-family: var(--font-main);
    font-weight: 450;
    font-size: clamp(20px, 2.5vw, 36px);
    letter-spacing: 0.02em;
    color: var(--graphite);
    line-height: 1.4;
}

.subtitle {
    position: relative;
    display: inline-block;
    font-weight: 300;
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--whisper-gray);
    letter-spacing: 0.04em;
    padding-bottom: 4px;
}

.subtitle-text {
    display: inline-block;
}

.subtitle-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: none;
}

.subtitle-underline.animate {
    animation: underline-draw 0.6s ease-out forwards;
}

@keyframes underline-draw {
    from {
        width: 0;
        left: 50%;
    }
    to {
        width: 100%;
        left: 0;
    }
}

/* Corner abstract shape */
.corner-shape {
    position: absolute;
    bottom: 40px;
    right: 40px;
    opacity: 0.6;
}

/* === Shape Dividers === */
.shape-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

/* === Single-Thought Sections === */
.thought-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 200px 24px;
}

.thought-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.thought-heading {
    font-family: var(--font-main);
    font-weight: 450;
    font-size: clamp(20px, 2.5vw, 36px);
    letter-spacing: 0.02em;
    color: var(--graphite);
    line-height: 1.4;
}

.thought-body {
    font-weight: 300;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.9;
    color: var(--whisper-gray);
}

/* === Underline-draw interaction (links/hover) === */
.thought-heading {
    position: relative;
    display: inline-block;
    cursor: default;
}

.thought-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: width 0.3s ease, left 0.3s ease;
}

.thought-heading:hover::after {
    width: 100%;
    left: 0;
}

/* === Closing Section === */
.closing-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
}

.closing-dot {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 48px;
    color: var(--period-black);
    line-height: 1;
    user-select: none;
}

/* === Scroll-based reveal === */
.thought-section {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.thought-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.shape-divider {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.shape-divider.visible {
    opacity: 1;
}

.closing-section {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.closing-section.visible {
    opacity: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
    .thought-section {
        padding: 120px 20px;
    }

    .corner-shape {
        bottom: 24px;
        right: 24px;
    }
}

@media (max-width: 480px) {
    .thought-section {
        padding: 80px 16px;
    }

    .thought-content {
        max-width: 100%;
    }
}

/* === Selection === */
::selection {
    background: rgba(91, 143, 185, 0.15);
    color: var(--graphite);
}
