/* 얼쑤 블로그: 흰 바탕, 먹색 글자, 연두 포인트. 글꼴은 Noto Sans KR(불러오지 못하면 시스템 고딕). */
:root {
  color-scheme: light;
  --ink: #27221e;
  --muted: #625f59;
  --soft: #68645d;
  --line: #e7e8e3;
  --lime: #adbe31;
  --lime-ink: #526011;
  --lime-tint: #f0f4d8;
  --paper: #fff;
  --code-bg: #f6f7f3;
  --focus: #64750b;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--sans); letter-spacing: -.25px; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: var(--ink); cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: #e5ec9f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 20; padding: 12px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { top: 10px; }
.back-to-top { --top-button-inset: clamp(20px, 2.3vw, 28px); position: fixed; z-index: 5; right: calc(var(--top-button-inset) + env(safe-area-inset-right)); inset-block-end: calc(var(--top-button-inset) + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c7c9bc; border-radius: 50%; background: var(--paper); color: var(--lime-ink); box-shadow: 0 3px 12px #27221e1a; }
.back-to-top:hover { border-color: var(--lime-ink); background: var(--lime-tint); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.kicker { font-size: 12px; letter-spacing: 1.8px; color: var(--muted); font-weight: 500; }
.button-primary { display: inline-flex; align-items: center; gap: 30px; min-height: 46px; padding: 11px 20px; border: 0; border-radius: 9px; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 600; }
.button-primary:hover { background: #bccb4b; }
.quiet { border-bottom: 1px solid #bcb9b0; padding: 6px 0; }
.quiet:hover { border-color: var(--ink); }
.empty { margin: 24px 0 0; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 16px; }
.empty p { margin: 0; }
.empty .button-primary { margin-top: 16px; }

/* Header */
.site-header { position: relative; height: 84px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 80px; height: 44px; object-fit: contain; }
.brand span { border-left: 1px solid #dadad3; padding-left: 18px; font-size: 12px; letter-spacing: 1.5px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; }
.site-nav a { position: relative; padding: 8px 0; }
.site-nav a:hover { color: var(--lime-ink); }
.site-nav a.active { font-weight: 600; color: var(--ink); }
.site-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lime); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer b { color: var(--ink); font-weight: 500; margin-right: 8px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { border-bottom: 1px solid #c9c6be; }
.footer-links a:hover { color: var(--ink); }

/* Meta and categories */
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.meta .category { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #f1f4df; color: var(--lime-ink); font-size: 12px; font-weight: 600; letter-spacing: .25px; line-height: 1.5; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #aaa; }

/* Thumbnails: uploaded image or a category drawing */
.thumb { position: relative; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 150px; height: 110px; border-radius: 10px; background: #f4f5ef; color: var(--ink); }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.thumb > img[src$="/2026-10-coco-1-0-0.webp"] { object-position: 19% 50%; }
.thumb > img[src$="/2026-10-coco-1-1-0.webp"],
.thumb > img[src$="/2026-10-coco-1-3-0-til-primary-checkout.webp"] { object-position: 94% 50%; }
.thumb > img[src$="/2026-11-coco-151-153-til-to-blog.webp"] { object-position: 12% 50%; }
.thumb > img[src$="/2026-11-coco-152-155-plan-build-handoff.webp"] { object-position: 99% 50%; }
.thumb > img.art-mascot { width: 72%; height: 72%; object-fit: contain; }
.thumb-default { background: #f3f6e9; }
.thumb-infra { background: #30332e; }
.art-branch { position: relative; width: 56px; height: 56px; }
.art-branch::before { content: ""; position: absolute; left: 8px; top: 8px; height: 40px; border-left: 2px solid #c3ce82; }
.art-branch::after { content: ""; position: absolute; left: 9px; top: 8px; width: 38px; height: 22px; border-bottom: 2px solid #c3ce82; border-right: 2px solid #c3ce82; border-radius: 0 0 12px 0; }
.art-branch i { position: absolute; z-index: 1; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #c3ce82; background: #30332e; }
.art-branch i:nth-child(1) { left: 4px; top: 2px; }
.art-branch i:nth-child(2) { left: 4px; top: 44px; }
.art-branch i:nth-child(3) { left: 42px; top: 24px; }
.art-code { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 12px/1.8 var(--mono); color: #805346; }
.art-code mark { padding: 0 6px; background: var(--lime); color: var(--ink); }
.art-screen { display: grid; gap: 5px; width: 44px; padding: 8px 6px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.art-screen i { display: block; height: 6px; border-radius: 2px; background: #dfe3cf; }
.art-screen i:first-child { height: 12px; background: var(--lime); }
.art-wave { display: flex; align-items: center; gap: 5px; height: 50px; }
.art-wave i { display: block; width: 5px; border-radius: 3px; background: #9aa37a; }
.art-wave i:nth-child(1) { height: 14px; }
.art-wave i:nth-child(2) { height: 30px; }
.art-wave i:nth-child(3) { height: 46px; background: var(--lime); }
.art-wave i:nth-child(4) { height: 24px; }
.art-wave i:nth-child(5) { height: 38px; }
.art-wave i:nth-child(6) { height: 18px; }
.art-wave i:nth-child(7) { height: 10px; }
.art-notes { display: grid; grid-template-columns: repeat(3, 25px); grid-template-rows: repeat(2, 30px); font-size: 16px; }
.art-notes span { display: flex; align-items: center; justify-content: center; margin: -1px 0 0 -1px; border: 1px solid #babfaf; }
.art-notes span:nth-child(2) { background: var(--lime); }
.thumb-large { width: 100%; height: 100%; border-radius: 17px; }
.thumb-large .art-branch, .thumb-large .art-code, .thumb-large .art-screen, .thumb-large .art-wave, .thumb-large .art-notes { transform: scale(1.9); }
.thumb-large > img.art-mascot { width: auto; height: 78%; }

/* Blog home: spotlight */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 380px; padding: 48px 0 54px; }
.spot-slides { display: grid; }
.spot-copy { grid-area: 1 / 1; }
.spot-copy.is-hidden { visibility: hidden; }
.spot-copy .meta { font-size: 14px; gap: 12px; }
.spot-copy .category { padding: 4px 9px; border-radius: 5px; background: var(--lime-tint); font-size: 13px; }
.spot-copy h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 15px 0 17px; font-size: 36px; font-weight: 700; line-height: 1.4; letter-spacing: -1.1px; }
.spot-copy h2 a:hover { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.spot-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-width: 475px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.spot-controls { display: flex; align-items: center; gap: 9px; margin-top: 25px; }
.arrow { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f5f6f3; font-size: 17px; line-height: 1; }
.arrow:hover { background: var(--lime); }
.spot-controls small { margin-left: 10px; font-size: 13px; color: var(--muted); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.spot-visual { height: 275px; border-radius: 17px; overflow: hidden; }
.spot-visual > a { display: block; height: 100%; }

/* Blog home: sidebar (left) + all posts (right) */
@media (prefers-reduced-motion: no-preference) {
  html:has([data-journal]) { scroll-snap-type: y proximity; scroll-padding-top: 24px; }
  #page-top, [data-journal] .article-header, [data-journal] .post-item { scroll-snap-align: start; }
  .journal-pagination { scroll-snap-align: end; }
}
.journal-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 64px; padding: 25px 0 65px; }
.journal-main { grid-column: 2; grid-row: 1; min-width: 0; }
.journal-sidebar { grid-column: 1; grid-row: 1; }
.article-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; min-height: 48px; padding-bottom: 8px; }
.journal-heading { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.article-header h2 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.8px; }
.filter-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.journal-search { display: flex; flex: 1 1 16rem; gap: 8px; max-width: 22rem; margin-inline-start: auto; }
.journal-search input, .journal-search .button-primary { min-height: 40px; padding-block: 5px; }
.journal-search input { flex: 1 1 auto; min-width: 0; padding-inline: 12px; border: 0; border-radius: 7px; background: var(--code-bg); color: var(--ink); font: inherit; font-size: 16px; }
.journal-search .button-primary { padding-inline: 16px; background: var(--lime-tint); color: var(--lime-ink); white-space: nowrap; }
.journal-search .button-primary:hover { background: var(--lime); color: var(--ink); }
.journal-search input:focus-visible, .journal-search button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.post-item { border-bottom: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; padding: 26px 0 13px; }
.post-copy { min-width: 0; }
.post-copy > .post-meta { justify-content: flex-start; margin-top: 6px; color: #777671; }
.post-item h3 { margin: 11px 0 9px; font-size: 23px; font-weight: 600; line-height: 1.5; letter-spacing: -.65px; }
.post-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.side-block { margin-bottom: 26px; padding: 22px 18px; border-radius: 12px; background: #f7f8f5; }
.side-block h2 { margin: 0 9px 17px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.journal-controls { display: flex; flex: 0 0 100%; align-items: flex-end; gap: 8px; min-width: 0; }
.filters { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filters button { max-width: 100%; min-width: 40px; min-height: 44px; padding: 6px 9px; border: 1px solid #c7c9bc; border-radius: 7px; background: var(--paper); font-size: 13px; line-height: 1.25; }
.filters button:hover { background: var(--lime-tint); }
.filters button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); font-weight: 700; }
.journal-select { position: relative; display: inline-grid; align-items: center; color: var(--muted); }
.journal-select::after { content: ""; position: absolute; inset-inline-end: 12px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); pointer-events: none; }
.journal-select select { appearance: none; min-height: 40px; padding: 5px 28px 5px 12px; border: 0; border-radius: 7px; background: var(--code-bg); color: inherit; font: inherit; font-size: 16px; cursor: pointer; }
.journal-select select:hover { background: var(--lime-tint); }
.journal-select select:focus-visible, .journal-pagination button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.journal-page-size { margin-inline-start: auto; }
.journal-pagination, .journal-page-numbers { display: flex; justify-content: center; align-items: center; gap: 6px; }
.journal-pagination { margin-top: 24px; color: var(--muted); font-size: 16px; }
.journal-pagination button { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; line-height: 1; }
.journal-pagination > button { color: #778717; font-size: 23px; }
.journal-pagination button:hover:not(:disabled) { text-decoration: underline; }
.journal-pagination > button:disabled { opacity: .45; cursor: default; }
.journal-page-numbers button[aria-current="page"] { position: relative; color: var(--lime-ink); font-size: 20px; font-weight: 700; cursor: default; }
.journal-page-numbers button[aria-current="page"]::before { content: ""; position: absolute; top: 3px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); transform: translateX(-50%); }
.noscript-note { font-size: 14px; }
.side-block.reading { padding: 22px; background: #fff; border: 1px solid var(--line); }
.side-block.reading--latest { background: var(--code-bg); border: 0; }
.article > .reading { margin: 40px 0 0; }
.reading h2 { margin-left: 0; }
.reading ol { list-style: none; margin: 0; padding: 0; }
.reading li + li { border-top: 1px solid var(--line); }
.reading a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 14px 0 8px; font-size: 15px; line-height: 1.65; }
.reading--latest a { padding-block: 16px 12px; }
.reading a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.reading b { min-width: 20px; padding-top: 1px; font-size: 13px; color: #627010; }
.reading strong { font-weight: 500; line-height: 1.7; }
.reading-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.reading-meta small { font-size: 13px; color: var(--muted); }
.reading-meta .post-meta { margin-inline-start: auto; }
.sidebar-note { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 4px; padding: 18px 2px; border-top: 1px solid var(--line); }
.sidebar-note p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.65; }
.sidebar-note img { width: 100%; height: auto; }

/* Lists: /posts/, categories, tags */
.page-intro { padding: 48px 0 8px; }
.page-intro h1 { margin: 6px 0 8px; font-size: 34px; font-weight: 700; line-height: 1.4; letter-spacing: -1px; }
.page-intro > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 16px; }
.page-intro .kicker { margin: 0; }
.archive-page { padding-bottom: 65px; }
.archive-list { max-width: 820px; padding-top: 12px; }
.term-grid { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.term-card { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.term-card:hover { border-color: var(--lime); background: #f7f9ec; }
.term-card span:last-child { font-size: 13px; color: var(--muted); }

/* Article */
.article-shell { padding-top: 32px; padding-bottom: 72px; }
.back-link { display: inline-flex; gap: 8px; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.reader-grid { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 64px; }
.article { min-width: 0; }
.article-heading { margin-bottom: 36px; padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.article-heading .meta { gap: 6px; }
.article-heading .category:hover { background: var(--lime); color: var(--ink); }
.article-heading h1 { margin: 14px 0 12px; font-size: 36px; font-weight: 700; line-height: 1.4; letter-spacing: -1.1px; }
.article-deck { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.article-heading.post-heading { padding-bottom: 8px; }
.post-heading .article-deck { margin-bottom: 8px; }
.post-heading .post-meta { font-size: 14px; }
.article-actions { display: flex; justify-content: flex-end; margin-top: 24px; font-size: 14px; }
.article-actions .quiet { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.post-editor { display: grid; gap: 8px; }
.post-editor input, .post-editor textarea { width: 100%; padding: 10px 12px; border: 1px solid #bcb9b0; border-radius: 6px; color: var(--ink); background: var(--paper); font: inherit; }
.post-editor textarea { font-family: var(--mono); resize: vertical; }
.post-editor input:focus-visible, .post-editor textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.post-editor-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.post-editor-delete { min-height: 44px; padding: 7px 14px; border: 1px solid #d9b9b2; border-radius: 9px; background: var(--paper); color: #8b312b; font-size: 14px; }
.post-editor-delete:hover:not(:disabled) { background: #faf0ee; }
.post-editor-actions button:disabled { opacity: .6; cursor: default; }
.post-delete-dialog { width: min(420px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.post-delete-dialog::backdrop { background: #27221e66; }
.post-delete-dialog h2 { margin: 0; font-size: 21px; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 0 8px; font-size: 13px; color: #77756f; }
.post-meta time { white-space: nowrap; }
.article-body { font-size: 17px; line-height: 1.95; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 2.4em 0 .9em; font-size: 25px; font-weight: 700; line-height: 1.45; letter-spacing: -.6px; }
.article-body h3 { margin: 2em 0 .8em; font-size: 20px; font-weight: 600; line-height: 1.5; }
.article-body p, .article-body ul, .article-body ol { margin: 1.2em 0; }
.article-body li + li { margin-top: .4em; }
.article-body a { color: var(--lime-ink); text-decoration: underline; text-underline-offset: 4px; }
.article-body strong { font-weight: 700; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 10px; }
.article-body pre { max-width: 100%; margin: 28px 0; padding: 20px; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.7; word-break: normal; overflow-wrap: normal; }
.article-body code { padding: 2px 6px; border-radius: 4px; background: var(--code-bg); font-family: var(--mono); font-size: .86em; word-break: break-all; }
.article-body pre code { padding: 0; background: none; font-size: inherit; word-break: normal; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { background: var(--code-bg); font-weight: 600; }
.article-body blockquote { margin: 28px 0; padding: 4px 22px; border-left: 4px solid var(--lime); background: #fafbf5; color: var(--soft); }
.article-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.article-tags a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: var(--muted); }
.article-tags a:hover { border-color: var(--lime); color: var(--ink); }
.adjacent-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.adjacent-posts a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.adjacent-posts a:hover { border-color: var(--lime); }
.adjacent-posts .next { grid-column: 2; text-align: right; }
.adjacent-posts span { display: block; font-size: 13px; color: var(--muted); }
.comments { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.adjacent-posts strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.6; }
.article-sidebar { display: none; min-width: 0; align-self: start; position: sticky; top: 32px; margin-top: 36px; }
.article-cover { margin-bottom: 28px; }
.article-cover .thumb { width: 100%; height: auto; min-height: 0; aspect-ratio: 1200 / 630; }
.article-cover .thumb > img:not(.art-mascot) { display: block; width: 100%; height: auto; object-fit: contain; }
.article-toc { padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; }
.article-toc h2 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.article-toc ul { list-style: none; margin: 0; padding: 0; }
.article-toc ul ul { padding-left: 12px; }
.article-toc li { margin: 8px 0; line-height: 1.6; }
.article-toc a { color: var(--muted); }
.article-toc a:hover { color: var(--ink); }
.article-toc-mobile { margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.article-toc-mobile summary { min-height: 44px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.article-toc-mobile summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-toc-mobile nav { padding: 0 14px 10px; }
.article-toc-mobile a { display: block; min-height: 24px; padding-block: 3px; }
.prose-page { max-width: 720px; margin: 0 auto; }
.chroma .c, .chroma .c1, .chroma .cm { color: #7a776f; font-style: italic; }
.chroma .k, .chroma .kd, .chroma .kn, .chroma .nt, .chroma .ow { color: #4d5a10; font-weight: 600; }
.chroma .s, .chroma .s1, .chroma .s2, .chroma .na { color: #805346; }
.chroma .m, .chroma .mi, .chroma .mf, .chroma .kc { color: #437e80; }
@media (min-width: 1180px) {
  .reader-grid:has(.article-sidebar) { grid-template-columns: minmax(0, 720px) 200px; }
  .article-sidebar { display: block; }
  .article-cover-mobile, .article-toc-mobile { display: none; }
}

/* Project */
.project-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: center; max-width: 1100px; padding-top: 32px; padding-bottom: 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.project-copy h1 { margin: 18px 0; font-size: clamp(32px, 3.2vw, 43px); font-weight: 700; line-height: 1.45; letter-spacing: -1.7px; }
.under { position: relative; z-index: 0; white-space: nowrap; }
.under::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; z-index: -1; height: 10px; background: var(--lime); opacity: .8; }
.project-copy > p { max-width: 390px; margin: 20px 0 23px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.scene { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 565px; padding-right: 22px; }
.scene-line { position: absolute; left: 0; right: 0; bottom: 18px; z-index: -1; height: 1px; background: var(--line); }
.scene .tiger { position: absolute; left: -4px; bottom: 42px; z-index: 2; width: 184px; height: 245px; object-fit: contain; }
.jeonggan { position: absolute; left: 25px; top: 28px; display: flex; gap: 6px; font-size: 20px; line-height: 1; color: var(--ink); }
.jeonggan-column { display: flex; flex-direction: column; width: 48px; overflow: hidden; border: 1px solid #e3dfd6; border-radius: 5px; background: #fff; box-shadow: 0 2px 5px #27221e08; }
.jeonggan-column small { display: grid; place-items: center; height: 21px; border-bottom: 1px solid #a49c8b; font-size: 9px; font-weight: 500; color: #6b665c; }
.jeonggan-column span { display: grid; place-items: center; height: 39px; font-weight: 500; }
.jeonggan-column span + span { border-top: 1px solid #e5e1d8; }
.jeonggan-column .accent { background: #f0f3d8; color: #46511d; box-shadow: inset 0 0 0 1px var(--lime); }
.jeonggan-column .beat { font-size: 17px; font-weight: 400; color: #b8b1a3; }
.jeonggan-column .rest { font-size: 16px; color: #a49c8b; }
.phone { --screen-w: 236px; --screen-scale: .6051282051; position: relative; flex: none; width: calc(var(--screen-w) + 18px); padding: 6px; border: 3px solid #191c1f; border-radius: 27px; background: #292d30; transform: rotate(5deg); transform-origin: 50% 55%; box-shadow: 10px 16px 0 #f2f3ef, 18px 24px 30px -22px #27221e40; isolation: isolate; }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; z-index: 3; width: 6px; height: 6px; border-radius: 50%; background: #121416; box-shadow: 0 0 0 1px #343b3a; transform: translateX(-50%); }
.phone::after { content: ""; position: absolute; right: -5px; top: 84px; width: 3px; height: 43px; border-radius: 0 2px 2px 0; background: #30383a; }
.phone-screen { position: relative; width: var(--screen-w); height: calc(var(--screen-w) * 844 / 390); overflow: hidden; border-radius: 19px; background: #f9faf9; }
.phone-screen iframe { position: absolute; left: 0; top: 0; display: block; width: 390px; height: 844px; max-width: none; border: 0; transform: scale(var(--screen-scale)); transform-origin: top left; pointer-events: none; }
.project-details { max-width: 1036px; margin: 0 auto; padding: 30px 24px 56px; border-top: 1px solid var(--line); }
.project-details h2 { margin: 0 0 30px; font-size: 30px; font-weight: 700; line-height: 1.5; }
.project-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 27px; list-style: none; margin: 0; padding: 0; }
.project-steps .num { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 34px; padding: 0 9px; border: 1px solid #e0e5c4; border-radius: 7px; background: #f5f7e9; color: #58651c; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.project-steps b { display: block; margin: 13px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.65; }
.project-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.section-note { margin: 28px 0 0; font-size: 13px; color: var(--muted); }

/* Team: intro spans the same width as the dividers below */
.team-page { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.edo-intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 0 42px; }
.edo-intro > div { flex: 0 1 640px; min-width: 0; }
.edo-together .kicker { color: #6e791e; }
.edo-intro h1 { margin: 17px 0; font-size: clamp(30px, 3.1vw, 42px); font-weight: 700; line-height: 1.5; letter-spacing: -1.6px; }
.edo-intro p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.9; }
.edo-intro img { position: relative; z-index: 1; flex: none; width: 180px; height: 230px; object-fit: contain; object-position: right center; filter: drop-shadow(0 14px 0 #f1f4da); }
.edo-members { padding: 42px 0; border-top: 1px solid var(--line); }
.edo-section-heading h2, .edo-together h2 { margin: 9px 0; font-size: 27px; font-weight: 700; line-height: 1.5; letter-spacing: -.8px; }
.edo-section-heading h2 { display: inline-block; background: linear-gradient(transparent 73%, #e8efb8 73%, #e8efb8 94%, transparent 94%); }
.edo-section-heading > p { margin: 8px 0 0; color: var(--soft); font-size: 16px; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.member { --member-accent: #566a37; --member-tint: #f0f4df; position: relative; overflow: hidden; padding: 25px 20px 27px; border: 1px solid #e9e8e2; border-top: 4px solid var(--member-accent); border-radius: 4px 4px 18px 4px; background: #fff; }
.member::before { content: ""; position: absolute; right: -17px; top: 45px; width: 62px; height: 62px; border: 13px solid var(--member-tint); border-radius: 50%; pointer-events: none; }
.member-role { position: relative; z-index: 1; display: inline-block; padding: 5px 8px; border-radius: 5px; background: var(--member-tint); color: var(--member-accent); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.member h3 { margin: 17px 0 15px; font-size: 23px; font-weight: 700; }
.member strong { position: relative; z-index: 1; display: block; font-size: 16px; font-weight: 600; line-height: 1.75; text-wrap: balance; }
.member p { position: relative; z-index: 1; margin: 10px 0 0; color: var(--soft); font-size: 15px; line-height: 1.95; letter-spacing: -.15px; text-wrap: pretty; }
.edo-together { margin: 12px 0 54px; padding: 26px 30px 30px; border-left: 4px solid var(--lime); border-radius: 0 12px 12px 0; background: #fafbf5; }
.edo-together h2 { font-size: 25px; }
.edo-together p { max-width: 780px; margin: 12px 0 0; color: var(--soft); font-size: 16px; line-height: 1.95; text-wrap: pretty; }
.edo-together-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.edo-together-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }

/* ≤1050px */
@media (max-width: 1050px) {
  .journal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 38px; }
  .spotlight { gap: 38px; }
  .spot-copy h2 { font-size: 32px; }
  .spot-visual { height: 260px; }
  .post-item h3 { font-size: 21px; }
  .post-link { column-gap: 22px; }
  .thumb:not(.thumb-large) { width: 116px; height: 104px; }
  .side-block h2 { font-size: 17px; }
  .reading a { font-size: 14px; }
  .sidebar-note { grid-template-columns: minmax(0, 1fr) 90px; }
  .sidebar-note p { font-size: 16px; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .project-hero { gap: 18px; padding-left: 28px; padding-right: 28px; }
  .project-copy h1 { font-size: 32px; }
  .scene { padding-right: 12px; }
  .scene .tiger { left: -14px; width: 150px; height: 210px; }
  .jeonggan { left: 0; top: 25px; }
  .jeonggan-column { width: 39px; }
  .jeonggan-column span { height: 35px; }
  .phone { --screen-w: 200px; --screen-scale: .5128205128; }
}
@media (max-width: 850px) {
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 850px) and (min-width: 601px) {
  .edo-intro { gap: 26px; }
  .edo-intro img { width: 140px; height: 190px; }
  .edo-intro h1 { font-size: 32px; }
}

@media (min-width: 751px) and (max-width: 1050px) {
  .filters { column-gap: 4px; }
  .filters button { padding-inline: 6px; }
}

/* ≤750px: 글 목록만 표시 */
@media (max-width: 750px) {
  .journal-layout { grid-template-columns: minmax(0, 1fr); }
  .journal-sidebar { display: none; }
  .journal-main { grid-column: 1; }
  .journal-heading { flex-basis: 100%; }
  .journal-search { flex-basis: 100%; max-width: none; margin-inline-start: 0; }
  .journal-search input, .journal-search .button-primary, .journal-page-size select { min-height: 44px; }
  .journal-pagination, .journal-page-numbers { gap: 2px; }
  .journal-pagination button { min-width: 34px; }
  .spotlight { gap: 24px; }
  .spot-copy h2 { font-size: 30px; }
  .spot-copy p { font-size: 15px; }
  .spot-visual { height: 230px; }
  .post-item h3 { font-size: 22px; }
  .project-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .project-hero { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 12px; }
  .project-copy h1 { font-size: 34px; }
  .scene { width: 100%; max-width: 420px; height: 535px; margin: 16px auto 0; padding-right: 22px; }
  .scene .tiger { left: 0; width: 154px; height: 210px; }
  .jeonggan { left: 16px; top: 20px; gap: 5px; font-size: 18px; }
  .jeonggan-column { width: 39px; }
  .jeonggan-column span { height: 35px; }
  .phone { --screen-w: 210px; --screen-scale: .5384615385; }
}

/* ≤600px: mobile header and single column */
@media (max-width: 600px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .site-header { height: 74px; }
  .brand { gap: 12px; }
  .brand img { width: 67px; height: 38px; }
  .brand span { padding-left: 12px; font-size: 11px; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 73px; left: 0; right: 0; z-index: 10; justify-content: space-between; gap: 22px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px -16px #27221e40; }
  .site-nav.open { display: flex; }
  .spotlight { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 25px; padding: 31px 0 32px; }
  .spot-copy .meta { font-size: 13px; }
  .spot-copy .category { font-size: 12px; }
  .spot-copy h2 { margin: 14px 0; font-size: 30px; line-height: 1.45; letter-spacing: -.8px; }
  .spot-controls { margin-top: 22px; }
  .spot-controls small { font-size: 12px; }
  .spot-visual { height: 210px; border-radius: 12px; }
  .thumb-large { border-radius: 12px; }
  .thumb-large .art-branch, .thumb-large .art-code, .thumb-large .art-screen, .thumb-large .art-wave, .thumb-large .art-notes { transform: scale(1.5); }
  .journal-layout { padding: 12px 0 35px; }
  .article-header { padding: 4px 0 9px; }
  .article-header h2 { font-size: 25px; }
  .post-link { column-gap: 16px; padding-top: 22px; }
  .post-item h3 { margin: 10px 0 8px; font-size: 20px; letter-spacing: -.5px; }
  .post-item p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.8; }
  .post-item .meta { gap: 6px; font-size: 12px; }
  .post-copy > .post-meta { gap: 0 6px; font-size: 12px; }
  .post-item .category { padding: 2px 5px; font-size: 11px; letter-spacing: 0; }
  .thumb:not(.thumb-large) { width: 80px; height: 94px; border-radius: 9px; }
  .thumb:not(.thumb-large) .art-branch, .thumb:not(.thumb-large) .art-code, .thumb:not(.thumb-large) .art-wave, .thumb:not(.thumb-large) .art-notes { transform: scale(.72); }
  .page-intro { padding-top: 32px; }
  .page-intro h1 { font-size: 28px; }
  .article-shell { padding-top: 22px; }
  .article-heading { margin-bottom: 28px; padding: 24px 0; }
  .article-heading h1 { font-size: 29px; letter-spacing: -.8px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 22px; }
  .article-body pre { padding: 16px; font-size: 13px; }
  .adjacent-posts { grid-template-columns: 1fr; }
  .adjacent-posts .next { grid-column: 1; }
  .actions { gap: 14px; font-size: 14px; }
  .button-primary { gap: 18px; padding: 11px 16px; }
  .project-steps { grid-template-columns: 1fr; gap: 17px; }
  .project-details h2 { font-size: 26px; }
  .team-page { padding: 0 24px; }
  .edo-intro { align-items: flex-start; gap: 10px; padding: 118px 0 30px; }
  .edo-intro > div { position: relative; z-index: 1; flex-basis: auto; }
  .edo-intro h1 { font-size: 29px; }
  .edo-intro p { font-size: 16px; }
  .edo-intro img { position: absolute; right: 0; top: 26px; width: 76px; height: 100px; opacity: .9; }
  .edo-members { padding: 30px 0 18px; }
  .member-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 25px; }
  .member { padding: 23px; }
  .member h3 { font-size: 22px; }
  .edo-section-heading h2 { font-size: 24px; }
  .edo-together { margin-bottom: 35px; padding: 24px 20px; }
  .edo-together h2 { font-size: 23px; }
  .footer-inner { flex-direction: column; gap: 9px; }
  .site-footer { font-size: 12px; }
}
@media (max-width: 380px) {
  .journal-pagination button { min-width: 28px; }
  .scene { padding-right: 10px; }
  .scene .tiger { left: -8px; width: 125px; height: 175px; }
  .jeonggan { left: -3px; }
  .jeonggan-column { width: 33px; }
  .jeonggan-column span { height: 32px; }
  .phone { --screen-w: 190px; --screen-scale: .4871794872; }
}
@media (max-width: 360px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand { gap: 8px; }
  .brand span { font-size: 9px; letter-spacing: 1px; }
  .site-nav { gap: 14px; font-size: 15px; }
  .spot-copy h2 { font-size: 27px; }
  .post-item h3 { font-size: 19px; }
  .post-link { column-gap: 12px; }
  .thumb:not(.thumb-large) { width: 66px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Article body: numbered section headings, callouts, step lists, tables */
.article-body { counter-reset: section; }
.article-body h2 { counter-increment: section; position: relative; padding-top: 1.6em; border-top: 1px solid var(--line); }
.article-body h2::before { content: counter(section, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; margin: 0 12px 0 0; padding: 0 8px; border-radius: 6px; background: #f0f4d8; color: #526011; font-size: 13px; font-weight: 700; letter-spacing: .5px; vertical-align: 4px; }
.article-body blockquote { position: relative; margin: 30px 0; padding: 18px 22px 18px 24px; border-left: 4px solid var(--lime); border-radius: 0 12px 12px 0; background: #f7f9ee; color: var(--ink); }
.article-body blockquote p { margin: .3em 0; }
.article-body ol { counter-reset: step; list-style: none; padding: 0; }
.article-body ol > li { counter-increment: step; position: relative; margin: 0; padding: 14px 16px 14px 58px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.article-body ol > li + li { margin-top: 10px; }
.article-body ol > li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 700; }
.article-body table { display: table; width: 100%; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.article-body th { background: #f0f4d8; color: #3d4710; }
.article-body tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .article-body h2::before { min-width: 30px; height: 22px; margin-right: 8px; font-size: 12px; }
  .article-body ol > li { padding-left: 52px; }
  .article-body table { display: block; overflow-x: auto; }
}
