/* Blog (/blog/): Korean articles. Same tokens as the landing: white page, one grey step, purple for links, emphasis and the button.
   The font face is declared inline per page because its file name carries a content hash (scripts/build-blog.cjs). */
:root { --ink: #191f28; --text: #333d4b; --secondary: #6b7684; --muted: #8b95a1; --purple: #6336ee; --purple-dark: #4e24c7; --lavender: #f1edff; --grey: #f6f6f9; --line: #e9ebee; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: 'Leafeep Blog', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; font-synthesis: none; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: #e5d9ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 30; padding: 12px 14px; background: #fff; color: var(--ink); }
.skip-link:focus { top: 10px; }

.blog-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header: same two items as the landing header (blog link and quote button). */
.blog-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.blog-header-inner { max-width: 1120px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.blog-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.blog-brand img { width: 28px; height: 28px; }
.blog-header nav { display: flex; align-items: center; gap: 8px; }
.blog-header nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--secondary); text-decoration: none; border-radius: 10px; }
.blog-header nav a:hover { color: var(--ink); }
.blog-header nav .blog-cta { padding: 0 16px; background: var(--purple); color: #fff; font-weight: 600; transition: background .15s; }
.blog-header nav .blog-cta:hover { background: var(--purple-dark); color: #fff; }

/* Author line: leafeep symbol as the profile picture, '리핍' as the name. */
.post-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.author-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.author-avatar img { width: 26px; height: 26px; }
.author-text { display: flex; flex-direction: column; line-height: 1.4; }
.author-text strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.author-text time { font-size: 14px; color: var(--muted); }
.post-author.is-small { margin-top: 16px; gap: 8px; }
.post-author.is-small .author-avatar { width: 28px; height: 28px; }
.post-author.is-small .author-avatar img { width: 17px; height: 17px; }
.post-author.is-small .author-text { flex-direction: row; gap: 8px; align-items: center; }
.post-author.is-small strong { font-size: 14px; }
.post-author.is-small time { font-size: 13px; }

/* Article with a sticky contents list on the right (wide screens). */
.post-layout { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.post-layout.has-aside { display: grid; grid-template-columns: minmax(0, 720px) 200px; justify-content: space-between; gap: 56px; }
.post { min-width: 0; padding-top: 56px; padding-bottom: 88px; }
.post-layout:not(.has-aside) .post { max-width: 720px; margin: 0 auto; }
.post-kicker { margin: 0 0 16px; font-size: 15px; font-weight: 600; }
.post-kicker a { color: var(--purple); text-decoration: none; }
.post h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 4.6vw, 42px); line-height: 1.38; font-weight: 750; letter-spacing: -.04em; }
.post-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-aside { position: sticky; top: 96px; align-self: start; margin-top: 64px; padding-left: 20px; border-left: 1px solid var(--line); max-height: calc(100vh - 128px); overflow-y: auto; }
.aside-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink); }
.post-aside ol { list-style: none; margin: 0; padding: 0; }
.post-aside a { display: block; padding: 6px 0; font-size: 13px; line-height: 1.6; color: var(--muted); text-decoration: none; transition: color .15s; }
.post-aside a:hover { color: var(--ink); }
.post-aside a.is-active { color: var(--purple); font-weight: 600; }

.post-body { margin-top: 40px; font-size: 18px; line-height: 1.85; letter-spacing: -.015em; }
.post-body > p:first-child { font-size: 20px; line-height: 1.8; color: var(--ink); }
.post-body p { margin: 0 0 28px; }
.post-body h2 { margin: 72px 0 20px; scroll-margin-top: 88px; color: var(--ink); font-size: clamp(24px, 3.2vw, 29px); line-height: 1.45; font-weight: 700; letter-spacing: -.035em; }
.post-body h3 { margin: 44px 0 14px; color: var(--ink); font-size: 21px; line-height: 1.5; font-weight: 700; }
.post-body strong { color: var(--purple); font-weight: 700; }
.post-body a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--purple-dark); }
.post-body ul, .post-body ol { margin: 0 0 28px; padding-left: 1.3em; }
.post-body li { margin: 0 0 14px; padding-left: 4px; }
.post-body li::marker { color: var(--purple); }
.post-toc { margin: 0 0 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; }
.has-aside .post-toc { display: none; }
.post-body .post-toc p { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.post-body .post-toc ol { margin: 0; padding-left: 1.4em; font-size: 16px; line-height: 1.6; }
.post-body .post-toc li { margin: 0 0 6px; }
.post-body .post-toc li::marker { color: var(--muted); }
.post-body .post-toc a { color: var(--text); text-decoration: none; }
.post-body .post-toc a:hover { color: var(--purple); text-decoration: underline; }
.post-body blockquote { margin: 0 0 32px; padding: 18px 22px; background: var(--grey); border-radius: 14px; font-size: 16px; line-height: 1.75; color: var(--secondary); }
.post-body blockquote p { margin: 0; }
.post-body figure { margin: 36px 0 40px; }
.post-body figure img { width: 100%; border-radius: 14px; }
.post-body .figure-zoom { display: block; text-decoration: none; cursor: zoom-in; border-radius: 14px; }
.post-body figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.table-wrap { margin: 0 0 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post-body th { text-align: left; font-weight: 700; color: var(--ink); background: var(--grey); padding: 12px 14px; }
.post-body th:first-child { border-radius: 10px 0 0 10px; }
.post-body th:last-child { border-radius: 0 10px 10px 0; }
.post-body td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-cta { margin: 32px 0 0; }
.post-body .post-button { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 22px; border-radius: 12px; background: var(--purple); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; transition: background .2s; }
.post-body .post-button:hover { background: var(--purple-dark); color: #fff; }

/* List: text on the left, the post's figure as a preview on the right. */
.blog-index { max-width: 920px; padding-top: 64px; padding-bottom: 96px; }
.blog-index h1 { margin: 0; color: var(--ink); font-size: clamp(32px, 4.6vw, 42px); font-weight: 750; letter-spacing: -.04em; }
.blog-intro { margin: 16px 0 40px; font-size: 18px; line-height: 1.75; color: var(--secondary); }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; padding: 32px 0; text-decoration: none; }
.post-card-text { min-width: 0; }
.post-card h2 { margin: 0 0 10px; color: var(--ink); font-size: 23px; line-height: 1.45; font-weight: 700; letter-spacing: -.03em; transition: color .2s; }
.post-card:hover h2 { color: var(--purple); }
.post-card p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #f4f4f8; border: 1px solid var(--line); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.02); }

.blog-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; line-height: 1.7; color: #737b88; }
.blog-footer .blog-wrap { max-width: 1120px; }
.blog-footer p { margin: 0; }
.blog-footer a { text-decoration: none; }

@media (max-width: 1100px) {
  .post-layout.has-aside { display: block; max-width: 760px; }
  .post-aside { display: none; }
  .has-aside .post-toc { display: block; }
}
@media (max-width: 720px) {
  .post-card { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .post-card-thumb { order: -1; }
}
@media (max-width: 640px) {
  .blog-wrap, .post-layout { padding-left: 16px; padding-right: 16px; }
  .blog-index { padding-top: 40px; }
  .blog-header nav { gap: 4px; }
  .blog-header nav a { padding: 0 10px; font-size: 14px; }
  .blog-header nav .blog-cta { padding: 0 14px; }
  .post { padding-top: 36px; }
  .post-body { margin-top: 28px; font-size: 17px; }
  .post-body > p:first-child { font-size: 18px; }
  .post-body h2 { margin-top: 56px; }
  .post-body figure { margin: 28px 0 32px; }
  .post-body figure img { border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
