/* 디자인시스템 v0.2 (2026-10-29 확정, 운영 폴더 Alchive_디자인시스템 14절). styles.css 뒤에 불러 값을 덮는다. */
:root{--paper:#FFFFFF;--ink:#2C2C2C;--muted:#5F5852;--wood:#4A3A36;--line:#E3DFD8;--green:#1C452E;--tile:#F3F0EA;
--serif:'Gowun Batang','Batang',serif;--sans:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;--head:var(--sans)}
body{font-family:var(--sans)}
/* 제목·소제목 = 고딕 */
.intro-copy h1,.featured-copy h1,.prose h2,.story-row h3,.next-story h2,.section-heading h2,.timeline h3,.ppm-figure h3,.peat-heading h1,dialog label,.bundle h2,.bundle h3,.series-head h1,.format-head h1,.series-nav h2{font-family:var(--head);font-weight:700;letter-spacing:-.6px}
.prose h2{color:var(--ink)}
/* 본문 = 고운바탕, 줄 간격 1.85. 전환 버튼을 누르면 고딕 */
.prose{line-height:1.85}.serif-body .prose>p,.serif-body .prose li{font-family:var(--serif);line-height:1.85}
body.sans-body .prose>p,body.sans-body .prose li{font-family:var(--sans);line-height:1.85}
/* 사진·도식 둘레 따뜻한 타일 */
.cover-photo{background:var(--tile);padding:10px}.featured-image{background:var(--tile);padding:10px}
.prose figure.archive-photo,.prose figure.barley-photo,.prose figure:not(.timeline):not(.ppm-figure){background:var(--tile);padding:12px}
.prose .timeline,.prose .ppm-figure{background:var(--tile)}
.story-row>img,.story-row>.thumb{background:var(--tile)}
/* 캡션 13px */
.prose figcaption{font-size:13px}.cover-photo figcaption{font-size:12px}
/* 꼬리표 줄 */
.tags{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;font-size:12px}
.tag-format{background:var(--ink);color:#fff;padding:2px 7px;border-radius:2px;font-weight:500}
.tag-drink{color:var(--green)}
.tag-series{color:var(--wood);border:1px solid var(--line);padding:1px 7px;border-radius:2px}
.tag-draft{background:#b05;color:#fff;padding:2px 6px;border-radius:2px}
a.tag-format:hover,a.tag-series:hover{text-decoration:underline}
.article-meta{font-size:12px;color:var(--muted)}
/* 글꼴 전환 버튼 */
.font-toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:8px 0}
.font-toggle[aria-pressed=true]{color:var(--green)}
/* 홈 묶음 */
.bundle{max-width:1120px;margin:56px auto 0;background:var(--tile);padding:28px 32px}
.bundle .kicker{font-size:12px;color:var(--wood)}.bundle h2{font-size:24px;margin:4px 0 6px}.bundle h2 a:hover{text-decoration:underline}
.bundle .desc{font-size:14px;color:var(--muted);margin:0 0 20px;line-height:1.7}
.bundle ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.bundle li a{display:block}.bundle .thumb{aspect-ratio:3/2;background:#e8e2d6;display:flex;align-items:center;justify-content:center;color:var(--wood);font:600 15px var(--head);margin-bottom:10px;overflow:hidden}
.bundle .thumb img{width:100%;height:100%;object-fit:cover}
.bundle .no{font:700 12px var(--head);color:var(--green);margin-right:6px}.bundle h3{font-size:16px;line-height:1.5;margin:4px 0 0}
.bundle li a:hover h3{text-decoration:underline}
/* 글 끝: 연재 이동 */
.series-nav{margin:56px 0 0;border-top:1px solid var(--line);padding-top:24px}
.series-nav .kicker{font-size:12px;color:var(--muted)}.series-nav h2{font-size:18px;margin:4px 0 14px}
.series-nav ol{list-style:none;margin:0;padding:0}.series-nav li{padding:8px 0;border-bottom:1px solid var(--line);font-size:15px;display:flex;gap:10px}
.series-nav li .no{font:700 12px var(--head);color:var(--green);width:22px;flex:none;padding-top:3px}
.series-nav li[aria-current] a{color:var(--muted)}.series-nav li a:hover{text-decoration:underline}
.shelf-end{margin-top:56px}.shelf-end .story-row{grid-template-columns:160px 1fr;padding:20px 0}.shelf-end .story-row>img,.shelf-end .story-row>.thumb{height:107px}.shelf-end h3{font-size:18px}
.thumb{display:flex;align-items:center;justify-content:center;color:var(--wood);font:600 14px var(--head);background:var(--tile)}
.story-row>.thumb{height:160px}
/* 형식·연재 페이지 머리 */
.format-head,.series-head{max-width:880px;margin:56px auto 8px}.format-head h1,.series-head h1{font-size:34px;margin:6px 0 8px}
.format-head p,.series-head p{color:var(--muted);font-size:15px;line-height:1.7;margin:0}
@media(max-width:860px){.bundle{margin:44px 36px 0}.bundle ol{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.bundle{margin:36px 0 0;padding:22px 20px}.bundle ol{grid-template-columns:1fr}.bundle h2{font-size:21px}
.story-row>.thumb{height:112px}.shelf-end .story-row{grid-template-columns:104px 1fr}.shelf-end .story-row>img,.shelf-end .story-row>.thumb{height:76px}.format-head,.series-head{margin:36px 20px 0}.format-head h1,.series-head h1{font-size:28px}}

/* ===== site-build 4단계 개선 (2026-10-29): ①작은 글씨 ③꼬리표·색 ④이미지 규칙 ⑤움직임 ===== */
/* ① 작은 글씨: 화면 글씨 최소 13px(휴대폰 12px). 위계: 목차=목재색, 도구=회색, 날짜=본문색 */
.article-meta,.contents nav a,.sources-jump,.font-toggle,.tool-button,.save-button,.prose figcaption,.cover-photo figcaption,
.timeline figcaption>span,.timeline .evidence,.original summary,.original p,.source-section summary span:nth-child(2),.source-section li p,
.next-label,.site-footer p,.site-footer>a:last-child,.topic-filters button,.story-meta,.tags,.mobile-contents summary,.mobile-contents nav a,
.ppm-figure figcaption>span,.ppm-table thead th,.ppm-table small,.ppm-figure .figure-note,.citation-note-label,.reader-help input,.bundle .kicker,.series-nav .kicker{font-size:13px}
.contents>p{font-size:13px;font-weight:600;color:var(--ink)}
.contents nav a{color:var(--wood);line-height:1.6}
.article-meta{color:var(--ink)}
.prose sup.cite{font-size:11px}
.story-row p{font-size:15px}
@media(max-width:600px){
.article-meta,.contents nav a,.font-toggle,.tool-button,.save-button,.prose figcaption,.cover-photo figcaption,.timeline .evidence,.timeline figcaption>p,.timeline li p,
.source-section summary span:nth-child(2),.source-section li p,.next-label,.next-story p,.site-footer p,.site-footer>a:last-child,.topic-filters button,.story-meta,.tags,
.ppm-figure figcaption>span,.ppm-figure figcaption>p,.ppm-table thead th,.ppm-table tbody th,.ppm-table small,.ppm-figure .figure-note,.home-greeting,.story-row p,.header-inner nav,.mobile-contents summary,.mobile-contents nav a{font-size:12px}
.prose sup.cite{font-size:10px}.header-inner nav a{font-size:13px}}
/* ③ 꼬리표·포인트색: 검은 칩 → 진녹 글자+얇은 테두리. 진녹은 링크·연재 번호·눌림·진행 막대에 일관되게 */
.tag-format{background:transparent;color:var(--green);border:1px solid var(--green);font-weight:600;padding:1px 7px}
.tag-drink{color:var(--muted)}
.tag-series{color:var(--green);border-color:#c9d3c6}
.prose a:not(.cite a){color:var(--green);text-decoration:underline;text-decoration-color:#9bb09a;text-underline-offset:3px}
.contents nav a:hover,.contents nav a.is-active{color:var(--green);border-left-color:var(--green)}
.reading-progress span{background:var(--green)}
.read-link,.back-home{color:var(--green);border-bottom-color:#9bb09a}
.cite a{color:var(--green)}
/* ④ 이미지 규칙: 목록 사진 3:2 통일, 판화·도식(class contain)은 잘리지 않게 타일 안에 */
.story-row>img,.story-row>.thumb{height:auto;aspect-ratio:3/2;object-fit:cover;width:100%}
.story-row>img.contain{object-fit:contain;padding:8px}
.bundle .thumb img.contain{object-fit:contain;padding:8px}
.thumb{font:600 15px var(--head);color:var(--wood);letter-spacing:-.2px}
/* ⑤ 절제된 움직임: 150ms 색·밑줄 전환, 사진 살짝 밝아짐. 움직임 줄이기 설정이면 끔 */
a,button,.story-row img,.bundle .thumb img,.featured-image img{transition:color .15s ease,border-color .15s ease,background-color .15s ease,filter .15s ease,text-decoration-color .15s ease}
.story-row h3,.featured-copy h1,.bundle h3,.next-story h2{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:6px;transition:text-decoration-color .15s ease}
.story-row:hover h3,.story-row:focus-visible h3,.featured-story:hover h1,.featured-story:focus-visible h1,.bundle li a:hover h3,.bundle li a:focus-visible h3{text-decoration-color:currentColor}
.story-row:hover img,.featured-story:hover img,.bundle li a:hover img{filter:brightness(1.05)}
.tool-button:hover,.font-toggle:hover{color:var(--green)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* 휴대폰: 판화 여백을 줄이고, 연재 묶음은 작은 사진+제목 줄로 */
@media(max-width:600px){.story-row>img.contain,.bundle .thumb img.contain{padding:3px}
.bundle ol{gap:0}.bundle li a{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #e3dccd}
.bundle li:first-child a{border-top:0}.bundle .thumb{margin:0;font-size:12px}.bundle h3{font-size:15px;margin:2px 0 0}.bundle li a>span,.bundle li a>h3{grid-column:2}.bundle li a .thumb{grid-row:1 / span 3}}
@media(max-width:600px){.bundle li a>.tag-draft,.bundle li a>.no{justify-self:start}}
/* GPT 리뷰 반영(10-29): 연재 번호 13px, 글 끝 목록 사진도 3:2(고정 높이 규칙 해제) */
.bundle .no,.series-nav li .no{font-size:13px}
.shelf-end .story-row>img,.shelf-end .story-row>.thumb,.story-row>img,.story-row>.thumb{height:auto;aspect-ratio:3/2}
@media(max-width:600px){.shelf-end .story-row>img,.shelf-end .story-row>.thumb,.story-row>img,.story-row>.thumb{height:auto;aspect-ratio:3/2}.bundle .no,.series-nav li .no{font-size:12px}}
/* 홈 소개 문장(10-29 사용자 확정) */
.home-intro{font:400 19px/1.7 var(--serif);color:var(--ink);margin:36px 0 0;letter-spacing:-.2px}
.home-intro+.home-opening{padding-top:24px}
@media(max-width:600px){.home-intro{font-size:17px;margin-top:24px}}
/* 휴대폰 머리: 메뉴가 넷이 되면 로고와 겹치므로 두 줄(로고 / 메뉴·검색). 메뉴는 넘치면 옆으로 밀림 */
.wordmark{white-space:nowrap}.header-inner nav a{white-space:nowrap}
@media(max-width:600px){.site-header{height:auto}.header-inner{flex-wrap:wrap;height:auto;padding:14px 0 0;row-gap:6px}
.header-inner nav{width:100%;gap:18px;overflow-x:auto;scrollbar-width:none;padding:6px 0 10px}.header-inner nav::-webkit-scrollbar{display:none}
.header-inner nav .search-button{margin-left:auto;flex:none}}
/* 이야기 메뉴의 갈래(기록들·생각들) */
.sub-tabs{display:flex;gap:16px;margin-top:14px;font-size:14px}.sub-tabs a{color:var(--green);border-bottom:1px solid #9bb09a;padding-bottom:2px}
.all-articles[id]{scroll-margin-top:24px}

/* ===== 그래픽 방향 확정(10-29): C 절제형+아이콘 바탕에 B의 움직임 ===== */
/* 로고 옆 사이트 소개 */
.brand{display:flex;align-items:baseline;gap:16px;min-width:0}
.tagline{font:400 15px/1.4 var(--serif);color:var(--muted);white-space:nowrap}
/* 메뉴 선 아이콘 */
.header-inner nav>a{display:inline-flex;align-items:center;gap:7px}
.menu-icon{width:18px;height:18px;color:var(--wood);opacity:.8;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.header-inner nav>a:hover .menu-icon,.header-inner nav>a[aria-current] .menu-icon{transform:rotate(-14deg) scale(1.08);color:var(--green);opacity:1}
/* 사진 없는 자리: 술 종류 선 아이콘 */
.thumb-icon{width:40%;max-width:72px;height:auto;aspect-ratio:1;color:var(--wood);opacity:.65}
/* B의 움직임: 목록은 옆으로 밀리고, 연재 카드는 기울며 떠오르고, 대표 사진은 살짝 커짐 */
.story-row{transition:transform .25s ease}
.story-row:hover,.story-row:focus-visible{transform:translateX(6px)}
.bundle li{transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.bundle li:hover,.bundle li:focus-within{transform:translateY(-4px) rotate(-.6deg)}
.featured-image{overflow:hidden}.featured-image img{transition:transform .6s cubic-bezier(.2,.8,.2,1),filter .15s ease}
.featured-story:hover .featured-image img{transform:scale(1.025)}
/* C의 들어올 때 부드럽게 */
main,.bundle{animation:alchive-in .5s ease both}
@keyframes alchive-in{from{transform:translateY(10px)}} /* 투명도는 쓰지 않는다: 효과가 멈춰도 글이 항상 보이게(10-29) */
@media(max-width:600px){.brand{gap:10px}.tagline{font-size:12px}.story-row:hover{transform:none}.menu-icon{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){main,.bundle{animation:none}}
/* 움직임 줄이기: 마우스를 올려도 위치·회전·확대가 바뀌지 않게(GPT 리뷰 10-29) */
@media(prefers-reduced-motion:reduce){.story-row:hover,.story-row:focus-visible,.bundle li:hover,.bundle li:focus-within,.featured-story:hover .featured-image img,.header-inner nav>a:hover .menu-icon,.header-inner nav>a[aria-current] .menu-icon{transform:none}}
/* 글 도구 줄(글씨 바꾸기·저장·공유, 휴대폰은 목차 포함)이 목차처럼 화면 위에 따라오게(10-29 사용자) */
.reading-tools{position:sticky;top:2px;z-index:30;background:var(--paper);padding:10px 0;margin-bottom:28px;border-bottom:1px solid var(--line)}
.contents{top:72px}
.mobile-contents[open] nav{max-height:55vh;overflow:auto;background:var(--paper)}
@media(max-width:600px){.reading-tools{padding:8px 0}}
/* 휴대폰 도구 줄: 목차는 아래로 떠서 펼치고, 저장·공유는 아이콘만(이름은 aria-label에 있음) */
@media(max-width:860px){.mobile-contents{position:relative}.mobile-contents[open] nav{position:absolute;left:0;top:calc(100% + 10px);width:min(320px,calc(100vw - 40px));padding:12px 14px;border:1px solid var(--line);box-shadow:0 12px 30px #2c211a1f;z-index:40}}
@media(max-width:600px){.reading-tools .bookmark-button span,.reading-tools .share-button span{display:none}.font-toggle span{white-space:nowrap}.mobile-contents{max-width:none}}
/* 글 도구 위치(10-29 사용자): 양쪽에 있으면 시선이 갈려서 넓은 화면은 왼쪽 한 줄에 모은다. 순서는 도구(제목 '도구') → 목차. 휴대폰은 위쪽 고정 */
.side-rail{display:contents}
.tools-label{display:none}
@media(min-width:861px){
.reading-layout{grid-template-columns:176px minmax(0,680px) 1fr}
.side-rail{display:block;grid-column:1;grid-row:1;position:sticky;top:72px;align-self:start;max-height:calc(100vh - 90px);overflow-y:auto}
.side-rail{padding-top:28px}
.side-rail .contents{position:static;top:auto;padding-top:0}
.reading-column{grid-column:2;grid-row:1}
.reading-tools{position:static;display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:none;border:0;border-bottom:1px solid var(--line);margin:0 0 24px;padding:0 0 20px;justify-content:flex-start}
.reading-tools .tool-button,.reading-tools .font-toggle{margin-left:13px}
.tools-label{display:block;font-size:13px;font-weight:600;color:var(--ink);margin:0 0 10px}
.reading-tools .mobile-contents{display:none}}
@media(min-width:861px) and (max-width:1190px){.reading-layout{grid-template-columns:150px minmax(0,680px)}}
/* 휴대폰: 목차 이동 시 고정된 도구 줄에 소제목이 가리지 않게(GPT 리뷰 10-29) */
@media(max-width:860px){html{scroll-padding-top:84px}.prose h2,.source-section li,#sources{scroll-margin-top:84px}}
/* 6단계 검사(10-29): 제목 단계 건너뜀 방지용 숨김 제목, 제목 줄 균형·본문 마지막 줄 외톨이 줄이기 */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
h1,h2,h3,h4{text-wrap:balance}
p,figcaption,li{text-wrap:pretty}
html{touch-action:manipulation}
dialog{overscroll-behavior:contain}
/* 휴대폰 손가락 누름 범위(6단계 검사): 각주 번호·꼬리표는 보이는 크기 그대로 두고 누르는 범위만 넓힘 */
.cite a{position:relative}.cite a::after{content:"";position:absolute;inset:-8px -3px}
.tags a{position:relative}.tags a::after{content:"";position:absolute;inset:-3px -2px}
/* 404(7단계) */
.not-found{padding:96px 0 40px;max-width:680px}.not-found h1{font:600 32px/1.5 var(--serif);color:var(--wood);margin:0 0 16px}.not-found p{font-size:16px;line-height:1.8;color:var(--muted);margin:0 0 24px}
@media(max-width:860px){.not-found{padding-top:56px;padding-bottom:24px}.not-found h1{font-size:26px}}

/* 머리 로고: 취한 병 스카이라인 가로 조합(시안). 그림 속 글자 바닥이 아래끝에서 13/223 위라, 그만큼 내려 소개 문구와 바닥선을 맞춤 */
.site-header .wordmark{display:block;line-height:0}.site-header .wordmark img{width:auto;height:52px;margin-bottom:calc(52px * -13 / 223)}@media(max-width:600px){.site-header .wordmark img{height:40px;margin-bottom:calc(40px * -13 / 223)}}
