/* 
 * libibang.com - Minimal Premium Design System 
 * Focus: Typography, White-space, Semantic Hierarchy, SEO-ready
 */

:root {
    /* Color Palette - Premium Editorial */
    --color-bg: #ffffff;
    --color-text-primary: #121212;
    --color-text-secondary: #555555;
    --color-accent: #000000;
    --color-border: #eeeeee;
    --color-subtle-bg: #f9f9f9;

    /* Typography */
    --font-serif: "Nanum Myeongjo", serif;
    --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-logo: var(--font-serif);
    --font-main: var(--font-sans);

    /* Spacing */
    --spacing-unit: 8px;
    --container-width: 1100px;
    --header-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* SEO Friendly Typography Scale */
h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Layout Components */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0;
    text-decoration: none;
    color: var(--color-text-primary);
    line-height: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--color-text-primary);
}

/* Hero Section / List Header */
.list-header {
    padding: 80px 0;
    text-align: center;
}

.list-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.list-count {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.hero {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.hero h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Post List (Editorial Style) */
.post-list {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.post-card {
    grid-column: span 6;
    margin-bottom: 40px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: var(--color-subtle-bg);
    overflow: hidden;
    margin-bottom: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.post-title {
    font-family: var(--font-main);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.post-summary {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Post View */
.single-post {
    padding: 80px 0;
    max-width: 800px;
}

.post-header {
    text-align: center;
    margin-bottom: 60px;
}

.post-content {
    font-size: 1.15rem;
    line-height: 2;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 40px 0;
}

.tag-list {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.tag-list a {
    color: var(--color-text-secondary);
    margin-right: 15px;
    text-decoration: none;
}

/* Footer */
footer {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .post-card {
        grid-column: span 12;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}