@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: #f6f3ee;
    color: #1f2937;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-wrap {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.topbar-inner,
.hero,
.layout,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand strong {
    display: block;
    font-size: 20px;
    color: #111827;
}

.brand small {
    color: #6b7280;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
}

.top-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 600;
}

.top-nav a.active,
.top-nav a:hover {
    background: #111827;
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 28px;
    padding: 42px 0 28px;
}

.hero-copy,
.hero-search,
.content-area,
.sidebar .widget,
.featured-card,
.post-card,
.post-detail,
.empty-box {
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.hero-copy,
.hero-search,
.content-area,
.sidebar .widget,
.post-detail,
.empty-box { padding: 28px; }

.eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #9a3412;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero-text {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 17px;
}

.search-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 15px;
    outline: none;
}

.search-box input:focus { border-color: #111827; }

.search-box button,
.back-row a,
.pagination a {
    border: 0;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
}

.hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.hero-tags span,
.chip,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span,
.tag-list span { background: #fff7ed; color: #c2410c; }
.chip { background: #111827; color: #fff; }
.chip.muted { background: #f3f4f6; color: #374151; }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 24px;
    padding-bottom: 40px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
}

.featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
}

.featured-thumb,
.thumb,
.detail-cover {
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-thumb { min-height: 280px; }
.featured-copy { padding: 28px; }
.featured-copy h3 { margin: 16px 0 12px; font-size: 30px; line-height: 1.24; }
.featured-copy p { margin: 0 0 18px; color: #4b5563; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    overflow: hidden;
}

.thumb { height: 220px; }
.card-body { padding: 22px; }
.card-body h3 { margin: 14px 0 10px; font-size: 24px; line-height: 1.3; }
.card-body p { margin: 0 0 18px; color: #4b5563; }

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget h3 { margin: 0 0 14px; font-size: 20px; }
.widget p { margin: 0; color: #4b5563; }

.category-list,
.post-mini-list { list-style: none; margin: 0; padding: 0; }
.category-list li + li,
.post-mini-list li + li { margin-top: 10px; }
.category-list a,
.post-mini-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f9fafb;
    font-weight: 700;
}
.post-mini-list span {
    display: block;
    margin-top: 6px;
    padding-left: 14px;
    font-size: 13px;
    color: #6b7280;
}

.article-area { padding: 0; background: transparent; border: 0; box-shadow: none; }
.post-detail { overflow: hidden; }
.detail-head h2 { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.detail-cover { height: 380px; border-radius: 24px; margin: 24px 0; }
.detail-body p {
    margin: 0 0 18px;
    font-size: 18px;
    color: #374151;
}

.tag-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.back-row {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a {
    min-width: 48px;
    text-align: center;
    background: #fff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, .1);
}

.pagination a.active {
    background: #111827;
    color: #fff;
}

.empty-box {
    text-align: center;
    font-weight: 700;
}

.footer {
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding: 28px 0 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #6b7280;
}

@media (max-width: 1080px) {
    .layout,
    .hero,
    .featured-card {
        grid-template-columns: 1fr;
    }

    .sidebar { order: -1; }
}

@media (max-width: 720px) {
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .post-grid { grid-template-columns: 1fr; }
    .topbar-inner,
    .hero,
    .layout,
    .footer-inner { width: min(100% - 24px, 1200px); }
    .hero-copy,
    .hero-search,
    .content-area,
    .sidebar .widget,
    .post-detail,
    .empty-box { padding: 22px; }
    .search-box { flex-direction: column; }
    .thumb { height: 210px; }
    .detail-cover { height: 260px; }
}
