@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* =========================================================
   RHYTHM HOME — Minimal White Skin
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --ink: #17181c;
  --ink-soft: #6b7280;
  --line: #ececec;
  --line-soft: #f3f3f3;
  --accent: #2f5bff;
  --accent-weak: #eef2ff;
  --radius: 16px;
  --maxw: 1120px;
  --readw: 720px;
  --shadow: 0 1px 2px rgba(16,18,28,.04), 0 8px 24px rgba(16,18,28,.05);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Segoe UI", Roboto, "Helvetica Neue", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand .tagline { font-size: 13px; color: var(--ink-soft); }

.catnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.catnav-inner { display: flex; gap: 6px; align-items: center; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a {
  flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: .18s; white-space: nowrap;
}
.catnav a:hover { color: var(--ink); background: var(--bg-soft); }

.main { padding: 48px 0 80px; }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.card { display: flex; flex-direction: column; }
.card-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 16px; border: 1px solid var(--line-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card .cat { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; margin-bottom: 8px; }
.card h3 { font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.card:hover h3 { color: var(--accent); }
.card .excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .date { font-size: 12px; color: var(--ink-soft); margin-top: auto; }

.paging { display: flex; justify-content: center; gap: 6px; margin-top: 64px; }
.paging a, .paging span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); border: 1px solid transparent; }
.paging a:hover { background: var(--bg-soft); color: var(--ink); }
.paging .selected, .paging strong { background: var(--ink); color: #fff; }

.post-view { max-width: var(--readw); margin: 0 auto; padding: 56px 0 80px; }
.post-head { text-align: center; margin-bottom: 44px; }
.post-head .cat { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .02em; margin-bottom: 16px; }
.post-head .cat a { color: var(--accent); }
.post-head h1 { font-size: 34px; line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.post-head .meta { font-size: 14px; color: var(--ink-soft); }
.post-body { font-size: 17px; line-height: 1.85; color: #24262c; }
.post-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 48px 0 16px; }
.post-body h3 { font-size: 19px; font-weight: 700; margin: 32px 0 12px; }
.post-body p { margin: 0 0 22px; }
.post-body img { border-radius: var(--radius); margin: 28px 0; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 28px 0; padding: 4px 22px; border-left: 3px solid var(--accent); color: var(--ink-soft); }
.post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--bg-soft); font-weight: 700; }
.post-tags { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { font-size: 13px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-soft); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .brand .tagline { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-head h1 { font-size: 25px; }
  .post-body { font-size: 16px; }
}
