/* Global */
:root {
    --bg: #14171c;
    --surface: #20252c;
    --text: #f5f5f5;
    --muted: #9ba5b4;
    --accent: #68b7ff;
    --border: #323842;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

/* Header */
header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 24px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: var(--accent);
}

/* Main Content */
main {
    max-width: 1100px;
    min-height: 65vh;
    margin: 0 auto;
    padding: 50px 24px;
}

main h2 {
    font-size: 32px;
    margin-top: 0;
}

main p {
    color: var(--muted);
}

/* Sections */
section {
    margin-bottom: 48px;
}

section h3 {
    font-size: 20px;
}

/* Footer */
footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--muted);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        padding: 24px 16px;
    }

    main {
        padding: 32px 16px;
    }

    main h2 {
        font-size: 26px;
    }

    nav {
        gap: 16px;
        flex-wrap: wrap;
    }
}


/* Development Log List */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
    margin-top: 32px;
}

.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease,
                transform 0.2s ease;
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.post-card time {
    color: var(--muted);
    font-size: 12px;
}

.post-card h3 {
    margin: 12px 0;
    font-size: 20px;
}

.post-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.post-card p {
    color: var(--muted);
    font-size: 14px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Individual Development Log */

.post-detail {
    max-width: 850px;
    margin: 0 auto;
}

.post-detail-header {
    padding: 0 0 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.post-detail-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-detail-header time {
    color: var(--accent);
    font-size: 13px;
}

.post-content {
    line-height: 1.9;
}

.post-content h2 {
    margin-top: 48px;
    font-size: 26px;
}

.post-content h3 {
    margin-top: 32px;
    font-size: 21px;
}

.post-content img,
.post-content video {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px auto;
}

.post-content a {
    color: var(--accent);
}

.post-back {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-back a {
    color: var(--accent);
    text-decoration: none;
}

/* Post Thumbnail */

.post-card {
    padding: 0;
    overflow: hidden;
}

.post-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #292f38;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.04);
}

.thumbnail-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
}

.post-card-body {
    padding: 24px;
}

/* Home Page */

.home-intro {
    padding: 30px 0 50px;
}

.home-intro h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.3;
}

.recent-posts {
    margin-top: 30px;
}

.view-all {
    margin-top: 32px;
    text-align: center;
}

.view-all a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.view-all a:hover {
    text-decoration: underline;
}


/* About Page */

.about-page {
    max-width: 850px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--surface);
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    margin: 0 0 8px;
    font-size: 32px;
}

.profile-info p {
    margin: 4px 0;
}

.profile-role {
    color: var(--accent) !important;
    font-size: 16px;
}

.about-content {
    margin-top: 40px;
    line-height: 1.9;
}

.about-content h2 {
    margin-top: 40px;
    font-size: 24px;
}

.about-content a {
    color: var(--accent);
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}