@charset "utf-8";
/* =========================================================
   종이와 잉크 — Tistory skin
   따뜻한 종이 바탕 · 짙은 잉크 글씨 · 한 가지 강조색
   ========================================================= */

:root {
  --accent: #A5553A;          /* skin.html에서 스킨 옵션 값으로 덮어씀 */
  --paper: #F6F2EA;
  --surface: #FBF8F2;
  --line: #DDD5C7;
  --ink: #23201C;
  --text: #332F2A;
  --text-2: #4A453E;
  --muted: #6B645A;
  --faint: #8A8276;
  --dot: #B3AA9C;

  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --latin: 'Cormorant Garamond', Georgia, serif;

  --page: 1280px;
  --gutter: 80px;
  --read: 680px;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.icon-btn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--ink);
  cursor: pointer; border-radius: 50%;
}
.icon-btn:hover { color: var(--accent); }

/* ---------- 헤더 ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  height: 96px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand-sub { font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--muted); white-space: nowrap; }

.gnb { margin-left: auto; }
.gnb ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 36px; }
.gnb a { font-size: 15px; color: var(--text-2); }
.gnb a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; margin-right: -10px; }
.menu-btn { display: none; }

.search-bar { border-top: 1px solid var(--line); padding: 20px 0; }
.search-form { display: flex; gap: 12px; max-width: 640px; margin: 0 auto; }
.search-form input {
  flex: 1; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 15px;
}
.search-form input:focus { outline: none; border-color: var(--ink); }

/* ---------- 카테고리 줄 ---------- */
.category-bar { border-top: 1px solid var(--line); }
.category-bar .inner { display: flex; align-items: center; min-height: 56px; }
.category-bar ul { list-style: none; margin: 0; padding: 0; }
.category-bar .tt_category,
.category-bar .tt_category > li,
.category-bar .category_list { display: flex; align-items: center; flex-wrap: wrap; column-gap: 28px; }
.category-bar a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; color: var(--text-2); white-space: nowrap;
}
.category-bar a:hover, .category-bar a.is-current { color: var(--accent); }
.category-bar .link_tit { font-weight: 500; color: var(--ink); }
.category-bar .c_cnt, .category-bar img { display: none; }
.category-bar .category_list > li { position: relative; }
.category-bar .sub_category_list {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 30;
  min-width: 168px; padding: 8px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(35, 32, 28, .08);
}
.category-bar .category_list > li:hover > .sub_category_list,
.category-bar .category_list > li:focus-within > .sub_category_list { display: block; }
.category-bar .sub_category_list a { display: flex; min-height: 40px; }

/* ---------- 메뉴 서랍 ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(35, 32, 28, .35); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw); overflow-y: auto;
  background: var(--paper); padding: 16px 24px 40px;
  box-shadow: -8px 0 32px rgba(35, 32, 28, .12);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin: 0 -10px 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 18px;
}
.drawer-menu ul, .drawer-category ul { list-style: none; margin: 0; padding: 0; }
.drawer-menu { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.drawer-menu a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); }
.drawer-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.drawer-category a.is-current { color: var(--accent); }
.drawer-category a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--text-2); }
.drawer-category .link_tit { font-family: var(--serif); font-weight: 700; color: var(--ink); }
.drawer-category .sub_category_list { padding-left: 16px; }
.drawer-category .sub_category_list a { font-size: 14px; color: var(--muted); min-height: 38px; }
.drawer-category .c_cnt { margin-left: 6px; font-size: 12px; color: var(--faint); }
.drawer-category img { display: none; }

/* ---------- 홈 소개 ---------- */
.intro { display: none; }
#tt-body-index:not(.is-paged) .intro {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 96px 0 80px; text-align: center;
}
.intro-label { font-family: var(--latin); font-style: italic; font-size: 18px; color: var(--accent); }
.intro-title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: 46px; line-height: 1.35; letter-spacing: -0.02em;
}
.intro-desc { margin: 0; font-size: 16px; line-height: 1.8; color: var(--muted); }

/* ---------- 섹션 제목 ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 20px; margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.section-head h1, .section-head h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; }
.section-head .en { font-family: var(--latin); font-style: italic; font-size: 17px; color: var(--muted); white-space: nowrap; }

.home-head { display: none; }
#tt-body-index .home-head { display: flex; }
.list-head { margin-top: 80px; }
#tt-body-index.is-paged .home-head { margin-top: 80px; }
.featured-slot:not(:empty) + .list-head,
.featured-slot:not(:empty) ~ .home-head { margin-top: 120px; }

/* ---------- 글 목록 ---------- */
body:not(#tt-body-page) .article-area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px; row-gap: 64px;
}
#tt-body-guestbook .article-area, #tt-body-tag .article-area:empty { display: none; }

.post-item { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 4px; background: #E4D9C8;
}
.thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s ease;
}
.post-item:hover .thumb img, .related-item:hover .thumb img { transform: scale(1.03); }
.thumb-empty {
  position: absolute; left: 20px; bottom: 16px;
  font-family: var(--latin); font-style: italic; font-size: 18px; color: rgba(35, 32, 28, .45);
}
.article-area .post-item:nth-child(6n+2) .thumb { background: #D9DCCB; }
.article-area .post-item:nth-child(6n+3) .thumb { background: #E8D6CC; }
.article-area .post-item:nth-child(6n+4) .thumb { background: #CED6D6; }
.article-area .post-item:nth-child(6n+5) .thumb { background: #E1DDD2; }
.article-area .post-item:nth-child(6n+6) .thumb { background: #D7CFC0; }

.item-info { display: flex; flex-direction: column; gap: 10px; }
.item-cat { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--accent); }
.item-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.item-title {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: 21px; line-height: 1.45; letter-spacing: -0.01em;
}
.item-summary {
  margin: 0; font-size: 15px; line-height: 1.75; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-date { font-size: 13px; color: var(--faint); }
.item-more { display: none; }

/* 대표 글 (홈 첫 페이지의 첫 글) */
.featured-slot .post-item {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px; align-items: center;
}
.featured-slot .thumb { grid-column: span 7; aspect-ratio: 16 / 10; }
.featured-slot .item-info { grid-column: span 5; gap: 20px; padding-left: 24px; }
.featured-slot .item-title { font-size: 34px; line-height: 1.4; letter-spacing: -0.02em; }
.featured-slot .item-summary { font-size: 16px; line-height: 1.85; color: var(--text-2); -webkit-line-clamp: 4; }
.featured-slot .item-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}

/* ---------- 본문 ---------- */
.post { padding-bottom: 40px; }
.post-header {
  max-width: 720px; margin: 0 auto; padding: 104px 0 64px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.post-meta-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.post-cat { color: var(--accent); font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dot); }
.post-title {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: 44px; line-height: 1.4; letter-spacing: -0.025em;
}
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.post-meta > span, .meta-comments { display: inline-flex; align-items: center; gap: 6px; }
.admin-links { display: flex; gap: 16px; font-size: 13px; color: var(--faint); }

.post-cover { display: none; margin: 0 0 88px; }
.cover-on .post-cover { display: block; }
.post-cover img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: 4px; }

.protected-form { max-width: var(--read); margin: 0 auto; text-align: center; color: var(--muted); }
.field-row { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.field-row input {
  width: 240px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}

/* 본문 타이포그래피 (티스토리 에디터 대응) */
.entry-content {
  max-width: var(--read); margin: 0 auto;
  font-size: 17px; line-height: 1.95; color: var(--text);
}
.entry-content p { margin: 0 0 1.6em; }
.entry-content p[data-ke-size="size14"] { font-size: 15px; }
.entry-content p[data-ke-size="size18"] { font-size: 19px; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 2.2em 0 .8em; font-family: var(--serif); font-weight: 700;
  line-height: 1.5; color: var(--ink); letter-spacing: -0.01em;
}
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.entry-content strong, .entry-content b { font-weight: 600; color: var(--ink); }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em; padding-left: 22px; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--dot); }

/* 첫 글자 크게 */
.entry-content p.has-dropcap::first-letter {
  float: left; font-family: var(--serif);
  font-size: 64px; line-height: .9; padding: 8px 12px 0 0; color: var(--accent);
}

/* 이미지 — 넓은 사진은 본문보다 넓게 */
.entry-content figure { margin: 2.4em 0; }
.entry-content figure img { display: block; margin: 0 auto; border-radius: 4px; }
.entry-content figure.imageblock.alignCenter,
.entry-content figure.imagegridblock,
.entry-content figure.imageslideblock { margin-left: -120px; margin-right: -120px; }
.entry-content figure.imageblock.alignCenter > span,
.entry-content figure.imageblock.alignCenter img { margin: 0 auto; }
.entry-content figure.imageblock.alignLeft { float: left; margin: .4em 28px 1em 0; max-width: 50%; }
.entry-content figure.imageblock.alignRight { float: right; margin: .4em 0 1em 28px; max-width: 50%; }
.entry-content figcaption {
  margin-top: 14px; font-size: 14px; line-height: 1.6;
  color: var(--faint); text-align: center;
}

/* 인용 — style1: 가운데 인용 / style2: 선 / style3: 박스 */
.entry-content blockquote { margin: 2.4em 0; }
.entry-content blockquote[data-ke-style="style1"],
.entry-content blockquote:not([data-ke-style]) {
  padding: 40px 0 36px; border: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; text-align: center;
  font-family: var(--serif); font-size: 23px; line-height: 1.7; color: var(--ink);
}
.entry-content blockquote[data-ke-style="style1"]::before,
.entry-content blockquote:not([data-ke-style])::before {
  content: "\201C"; display: block; height: 28px;
  font-family: var(--latin); font-size: 56px; line-height: 1; color: var(--accent);
}
.entry-content blockquote[data-ke-style="style2"] {
  padding: 4px 0 4px 24px; border-left: 2px solid var(--ink);
  font-family: var(--serif); font-size: 19px; color: var(--ink);
}
.entry-content blockquote[data-ke-style="style3"] {
  padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  font-size: 16px;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* 구분선 */
.entry-content hr {
  border: 0; height: auto; margin: 3em 0; text-align: center; background: none;
}
.entry-content hr::after { content: "·  ·  ·"; color: var(--dot); letter-spacing: .6em; font-size: 18px; }

/* 표 */
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--surface); font-weight: 600; }

/* 코드 */
.entry-content code {
  padding: 2px 6px; border-radius: 4px; background: #EFE8DC;
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .88em;
}
.entry-content pre {
  margin: 2em 0; padding: 24px; overflow-x: auto;
  background: #2B2824; color: #EFE8DC; border-radius: 6px;
  font-size: 14px; line-height: 1.7;
}
.entry-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* 링크 카드 · 더보기 */
.entry-content figure[data-ke-type="opengraph"] a {
  border: 1px solid var(--line) !important; border-radius: 6px; overflow: hidden;
  text-decoration: none; background: var(--surface);
}
.entry-content div[data-ke-type="moreLess"] {
  margin: 2em 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
}
.entry-content .btn-toggle-moreless { color: var(--accent); cursor: pointer; }

/* 티스토리 자동 삽입 영역 정돈 */
.entry-content .another_category {
  margin: 3em 0 0 !important; padding: 24px !important;
  border: 1px solid var(--line) !important; border-radius: 6px; background: var(--surface) !important;
}
.entry-content .another_category h4 { margin: 0 0 12px !important; font-size: 16px !important; }
.entry-content .another_category table, .entry-content .another_category th, .entry-content .another_category td { border: 0 !important; background: none !important; margin: 0; padding: 6px 0 !important; }
.entry-content .another_category a { text-decoration: none; color: var(--text-2) !important; }
.entry-content .container_postbtn { margin-top: 3em; }
.entry-content::after { content: ""; display: block; clear: both; }

/* ---------- 글 하단 ---------- */
.post-footer {
  max-width: var(--read); margin: 64px auto 0;
  display: flex; flex-direction: column; gap: 32px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; }
.tag-list a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; line-height: 1.5; color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.tag-list a::before { content: "#"; }
.tag-list a:hover { border-color: var(--accent); color: var(--accent); }

.author-box {
  display: flex; align-items: center; gap: 24px;
  padding: 32px; background: var(--surface); border-radius: 6px;
}
.author-avatar { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #D7CFC0; }
.author-text strong { font-family: var(--serif); font-size: 19px; }
.author-text p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

.post-nav {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.post-nav:empty { display: none; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 28px 0; }
.post-nav-prev { border-right: 1px solid var(--line); }
.post-nav-next { grid-column: 2; padding: 28px 0 28px 24px !important; text-align: right; }
.post-nav-label { font-size: 13px; color: var(--faint); }
.post-nav-title { font-family: var(--serif); font-size: 17px; line-height: 1.5; }

/* 관련 글 */
.related { margin: 120px 0 0; }
.related .section-head { margin-bottom: 40px; }
.related .section-head h2 { font-size: 22px; }
.related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; row-gap: 40px; }
.related-item { display: flex; flex-direction: column; gap: 14px; }
.related-item .thumb { aspect-ratio: 16 / 10; }
.related-item:nth-child(3n+2) .thumb { background: #E8D6CC; }
.related-item:nth-child(3n+3) .thumb { background: #DCD3CB; }
.related-title { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.45; }

/* ---------- 댓글 · 방명록 ---------- */
.comments { max-width: var(--read); margin: 120px auto 0; }
.comments-title { margin: 0 0 32px; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.accent { color: var(--accent); }

.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-bottom: 32px; }
.comment-list > .comment { border-top: 1px solid var(--line); }
.comment-list > .comment:last-child { border-bottom: 1px solid var(--line); }
.comment-body { display: flex; gap: 16px; padding: 24px 0; }
.comment-replies .comment { border-top: 1px solid var(--line); padding-left: 56px; }
.comment-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #D9DCCB; }
.comment-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-name { font-size: 15px; font-weight: 600; }
.comment-meta time { font-size: 13px; color: var(--faint); }
.rp_admin > .comment-body .comment-name::after,
.guest_admin > .comment-body .comment-name::after {
  content: "글쓴이"; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #EFE8DC; font-size: 11px; font-weight: 400; color: var(--muted); vertical-align: 2px;
}
.comment-text { font-size: 15px; line-height: 1.75; color: var(--text-2); }
.comment-text p { margin: 0; }
.comment-actions { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.comment-actions a { display: inline-flex; align-items: center; min-height: 32px; }

.comment-form {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.comment-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.comment-form input[type="text"], .comment-form input[type="password"], .comment-form textarea {
  width: 100%; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; font-size: 15px; color: var(--ink);
}
.comment-form input[type="text"], .comment-form input[type="password"] { height: 44px; }
.comment-form textarea { padding: 14px; line-height: 1.7; resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ink); }
.form-foot { display: flex; align-items: center; justify-content: space-between; }
.comment-form .check { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.guestbook { max-width: var(--read); margin: 80px auto 0; }
.guestbook .comment-form { margin-bottom: 48px; }

/* 태그 클라우드 */
.tag-cloud { margin-top: 80px; }
.tag-cloud .tag-list { gap: 10px; }
.tag-cloud .cloud1 { border-color: var(--accent); color: var(--accent); }

/* ---------- 페이지 번호 ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin-top: 88px; font-size: 15px;
}
#tt-body-page .pagination { display: none; }
.page-num, .page-arrow {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.page-num .selected { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.page-num:has(.selected):hover { color: var(--paper); }
.no-more-prev, .no-more-next { opacity: .3; pointer-events: none; }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 56px; padding-bottom: 48px; }
.footer-name { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.footer-brand p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; color: var(--muted); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.footer-links a { color: var(--text-2); }
.copyright { margin: 0; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .gnb ul { gap: 24px; }
  .entry-content figure.imageblock.alignCenter,
  .entry-content figure.imagegridblock,
  .entry-content figure.imageslideblock { margin-left: 0; margin-right: 0; }
  body:not(#tt-body-page) .article-area { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-slot .item-title { font-size: 28px; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  .site-header { position: sticky; top: 0; z-index: 50; }
  .header-inner { height: 64px; padding-right: 10px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-right: 0; }

  /* 블로그 메뉴는 서랍으로, 카테고리는 헤더 아래 가로 스크롤 줄로 */
  .gnb { display: none; }
  .category-bar .inner {
    min-height: 52px; overflow-x: auto; scrollbar-width: none;
  }
  .category-bar .inner::-webkit-scrollbar { display: none; }
  .category-bar .tt_category,
  .category-bar .tt_category > li,
  .category-bar .category_list { flex-wrap: nowrap; column-gap: 22px; }
  .category-bar .sub_category_list { display: none !important; }

  #tt-body-index:not(.is-paged) .intro { align-items: flex-start; text-align: left; padding: 48px 0 40px; gap: 12px; }
  .intro-label { font-size: 16px; }
  .intro-title { font-size: 30px; line-height: 1.4; }
  .intro-desc { font-size: 15px; }

  .featured-slot .post-item { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .featured-slot .item-info { padding-left: 0; gap: 12px; }
  .featured-slot .item-title { font-size: 24px; line-height: 1.45; }
  .featured-slot .item-summary { font-size: 15px; -webkit-line-clamp: 3; }
  .featured-slot .item-more { display: none; }
  .featured-slot:not(:empty) + .list-head,
  .featured-slot:not(:empty) ~ .home-head { margin-top: 64px; }

  .section-head { margin-bottom: 0; padding-bottom: 14px; border-bottom-color: var(--ink); }
  .section-head h1, .section-head h2 { font-size: 19px; }
  .section-head .en { font-size: 15px; }
  .list-head { margin-top: 40px; }

  /* 목록: 썸네일 오른쪽 한 줄형 */
  body:not(#tt-body-page) .article-area { display: block; }
  .article-area .post-item {
    flex-direction: row-reverse; align-items: flex-start; gap: 16px;
    padding: 20px 0; border-bottom: 1px solid var(--line);
  }
  .article-area .thumb { width: 88px; height: 88px; flex-shrink: 0; aspect-ratio: auto; }
  .article-area .thumb-empty { display: none; }
  .article-area .item-info { flex: 1; gap: 6px; }
  .article-area .item-cat { font-size: 12px; }
  .article-area .item-title { font-size: 17px; line-height: 1.5; }
  .article-area .item-summary { display: none; }
  .article-area .item-date { font-size: 12px; }

  .post-header { padding: 48px 0 40px; gap: 16px; }
  .post-title { font-size: 28px; }
  .post-cover { margin-bottom: 48px; margin-left: -20px; margin-right: -20px; }
  .post-cover img { border-radius: 0; }
  .entry-content { font-size: 16px; line-height: 1.9; }
  .entry-content h2 { font-size: 22px; }
  .entry-content h3 { font-size: 19px; }
  .entry-content blockquote[data-ke-style="style1"],
  .entry-content blockquote:not([data-ke-style]) { font-size: 19px; }
  .entry-content figure.imageblock.alignLeft,
  .entry-content figure.imageblock.alignRight { float: none; max-width: 100%; margin: 2em 0; }
  .entry-content p.has-dropcap::first-letter { font-size: 52px; }

  .author-box { padding: 24px; gap: 16px; align-items: flex-start; }
  .author-avatar { width: 56px; height: 56px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-prev { border-right: 0; }
  .post-nav-next { grid-column: 1; border-top: 1px solid var(--line); }
  .post-nav a { padding: 20px 0 !important; }

  .related { margin-top: 72px; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 28px; }
  .related-title { font-size: 16px; }
  .comments { margin-top: 72px; }
  .comment-form { padding: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .comment-replies .comment { padding-left: 28px; }

  .pagination { margin-top: 48px; gap: 2px; }
  .site-footer { margin-top: 72px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding-top: 40px; padding-bottom: 36px; }
  .footer-meta { align-items: flex-start; }
  .footer-links { gap: 20px; }
}
