/* Base variables for convenience */
:root {
    --text-black: #111111;
    --text-gray: #676767;
    --border-color: #D9D9D9;
    --text-light-gray: #B1B1B1;
    --font-family: 'Inter', sans-serif;
}

/* Browser reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-black);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Main container 1080px */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.site-header {
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
}

.header-link {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

.header-link:hover {
    opacity: 0.7;
}

.header-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.header-title {
    font-size: 14px;
    color: var(--text-gray);
}

/* Hero section */
.hero {
    margin-bottom: 80px;
    max-width: 800px;
}

.greeting {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-light-gray);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bio {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.3;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.project-card {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

.project-card:hover {
    opacity: 0.8;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f5f5f5;
    position: relative;
}

.soon-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ffffff;
    color: var(--text-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
    opacity: 1 !important;
}

.project-card.is-soon {
    cursor: default;
}

.project-card.is-soon:hover {
    opacity: 1;
}

.project-card.is-soon img,
.project-card.is-soon .project-title,
.project-card.is-soon .project-category {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-category {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Footer */
.site-footer {
    margin-top: auto;
    height: 64px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    gap: 16px;
    font-size: 14px;
    color: var(--text-gray);
}

.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-black);
}

.separator {
    color: var(--border-color);
}

/* Article page styles */
.text-container {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-black);
}

.article-category {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Article images and videos */
.article-image-wrapper {
    margin: 40px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.article-image-wrapper img,
.article-image-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.article-image-wrapper img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.article-image-wrapper img:hover {
    opacity: 0.95;
}

/* Article text content */
.article-content {
    margin-bottom: 40px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-black);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-black);
}

.article-content ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-black);
}

/* 2x2 image grid in article */
.article-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
    width: 100%;
}

.article-image-grid .article-image-wrapper {
    margin: 0; 
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 40px;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Media queries */
@media (max-width: 900px) {
    .container {
        padding: 0 32px;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero {
        margin-bottom: 60px;
    }
    .greeting, .bio, .article-title {
        font-size: 28px;
    }
    .article-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .site-header {
        margin-bottom: 40px;
    }
    .greeting, .bio, .article-title {
        font-size: 24px;
    }
    .article-image-wrapper {
        border-radius: 8px;
        margin: 32px 0;
    }
    .article-image-grid {
        grid-template-columns: 1fr; /* Changed to 1 column for mobile */
        gap: 16px;
        margin: 32px 0;
    }
    .lightbox {
        padding: 16px;
    }
}