/* K-Dive 홈페이지. 색과 글꼴은 브랜드 가이드 v2.0 을 따른다.
   규칙: 기본 버튼은 딥 모브 하나, 그림자 없음, 로즈·라벤더·스카이는 글자색으로 쓰지 않는다. */
:root {
  --ink: #221A22; --ink-soft: #5E5360; --ink-muted: #746873;
  --mauve: #7A4E68; --mauve-hover: #6B4159;
  --rose: #DBA49D; --lavender: #BBAFD5; --sky: #94BFD1;
  --tint-rose: #FBF1EF; --tint-lavender: #F3F0F9; --tint-sky: #EEF5F8;
  --surface: #FFFDFB; --raised: #FFFFFF; --line: #E7DFE3;
  --w: 1080px; --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: "Noto Sans KR", "Noto Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--mauve); text-underline-offset: 3px; }
a:hover { color: var(--mauve-hover); }
:focus-visible { outline: 3px solid var(--mauve); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: clamp(22px, 3.4vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.sec { padding: 48px 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--raised); padding: 8px 12px; z-index: 10; }

.top { border-bottom: 1px solid var(--line); background: var(--raised); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: "Nunito", "Noto Sans KR", sans-serif; font-weight: 800; font-size: 22px; }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.top nav a[aria-current="page"] { background: var(--tint-lavender); color: var(--ink); }

.hero { background: var(--tint-rose); border-bottom: 1px solid var(--line); }
.hero-in { padding: 72px 20px 64px; }
.hero-in > * { max-width: 780px; }
.hero h1 { font-family: "Nunito", "Noto Sans KR", sans-serif; font-weight: 800; font-size: clamp(36px, 7vw, 60px); margin-bottom: .3em; }
.eyebrow { font-weight: 700; color: var(--ink-soft); margin-bottom: .4em; letter-spacing: .02em; }
.lead { font-size: clamp(19px, 2.6vw, 23px); font-weight: 500; }
.lead-s { color: var(--ink-soft); max-width: 720px; }
.sub { color: var(--ink-soft); max-width: 640px; }

.btn { display: inline-block; background: var(--mauve); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 700; }
.btn:hover { background: var(--mauve-hover); color: #fff; }
.btn-line { background: transparent; color: var(--mauve); border: 1.5px solid var(--mauve); }
.btn-line:hover { background: var(--tint-lavender); color: var(--mauve-hover); }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.way { display: block; text-decoration: none; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.way:nth-child(1) { background: var(--tint-rose); } .way:nth-child(2) { background: var(--tint-lavender); } .way:nth-child(3) { background: var(--tint-sky); }
.way:hover { border-color: var(--mauve); color: var(--ink); }
.way-id { font-family: "Nunito", sans-serif; font-weight: 800; color: var(--ink-soft); margin-bottom: .3em; }
.way p:last-child { margin: 0; color: var(--ink-soft); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.tabs a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: var(--raised); font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--mauve); border-color: var(--mauve); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card:hover { border-color: var(--mauve); color: var(--ink); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--tint-lavender); }
.card-img-empty { background: linear-gradient(135deg, var(--tint-rose), var(--tint-lavender) 55%, var(--tint-sky)); }
.card-in { padding: 18px 20px 20px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-muted); margin-bottom: .5em; }
.chip { background: var(--tint-lavender); color: var(--ink); padding: 2px 10px; border-radius: 999px; font-weight: 700; font-family: "Nunito", sans-serif; }
.card h3 { margin-bottom: .35em; }
.card-sum { margin: 0; color: var(--ink-soft); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { background: var(--raised); border: 1px dashed var(--line); border-radius: var(--r); padding: 32px 20px; text-align: center; color: var(--ink-soft); }
.note { background: var(--tint-sky); border-radius: var(--r); padding: 28px; }
.note p { margin: 0; color: var(--ink-soft); }

.post { max-width: 780px; padding-top: 40px; padding-bottom: 64px; }
.crumb { font-size: 15px; color: var(--ink-muted); }
.crumb a { text-decoration: none; }
.post-meta { display: flex; gap: 12px; color: var(--ink-muted); font-size: 15px; }
.post-sum { font-size: 19px; color: var(--ink-soft); border-left: 4px solid var(--rose); padding-left: 16px; }
.post-cover { width: 100%; border-radius: var(--r); margin: 8px 0 24px; display: block; }
.prose h2 { margin-top: 1.8em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--r); display: block; margin: 20px auto; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 0 0 1em; padding: 14px 18px; background: var(--tint-lavender); border-radius: var(--r); color: var(--ink-soft); }
.prose code { background: var(--tint-sky); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.tbl { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--tint-lavender); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-muted); font-size: 14.5px; margin-top: 32px; }
.post-back { margin-top: 32px; }

.foot { border-top: 1px solid var(--line); background: var(--raised); padding: 36px 0; color: var(--ink-soft); font-size: 15px; }
.foot p { margin: 0 0 .3em; }
.foot-brand { font-family: "Nunito", "Noto Sans KR", sans-serif; font-weight: 800; color: var(--ink); }
.foot-small { color: var(--ink-muted); margin-top: .8em; }
/* ---------- K-Brunch 글 상세 (2026-11-20): 맨 위 큰 그림과 제목, 편하게 읽히는 본문, 글과 이어지는 그림 */
.post-hero { position: relative; background: linear-gradient(135deg, #221A22 0%, #4A2F40 55%, #7A4E68 100%); background-size: cover; background-position: center; color: #fff; }
.post-hero.has-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,26,34,.35) 0%, rgba(34,26,34,.78) 100%); }
.post-hero { position: sticky; top: 64px; z-index: 0; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: flex-end; }
.post-hero-in { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 96px 20px clamp(56px, 11vh, 110px); }
.post-hero-down { position: absolute; right: 28px; bottom: 26px; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; text-decoration: none; font-size: 20px; }
.post-hero-down:hover { background: rgba(255,255,255,.16); color: #fff; }
.read-sheet { position: relative; z-index: 1; background: var(--surface); box-shadow: 0 -1px 0 var(--line); scroll-margin-top: 64px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .25s ease; }
.dock.on { transform: none; }
.dock-in { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dock-in::-webkit-scrollbar { display: none; }
.dock a { flex: 0 0 auto; font-size: 14.5px; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.dock a:hover { background: var(--tint-lavender); color: var(--ink); }
.dock a[aria-current] { background: var(--mauve); color: #fff; font-weight: 700; }
.has-dock .foot { padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.post-hero-crumb { font-size: 14.5px; margin-bottom: 1.1em; color: rgba(255,255,255,.82); }
.post-hero-crumb a { color: #fff; text-decoration: none; font-weight: 700; }
.post-hero-crumb a:hover { text-decoration: underline; color: #fff; }
.post-hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin-bottom: .45em; color: #fff; }
.post-hero-lead { font-size: clamp(17px, 2.4vw, 20px); line-height: 1.7; color: rgba(255,255,255,.9); margin-bottom: 1.6em; max-width: 640px; }
.post-hero-meta { display: flex; gap: 14px; font-size: 14.5px; color: rgba(255,255,255,.78); margin: 0; }
.read { max-width: 720px; margin: 0 auto; padding: 8px 20px 72px; }
.prose2 { font-size: 18px; line-height: 1.95; }
.prose2 p { margin: 0 0 1.5em; }
.prose2 section { scroll-margin-top: 84px; }
.prose2 .sec-intro { font-size: 21px; line-height: 1.8; font-weight: 500; padding: 28px 0 4px; }
.prose2 h2 { font-size: clamp(24px, 3.6vw, 30px); margin-top: 2.6em; padding-top: 0; border-top: 0; margin-bottom: .9em; }
.prose2 h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--rose); margin-bottom: 18px; }
.prose2 h3 { font-size: 20px; margin-top: 2.2em; margin-bottom: .7em; }
.prose2 ul, .prose2 ol { margin: 0 0 1.5em; }
.prose2 li { margin-bottom: .7em; }
.prose2 .cite { font-size: .62em; color: var(--ink-muted); margin-left: 2px; font-weight: 400; }
.fig { margin: 2.4em -40px; }
.fig img { width: 100%; border-radius: var(--r); display: block; margin: 0; }
.fig figcaption { text-align: center; font-size: 14.5px; color: var(--ink-muted); margin-top: 10px; padding: 0 40px; }
.prose2 .tbl { margin: 0 0 1.8em; border: 1px solid var(--line); border-radius: 12px; }
.prose2 table { font-size: 15.5px; line-height: 1.65; min-width: 520px; }
.prose2 th, .prose2 td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
.prose2 tr:last-child td { border-bottom: 0; }
.prose2 th { background: var(--tint-lavender); white-space: nowrap; }
.fold { margin-top: 3em; border: 1px solid var(--line); border-radius: var(--r); background: var(--raised); font-size: 14.5px; line-height: 1.7; }
.fold > summary { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-n { font-weight: 500; font-size: 14.5px; color: var(--mauve); white-space: nowrap; }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > :not(summary) { padding: 0 20px; }
.fold ul { padding: 16px 20px 8px 36px; margin: 0; }
.fold li { margin-bottom: .5em; overflow-wrap: anywhere; color: var(--ink-soft); }
.series { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--tint-lavender); padding: 22px 24px; }
.series-name { font-weight: 700; margin-bottom: .6em; }
.series-name span { font-weight: 400; color: var(--ink-muted); font-size: 14.5px; margin-left: 6px; }
.series ol { margin: 0; padding-left: 1.4em; font-size: 16px; }
.series li { margin-bottom: .3em; }
.series a { text-decoration: none; color: var(--ink-soft); }
.series a:hover { color: var(--mauve); text-decoration: underline; }
.series li[aria-current] span { font-weight: 700; color: var(--mauve); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pager a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--raised); color: var(--ink); }
.pager a:hover { border-color: var(--mauve); }
.pager small { display: block; color: var(--ink-muted); font-size: 13.5px; margin-bottom: 2px; }
.pager b { font-weight: 700; font-size: 16px; }
.pager-next { text-align: right; }
@media (max-width: 820px) { .fig { margin-left: -20px; margin-right: -20px; } .fig img { border-radius: 0; } .fig figcaption { padding: 0 20px; } }
@media (max-width: 560px) { .prose2 { font-size: 17px; line-height: 1.9; } .prose2 .sec-intro { font-size: 19px; } .pager { grid-template-columns: 1fr; } .pager-next { text-align: left; } }
@media (max-width: 560px) { body { font-size: 16px; } .sec { padding: 36px 20px; } .hero-in { padding: 48px 20px 44px; } .top nav a { padding: 8px 10px; } }
