@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&display=swap');

:root {
  --ink: #1C1917;
  --sub: #57534E;
  --muted: #78716C;
  --line: #E7E5E4;
  --soft: #F5F5F4;
  --accent: #8A5A3B;
  --bg: #FFFFFF;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Gowun Dodum', sans-serif;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.serif { font-family: 'Gowun Batang', serif; }

/* 상단 메뉴 */
header.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.logo { font-family: 'Gowun Batang', serif; font-size: 22px; font-weight: 700; }
nav.menu { display: flex; flex-wrap: wrap; gap: 28px; font-size: 16px; }
nav.menu a.on { color: var(--accent); }
nav.menu .lock { display: inline-flex; align-items: center; gap: 6px; }

/* 페이지 머리말 */
.hero { padding: 112px 0 96px; max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.hero .hello { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.hero h1 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 48px; line-height: 1.35; }
.hero p { margin: 0; font-size: 18px; line-height: 1.8; color: var(--sub); }
.page-head { padding: 88px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 42px; }
.page-head p { margin: 0; font-size: 17px; color: var(--sub); }
@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 34px; }
  .page-head { padding: 56px 0 28px; }
  .page-head h1 { font-size: 32px; }
}

/* 섹션 제목 */
.sec { display: flex; flex-direction: column; gap: 24px; padding-bottom: 88px; }
.sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sec-top h2 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 26px; }
.sec-top a { font-size: 15px; }

/* 글 목록 */
.list { border-top: 1px solid var(--line); }
.row {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.row .date { font-size: 14px; color: var(--muted); min-width: 96px; }
.row .cat { font-size: 13px; color: var(--accent); min-width: 88px; }
.row .title { font-family: 'Gowun Batang', serif; font-size: 20px; flex: 1 1 320px; }

article.post { padding: 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
article.post .meta { display: flex; gap: 16px; font-size: 14px; }
article.post .meta .date { color: var(--muted); }
article.post .meta .cat { color: var(--accent); }
article.post h2 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 24px; }
article.post p { margin: 0; font-size: 16px; line-height: 1.8; color: var(--sub); }

/* 분류 버튼 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 32px; }
.chips button {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #D6D3D1; background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 15px; cursor: pointer;
}
.chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 사진 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }
.ph {
  background: var(--soft); border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--sub); overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.r43 { aspect-ratio: 4 / 3; }
.ph.r45 { aspect-ratio: 4 / 5; }
figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
figcaption { display: flex; flex-direction: column; gap: 4px; }
figcaption .place { font-family: 'Gowun Batang', serif; font-size: 18px; }
figcaption .note { font-size: 14px; color: var(--muted); }

/* 자산 */
.badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: var(--soft); font-size: 14px; color: var(--sub);
}
.total { display: flex; flex-direction: column; gap: 8px; padding: 32px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 32px; }
.total .num { font-family: 'Gowun Batang', serif; font-size: 44px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding-bottom: 48px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--soft); border-radius: 10px; }
.card .name { font-size: 15px; color: var(--sub); }
.card .num { font-family: 'Gowun Batang', serif; font-size: 26px; font-weight: 700; }

footer.site { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
