/* ==========================================================================
   포근한 하루 (Warm Cozy) — Tistory Skin
   크림 배경 · 테라코타 포인트 · 둥근 카드/버튼 · 따뜻하고 다정한 톤
   색상이나 폭을 바꾸려면 아래 :root 값만 수정하면 전체에 반영됩니다.
   ========================================================================== */

:root {
  --cream: #fbf6ee;
  --cream-deep: #f3ead9;
  --card: #fffdf9;
  --ink: #3a2e27;
  --ink-soft: #8a7a6d;
  --ink-faint: #b3a494;
  --border: #efe3d0;
  --white: #ffffff;
  --accent: #e2725b;
  --accent-dark: #c85a44;
  --accent-soft: #fbeae4;
  --sage: #7ea18d;
  --sage-soft: #e9f1ec;

  --content-width: 1120px;
  --article-width: 780px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 2px 8px rgba(180, 130, 90, 0.08), 0 10px 26px rgba(180, 130, 90, 0.09);

  --font-base: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  word-break: keep-all;
  font-size: 16px;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

.screen_out {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 12px 0;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   헤더
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--cream);
}
.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 22px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(180,130,90,0.18);
}
.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-desc {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.header-tools { display: flex; align-items: center; gap: 8px; }
.area_search .frm_search {
  display: flex; align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}
.area_search .tf_search {
  border: 0; background: transparent; outline: none;
  font-family: inherit; font-size: 14px; width: 140px; color: var(--ink);
}
.area_search .btn_search {
  border: 0; background: var(--accent); color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none;
}
.btn_share_top {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; flex: none;
}
.btn_share_top:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 16px; color: var(--ink);
  align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------------
   내비게이션
   -------------------------------------------------------------------------- */
.gnb { background: var(--cream); }
.gnb-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4px 24px 14px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.gnb-inner ul.category_list,
.gnb-inner ul { display: flex; flex-wrap: wrap; gap: 6px; }
.gnb-inner ul li a {
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
}
.gnb-inner ul li a:hover, .gnb-inner ul li a:focus {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.gnb-extra { display: flex; gap: 6px; }
.gnb-extra a { font-size: 13.5px; color: var(--ink-soft); padding: 9px 14px; border-radius: 999px; background: var(--sage-soft); }
.gnb-extra a:hover { background: var(--sage); color: #fff; }

/* --------------------------------------------------------------------------
   홈 히어로 — 부드러운 블롭 장식
   -------------------------------------------------------------------------- */
.home-hero { display: none; }
body#tt-body-index .home-hero {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}
.hero-blob-1 { width: 260px; height: 260px; background: var(--accent-soft); top: -90px; left: -60px; }
.hero-blob-2 { width: 220px; height: 220px; background: var(--sage-soft); bottom: -100px; right: -40px; }
.home-hero-inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 54px 24px 44px;
  text-align: center;
}
.home-hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--accent-dark);
  font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.home-hero-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 10px;
}
.home-hero-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 30px; }

.hero-search {
  max-width: 540px; margin: 0 auto 40px;
  display: flex; align-items: center; gap: 6px;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-card);
}
.hero-search-input { flex: 1; min-width: 0; border: 0; outline: none; font-family: inherit; font-size: 15px; padding: 12px 0; color: var(--ink); }
.hero-search-btn { border: 0; background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 14.5px; flex: none; }
.hero-search-btn:hover { background: var(--accent-dark); }

.quick-links-label { text-align: left; color: var(--ink-soft); font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.quick-links-grid ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; list-style: none; margin: 0; padding: 0;
}
.quick-links-grid ul li a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-sm); padding: 20px 12px;
  font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-card);
  transition: transform .15s ease;
}
.quick-links-grid ul li a:hover { transform: translateY(-3px) rotate(-0.5deg); }
.quick-link-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none;
}
.quick-link-label { text-align: center; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --------------------------------------------------------------------------
   컨테이너 / 리스트 헤더
   -------------------------------------------------------------------------- */
.container { max-width: var(--content-width); margin: 0 auto; padding: 40px 24px 90px; }
.list-head {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px;
}
.list-head h2 { font-size: 20px; font-weight: 800; color: var(--ink); }
.list-head .count { font-size: 13.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   글 목록 — 카드 그리드
   -------------------------------------------------------------------------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 6px 16px rgba(180,130,90,0.14), 0 16px 32px rgba(180,130,90,0.14); }
.post-card.notice { grid-column: 1 / -1; }
.post-card.notice .list_content { flex-direction: row; align-items: center; }
.post-card.notice .thumbnail_post { width: 200px; height: 140px; aspect-ratio: auto; flex: none; }
.post-card.notice .link_post { flex-direction: column; justify-content: center; padding: 18px 24px; }

.list_content { display: flex; flex-direction: column; height: 100%; }
.thumbnail_post { display: block; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--accent-soft); flex: none; }
.thumbnail_post img { width: 100%; height: 100%; object-fit: cover; }

.link_post { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; gap: 6px; }
.link_post .link_cate {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 700; color: var(--sage);
  background: var(--sage-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 2px;
}
.tit_post { display: block; font-size: 16.5px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.post-card:hover .tit_post { color: var(--accent-dark); }
.txt_post {
  font-size: 13.5px; color: var(--ink-soft); flex: 1;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.detail_info { font-size: 12px; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.txt_bar { display: inline-block; }

/* --------------------------------------------------------------------------
   글 화면(permalink)
   -------------------------------------------------------------------------- */
body:has(.skin_view) .gnb { display: none; }
.wrap_btn_etc { display: none; }
.post-card:has(.skin_view) {
  grid-column: 1 / -1;
  background: none; box-shadow: none; border-radius: 0; transform: none !important;
}
body:has(.skin_view) .container { padding-top: 20px; }

.skin_view {
  max-width: var(--article-width);
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px 44px 48px;
}
.area_title { padding-bottom: 24px; border-bottom: 1px dashed var(--border); margin-bottom: 28px; }
.tit_category {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.area_title .tit_post { font-size: 25px; line-height: 1.45; font-weight: 800; }
.txt_detail { font-size: 13px; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.area_title .tit_post:not(:last-child) { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   목차 (자동 생성, 기본 접힘)
   -------------------------------------------------------------------------- */
.area-toc {
  background: var(--sage-soft);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin: 0 0 28px;
}
.area-toc summary {
  cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 700; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.area-toc summary::-webkit-details-marker { display: none; }
.area-toc summary::after { content: "펼쳐보기 ▾"; font-size: 12.5px; font-weight: 600; color: var(--sage); }
.area-toc[open] summary::after { content: "접기 ▴"; }
.area-toc ul { margin: 0; padding: 2px 0 16px; border-top: 1px dashed var(--border); }
.area-toc li { padding: 7px 0; }
.area-toc li.toc-level-1 { font-weight: 700; }
.area-toc li.toc-level-3 { padding-left: 18px; font-size: 14px; }
.area-toc li.toc-level-4 { padding-left: 34px; font-size: 13.5px; color: var(--ink-soft); }
.area-toc a { color: var(--ink); }
.area-toc a:hover { color: var(--accent-dark); }

/* --------------------------------------------------------------------------
   본문
   -------------------------------------------------------------------------- */
.area_view { font-size: 16px; line-height: 1.9; color: var(--ink); }
.area_view img { border-radius: var(--radius-sm); margin: 10px 0; }
.area_view a {
  display: inline-block;
  color: var(--white);
  background: var(--accent);
  padding: 4px 16px;
  margin: 0 1px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .15s ease, transform .1s ease;
}
.area_view a:hover { background: var(--accent-dark); }

.area_view p.p-link-button { margin: 30px 0; }
.area_view p.p-link-button > a {
  display: block; width: 100%; text-align: center; margin: 0;
  padding: 17px 20px; border-radius: var(--radius-sm); font-size: 1.05em;
  box-shadow: 0 8px 20px rgba(226,114,91,0.28);
}
.area_view p.p-link-button > a:hover { transform: translateY(-1px); }

.area_view a:has(img), .area_view a:has(img):hover {
  display: inline; color: inherit; background: none; padding: 0; margin: 0; border-radius: 0; font-weight: inherit;
}
.area_view table a {
  display: inline; color: var(--accent-dark); background: none; padding: 0; margin: 0; border-radius: 0;
  font-weight: inherit; text-decoration: underline;
}
.area_view table a:hover { color: var(--accent); background: none; }

.area_view .table-scroll { overflow-x: auto; margin: 24px 0; }
.area_view table { display: table; border-collapse: separate; border-spacing: 0; width: auto; margin: 0 auto; font-size: 14.5px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.area_view th, .area_view td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 11px 16px; text-align: left; }
.area_view th:last-child, .area_view td:last-child { border-right: 0; }
.area_view th { background: var(--sage-soft); color: var(--ink); font-weight: 700; white-space: nowrap; }

.area_view h1 {
  font-size: 24px; font-weight: 800; color: var(--white); background: var(--accent);
  margin: 40px 0 18px; padding: 16px 22px; border-radius: var(--radius-sm); line-height: 1.4;
}
.area_view h2 {
  font-size: 20px; font-weight: 800; color: var(--ink); background: var(--accent-soft);
  margin: 36px 0 16px; padding: 13px 20px; border-radius: var(--radius-sm); line-height: 1.5;
}
.area_view h2::before { content: "🍁 "; }
.area_view h3 {
  font-size: 18px; font-weight: 800; color: var(--ink);
  margin: 28px 0 14px; padding-left: 16px; border-left: 4px solid var(--sage);
  line-height: 1.5;
}
.area_view h4 {
  font-size: 15.5px; font-weight: 700; color: var(--accent-dark);
  margin: 22px 0 10px;
}
.area_view h4::before { content: "· "; }
.area_view blockquote {
  margin: 22px 0; padding: 16px 20px; background: var(--cream-deep);
  border-radius: var(--radius-sm); border-left: 4px solid var(--sage); color: var(--ink-soft);
}

.area_etc { margin-top: 30px; }
.list_tag { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tit_tag { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.desc_tag a, .link_tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--cream-deep); font-size: 13px; color: var(--ink-soft);
}
.desc_tag a:hover, .link_tag:hover { background: var(--accent); color: #fff; }


/* --------------------------------------------------------------------------
   댓글 / 방명록
   -------------------------------------------------------------------------- */
.area_reply { margin-top: 36px; padding-top: 26px; border-top: 1px dashed var(--border); }
.list_reply { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.list_reply li { display: flex; gap: 12px; padding: 14px; background: var(--cream-deep); border-radius: var(--radius-sm); }
.list_reply li.re_reply { margin-left: 36px; background: var(--sage-soft); }
.img_profile { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--accent-soft); }
.reply_content { flex: 1; min-width: 0; }
.tit_nickname { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.txt_reply { display: block; font-size: 14px; margin-bottom: 4px; }
.txt_date { font-size: 11.5px; color: var(--ink-faint); }
.my_edit { display: flex; gap: 10px; font-size: 12px; }
.my_edit a { color: var(--ink-faint); }

.fld_reply { border: 0; padding: 0; margin: 0; }
.reply_write { margin-bottom: 10px; }
.tf_reply {
  width: 100%; min-height: 88px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; font-family: inherit; font-size: 14px; resize: vertical; outline: none; background: var(--card);
}
.tf_reply:focus { border-color: var(--accent); }
.reply_writer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.writer_info { display: flex; gap: 8px; }
.inp_info { border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-family: inherit; outline: none; width: 130px; }
.writer_check { display: flex; align-items: center; }
.lab_secret { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.btn_enter { border: 0; background: var(--ink); color: #fff; padding: 10px 24px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.btn_enter:hover { background: var(--accent-dark); }

.protected_form { margin-top: 16px; display: flex; gap: 8px; }
.protected_form input { border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-family: inherit; }
.protected_form button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; }

.skin_tag .list_tag, .skin_visitor { padding: 30px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.skin_tag .list_tag { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   페이지네이션
   -------------------------------------------------------------------------- */
.area_paging { display: flex; justify-content: center; margin-top: 40px; }
.inner_paging { display: flex; align-items: center; gap: 6px; }
.inner_paging a, .inner_paging .link_page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  border-radius: 999px; font-size: 14px; color: var(--ink-soft); border: 1px solid transparent;
}
.inner_paging .link_page:hover { background: var(--accent-soft); color: var(--accent-dark); }
.inner_paging .link_prev, .inner_paging .link_next { padding: 0 16px; border: 1px solid var(--border); color: var(--ink); font-weight: 700; background: var(--card); }
.no_more_prev, .no_more_next { opacity: 0.35; pointer-events: none; }

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.site-footer { background: var(--cream-deep); color: var(--ink-soft); margin-top: 60px; }
.footer-inner { max-width: var(--content-width); margin: 0 auto; padding: 42px 24px; text-align: center; }
.footer-title { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.footer-desc { font-size: 13.5px; margin-bottom: 16px; }
.footer-copy { font-size: 12.5px; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   반응형 (모바일) — 좌우 여백은 최소화해 폭을 넓게 확보합니다.
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .brand-name { font-size: 18px; }
  .brand-logo { width: 40px; height: 40px; }
  .btn_share_top span:last-child { display: none; }
  .area_search .tf_search { width: 90px; }

  .header-inner { padding: 16px 16px 10px; }
  .gnb-inner { padding: 4px 16px 12px; }
  .gnb-inner:not(.is-open) { display: none; }
  .gnb-inner.is-open { display: flex; }

  .container { padding: 24px 16px 60px; }
  .home-hero-inner { padding: 40px 16px 32px; }
  .home-hero-title { font-size: 23px; }

  .post-list { grid-template-columns: 1fr; gap: 16px; }
  .post-card.notice .list_content { flex-direction: column; }
  .post-card.notice .thumbnail_post { width: 100%; height: auto; aspect-ratio: 16/10; }
  .post-card.notice .link_post { padding: 4px 4px 2px; }

  .skin_view { padding: 26px 18px 32px; border-radius: var(--radius-sm); }
  .area_title .tit_post { font-size: 20px; }
  .area-toc { padding: 2px 16px; }
  body:has(.skin_view) .container { padding-top: 14px; }

  .list_reply li.re_reply { margin-left: 14px; }
  .reply_writer { flex-direction: column; align-items: stretch; }
  .writer_info { flex-direction: column; }
  .inp_info { width: 100%; }
  .btn_enter { width: 100%; }
}
