/* 레이아웃 9 — 제목 색인형: 이미지 0, 먹색 한 가지, 나눔명조 */
:root {
  --paper: #FCFBF8; --ink: #161616; --ink2: #3C3C3A; --muted: #7A7873; --line: #DCD9D2;
  --serif: 'Nanum Myeongjo', 'AppleMyungjo', 'Noto Serif KR', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.8 var(--serif); word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }

/* 머리글 — 글자만 */
.ti-top { max-width: 640px; margin: 0 auto; padding: 34px 24px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ti-brand { font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.ti-nav { display: flex; gap: 18px; }
.ti-nav__a { font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ti-nav__a:hover { color: var(--ink); text-decoration: underline; }
.ti-nav__a.is-on { color: var(--ink); text-decoration: underline; }

.ti-wrap { max-width: 640px; margin: 0 auto; padding: 64px 24px 88px; }
.ti-head h1 { font-size: 34px; line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; }
.ti-head p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* 처음이면 이 글부터 */
.ti-first { margin-top: 44px; padding: 22px 0 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.ti-first h2 { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.ti-first ol { margin-top: 12px; padding-left: 1.4em; }
.ti-first li { padding: 4px 0; }
.ti-first li::marker { color: var(--muted); }
.ti-first a { font-weight: 700; text-decoration: none; }
.ti-first a:hover { text-decoration: underline; }
.ti-first span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 거르기 — 문장처럼 */
.ti-filters { margin-top: 32px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.75; }
.ti-fl { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; }
.ti-fl__k { color: var(--muted); font-size: 13.5px; }
.ti-f { color: var(--ink2); text-decoration: none; white-space: nowrap; }
.ti-f:hover { text-decoration: underline; }
.ti-f.is-on { color: var(--ink); font-weight: 800; text-decoration: underline; }
.ti-sep { color: var(--line); }
.ti-search__in { width: 100%; max-width: 260px; padding: 2px 0 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; font-size: 15px; border-radius: 0; }
.ti-search__in:focus { border-bottom-color: var(--ink); }
.ti-sum { margin-top: 30px; font-size: 14.5px; color: var(--ink2); }
.ti-empty { margin-top: 40px; color: var(--muted); }

/* 연도·달·제목 줄 */
.ti-year { margin-top: 48px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ti-year span { font-size: 13.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.ti-month { margin-top: 22px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.ti-rows { list-style: none; padding: 0; margin-top: 4px; }
.ti-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; text-decoration: none; }
.ti-row__t { font-size: 17px; line-height: 1.6; }
.ti-row:hover .ti-row__t { text-decoration: underline; }
.ti-row__lead { flex: 1; min-width: 24px; border-bottom: 1px dotted #B9B5AC; transform: translateY(-5px); }
.ti-row__d { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 글 */
.ti-post { padding-top: 72px; }
.ti-post__d { font-size: 14px; color: var(--muted); }
.ti-post__d a { color: var(--muted); }
.ti-post__t { margin-top: 12px; font-size: 32px; line-height: 1.45; font-weight: 800; letter-spacing: -0.02em; }
.ti-prose { margin-top: 40px; font-size: 17.5px; line-height: 2; }
.ti-prose > * + * { margin-top: 1.1em; }
.ti-prose h2 { margin-top: 2.2em; font-size: 20px; font-weight: 800; }
.ti-prose h3 { margin-top: 1.8em; font-size: 18px; font-weight: 700; }
.ti-prose h2 + *, .ti-prose h3 + * { margin-top: .5em; }
.ti-prose ul, .ti-prose ol { padding-left: 1.3em; }
.ti-prose strong { font-weight: 800; }
.ti-post__tags { margin-top: 40px; font-size: 14.5px; color: var(--muted); }
.ti-post__tags a { color: var(--ink2); }
.ti-cta { margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 16px; }
.ti-cta a { display: inline-block; margin-top: 12px; font-weight: 800; }
.ti-pn { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.ti-pn p { display: grid; grid-template-columns: 64px 1fr; }
.ti-pn span { color: var(--muted); font-size: 14px; }
.ti-pn a { text-decoration: none; }
.ti-pn a:hover { text-decoration: underline; }
.ti-back { display: inline-block; margin-top: 40px; font-size: 15px; color: var(--muted); text-decoration: none; }
.ti-back:hover { color: var(--ink); text-decoration: underline; }

/* 상담 — 편지처럼 */
.ti-lead { margin-top: 12px; color: var(--ink2); }
.ti-form { margin-top: 36px; display: grid; gap: 22px; }
.ti-form__row { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 12px; font-size: 15px; }
.ti-form__row > span { color: var(--muted); }
.ti-field { width: 100%; padding: 6px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; outline: none; font-size: 17px; border-radius: 0; }
textarea.ti-field { resize: vertical; border: 1px solid var(--line); padding: 10px 12px; line-height: 1.8; }
.ti-field:focus { border-color: var(--ink); background: #fff; }
.ti-err { min-height: 1.2em; font-size: 14.5px; color: #8E1F1F; }
.ti-submit { justify-self: start; padding: 10px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 700; cursor: pointer; }
.ti-submit:hover { background: transparent; color: var(--ink); }
.ti-hint { font-size: 13.5px; color: var(--muted); }

/* 바닥글 */
.ti-foot { max-width: 640px; margin: 0 auto; padding: 24px 24px 48px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.8; color: var(--muted); display: grid; gap: 6px; }
.ti-textbtn { padding: 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 10px 18px; background: var(--ink); color: var(--paper); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .ti-top { padding: 22px 16px 0; flex-direction: column; gap: 6px; }
  .ti-nav { gap: 16px; }
  .ti-wrap { padding: 44px 16px 64px; }
  .ti-head h1 { font-size: 28px; }
  .ti-fl { grid-template-columns: 1fr; }
  .ti-row { flex-direction: column; gap: 0; padding: 9px 0; border-bottom: 1px solid #EEECE6; }
  .ti-row__lead { display: none; }
  .ti-row__d { font-size: 13px; }
  .ti-post { padding-top: 44px; }
  .ti-post__t { font-size: 26px; }
  .ti-prose { font-size: 17px; }
  .ti-form__row { grid-template-columns: 1fr; gap: 2px; }
  .ti-foot { padding: 22px 16px 40px; }
}
