@import url('https://fonts.googleapis.com/css2?family=Spline+Sans+Mono:wght@400;600&display=swap');

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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    padding: 24px 0;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    width: auto;
    height: 14px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Spline Sans Mono', monospace;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.6;
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 40px;
    min-height: 400px;
}

.hero-grid {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 0;
    object-fit: fill;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: left;
    width: 90%;
    max-width: 720px;
    padding: 0 20px;
}

.hero-section .page-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #fff;
}

.subtitle-accent {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.hero-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 16px;
}

/* Main Content */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

.page-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-bottom: 64px;
    font-weight: 400;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.post-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.02);
}

.post-details {
    padding-top: 4px;
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.post-date {
    font-weight: 400;
}

.post-author {
    font-weight: 400;
}

.post-meta::before {
    content: none;
}

.post-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.post-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 400;
}

.post-link-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-link {
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.post-link:hover {
    opacity: 0.6;
}

.in-progress-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Spline Sans Mono', monospace;
    font-size: 11px;
    color: #999;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #f5f5f5;
    transition: opacity 0.2s;
}

.in-progress-badge svg {
    color: #999;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

footer p {
    font-family: 'Spline Sans Mono', monospace;
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

footer a {
    font-family: 'Spline Sans Mono', monospace;
    color: #999;
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.6;
}

/* Responsive */
/* iPad Pro / Large Tablets */
@media (max-width: 1024px) {
    .header-container,
    .content-container,
    .hero-section {
        max-width: 90%;
    }
}

@media (max-width: 968px) {
    .post-item {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }

    .posts-list {
        gap: 64px;
    }
    
    .hero-content {
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .logo img {
        height: 13px;
    }

    .main-nav {
        gap: 24px;
    }

    .main-nav a {
        font-size: 15px;
        padding: 8px 4px;
    }

    .hero-section {
        padding: 0 20px;
        margin-bottom: 36px;
        min-height: 280px;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        left: 20px;
        right: 20px;
        top: 0;
        bottom: 0;
        min-height: 280px;
        border-radius: 0;
        background: linear-gradient(180deg, #4864da 0%, #9ca4de 100%);
        background-image: 
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 39px,
                rgba(255, 255, 255, 0.09) 39px,
                rgba(255, 255, 255, 0.09) 40px
            ),
            repeating-linear-gradient(
                90deg,
                transparent,
                transparent 39px,
                rgba(255, 255, 255, 0.09) 39px,
                rgba(255, 255, 255, 0.09) 40px
            ),
            linear-gradient(180deg, #4864da 0%, #9ca4de 100%);
    }
    
    .hero-section::after {
        content: '';
        position: absolute;
        left: 20px;
        right: 20px;
        top: 0;
        bottom: 0;
        min-height: 280px;
        border-radius: 0;
        background-image: url('noisy-background.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        pointer-events: none;
        z-index: 1;
        mix-blend-mode: overlay;
    }

    .hero-grid {
        display: none;
    }

    .hero-content {
        padding: 28px 24px;
        width: 93%;
        max-width: 93%;
        z-index: 2;
    }

    .hero-section .page-title {
        font-size: 19px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hero-text {
        font-size: 12.5px;
        margin-bottom: 10px;
        line-height: 1.65;
    }
    
    .hero-text:last-child {
        margin-bottom: 0;
    }
    
    .post-description {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .content-container {
        padding: 0 20px 70px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .posts-list {
        gap: 48px;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-image {
        aspect-ratio: 16 / 9;
        border-radius: 8px;
    }

    .post-details {
        padding-top: 4px;
    }

    .post-title {
        font-size: 21px;
        line-height: 1.35;
    }

    .post-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .post-link {
        padding: 8px 0;
        display: inline-block;
    }
    
    .post-link-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .in-progress-badge {
        font-size: 10px;
        padding: 2px 7px;
        gap: 5px;
    }
    
    .in-progress-badge svg {
        width: 10px;
        height: 10px;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }
    
    .logo img {
        height: 12px;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 0 16px;
        min-height: 240px;
        margin-bottom: 28px;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        left: 16px;
        right: 16px;
        top: 0;
        bottom: 0;
        min-height: 240px;
        border-radius: 0;
        background: linear-gradient(180deg, #4864da 0%, #9ca4de 100%);
        background-image: 
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 39px,
                rgba(255, 255, 255, 0.09) 39px,
                rgba(255, 255, 255, 0.09) 40px
            ),
            repeating-linear-gradient(
                90deg,
                transparent,
                transparent 39px,
                rgba(255, 255, 255, 0.09) 39px,
                rgba(255, 255, 255, 0.09) 40px
            ),
            linear-gradient(180deg, #4864da 0%, #9ca4de 100%);
    }
    
    .hero-section::after {
        content: '';
        position: absolute;
        left: 16px;
        right: 16px;
        top: 0;
        bottom: 0;
        min-height: 240px;
        border-radius: 0;
        background-image: url('noisy-background.jpg');
        background-size: cover;
        background-position: center;
        opacity: 0.15;
        pointer-events: none;
        z-index: 1;
        mix-blend-mode: overlay;
    }
    
    .hero-grid {
        display: none;
    }
    
    .hero-content {
        padding: 20px 18px;
        width: 95%;
        max-width: 95%;
        z-index: 2;
    }
    
    .hero-section .page-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.35;
    }
    
    .subtitle-accent {
        display: inline;
    }
    
    .hero-text {
        font-size: 11.5px;
        margin-bottom: 8px;
        line-height: 1.65;
    }
    
    .hero-text:last-child {
        margin-bottom: 0;
    }
    
    /* Truncate long descriptions on mobile */
    .post-description {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .content-container {
        padding: 0 16px 40px;
    }
    
    .posts-list {
        gap: 32px;
    }
    
    .post-image {
        border-radius: 6px;
        aspect-ratio: 16 / 10;
    }
    
    .post-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .post-meta {
        flex-direction: row;
        gap: 8px;
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .post-meta::before {
        content: none;
    }
    
    .post-date::after {
        content: "·";
        margin-left: 8px;
    }
    
    .post-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .post-link {
        font-size: 13px;
        font-weight: 500;
    }
    
    .post-link-container {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .in-progress-badge {
        font-size: 9px;
        padding: 2px 6px;
        gap: 4px;
    }
    
    .in-progress-badge svg {
        width: 9px;
        height: 9px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    footer p {
        font-size: 11px;
    }
}

