/* coachingplant 스킨 — 줄노트 + 포스트잇 + 인덱스 탭 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FBFAF4;
  color: #1F2A44;
  font-family: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 36px;
  word-break: keep-all;
}

a { color: #1F2A44; }
a:hover { color: #B3261E; }

.pen { font-family: 'Nanum Pen Script', cursive; }

/* 줄노트 배경 */
.page {
  min-height: 100vh;
  background-color: #FBFAF4;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, #DCE3EE 35px, #DCE3EE 36px);
}

.sheet {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 24px 72px;
  border-left: 2px solid #E8A3A0;
}

/* ---------- 큰 제목 ---------- */
.head { padding: 0 0 168px 32px; }

.title {
  margin: 0;
  font-family: 'Nanum Pen Script', cursive;
  font-weight: 400;
  font-size: clamp(72px, 12vw, 168px);
  line-height: 1;
  letter-spacing: -2px;
}
.title a {
  text-decoration: none;
  color: #1F2A44;
  background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 90%, transparent 90%);
  padding: 0 12px;
}

.bulb {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: top;
  margin: 0.03em 0 0 0.03em;
  transform: rotate(12deg);
  transition: transform 0.2s;
}
.bulb-glass { fill: var(--marker); }
.title:hover .bulb { transform: rotate(-6deg); }

.subtitle {
  margin: 28px 0 0 12px;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 30px;
  line-height: 36px;
}

/* ---------- 두 단 ---------- */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-left: 32px;
}

.side {
  flex: 1 1 260px;
  max-width: 290px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main {
  flex: 999 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---------- 포스트잇 ---------- */
.note {
  position: relative;
  display: block;
  box-shadow: 2px 4px 0 rgba(31, 42, 68, 0.12);
}
.note::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  background: rgba(0, 0, 0, 0.07);
}

.note-intro {
  background: var(--intro);
  padding: 26px 24px 28px 34px;
  box-shadow: 3px 6px 0 rgba(31, 42, 68, 0.14);
  transform: rotate(-1.5deg);
  min-height: 280px;
  font-family: 'Gowun Batang', serif;
  font-size: 15px;
  line-height: 1.85;
}
.note-intro::before { width: 14px; }
.note-intro h2 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.note-intro p { margin: 0 0 10px; }
.note-intro p:last-child { margin-bottom: 0; }
.note-intro strong {
  font-weight: 700;
  background: linear-gradient(transparent 55%, rgba(255, 255, 255, 0.8) 55%);
  padding: 0 2px;
}

.note-profile {
  background: #DCEBFA;
  padding: 6px 18px 10px 28px;
  transform: rotate(-1.2deg);
}
.note-profile summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 36px;
  list-style: none;
}
.note-profile summary::-webkit-details-marker { display: none; }
.note-profile .plus { font-family: 'Gowun Dodum', sans-serif; font-size: 20px; transition: transform 0.15s; }
.note-profile[open] .plus { transform: rotate(45deg); }
.note-profile ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.9; }

.note-contact {
  text-decoration: none;
  color: #FFFFFF;
  background: #1F2A44;
  padding: 16px 18px 16px 28px;
  line-height: 1.2;
  box-shadow: 3px 5px 0 rgba(31, 42, 68, 0.18);
  transform: rotate(1.2deg);
}
.note-contact::before { display: none; }
.note-contact:hover { color: #FFFFFF; transform: rotate(0deg); }
.tape {
  position: absolute;
  top: -12px;
  left: 38%;
  width: 84px;
  height: 24px;
  background: rgba(245, 214, 107, 0.85);
  transform: rotate(-3deg);
}
.contact-label {
  display: block;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 38px;
  line-height: 1.05;
}
.contact-mail {
  display: block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

/* ---------- 목차 인덱스 탭 ---------- */
.tabs { display: flex; flex-direction: column; }
.tab-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; }

.tab {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1F2A44;
  border-radius: 16px 16px 0 0;
  padding: 12px 20px 10px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.15s;
}
.tab:hover { color: #1F2A44; transform: translateY(-4px); }
.t1 { background: var(--tab1); }
.t2 { background: var(--tab2); }
.t3 { background: var(--tab3); }
.t4 { background: var(--tab4); }

.tab-sub { font-size: 12px; line-height: 18px; }
.tab-name { font-family: 'Nanum Pen Script', cursive; font-size: 36px; line-height: 40px; }
.tab-line { height: 4px; background: #1F2A44; }

/* ---------- 글 카드 ---------- */
.list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.list-head h2 { margin: 0; font-family: 'Nanum Pen Script', cursive; font-weight: 400; font-size: 48px; line-height: 1.1; }
.list-head .count { font-size: 14px; color: #5A6478; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 56px 44px;
}

.card { display: flex; flex-direction: column; min-width: 0; }

.polaroid {
  position: relative;
  display: block;
  background: #FFFFFF;
  padding: 12px 12px 40px;
  box-shadow: 0 2px 10px rgba(31, 42, 68, 0.15);
  text-decoration: none;
  transform: rotate(1.5deg);
  transition: transform 0.2s;
}
.cards > .card:nth-child(3n+2) .polaroid { transform: rotate(-1.5deg); }
.cards > .card:nth-child(3n) .polaroid { transform: rotate(-0.8deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.02) !important; }

.polaroid .tape { top: -12px; left: 32%; width: 90px; background: rgba(160, 200, 230, 0.7); transform: rotate(-4deg); }
.cards > .card:nth-child(3n+2) .polaroid .tape { background: rgba(240, 170, 170, 0.7); left: 45%; transform: rotate(2deg); }
.cards > .card:nth-child(3n) .polaroid .tape { background: rgba(245, 214, 107, 0.75); left: 40%; transform: rotate(3deg); }

.photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--marker);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 대표 이미지가 없는 글: 형광 메모지에 제목 */
.photo-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 38px;
  line-height: 42px;
  color: #1F2A44;
}
.photo-text img { display: none; }

.meta { margin: 18px 0 0; font-size: 14px; color: #5A6478; }
.meta a { color: #5A6478; text-decoration: none; }

.card-title { margin: 0; font-family: 'Nanum Pen Script', cursive; font-weight: 400; font-size: 38px; line-height: 44px; }
.card-title a { text-decoration: none; }

.summary {
  margin: 0;
  font-size: 15px;
  color: #3E4859;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 홈 첫 글은 크게 (사진 왼쪽, 글 오른쪽) */
#tt-body-index .cards > .card:first-child {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
#tt-body-index .cards > .card:first-child .polaroid { flex: 1 1 380px; padding: 14px 14px 52px; transform: rotate(-1.5deg); }
#tt-body-index .cards > .card:first-child .polaroid .tape { width: 110px; height: 28px; top: -14px; left: 40%; background: rgba(245, 214, 107, 0.75); transform: rotate(3deg); }
#tt-body-index .cards > .card:first-child .card-body { flex: 1 1 280px; min-width: 0; }
#tt-body-index .cards > .card:first-child .meta { margin-top: 0; }
#tt-body-index .cards > .card:first-child .card-title { font-size: 64px; line-height: 72px; }
#tt-body-index .cards > .card:first-child .summary { font-size: 16px; -webkit-line-clamp: 4; }

.empty { color: #5A6478; }

/* ---------- 글 본문 ---------- */
#tt-body-page .cards { display: block; }

.entry {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
}
.entry-title {
  margin: 0 0 32px;
  font-family: 'Nanum Pen Script', cursive;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.1;
}
.entry .meta { margin: 0 0 4px; }
.admin { font-size: 13px; display: flex; gap: 12px; margin: -16px 0 16px; }

.entry-content { font-size: 17px; line-height: 36px; color: #1F2A44; }
.entry-content p { margin: 0 0 36px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 36px 0; }
.entry-content figcaption { font-size: 13px; color: #5A6478; text-align: center; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Nanum Pen Script', cursive;
  font-weight: 400;
  font-size: 40px;
  line-height: 44px;
  margin: 48px 0 12px;
}
.entry-content blockquote {
  margin: 36px 0;
  padding: 16px 24px;
  background: var(--marker);
  border: 0;
  font-family: 'Gowun Batang', serif;
}
.entry-content a { color: #B3261E; }

.memo {
  margin: 48px 0 0;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 28px;
  color: #B3261E;
}
.memo a { color: #B3261E; text-decoration: none; margin-right: 6px; }
.memo a::before { content: '#'; }

.entry-nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 48px 0; }
.entry-nav a {
  flex: 1 1 260px;
  display: block;
  padding: 12px 18px;
  background: #DCEBFA;
  text-decoration: none;
  line-height: 1.5;
  box-shadow: 2px 4px 0 rgba(31, 42, 68, 0.1);
}
.entry-nav a + a { background: #FFE36E; }
.nav-label { display: block; font-size: 12px; color: #3E4859; }

.entry-comments { margin-top: 48px; line-height: 1.7; }

.protect input[type=password] { font: inherit; padding: 4px 10px; border: 1.5px solid #1F2A44; }
.btn { font: inherit; padding: 4px 16px; border: 0; background: #1F2A44; color: #FFFFFF; cursor: pointer; }

/* ---------- 페이지 번호 ---------- */
.paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-family: 'Nanum Pen Script', cursive;
  font-size: 28px;
}
.paging a { text-decoration: none; }
.paging .nums { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.paging .selected { color: #B3261E; text-decoration: underline; text-underline-offset: 6px; }
.paging .no-more-prev,
.paging .no-more-next { visibility: hidden; }

/* ---------- 푸터 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 96px;
  padding-left: 32px;
  font-size: 14px;
  color: #5A6478;
}
.foot a { color: #5A6478; }

/* ---------- 휴대폰 ---------- */
@media (max-width: 880px) {
  .sheet { padding: 24px 16px 48px; border-left-width: 0; }
  .head { padding: 0 0 56px 0; }
  .title a { padding: 0 6px; }
  .subtitle { margin-left: 6px; font-size: 26px; }
  .layout { padding-left: 0; gap: 40px; }
  .side { max-width: none; flex-basis: 100%; }
  .note-intro { min-height: 0; }
  .tab { flex-basis: 40%; padding: 10px 14px 8px; }
  .tab-name { font-size: 30px; line-height: 34px; }
  #tt-body-index .cards > .card:first-child .card-title { font-size: 46px; line-height: 52px; }
  .foot { padding-left: 0; }
}
