:root {
    --bg: #f4f7f5;
    --surface: #fff;
    --text: #17211b;
    --muted: #68736c;
    --line: #dce5df;
    --accent: #168a4b;
    --accent-dark: #0d6637;
    --radius: 16px;
    --shadow: 0 12px 35px rgba(23, 55, 36, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { padding: 72px 0 48px; background: linear-gradient(135deg, #e7f7ec, #f8fbf9); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.045em; }
.description { max-width: 640px; color: var(--muted); font-size: 1.05rem; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 12px; align-items: end; margin: 32px 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
input, select, button { width: 100%; min-height: 44px; border: 1px solid #cbd8d0; border-radius: 10px; background: #fff; color: var(--text); font: inherit; padding: 9px 12px; }
input:focus, select:focus { outline: 3px solid rgba(22, 138, 75, .15); border-color: var(--accent); }
button { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; padding-inline: 22px; }
button:hover { background: var(--accent-dark); }
.reset { min-height: 44px; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.result-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 40px 0 18px; }
.result-heading h2 { margin: 0; font-size: 1.45rem; }
.result-heading span { color: var(--muted); font-size: .9rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; min-height: 255px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.post-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .78rem; }
.category { color: var(--accent-dark); background: #eaf7ef; border-radius: 99px; padding: 2px 9px; font-weight: 700; }
.post-card h3 { margin: 22px 0 8px; font-size: 1.15rem; line-height: 1.45; letter-spacing: -.02em; }
.blog-name { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.post-link { margin-top: auto; color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.post-link:hover { text-decoration: underline; }
.empty, .notice { padding: 42px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty p { color: var(--muted); }
.notice.error { margin-top: 24px; color: #8f2929; background: #fff0f0; border-color: #f1c7c7; }
.footer { display: flex; justify-content: space-between; padding-block: 40px; color: var(--muted); font-size: .8rem; }
@media (max-width: 850px) {
    .filters { grid-template-columns: 1fr 1fr; }
    .search-field { grid-column: 1 / -1; }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .site-header { padding: 48px 0 34px; }
    .filters, .post-grid { grid-template-columns: 1fr; }
    .search-field { grid-column: auto; }
    .post-card { min-height: 220px; }
}
