/* ═══════════════════════════════════════════════
   숲 정류장 — 밤비 내리는 숲의 감성 스킨 v3
   부드러운 수채화풍 · 은은한 빛 · 넉넉한 본문 폭
   ═══════════════════════════════════════════════ */

:root {
  --paper: #f6f3ea;
  --ivory: #fffdf7;
  --ink: #2a332e;
  --ink-soft: #5b675e;
  --ink-faint: #8a948b;
  --forest: #33584a;
  --forest-deep: #223c33;
  --night: #0e1c22;
  --clay: #b95b40;
  --lantern: #e2a84e;
  --lantern-soft: #f3d9a8;
  --sage: #9db392;
  --hairline: rgba(42, 51, 46, .09);
  --border-line: #d9dacb;

  --font-display: 'Hahmlet', serif;
  --font-body: 'Gowun Dodum', sans-serif;

  --shadow-card: 0 1px 2px rgba(20, 30, 26, .05), 0 14px 34px -16px rgba(20, 30, 26, .22);
  --shadow-hover: 0 2px 4px rgba(20, 30, 26, .06), 0 24px 48px -18px rgba(20, 30, 26, .3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

::selection { background: var(--lantern-soft); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ═══ 티커 ═══ */
.forest-ticker { overflow: hidden; background: #0b1714; padding: 7px 0; }
.ticker-track { display: flex; gap: 52px; width: max-content; animation: ticker 36s linear infinite; }
.ticker-track span {
  color: rgba(240, 236, 220, .6);
  font-size: 12px;
  letter-spacing: .14em;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ═══ 헤더 : 밤비 내리는 숲 정류장 ═══ */
.site-header {
  position: relative;
  padding: 72px 24px 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(51, 88, 74, .5) 0%, transparent 60%),
    linear-gradient(180deg, #0a141f 0%, #10222b 45%, #1b3630 100%);
}

.sky { position: absolute; inset: 0; pointer-events: none; }

/* 달빛 */
.moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 236, 215, .16) 0%, rgba(230, 236, 215, .05) 38%, transparent 68%);
}
.moon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #f1eeda, #cfd4bd 78%);
  box-shadow: 0 0 34px 6px rgba(235, 238, 218, .3);
}

/* 빗줄기 — 가늘고 은은한 두 겹 */
.rain { position: absolute; inset: -100px 0 0; }
.rain-far {
  background-image: repeating-linear-gradient(105deg,
    transparent 0 26px, rgba(190, 210, 218, .1) 26px 26.8px, transparent 26.8px 52px);
  animation: rainfall 1.6s linear infinite;
}
.rain-near {
  background-image: repeating-linear-gradient(108deg,
    transparent 0 17px, rgba(214, 228, 234, .18) 17px 17.9px, transparent 17.9px 34px);
  animation: rainfall .9s linear infinite;
}
@keyframes rainfall { to { transform: translateY(100px); } }

/* 낮게 깔린 안개 */
.mist {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 160px;
  bottom: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(214, 224, 210, .12), transparent 75%);
  filter: blur(6px);
}
.mist-a { animation: drift 26s ease-in-out infinite alternate; }
.mist-b { bottom: 40px; opacity: .6; animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

/* 떠오르는 우산들 */
.umbrella-sky { position: absolute; inset: 0; overflow: hidden; }
.fu {
  position: absolute;
  bottom: -150px;
  width: 58px;
  opacity: 0;
  animation: floatup 18s linear infinite;
}
@keyframes floatup {
  0%   { transform: translate(0, 0) rotate(-6deg); opacity: 0; }
  10%  { opacity: .55; }
  30%  { transform: translate(16px, -230px) rotate(5deg); }
  60%  { transform: translate(-12px, -450px) rotate(-6deg); opacity: .5; }
  85%  { opacity: .25; }
  100% { transform: translate(10px, -720px) rotate(4deg); opacity: 0; }
}
.fu1 { left: 5%;  color: #c05a40; animation-delay: 0s; }
.fu2 { left: 85%; color: #d8a052; animation-delay: 3s;  width: 44px; }
.fu3 { left: 15%; color: #6f93a3; animation-delay: 6s;  width: 34px; filter: blur(1px); }
.fu4 { left: 73%; color: #7d9a78; animation-delay: 9s;  width: 52px; }
.fu5 { left: 43%; color: #c05a40; animation-delay: 12s; width: 28px; filter: blur(1.4px); }
.fu6 { left: 58%; color: #a8b8ac; animation-delay: 15s; width: 40px; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 정류장 장면 */
.busstop-scene {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
}
.lamp { width: 88px; }
.lamp-glow { animation: lampflicker 7s ease-in-out infinite; transform-origin: 60px 46px; }
@keyframes lampflicker {
  0%, 100% { opacity: .9; }
  47% { opacity: 1; }
  52% { opacity: .72; }
  56% { opacity: .96; }
}
.mascot {
  width: 168px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5));
  animation: breathe 5.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.014, .986); }
}
.busstop { width: 46px; }

/* 가로등 불빛이 비친 물웅덩이 */
.puddle {
  position: relative;
  height: 34px;
  max-width: 420px;
  margin: -10px auto 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .16), transparent 78%);
}
.puddle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 16px;
  border: 1.5px solid rgba(255, 224, 176, .3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;
  animation: ripple 4s ease-out infinite;
}
.puddle i:nth-child(2) { animation-delay: 1.3s; left: 34%; }
.puddle i:nth-child(3) { animation-delay: 2.6s; left: 66%; }
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(.25); opacity: .8; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* 타이틀 */
.eyebrow {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: .34em;
  color: rgba(240, 236, 220, .5);
}
.site-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.2;
  margin: 14px 0 12px;
  color: #f3edda;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
  letter-spacing: .01em;
}
.site-title a:hover { color: var(--lantern-soft); }
.site-desc { font-size: 15.5px; color: rgba(226, 228, 210, .72); }

/* GNB — 유리 알갱이 */
.gnb { margin: 34px 0 20px; }
.gnb ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gnb a {
  display: inline-block;
  padding: 8px 22px;
  background: rgba(246, 242, 230, .09);
  border: 1px solid rgba(246, 242, 230, .16);
  border-radius: 999px;
  font-size: 14.5px;
  color: rgba(243, 237, 218, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.gnb a:hover { background: rgba(226, 168, 78, .92); color: #241d12; transform: translateY(-2px); }

/* 검색 */
.search-box { display: inline-flex; margin-bottom: 44px; }
.search-box input {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 10px 20px;
  width: min(260px, 60vw);
  background: rgba(246, 242, 230, .09);
  border: 1px solid rgba(246, 242, 230, .16);
  border-right: none;
  border-radius: 999px 0 0 999px;
  color: #f0ecdc;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.search-box input::placeholder { color: rgba(240, 236, 220, .45); }
.search-btn {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 22px;
  background: rgba(226, 168, 78, .9);
  color: #241d12;
  border: none;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background .2s ease;
}
.search-btn:hover { background: var(--lantern); }

/* 나무 능선 */
.treeline { display: block; width: 100%; height: 130px; margin-top: -6px; position: relative; z-index: 1; }
.tl-far { fill: #16302a; opacity: .8; }
.tl-near { fill: #0f211d; }
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: #0f211d;
}

/* ═══ 레이아웃 — 넉넉한 폭 ═══ */
.layout {
  max-width: 1200px;
  margin: 64px auto 90px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* 글 상세 페이지는 본문에 폭을 전부 양보 */
#tt-body-page .layout {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1050px;
}
#tt-body-page .sidebar { margin-top: 72px; }

/* ═══ 목록 카드 ═══ */
.card-link { display: block; margin-bottom: 28px; position: relative; z-index: 1; }
.card {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-link:hover .card { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.card-thumb {
  background: linear-gradient(155deg, #dfe6d4, #cfdcd2);
  min-height: 176px;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 26px 30px; }
.card-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--clay);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 8px;
  transition: color .2s ease;
}
.card-link:hover .card-title { color: var(--forest); }
.card-summary {
  font-size: 14.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.card-meta { font-size: 12.5px; color: var(--ink-faint); letter-spacing: .04em; }
.dot { margin: 0 7px; }

/* ═══ 글 상세 ═══ */
.article-head {
  text-align: center;
  padding: 8px 0 40px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--hairline);
}
.article-cat a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--clay);
}
.article-cat a:hover { color: var(--forest); }
.article-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.45;
  color: var(--ink);
  margin: 16px 0 14px;
  word-break: keep-all;
}
.article-meta { font-size: 13.5px; color: var(--ink-faint); }

/* 본문 — 흰 종이 카드. 흰 배경 다이어그램·스크린샷이 그대로 녹아든다 */
.article-view {
  font-size: 17px;
  line-height: 2.05;
  word-break: keep-all;
  overflow-wrap: break-word;
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 18px;
  padding: 52px 56px;
  box-shadow: var(--shadow-card);
}
.article-view p { margin-bottom: 1.4em; }
.article-view h2, .article-view h3, .article-view h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 2em 0 .8em;
  line-height: 1.5;
  color: var(--forest-deep);
  word-break: keep-all;
}
.article-view h2 { font-size: 26px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.article-view h3 { font-size: 21px; }
.article-view h4 { font-size: 18px; }
.article-view a {
  color: var(--forest);
  border-bottom: 1px solid rgba(51, 88, 74, .35);
  transition: border-color .2s ease, color .2s ease;
}
.article-view a:hover { color: var(--clay); border-color: rgba(185, 91, 64, .5); }
.article-view img, .article-view figure {
  border-radius: 6px;
  margin: 6px 0;
}
.article-view figure { max-width: 100%; }
.article-view figcaption { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 8px; }
.article-view iframe, .article-view video, .article-view embed { max-width: 100%; border-radius: 12px; }
.article-view blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--sage);
  color: var(--ink-soft);
  font-style: normal;
}
.article-view ul, .article-view ol { margin: 0 0 1.4em 1.5em; }
.article-view ul { list-style: disc; }
.article-view ol { list-style: decimal; }
.article-view li::marker { color: var(--sage); }
.article-view code {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .87em;
  background: rgba(51, 88, 74, .08);
  border-radius: 5px;
  padding: 2px 7px;
}
.article-view pre {
  background: #14231f;
  color: #dde6d8;
  border-radius: 12px;
  padding: 24px 26px;
  overflow-x: auto;
  margin: 1.6em 0;
  box-shadow: 0 10px 30px -14px rgba(20, 30, 26, .35);
}
.article-view pre code { background: none; color: inherit; padding: 0; }
.article-view table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.6em 0;
}
.article-view th, .article-view td {
  border: 1px solid var(--hairline);
  padding: 11px 16px;
  background: #ffffff;
  white-space: nowrap;
}
.article-view th { background: #f4f5ef; font-weight: 700; }
.article-view hr { border: none; border-top: 1px solid var(--hairline); margin: 2.4em 0; }

/* 태그 */
.article-tags { margin: 52px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
  font-size: 13px;
  padding: 5px 15px;
  background: rgba(51, 88, 74, .07);
  color: var(--forest);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.article-tags a::before { content: '# '; opacity: .55; }
.article-tags a:hover { background: var(--forest); color: var(--ivory); }

/* ═══ 댓글 ═══ */
.comments { margin-top: 68px; }
.comments-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--forest-deep);
  margin-bottom: 24px;
}
.comments-title em { font-style: normal; color: var(--clay); margin-left: 6px; font-size: 18px; }

.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-bubble {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}
.reply-list { margin: 12px 0 0 36px; }
.reply .comment-bubble { background: #f1efe4; }

.comment-name { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; color: var(--forest-deep); }
.comment-desc { font-size: 15px; }
.comment-meta { margin-top: 10px; font-size: 12px; color: var(--ink-faint); display: flex; gap: 14px; }
.comment-meta a:hover { color: var(--clay); }

/* 폼 */
.comment-form { margin-top: 28px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.comment-form input[type="text"],
.comment-form input[type="password"],
.comment-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 18px;
  background: var(--ivory);
  border: 1px solid rgba(42, 51, 46, .16);
  border-radius: 12px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(51, 88, 74, .1);
  outline: none;
}
.comment-form textarea { min-height: 112px; resize: vertical; }
.form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.secret-label { font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.btn-submit {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 28px;
  background: var(--forest);
  color: #f2f0e4;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(51, 88, 74, .55);
  transition: background .2s ease, transform .15s ease;
}
.btn-submit:hover { background: var(--forest-deep); transform: translateY(-2px); }
.btn-submit:active { transform: translateY(0); }

/* ═══ 방명록 · 태그 페이지 ═══ */
.page-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--forest-deep);
  margin-bottom: 28px;
}
.guestbook .comment-form { margin: 0 0 36px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag-chip {
  padding: 6px 17px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.tag-chip:hover { background: var(--forest); color: var(--ivory); transform: translateY(-2px); }
.tag-chip.cloud1 { font-size: 19px; color: var(--forest-deep); }
.tag-chip.cloud2 { font-size: 17px; }
.tag-chip.cloud3 { font-size: 15.5px; }
.tag-chip.cloud4 { font-size: 14px; color: var(--ink-soft); }
.tag-chip.cloud5 { font-size: 13px; color: var(--ink-faint); }

/* ═══ 페이징 ═══ */
.paging { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.page-nums { display: flex; gap: 6px; }
.page-num, .page-arrow {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease;
}
.page-num:hover, .page-arrow:hover { background: rgba(51, 88, 74, .09); color: var(--forest-deep); }
.page-num .selected, .page-num.selected { color: var(--clay); font-weight: 700; }

/* ═══ 사이드바 ═══ */
.sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.side-box {
  background: #ffffff;
  border: 1.5px solid var(--border-line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
}
.side-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--forest-deep);
  letter-spacing: .06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.side-profile { text-align: center; background: linear-gradient(175deg, #eef0e3, var(--ivory) 65%); }
.profile-blob { width: 92px; margin: 0 auto 8px; }
.side-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--forest-deep); }
.side-bio { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.side-category ul { display: flex; flex-direction: column; gap: 1px; }
.side-category ul ul { margin-left: 14px; }
.side-category a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.side-category a:hover { background: rgba(51, 88, 74, .07); color: var(--forest-deep); transform: translateX(3px); }
.side-category .c_cnt { color: var(--ink-faint); font-size: .85em; }

.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background .15s ease, color .15s ease;
}
.side-list a:hover { background: rgba(51, 88, 74, .07); color: var(--forest-deep); }
.side-list em { font-style: normal; color: var(--ink-faint); font-size: .9em; }

.side-counter { text-align: center; }
.counter-total { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--forest-deep); line-height: 1.3; }
.counter-sub { font-size: 12.5px; color: var(--ink-faint); }

/* ═══ 푸터 : 밤의 숲 + 반딧불 ═══ */
.site-footer {
  position: relative;
  margin-top: 40px;
  background: linear-gradient(180deg, #16302a 0%, #0b1512 70%);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: radial-gradient(70% 90px at 25% 0%, rgba(51, 88, 74, .5), transparent 70%),
              radial-gradient(70% 90px at 75% 0%, rgba(51, 88, 74, .4), transparent 70%);
}
.fireflies, .fireflies::before, .fireflies::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lantern-soft);
  box-shadow: 0 0 12px 4px rgba(232, 190, 110, .45);
  pointer-events: none;
}
.fireflies { top: 32%; left: 14%; animation: blink 3.4s ease-in-out infinite; }
.fireflies::before { top: -16px; left: 60vw; animation: blink 4.3s ease-in-out 1.3s infinite; }
.fireflies::after { top: 30px; left: 32vw; animation: blink 3.9s ease-in-out .7s infinite; }
@keyframes blink {
  0%, 100% { opacity: .08; transform: translateY(0); }
  50% { opacity: .9; transform: translateY(-9px); }
}
.footer-inner { position: relative; text-align: center; padding: 60px 24px 64px; color: rgba(233, 231, 214, .8); }
.footer-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 8px; color: var(--lantern-soft); }
.footer-sub { font-size: 12px; opacity: .7; letter-spacing: .16em; }

/* ═══ 등장 애니메이션 ═══ */
.will-in { opacity: 0; transform: translateY(16px); }
.is-in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }

/* ═══ 반응형 ═══ */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; }
  .card-thumb { min-height: 0; max-height: 220px; }
  .card-thumb img { max-height: 220px; }
  .form-row { flex-direction: column; }
  .article-view { font-size: 16px; line-height: 1.95; padding: 28px 22px; border-radius: 14px; }
  .site-header { padding-top: 52px; }
  .mascot { width: 128px; }
  .lamp { width: 68px; }
  .moon { right: -8%; width: 220px; height: 220px; }
  .fu { width: 38px !important; }
  .layout { padding: 0 20px; margin-top: 48px; }
}

/* ═══ 모션 최소화 ═══ */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .mascot, .rain-far, .rain-near, .lamp-glow, .puddle i, .fu, .mist-a, .mist-b,
  .fireflies, .fireflies::before, .fireflies::after { animation: none; }
  .umbrella-sky, .puddle i { display: none; }
  .will-in { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
