@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --bg: #faf9f7; --bg-secondary: #f5f4f1; --text: #1c1917;
  --text-secondary: #57534e; --text-tertiary: #a8a29e;
  --border: #e7e5e4; --border-light: #f0efed;
  --tag-bg: #f0efed; --tag-text: #57534e;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110; --bg-secondary: #1c1b1a; --text: #f2f0ed;
    --text-secondary: #a8a29e; --text-tertiary: #6b6562;
    --border: #2c2b2a; --border-light: #242322;
    --tag-bg: #242322; --tag-text: #a8a29e;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.85; -webkit-font-smoothing: antialiased;
}
.container { max-width: 660px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.site-header { padding: 4rem 0 2.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.site-header h1 { font-size: 1.35rem; font-weight: 500; }
.site-header p { color: var(--text-tertiary); margin-top: 0.4rem; font-size: 0.85rem; }
.search-wrap { position: relative; margin-bottom: 1.5rem; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary); pointer-events: none; width: 15px; height: 15px; }
.search-input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.3rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text); font-size: 0.875rem; font-family: inherit;
  outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--text-tertiary); }
.search-input::placeholder { color: var(--text-tertiary); }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-tertiary); cursor: pointer;
  font-size: 1.1rem; line-height: 1; display: none; padding: 2px; }
.search-clear:hover { color: var(--text-secondary); }
.search-empty { display: none; text-align: center; color: var(--text-tertiary);
  padding: 3rem 1rem; font-size: 0.9rem; }
.stats-bar { color: var(--text-tertiary); font-size: 0.78rem; margin-bottom: 1.2rem; }
.month-group { margin-bottom: 1.5rem; }
.month-label { font-size: 0.72rem; font-weight: 500; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.post-item { display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0.55rem 0.6rem; margin: 0 -0.6rem; border-radius: var(--radius);
  text-decoration: none; transition: background 0.12s; }
.post-item:hover { background: var(--bg-secondary); }
.post-date { font-size: 0.75rem; color: var(--text-tertiary); white-space: nowrap;
  font-variant-numeric: tabular-nums; min-width: 4em; flex-shrink: 0; }
.post-title { font-size: 0.95rem; color: var(--text); line-height: 1.5; }
.back-link { display: inline-flex; align-items: center; gap: 0.3rem;
  margin-bottom: 2rem; color: var(--text-tertiary); text-decoration: none;
  font-size: 0.82rem; transition: color 0.15s; }
.back-link:hover { color: var(--text-secondary); }
.post-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-header h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.post-meta { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem;
  color: var(--text-tertiary); font-size: 0.82rem; flex-wrap: wrap; }
.tag { font-size: 0.68rem; padding: 0.15rem 0.5rem; background: var(--tag-bg);
  color: var(--tag-text); border-radius: 4px; }
.post-content { font-size: 1rem; }
.post-content h2 { font-size: 1.1rem; font-weight: 600; margin: 2.5rem 0 0.8rem; }
.post-content h3 { font-size: 1rem; font-weight: 600; margin: 1.8rem 0 0.5rem; }
.post-content p { margin-bottom: 1.1rem; }
.post-content ul, .post-content ol { margin: 0.5rem 0 1.2rem 1.4rem; }
.post-content li { margin-bottom: 0.35rem; }
.post-content a { color: var(--text); text-decoration: underline;
  text-decoration-color: var(--border); text-underline-offset: 3px; }
.post-content a:hover { text-decoration-color: var(--text-secondary); }
.post-content strong { font-weight: 600; }
.post-content blockquote { border-left: 2px solid var(--border); padding: 0.1rem 1.1rem;
  margin: 1.5rem 0; color: var(--text-secondary); font-style: italic; }
.site-footer { text-align: center; padding: 2rem 0; margin-top: 4rem;
  border-top: 1px solid var(--border-light); color: var(--text-tertiary); font-size: 0.72rem; }
@media (max-width: 600px) {
  .container { padding: 1rem 1rem 3rem; }
  .post-item { flex-direction: column; gap: 0.1rem; }
}
