/* yongjoon.net - Dark-mode constellation with ma negative space */

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

:root {
    --void: #0c0e14;
    --deep: #14161e;
    --stone: #7a7670;
    --silver: #c8c4be;
    --jewel-purple: #7b5ea7;
    --jewel-blue: #4a7ab5;
    --jewel-green: #4a9a6a;
    --jewel-red: #a85a5a;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--void);
    color: var(--silver);
    font-family: 'Newsreader', serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Ambient particles layer */
.ambient-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.ambient-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--stone);
    opacity: 0;
    animation: ambientPulse 6s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.25; }
}

/* Threshold: vast empty space at top */
.threshold {
    height: 120vh;
    position: relative;
}

/* Constellation */
.constellation {
    position: relative;
    z-index: 1;
    padding-bottom: 40vh;
}

/* Islands */
.island {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.island.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Island: Monogram */
.island-monogram {
    margin-left: 45%;
    margin-top: 0;
    margin-bottom: 30vh;
    width: fit-content;
}

.monogram-container {
    padding: 20px;
}

.monogram {
    display: block;
    opacity: 0.8;
}

/* Island: Name */
.island-name {
    margin-left: 15%;
    margin-bottom: 25vh;
    width: fit-content;
}

.name-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--silver);
    line-height: 1.1;
}

.name-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    font-weight: 300;
    color: var(--jewel-purple);
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Island: Bio */
.island-bio {
    margin-left: 55%;
    margin-bottom: 30vh;
    max-width: 350px;
}

.bio-text {
    font-family: 'Newsreader', serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--stone);
}

/* Island: Values */
.island-values {
    margin-left: 20%;
    margin-bottom: 35vh;
    max-width: 300px;
}

.island-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--silver);
    margin-bottom: 24px;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.value-label {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--stone);
    letter-spacing: 0.03em;
}

/* Island: Projects */
.island-projects {
    margin-left: 60%;
    margin-bottom: 30vh;
    max-width: 280px;
}

.project-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(122, 118, 112, 0.2);
}

.project-index {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: var(--jewel-blue);
    letter-spacing: 0.1em;
}

.project-name {
    font-family: 'Newsreader', serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--silver);
}

/* Island: Reflection */
.island-reflection {
    margin-left: 25%;
    margin-bottom: 30vh;
    max-width: 400px;
}

.reflection-quote {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: var(--stone);
    border-left: 2px solid var(--jewel-green);
    padding-left: 24px;
}

/* Island: Contact */
.island-contact {
    margin-left: 50%;
    margin-bottom: 20vh;
    width: fit-content;
}

.contact-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 300;
    color: var(--jewel-purple);
    letter-spacing: 0.03em;
}

/* Colophon */
.colophon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 24px;
    border-top: 1px solid rgba(122, 118, 112, 0.15);
    position: relative;
    z-index: 1;
}

.colophon-domain {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--stone);
}

.colophon-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 300;
    color: rgba(122, 118, 112, 0.4);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .threshold {
        height: 60vh;
    }
    .island {
        margin-left: 10% !important;
        max-width: 80% !important;
    }
    .island-monogram,
    .island-bio,
    .island-projects,
    .island-contact {
        margin-left: 10% !important;
    }
    .island {
        margin-bottom: 20vh !important;
    }
}
