/* === 공통 초기화 및 폰트 설정 === */
html, body {
  padding: 0;
  margin: 0;
  background: #fff;
  color: #111;
  font-family: "Inter", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

/* === 전체 컨테이너 구조 === */
.container {
  max-width: 720px;
  margin: 80px auto;
  padding: 0 24px;
}

main#content {
  margin-top: 40px;
  padding-bottom: 100px;
}

header {
  margin-bottom: 40px;
}


/* === 상단 제목 구역: '보관소', 'portfolio' === */
.title-main {
  font-size: 20px;
  font-weight: normal;
  color: #c0392b;
  margin-right: 12px;  /* 추가 간격 조정 */
}

.title-sub {
  font-size: 20px;
  font-weight: 300;
  color: #999;
}


.title-sub:link,
.title-sub:visited,
.title-sub:hover,
.title-sub:active {
  color: #999;
  text-decoration: none;
}

.title-sub:hover {
  text-decoration: underline;
}


/* === 헤드라인 계열 (본문 포함) === */
h1, h2, h3 {
  font-weight: 700;
  color: #222;
  text-align: left;
  margin: 0;
}

h1 {
  font-size: 18px;
}

h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

h1 a, h2 a {
  font-weight: 500;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}


/* === 본문 텍스트 === */
p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 1.4em;
}

small,
.meta,
.post-date {
  font-size: 12px;
  color: #999;
  font-weight: 400;
}

.post-separator {
  font-size: 12px;
  color: #555;       /* ✅ 더 어두운 회색 */
  font-weight: 400;
  margin: 0 6px;     /* ✅ 양옆 여백 살짝 추가 */
}


.separator {
  font-size: 10px;
  color: #ccc;
  margin: 0 4px;
}


/* === 링크 스타일 (기본/방문/호버) === */
a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}

a:visited {
  color: #406ea0;
}

a:hover {
  text-decoration: underline;
  color: #003c8a;
}


/* === 포스트 목록 === */
ul#post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul#post-list li {
  margin-bottom: 2px;     /* 거의 밀착 수준으로 조밀하게 */
  padding: 2px 0;         /* 상하 여백 최소화 */
  line-height: 1.3; 
}

ul#post-list .post-item {
  line-height: 1.3;       /* 목록 항목 전체 간격 줄임 */
  padding: 2px 0;
  margin: 0;
}
ul#post-list .post-line {
  line-height: 1.3;
  gap: 6px;               /* 내부 요소 간격도 줄임 */
}


ul#post-list li small {
  font-size: 13px;
  color: #999;
  margin-right: 6px;
}

ul#post-list li a {
  font-size: 16px;
  font-weight: 500;
  color: #5a6e8c;
  text-decoration: none;
}

ul#post-list li a:hover {
  text-decoration: underline;
}
.title-sub {
  font-size: 20px;
  font-weight: 300;
  color: #bbb;    /* 기존 #999 → 더 밝은 회색 */
  margin-left: 12px;
}


/* === 단일 포스트 보기 === */
ul#post-list li {
  margin-bottom: 6px;    /* 기존보다 더 줄임 (기존 8~10px) */
  padding: 4px 0;        /* 상하 여백도 조금 더 좁게 */
}

.post-item {
  padding: 4px 0;        /* 줄임 */
}

.post-line {
  gap: 6px;              /* 텍스트 간 간격 살짝 줄임 */
  line-height: 1.4;      /* 텍스트 높이도 살짝 조밀하게 */
}

.post-title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.post-title:hover {
  text-decoration: none;
}

.post-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
}

.post-body {
  max-width: 640px;  /* 또는 720px 등 적절한 값 */
  margin: 0 auto;     /* 중앙 정렬 */
  padding: 0 16px;
  line-height: 1.7;
  font-size: 15px;
  color: #222;
  word-break: break-word; /* 너무 긴 단어 줄바꿈 처리 */
}

.post-body h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.post-body a {
  color: #0056b3;
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}


/* === 네비게이션 영역 (이전/다음) === */
.post-nav {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #eee;
  font-size: 14px;
  box-sizing: border-box;
}

.post-nav a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-nav a:hover {
  color: #003c8a;
  text-decoration: underline;
}


/* === 요약 글 숨기기 (최종 설정) === */
.summary {
  display: none;
}
.tag {
  background: #eee;
  color: #555;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.tag-list {
  margin-top: 2px;
}
.tag-filters {
  margin-bottom: 20px;
}

.tag-button {
  font-size: 13px;
  padding: 4px 8px;
  margin-right: 6px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
}

.tag-button:hover {
  background: #ddd;
}

#tag-filters {
  margin-top: 48px;  /* 글 목록과 여유 간격 */
  text-align: left;
}
.tag-button {
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  margin-right: 10px;
  cursor: pointer;
}

.tag-button:hover {
  text-decoration: underline;
}

.tag-inline {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
