/* Odi Frame skin for Tistory
   색은 관리자 > 꾸미기 > 스킨 편집 > 스킨 옵션에서 바꿀 수 있습니다. */

:root {
  --accent: #FF6F59;
  --outer: #FF6F59;
  --bg: #FFF4E8;
  --ink: #111111;
  --gray: #8A8A8A;
  --line: var(--ink);
  --rail: 52px;
  --en: 'Poppins', 'Pretendard', sans-serif;
  --ko: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--outer);
  color: var(--ink);
  font-family: var(--ko);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 프레임 ---------- */
.frame {
  position: relative;
  max-width: 1000px;
  min-height: calc(100vh - 120px);
  margin: 60px auto;
  background: var(--bg);
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

/* ---------- 왼쪽 레일 ---------- */
.rail {
  border-right: 1px solid var(--line);
  position: relative;
}
.rail-top, .rail-bottom {
  position: sticky;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rail-top { top: 0; padding-top: 80px; }
.rail-bottom { position: fixed; bottom: 80px; width: var(--rail); }
.ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: color .15s, background .15s;
}
.ico svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico:hover { color: var(--accent); }
.ico.top { color: var(--accent); }
body.menu-open #menuBtn, body.search-open #searchBtn { color: var(--bg); background: var(--accent); }

/* ---------- 메뉴 서랍 ---------- */
.drawer {
  position: fixed;
  top: 60px; bottom: 60px;
  margin-left: calc(var(--rail) - 1px);
  width: 260px;
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 76px 28px 40px;
  z-index: 20;
  transform: translateX(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
body.menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer-menu ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.drawer-menu a { font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.drawer-menu a:hover { color: var(--accent); }
.drawer-cat .link_tit {
  display: block; font-family: var(--en); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; color: var(--gray); padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.drawer-cat .link_item, .drawer-cat .link_sub_item { display: block; padding: 5px 0; font-size: 14px; }
.drawer-cat .link_sub_item { padding-left: 12px; font-size: 13px; color: var(--gray); }
.drawer-cat a:hover { color: var(--accent); }
.drawer-cat .c_cnt { font-family: var(--en); font-size: 11px; color: var(--accent); margin-left: 2px; }

/* ---------- 본문 영역 ---------- */
.page { min-width: 0; padding: 0 56px 60px; }

.search {
  display: none;
  margin: 28px auto 0;
  max-width: 420px;
}
body.search-open .search { display: block; }
.search input {
  width: 100%;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 2px;
  font: inherit; font-size: 14px; color: var(--ink);
  outline: none;
}
.search input:focus { border-color: var(--accent); }

/* ---------- 헤더 ---------- */
.head { text-align: center; padding: 52px 0 44px; }
.logo { display: inline-block; }
.logo img { width: 58px; height: auto; margin: 0 auto; }
.blog-title {
  margin-top: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: -.01em;
}
.blog-title a:hover { color: var(--accent); }

/* 상단 카테고리 메뉴 */
.gnb { margin-top: 22px; }
.gnb .link_tit { display: none; }
.gnb .c_cnt { display: none; }
.gnb .category_list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
}
.gnb .category_list > li { position: relative; }
.gnb .link_item {
  font-family: var(--en); font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 0; display: inline-block;
}
.gnb .category_list > li:has(.sub_category_list) > .link_item::after {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.gnb .link_item:hover, .gnb .category_list > li:hover > .link_item { color: var(--accent); }
.gnb .sub_category_list {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 140px; padding: 8px 0;
  background: var(--bg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .15s;
  z-index: 10; text-align: left;
}
.gnb .category_list > li:hover .sub_category_list,
.gnb .category_list > li:focus-within .sub_category_list { opacity: 1; visibility: visible; }
.gnb .link_sub_item { display: block; padding: 4px 14px; font-size: 12.5px; white-space: nowrap; }
.gnb .link_sub_item:hover { color: var(--accent); }

/* ---------- 목록 ---------- */
.content { max-width: 640px; margin: 0 auto; }

.list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 10px; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  font-family: var(--en); font-size: 12px; font-weight: 600;
}
.list-count { color: var(--accent); }
.list-count::after { content: ' posts'; color: var(--gray); font-weight: 400; }
#tt-body-index .list-head, #tt-body-page .list-head { display: none; }
.empty { text-align: center; color: var(--gray); padding: 60px 0; }

.item { margin-bottom: 52px; }
.item-label { font-size: 12px; margin-bottom: 14px; line-height: 1.6; }
.item-cat { color: var(--accent); font-weight: 600; }
.item-date { display: block; font-family: var(--en); font-size: 11px; color: var(--ink); }

.item-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border: 1px solid var(--line);
  min-height: 200px;
  transition: box-shadow .2s, transform .2s;
}
.item-card:hover { box-shadow: 6px 6px 0 var(--accent); transform: translate(-2px, -2px); }
.item-thumb {
  border-right: 1px solid var(--line);
  background: url(./images/logo.png) center / 52px auto no-repeat;
  position: relative; overflow: hidden;
}
.item-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-text { display: flex; flex-direction: column; padding: 28px 34px 22px 38px; }
.item-title {
  font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-summary {
  margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-more {
  margin-top: auto; padding-top: 18px;
  font-family: var(--en); font-size: 11px; color: var(--gray);
}
.item-card:hover .item-more { color: var(--accent); }

/* ---------- 글 ---------- */
.post { padding-bottom: 20px; }
.post-head { text-align: center; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.post-title { margin-top: 8px; font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.post-date { margin-top: 10px; font-family: var(--en); font-size: 11px; color: var(--gray); }
.admin { margin-top: 10px; font-size: 12px; color: var(--gray); }
.admin a { margin: 0 4px; }
.admin a:hover { color: var(--accent); }

.entry-content { font-size: 16px; line-height: 1.95; }
.entry-content p { margin-bottom: 1.3em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2em 0 .8em; line-height: 1.4; letter-spacing: -.02em; }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 19px; }
.entry-content h4 { font-size: 17px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--accent);
}
.entry-content blockquote p { margin-bottom: .4em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.3em; }
.entry-content ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1.3em; }
.entry-content img { height: auto; margin: 1.4em auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 12px; color: var(--gray); text-align: center; margin-top: 6px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.3em; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content pre { background: rgba(0,0,0,.04); padding: 16px; overflow-x: auto; font-size: 13px; margin-bottom: 1.3em; }

.tags { margin-top: 36px; font-size: 13px; color: var(--gray); }
.tags a { color: var(--gray); }
.tags a::before { content: '#'; }
.tags a:hover { color: var(--accent); }

.box {
  margin-top: 40px; padding: 26px 24px;
  border: 1px solid var(--line);
  text-align: center;
}
.box p { margin-bottom: 14px; font-size: 14px; }
.box input {
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 6px 2px; margin-right: 8px; font: inherit; outline: none;
}
.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--ink); }
.letter-box { border-color: var(--accent); }

.post-nav {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.post-nav a { padding: 16px 0; font-size: 14px; line-height: 1.5; }
.post-nav a:hover { color: var(--accent); }
.post-nav span { display: block; font-family: var(--en); font-size: 11px; font-weight: 600; color: var(--gray); margin-bottom: 2px; }
.post-nav .next { grid-column: 2; text-align: right; }

.related { margin-top: 36px; }
.related-title { font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.related li { padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--gray); }
.related a:hover { color: var(--accent); }

/* 편지함 임베드 */
.entry-content iframe.odi-letterbox {
  display: block; width: 100%; height: 1600px; border: 0; margin: 0;
}

/* ---------- 페이징 ---------- */
.paging {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  font-family: var(--en); font-size: 12px; margin-top: 10px;
}
.paging .nums { display: flex; gap: 14px; }
.paging .nums a { color: var(--gray); }
.paging .nums a.selected, .paging .nums .selected { color: var(--accent); font-weight: 700; }
.paging .nums a:hover, .paging .arrow:hover { color: var(--accent); }
.paging .no-more-prev, .paging .no-more-next { visibility: hidden; }

.foot {
  margin-top: 70px; text-align: center;
  font-family: var(--en); font-size: 11px; color: var(--gray);
}

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  :root { --rail: 44px; }
  .frame { margin: 0; min-height: 100vh; }
  .rail-top { padding-top: 24px; }
  .page { padding: 0 20px 48px; }
  .head { padding: 34px 0 32px; }
  .drawer { top: 0; bottom: 0; width: min(260px, calc(100vw - var(--rail))); padding-top: 24px; }
  .rail-bottom { bottom: 20px; }
  .item-card { grid-template-columns: 1fr; min-height: 0; }
  .item-thumb { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; }
  .item-text { padding: 20px 20px 16px; }
  .item-title { font-size: 18px; }
  .post-title { font-size: 22px; }
  .entry-content { font-size: 15.5px; }
}
