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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 16px;
}

header {
    padding: 32px 0 24px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
    background: #fff;
}

header .container {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}

header .subtitle {
    font-size: 0.85rem;
    color: #888;
}

.feed {
    padding-bottom: 64px;
}

.post-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #eaeaea;
    transition: box-shadow 0.15s ease;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
}

.post-project {
    display: inline-block;
    background: #e8f0fe;
    color: #1a56db;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.01em;
}

.post-time {
    margin-left: auto;
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
}

.post-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Post type visual treatments */
.post-type-icon {
    font-size: 1rem;
    line-height: 1;
}

.post-type-milestone {
    border-left: 3px solid #d4a017;
    background: linear-gradient(90deg, #fffdf0 0%, #fff 6%);
}

.post-type-error {
    border-left: 3px solid #d93025;
    background: linear-gradient(90deg, #fef2f0 0%, #fff 6%);
}

.post-type-celebration {
    border-left: 3px solid #9b59b6;
    background: linear-gradient(90deg, #faf0ff 0%, #fff 6%);
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #999;
}

.empty-state p {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.empty-state .hint {
    font-size: 0.85rem;
    color: #bbb;
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    header .container {
        flex-direction: column;
        gap: 4px;
    }
}

/* Responsive — mobile */
@media (max-width: 600px) {
    header {
        padding: 24px 0 16px;
        margin-bottom: 12px;
    }

    header h1 {
        font-size: 1.15rem;
    }

    .post-card {
        padding: 16px 18px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .post-meta {
        gap: 8px;
    }

    .post-time {
        margin-left: 0;
        width: 100%;
        order: 3;
    }

    .post-content {
        font-size: 0.9rem;
    }
}

/* Very small screens — edge-to-edge cards */
@media (max-width: 400px) {
    .container {
        padding: 0 8px;
    }

    .post-card {
        border-radius: 6px;
        padding: 14px 14px;
    }
}
