* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  background-color: #ffffff;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

a {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #cc0000;
}

/* Header */
.site-header {
  border-bottom: 2px solid #000000;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
}

.site-title:visited {
  color: #000000;
}

.site-description {
  font-size: 13px;
  color: #444444;
  margin-top: 4px;
}

/* Navigation */
.site-nav {
  margin-top: 10px;
  font-size: 14px;
}

.site-nav a {
  margin-right: 16px;
}

/* Post list */
.post-list {
  list-style: disc;
  padding-left: 24px;
}

.post-item {
  margin-bottom: 12px;
  font-size: 16px;
}

.post-date {
  font-size: 13px;
  color: #666666;
  margin-left: 10px;
}

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

/* Single post */
.post-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 16px;
}

.post-header .post-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.post-content {
  font-size: 16px;
  line-height: 1.75;
}

.post-content p {
  margin-bottom: 1.2em;
}

.post-content h2 {
  font-size: 18px;
  margin: 1.8em 0 0.6em;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 4px;
}

.post-content h3 {
  font-size: 16px;
  margin: 1.4em 0 0.4em;
}

.post-content ul,
.post-content ol {
  margin: 0.8em 0 0.8em 1.6em;
}

.post-content li {
  margin-bottom: 0.4em;
}

.post-content blockquote {
  border-left: 3px solid #000000;
  margin: 1em 0;
  padding-left: 16px;
  color: #333333;
  font-style: italic;
}

.post-content hr {
  border: none;
  border-top: 1px solid #cccccc;
  margin: 2em 0;
}

/* 반응형 이미지 - 모바일에서 이미지가 화면을 넘지 않도록 */
.post-content img,
.post-content figure img,
.kg-image,
.kg-image-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

.kg-image-card {
  margin: 1.5em 0;
}

.kg-image-card figcaption {
  font-size: 12px;
  color: #666666;
  text-align: center;
  margin-top: 6px;
}

/* Social links */
.social-links {
  margin-bottom: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 16px;
  font-size: 13px;
  text-decoration: none;
  color: #0000cc;
}

.social-links a:hover {
  text-decoration: underline;
}

.social-links img {
  vertical-align: middle;
}

.footer-contact {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 13px;
  color: #666666;
}

/* Ghost required classes */
.kg-width-wide {
  width: 100%;
}

.kg-width-full {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 2px solid #000000;
  font-size: 13px;
  color: #666666;
}

/* Pagination */
.pagination-arrow {
  font-size: 20px;
  text-decoration: none;
  margin-right: 12px;
  color: #0000cc;
  cursor: pointer;
}

.pagination-arrow:hover {
  color: #cc0000;
}

.pagination-arrow.disabled {
  color: #cccccc;
  cursor: default;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

/* 구독하기 버튼 (헤더 네비) */
.subscribe-btn {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  padding-bottom: 1px;
}

.subscribe-btn:visited {
  color: #000000;
}

.subscribe-btn:hover {
  color: #cc0000;
  border-bottom-color: #cc0000;
}

/* 구독 모달 오버레이 */
.subscribe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 999;
}

/* 구독 모달 */
.subscribe-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.subscribe-modal-box {
  background: #ffffff;
  border: 1px solid #000000;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
}

.subscribe-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #000000;
  line-height: 1;
  padding: 0;
}

.subscribe-modal-close:hover {
  color: #cc0000;
}

.subscribe-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #000000;
}

.subscribe-modal-desc {
  font-size: 13px;
  color: #444444;
  margin-bottom: 24px;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subscribe-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.subscribe-field label {
  font-size: 13px;
  color: #000000;
}

.required {
  color: #cc0000;
}

.subscribe-field input {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  border: 1px solid #000000;
  padding: 8px 10px;
  background: #ffffff;
  color: #000000;
  outline: none;
  width: 100%;
}

.subscribe-field input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.subscribe-submit {
  font-family: "Times New Roman", "Nanum Myeongjo", serif;
  font-size: 14px;
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px;
  cursor: pointer;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.subscribe-submit:hover {
  background: #333333;
}

.subscribe-submit:disabled {
  background: #999999;
  cursor: not-allowed;
}

.subscribe-error {
  font-size: 12px;
  color: #cc0000;
  min-height: 16px;
}

.subscribe-success {
  text-align: center;
  padding: 20px 0;
  font-size: 15px;
  color: #000000;
}
