/* 크루톤 블로그 — 시스템 폰트, 외부 리소스 없음 */
@view-transition { navigation: auto; }

:root {
  --brand: #0fbf74; --brand-2: #0aa7c9; --brand-ink: #067a4a; --brand-soft: #e7f9f0;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f6f5; --line: #e6ebe9;
  --ink: #17201c; --ink-2: #4a5852; --ink-3: #7c8a84; --mark: #fff1a8; --danger: #e5484d;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 0 0 1px var(--line), 0 6px 20px -14px rgb(16 24 20 / .18);
  --shadow-lift: 0 2px 4px rgb(16 24 20 / .06), 0 22px 40px -18px rgb(16 24 20 / .3);
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
.theme-sky { --brand: #1f9cf0; --brand-2: #6b7cff; --brand-soft: #e6f3fe; --brand-ink: #0b66a8; }
.theme-violet { --brand: #8b5cf6; --brand-2: #ec4899; --brand-soft: #f1ebfe; --brand-ink: #6d28d9; }
.theme-peach { --brand: #f97316; --brand-2: #f43f5e; --brand-soft: #fff0e6; --brand-ink: #c2410c; }
.theme-mint { --brand: #14b8a6; --brand-2: #22c55e; --brand-soft: #e3f8f5; --brand-ink: #0f766e; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-ink); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; font-weight: 700; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); } .small { font-size: .875rem; } .nowrap { white-space: nowrap; }
.inline { display: inline; }
#fx-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px -8px var(--brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px -8px var(--brand); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .9rem; } .btn-xs { min-height: 32px; padding: 0 10px; font-size: .8rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; } .btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-3); }
.linklike:hover { color: var(--ink); } .danger { color: var(--danger) !important; }

/* 상단 바 */
.gnb { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.6) blur(14px); background: color-mix(in oklab, var(--surface) 82%, transparent); border-bottom: 1px solid var(--line); view-transition-name: gnb; }
.gnb-in { width: min(1160px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; flex: none; }
.logo:hover { color: inherit; }
.search-mini { z-index: 5; flex: 1; max-width: 460px; display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; padding-left: 16px; transition: border-color .2s, background .2s; position: relative; }
.search-mini:focus-within { border-color: var(--brand); background: var(--surface); }
.search-mini input { flex: 1; border: 0; background: none; height: 42px; outline: none; min-width: 0; }
.search-mini button { border: 0; background: none; width: 44px; height: 42px; cursor: pointer; color: var(--brand-ink); }
.gnb-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.gnb-link { font-weight: 600; font-size: .92rem; color: var(--ink-2); }
@media (max-width: 720px) { .logo span { display: none; } .hide-sm { display: none; } .gnb-in { gap: 10px; } .gnb-user { gap: 8px; } .gnb-link { font-size: .85rem; } }

/* 자동완성 */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); list-style: none; margin: 0; padding: 6px; z-index: 50; text-align: left; }
.suggest li a { display: block; padding: 10px 14px; border-radius: 10px; }
.suggest li a:hover, .suggest li a[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-ink); }
.suggest-head { padding: 6px 14px; font-size: .78rem; color: var(--ink-3); }

/* 히어로 */
.hero { position: relative; overflow: hidden; min-height: clamp(420px, 62vh, 620px); display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 60%),
              radial-gradient(90% 80% at 100% 20%, color-mix(in oklab, var(--brand-2) 24%, transparent), transparent 60%), var(--bg); }
.hero-3d { position: absolute; inset: 0; z-index: 0; }
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-in { position: relative; z-index: 1; width: min(760px, 100% - 32px); text-align: center; padding: 48px 0; pointer-events: none; }
.hero-in form, .hero-in a { pointer-events: auto; }
.hero-title { text-shadow: 0 2px 24px var(--bg); }
.hero-title { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 28px; font-weight: 850; animation: rise .9s var(--ease) both; }
.grad { background: linear-gradient(100deg, var(--brand), var(--brand-2), #8b5cf6, var(--brand)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: 300% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.search-big { position: relative; z-index: 5; display: flex; align-items: center; background: var(--surface); border-radius: 999px; padding: 6px 6px 6px 26px;
  border: 2px solid transparent; background-clip: padding-box; box-shadow: var(--shadow-lift); animation: rise .9s .12s var(--ease) both; }
.search-big::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--angle), var(--brand), var(--brand-2), #8b5cf6, #f59e0b, var(--brand)); animation: spin 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes spin { to { --angle: 360deg; } }
.search-big input, .search-big input:focus, .search-mini input:focus { box-shadow: none; border: 0; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: 56px; font-size: 1.2rem; }
.search-go { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; transition: transform .25s var(--ease); }
.search-go:hover { transform: rotate(-12deg) scale(1.06); }
.search-big-sm { padding-left: 20px; box-shadow: var(--shadow); animation: none; }
.search-big-sm input { height: 48px; font-size: 1.05rem; } .search-big-sm .search-go { width: 48px; height: 48px; }
.hero-trend { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: .9rem; animation: rise .9s .24s var(--ease) both; }
.hero-trend > span { color: var(--ink-3); width: 100%; }
.hero-trend a { background: color-mix(in oklab, var(--surface) 75%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.hero-trend b { color: var(--brand-ink); margin-right: 6px; }

/* 주제 바 */
.topic-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topic-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.topic-pill { flex: none; display: flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 650; font-size: .92rem; transition: background .2s, transform .2s var(--ease); }
.topic-pill:hover { background: var(--brand-soft); transform: translateY(-2px); }

/* 레이아웃 */
.home-grid, .search-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 28px 0 60px; }
@media (max-width: 960px) { .home-grid, .search-grid { grid-template-columns: 1fr; } }
.sec { margin-bottom: 40px; }
.sec-title { font-size: 1.35rem; letter-spacing: -.02em; margin: 0 0 16px; }
.sec-title-sm { font-size: 1.05rem; margin: 0 0 12px; }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; container-type: inline-size; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-feature .card-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 560px) { .grid-feature .card-big { grid-column: auto; grid-row: auto; } }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); container-type: inline-size; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-link { display: flex; flex-direction: column; flex: 1; }
.card-link:hover { color: inherit; }
.card-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-thumb img { transform: scale(1.06); }
.card-body { padding: 16px 18px 6px; }
.card-title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-big .card-title { font-size: 1.35rem; }
.card-sum { margin: 0; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 18px 16px; font-size: .8rem; color: var(--ink-3); margin-top: auto; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink-2); }
.avatar { --c: var(--brand); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 800; flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--c) 55%, #fff), var(--c)); }
.avatar-xl { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 10px 30px -10px var(--c); }
.badge { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; vertical-align: middle; }
.list { display: grid; gap: 14px; }
.list .card .card-link { flex-direction: row-reverse; justify-content: space-between; }
.list .card-thumb { width: 168px; aspect-ratio: 4 / 3; flex: none; margin: 14px 14px 0 0; border-radius: 12px; }
.list .card-body { padding-bottom: 0; flex: 1; min-width: 0; }
@container (max-width: 480px) { .list .card-thumb { width: 96px; } }

/* 스크롤 등장 애니메이션 (지원 브라우저만) */
@supports (animation-timeline: view()) {
  [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } }
}

/* 사이드 */
.side-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.side-title { font-size: .95rem; margin: 0 0 12px; }
.login-box { text-align: center; background: linear-gradient(160deg, var(--brand-soft), var(--surface)); }
.login-box .btn { margin: 12px 0 8px; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li a { display: flex; gap: 12px; padding: 7px 0; font-size: .93rem; }
.rank b { width: 20px; color: var(--brand-ink); }
.rank li:nth-child(n+4) b { color: var(--ink-3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips a { display: inline-block; padding: 6px 12px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; font-size: .86rem; font-weight: 600; transition: transform .2s var(--ease); }
.chips a:hover { transform: translateY(-2px) rotate(-1deg); }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.blog-list a { display: flex; align-items: center; gap: 12px; }
.blog-list .avatar { width: 40px; height: 40px; font-size: 1rem; }
.blog-list small { display: block; color: var(--ink-3); font-size: .8rem; }
.topic-tree summary { cursor: pointer; padding: 6px 0; font-weight: 650; }
.topic-tree ul { list-style: none; padding: 0 0 8px 12px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: .88rem; }
.topic-tree small, .topic-subs small { color: var(--ink-3); }

/* 검색 */
.search-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 0; }
.search-head .search-big { max-width: 720px; }
.tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 650; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--brand); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.result-bar p { margin: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: .86rem; color: var(--ink-3); }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; }
.blog-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.blog-hit { display: flex; gap: 12px; align-items: center; background: var(--surface); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.blog-hit .avatar { width: 40px; height: 40px; font-size: 1rem; }
.blog-hit small, .blog-hit em { display: block; font-size: .8rem; color: var(--ink-3); font-style: normal; }
.blog-hit-lg { margin-bottom: 10px; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty-emoji { font-size: 3rem; margin: 0; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }
.empty-page { padding: 100px 16px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager strong { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: .92rem; }
.pager strong { background: var(--brand); color: #fff; }
.ad { margin: 18px 0; } .ad-label { display: block; font-size: .7rem; color: var(--ink-3); margin-bottom: 4px; }

/* 키워드·주제 */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--ink-3); padding-top: 20px; }
.kw-head, .topic-head { padding: 18px 0 8px; }
.kw-eyebrow { margin: 0; color: var(--brand-ink); font-weight: 700; font-size: .85rem; }
.kw-title { font-size: clamp(2rem, 5vw, 3rem); margin: 4px 0 6px; letter-spacing: -.03em; }
.kw-related { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.kw-related > span { font-size: .85rem; color: var(--ink-3); }
.kw-graph { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kw-graph li { display: grid; gap: 4px; font-size: .9rem; }
.kw-graph .bar { height: 6px; border-radius: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.kw-graph .bar::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.topic-head h1 { margin: 0 0 14px; font-size: 1.8rem; }
.topic-subs, .topic-all { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.topic-subs a, .topic-all a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.topic-subs a[aria-current], .topic-all a[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.topic-all { margin-top: 32px; }

/* 개인 블로그 */
.blog-cover { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; padding: 40px 0 70px; position: relative; overflow: hidden; }
.blog-cover::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgb(255 255 255 / .22), transparent); animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(14%); } }
.blog-cover-sm { padding: 22px 0 56px; }
.blog-title, .blog-title:hover { color: #fff; }
.blog-title h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.03em; view-transition-name: blog-title; }
.blog-cover-sm .blog-title { font-weight: 800; font-size: 1.2rem; }
.blog-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 24px; margin-top: -40px; position: relative; padding-bottom: 60px; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } .bside { order: 2; } }
.bside > * { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 14px; margin-bottom: 14px; }
.profile { text-align: center; view-transition-name: profile; }
.profile-name { font-size: 1.1rem; margin: 12px 0 4px; } .profile-name small { color: var(--ink-3); font-weight: 500; font-size: .8rem; }
.profile-intro { font-size: .88rem; color: var(--ink-2); margin: 0 0 12px; }
.profile-stats { display: flex; justify-content: center; gap: 12px; margin: 12px 0 16px; }
.profile-stats div { text-align: center; } .profile-stats dt { font-size: .75rem; color: var(--ink-3); } .profile-stats dd { margin: 0; font-weight: 800; }
.profile-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.bside .btn-sm { min-height: 34px; padding: 0 10px; font-size: .82rem; }
.cats a { font-size: .88rem; }
.cats ul { list-style: none; margin: 0; padding: 0; } .cats ul ul { padding-left: 10px; }
.cats a { display: block; padding: 6px 8px; border-radius: 8px; font-size: .92rem; }
.cats a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.cats small { color: var(--ink-3); }
.rss { display: block; font-size: .8rem; color: var(--ink-3); text-align: center; padding: 10px !important; }
.blog-main { min-width: 0; }
.blog-main > .post, .post-list, .comments, .adj { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-title { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; margin: 0 0 12px; font-size: 1.1rem; }
.list-title small { color: var(--ink-3); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.post-list { list-style: none; margin: 0; padding: 4px 0; }
.post-list li + li { border-top: 1px solid var(--line); }
.post-list a { display: flex; gap: 16px; justify-content: space-between; padding: 18px 22px; }
.post-list h3 { margin: 0 0 4px; font-size: 1.05rem; } .post-list p { margin: 0 0 6px; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list small { color: var(--ink-3); } .post-list img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; flex: none; }
.toast-inline { background: var(--brand-soft); color: var(--brand-ink); padding: 14px 18px; border-radius: 14px; margin-bottom: 14px; font-weight: 600; animation: rise .6s var(--ease) both; }
.toast-inline a { text-decoration: underline; } .toast-warn { background: #fff4d6; color: #8a5a00; }

/* 글 읽기 */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .read-progress span { animation: grow-x linear both; animation-timeline: scroll(root); } @keyframes grow-x { to { transform: scaleX(1); } } }
.post { padding: clamp(20px, 3.4vw, 40px) clamp(18px, 3.4vw, 48px); margin-bottom: 16px; }
.post-head { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.post-head .crumbs { padding-top: 0; }
.topic-tag a { background: var(--brand-soft); color: var(--brand-ink); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.post-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.3; letter-spacing: -.03em; margin: 10px 0 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .88rem; color: var(--ink-3); }
.post-owner { margin-left: auto; display: flex; gap: 12px; }
.post-body { font-size: 1.08rem; line-height: 1.85; }
.post-body h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; } .post-body h3 { font-size: 1.2rem; }
.post-body img { border-radius: 14px; display: block; margin: 1em auto; }
.post-body blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.post-body hr { border: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 2em 0; }
.post-body a { color: var(--brand-ink); text-decoration: underline; }
.post-tags { margin-top: 28px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.like-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; transition: transform .2s var(--ease), border-color .2s; }
.like-btn .heart { color: var(--ink-3); font-size: 1.3rem; transition: transform .35s cubic-bezier(.3, 1.8, .4, 1), color .2s; }
.like-btn[aria-pressed="true"] { border-color: #ff5a7a; } .like-btn[aria-pressed="true"] .heart { color: #ff3d63; transform: scale(1.25); }
.like-btn:active { transform: scale(.94); }
.adj { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; overflow: hidden; }
.adj a, .adj span { padding: 16px 20px; } .adj a small { display: block; color: var(--ink-3); font-size: .78rem; } .adj .next { text-align: right; border-left: 1px solid var(--line); }
.post-keywords { background: var(--surface); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.comments { padding: 22px; margin-bottom: 16px; }
.comments > ul { list-style: none; padding: 0; margin: 0 0 16px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment > div { flex: 1; } .comment .avatar { width: 34px; height: 34px; }
.comment-who { margin: 0; font-weight: 700; font-size: .9rem; } .comment-who small { color: var(--ink-3); font-weight: 400; }
.comment-text { margin: 2px 0 0; white-space: pre-wrap; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; }
.comment-form textarea { flex: 1; }
.mini-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; } .mini-list li + li { border-top: 1px solid var(--line); } .mini-list small { color: var(--ink-3); flex: none; }

/* 폼 */
:where(input:not([type="radio"], [type="checkbox"], [type="file"]), select, textarea) {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 14px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
:where(input, select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
label { display: grid; gap: 6px; font-weight: 650; font-size: .92rem; }
.form-error { background: #fff0f0; color: #b42318; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-weight: 600; }
.form-error ul { margin: 6px 0 0; padding-left: 20px; }
.auth-wrap { min-height: calc(100vh - 64px - 180px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lift); padding: 36px 32px; display: grid; gap: 16px; animation: rise .7s var(--ease) both; }
.create-card { width: min(560px, 100%); }
.auth-card h1 { margin: 0; font-size: 1.6rem; } .auth-card p { margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.addr { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.addr span { padding: 0 4px 0 12px; color: var(--ink-3); font-weight: 500; font-size: .85rem; white-space: nowrap; }
.addr input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.addr:focus-within { border-color: var(--brand); }
.hint { color: var(--ink-3); font-size: .82rem; } .hint.ok { color: var(--brand-ink); } .hint.bad { color: var(--danger); }

/* 글쓰기 */
.page-write .foot { display: none; }
.writer-bar { position: sticky; top: 64px; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.writer-bar-in { display: flex; align-items: center; gap: 16px; height: 60px; } .writer-bar-in .btn { margin-left: auto; }
.draft-state { font-size: .82rem; color: var(--ink-3); }
.writer-in { max-width: 860px; padding: 24px 0 80px; display: grid; gap: 18px; }
.writer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .writer-meta { grid-template-columns: 1fr; } }
.writer-title { font-size: 1.8rem !important; font-weight: 800; border: 0 !important; border-bottom: 2px solid var(--line) !important; border-radius: 0 !important; padding: 12px 4px !important; background: none !important; box-shadow: none !important; }
.writer-title:focus { border-color: var(--brand) !important; }
.toolbar { position: sticky; top: 124px; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.toolbar button, .tb-photo { min-width: 40px; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 600; }
.toolbar button:hover, .tb-photo:hover { background: var(--surface-2); }
.tb-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.tb-colors { display: inline-flex; gap: 2px; }
.swatch { min-width: 28px !important; padding: 0 !important; } .swatch::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6); }
.stickers { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; animation: rise .3s var(--ease); }
.stickers button { font-size: 1.6rem; width: 48px; height: 48px; border: 0; background: none; border-radius: 12px; cursor: pointer; transition: transform .15s; }
.stickers button:hover { background: var(--surface-2); transform: scale(1.2) rotate(-8deg); }
.editor { min-height: 420px; background: var(--surface); border-radius: 16px; padding: 22px 24px; border: 1.5px solid var(--line); outline: none; }
.editor:focus { border-color: var(--brand); }
.editor:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.editor img.uploading { opacity: .4; filter: blur(2px); }
.editor-count { text-align: right; color: var(--ink-3); font-size: .82rem; margin: -10px 0 0; }
.vis { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vis legend { font-weight: 700; margin-bottom: 8px; }
.vis label { cursor: pointer; } .vis input { position: absolute; opacity: 0; }
.vis span { display: grid; gap: 2px; text-align: center; padding: 14px 8px; border: 2px solid var(--line); border-radius: 14px; transition: all .2s var(--ease); font-weight: 500; }
.vis small { color: var(--ink-3); font-size: .75rem; }
.vis input:checked + span { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.vis input:focus-visible + span { outline: 3px solid var(--brand); }
@media (max-width: 560px) { .vis { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; } .check input { width: 20px; height: 20px; accent-color: var(--brand); }
.safe-note { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; font-size: .86rem; color: var(--ink-2); margin: 0; }

/* 관리 */
.manage h1 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-top: 24px; }
.manage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 60px; }
@media (max-width: 860px) { .manage-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.panel-wide { grid-column: 1 / -1; overflow-x: auto; }
.panel h2 { margin: 0 0 14px; font-size: 1.15rem; } .panel h2 small { color: var(--ink-3); font-weight: 500; }
.stack { display: grid; gap: 14px; }
.themes { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; } .themes legend { font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.theme-dot { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.theme-dot input { accent-color: var(--brand); }
.theme-dot span::before { content: ""; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); vertical-align: -4px; margin-right: 4px; }
.cat-edit, .cat-edit ul { list-style: none; margin: 0; padding: 0; }
.cat-edit > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.cat-edit .child { padding-left: 18px; position: relative; } .cat-edit .child::before { content: "ㄴ"; position: absolute; left: 2px; top: 12px; color: var(--ink-3); }
.cat-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.cat-rename { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 200px; }
.cat-rename input { min-height: 38px !important; padding: 6px 10px !important; } .cat-rename small { color: var(--ink-3); white-space: nowrap; }
.cat-add-child, .cat-add { display: flex; gap: 6px; margin-top: 8px; } .cat-add-child input, .cat-add input { min-height: 38px !important; padding: 6px 10px !important; }
.cat-add-child { padding-left: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; } .tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--ink-3); font-weight: 600; font-size: .8rem; } .tbl td:first-child { max-width: 320px; } .tbl td .linklike { margin-left: 8px; }
.ok { color: var(--brand-ink); }

/* 푸터 */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; font-size: .86rem; color: var(--ink-2); }
.foot-topics { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; font-weight: 600; }
.foot p { margin: 4px 0; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 999px; z-index: 80; font-weight: 600; box-shadow: var(--shadow-lift); animation: rise .4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { animation: none !important; }
  @view-transition { navigation: none; }
}

/* ── 메인 매거진 (종합 커뮤니티) ── */
.hero-slim { min-height: clamp(280px, 38vh, 360px); }
.hero-slim .hero-in { padding: 28px 0; }
.hero-slim .hero-title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
.hero-slim .hero-trend { margin-top: 14px; }
.topic-bar { position: sticky; top: 64px; z-index: 30; }
.mz-sec, .mz-head { margin-bottom: 44px; scroll-margin-top: 130px; }
.mz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.mz-title { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.mz-head .mz-title { margin-bottom: 14px; }
.mz-icon { font-size: 1.2em; }
.mz-more { font-size: .86rem; color: var(--ink-3); font-weight: 600; }
.mz-thumb { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in oklab, var(--brand-2) 18%, #fff)); }
.mz-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a:hover .mz-thumb img { transform: scale(1.05); }
.mz-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; opacity: .75; }
.mz-thumb-lg { aspect-ratio: 16 / 9; } .mz-thumb-md { aspect-ratio: 4 / 3; } .mz-thumb-sm { width: 96px; aspect-ratio: 4 / 3; flex: none; }
.mz-thumb-sm .mz-ph { font-size: 1.4rem; }
.mz-stats { display: inline-flex; gap: 10px; color: var(--ink-3); font-size: .8rem; }
.mz-head-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.mz-lead a { display: block; }
.mz-lead-body { position: relative; padding: 14px 4px 0 52px; }
.mz-rank { position: absolute; left: 0; top: 12px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mz-lead h3 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.02em; }
.mz-lead p, .mz-feature p { margin: 0 0 8px; color: var(--ink-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-lead footer, .mz-feature footer, .mz-side-list footer { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--ink-3); }
.mz-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.mz-side-list a { display: flex; gap: 12px; align-items: center; }
.mz-side-list a > div { min-width: 0; flex: 1; }
.mz-side-list h3 { margin: 2px 0 4px; font-size: .98rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-rank-s { color: var(--brand-ink); font-size: .85rem; }
.mz-group { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 16px; }
.mz-feature a { display: block; }
.mz-feature h3 { margin: 10px 0 6px; font-size: 1.15rem; line-height: 1.4; }
.mz-badge { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.mz-rank-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mz-rank-list li { border-bottom: 1px solid var(--line); }
.mz-rank-list a, .mz-rank-list li > span { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
.mz-rank-list b { width: 22px; text-align: center; color: var(--brand-ink); font-weight: 900; }
.mz-rank-list li:nth-child(n+4) b { color: var(--ink-3); }
.mz-rank-list .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mz-rank-list small { color: var(--ink-3); font-size: .75rem; flex: none; }
.mz-rank-list .is-empty .t { color: var(--ink-3); font-weight: 400; }
.mz-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mz-cat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 118px; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.mz-cat:not(.is-empty):hover { border-color: var(--brand); transform: translateY(-2px); }
.mz-cat h3 { margin: 0 0 8px; font-size: .9rem; }
.mz-cat h3 a { color: var(--ink); }
.mz-cat ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mz-cat li a { display: grid; font-size: .85rem; }
.mz-cat .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-cat small { color: var(--ink-3); font-size: .72rem; }
.mz-cat.is-empty { background: var(--surface-2); border-style: dashed; }
.mz-cat.is-empty h3 a { color: var(--ink-3); }
.mz-cat-empty { margin: 0; color: var(--ink-3); font-size: .82rem; }
.mz-empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--ink-3); background: var(--surface-2); }
.mz-empty a { color: var(--brand-ink); font-weight: 700; }
.mz-group > .mz-empty-lg { grid-column: 1 / -1; }
.mz-mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mz-mini-grid h3 { margin: 8px 0 2px; font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mz-mini-grid small { color: var(--ink-3); font-size: .78rem; }
.mz-latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mz-latest a { display: grid; }
.mz-latest .t { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-latest small { color: var(--ink-3); font-size: .76rem; }
@media (max-width: 720px) {
  .mz-head-grid, .mz-group { grid-template-columns: 1fr; }
  .mz-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .mz-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-bar { top: 64px; }
}
