/* yongjoon.dev — monochrome stark landing */

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

/* ── Body ── */
body {
    background: #FFFFFF;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Section Heading ── */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

/* ── Horizontal Rule ── */
.rule {
    border: none;
    border-top: 1px solid #E5E5E5;
    margin: 3rem 0;
}

/* ── Hover Underline Animation ── */
.hover-underline {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(#000000, #000000);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
    padding-bottom: 1px;
}

.hover-underline:hover {
    background-size: 100% 1px;
}

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

.hero-inner {
    text-align: left;
    width: 100%;
}

.hero-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 64px;
    color: #000000;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { cy: 10; }
    50% { cy: 22; }
}

/* ── Projects ── */
.projects {
    padding: 0;
}

.project-list {}

.project-item {
    padding: 32px 0;
    border-bottom: 1px solid #E5E5E5;
}

.project-item:first-child {
    padding-top: 0;
}

.project-item:last-child {
    border-bottom: none;
}

.project-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #000000;
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.project-name a {
    color: #000000;
}

.project-desc {
    font-size: 0.95rem;
    color: #333333;
    margin-bottom: 0.65rem;
    line-height: 1.55;
}

.tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 400;
    background: #F5F5F5;
    color: #666666;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* ── Open Source ── */
.oss {}

.oss-list {}

.oss-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #E5E5E5;
}

.oss-item:last-child {
    border-bottom: none;
}

.oss-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #000000;
    flex: 1;
}

.oss-stars {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #666666;
}

.oss-role {
    font-size: 0.8rem;
    color: #999999;
    min-width: 5rem;
    text-align: right;
}

/* ── Contribution Heatmap ── */
.heatmap-section {}

.heatmap-container {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 2px;
    width: 100%;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    background: #F5F5F5;
    transition: background 0.2s ease;
}

.heatmap-cell[data-level="1"] { background: #E5E5E5; }
.heatmap-cell[data-level="2"] { background: #999999; }
.heatmap-cell[data-level="3"] { background: #666666; }
.heatmap-cell[data-level="4"] { background: #333333; }
.heatmap-cell[data-level="5"] { background: #000000; }

/* ── Terminal About ── */
.about {}

.terminal-about {
    background: #F5F5F5;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    overflow: hidden;
}

.term-block {
    margin-bottom: 0.75rem;
}

.term-block:last-child {
    margin-bottom: 0;
}

.term-line {
    color: #000000;
    margin-bottom: 0.15rem;
    white-space: nowrap;
}

.term-prompt {
    color: #999999;
    margin-right: 0.5rem;
    user-select: none;
}

.term-cmd {
    color: #000000;
}

.term-cursor {
    color: #999999;
    animation: blink 1s step-end infinite;
    display: none;
}

.term-cursor.active {
    display: inline;
}

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

.term-output {
    color: #666666;
    margin-bottom: 0.5rem;
    min-height: 1.4em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.term-output.revealed {
    opacity: 1;
}

/* ── Writing ── */
.writing {}

.writing-list {}

.writing-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #E5E5E5;
    align-items: baseline;
}

.writing-item:last-child {
    border-bottom: none;
}

.writing-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #999999;
    min-width: 5rem;
    flex-shrink: 0;
}

.writing-title {
    font-size: 0.95rem;
    color: #000000;
}

.writing-title a {
    color: #000000;
}

/* ── Contact ── */
.contact {
    text-align: center;
    padding: 1rem 0;
}

.contact-form {
    display: flex;
    gap: 0;
    max-width: 360px;
    margin: 0 auto 1rem;
}

.contact-input {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #E5E5E5;
    border-right: none;
    background: #FFFFFF;
    color: #000000;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-input::placeholder {
    color: #999999;
}

.contact-input:focus {
    border-color: #000000;
}

.contact-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-btn:hover {
    background: #FFFFFF;
    color: #000000;
}

.contact-alt {
    font-size: 0.8rem;
    color: #999999;
}

.contact-email {
    font-family: 'JetBrains Mono', monospace;
    color: #666666;
}

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

.footer-inner {}

.source-link {
    font-size: 0.8rem;
    color: #999999;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
}

.source-link:hover {
    color: #000000;
}

.footer-copy {
    font-size: 0.75rem;
    color: #999999;
}

/* ── Version ── */
.version {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #999999;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    user-select: none;
}

/* ── Fade In Animation ── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero Entrance ── */
.hero {
    opacity: 0;
    animation: heroFadeIn 1s ease 0.2s forwards;
}

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

/* ── Responsive ── */
@media (max-width: 640px) {
    body {
        padding: 0 1.25rem;
    }

    .hero-name {
        font-size: 48px;
    }

    .rule {
        margin: 2rem 0;
    }

    .project-item {
        padding: 24px 0;
    }

    .writing-item {
        flex-direction: column;
        gap: 0.15rem;
    }

    .contact-form {
        flex-direction: column;
    }

    .contact-input {
        border-right: 1px solid #E5E5E5;
        border-bottom: none;
    }

    .heatmap-container {
        grid-template-columns: repeat(26, 1fr);
    }
}
