/* 작업 이야기 글 페이지 공통. 홈페이지와 같은 색 */
:root {
  --red: #bf1e2e; --red-deep: #8f1420; --stone: #eceae8; --paper: #fbfaf9;
  --ink: #1f1b1b; --muted: #625b5a; --line: #d9d4d2;
  --f-body: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.8; word-break: keep-all; }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar .in { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: auto; border-radius: 3px; display: block; }
.brand b { font-weight: 900; font-size: 17px; }
.brand small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); line-height: 1.2; }
.call { font-family: var(--f-mono); font-size: 14px; text-decoration: none; background: var(--red); color: #fff; padding: 6px 12px; border-radius: 3px; white-space: nowrap; }
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }
.kicker { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--red); margin: 0 0 8px; }
h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.3; font-weight: 900; letter-spacing: -.015em; margin: 0 0 14px; text-wrap: balance; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
h2 { font-size: 23px; line-height: 1.4; margin: 44px 0 12px; padding-left: 12px; border-left: 4px solid var(--red); }
p { margin: 0 0 16px; }
figure { margin: 22px 0 28px; }
figure img { width: 100%; height: auto; border-radius: 3px; display: block; background: var(--stone); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair figure { margin: 0; }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }
.box { background: var(--stone); border-radius: 4px; padding: 20px 22px; margin: 36px 0 0; font-size: 15.5px; }
.box b { display: block; font-size: 17px; margin-bottom: 6px; }
.box p { margin: 0 0 4px; }
.more { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15.5px; }
.more ul { padding-left: 20px; margin: 8px 0 0; }
footer { background: var(--ink); color: #b5adab; font-size: 13px; }
footer .in { max-width: 1080px; margin: 0 auto; padding: 22px 20px 30px; }
/* 글 목록: 큰 사진 카드 */
main.wide { max-width: 1080px; }
.list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .list { grid-template-columns: 1fr; gap: 22px; } }
.list li { margin: 0; }
.list a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.list a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31, 27, 27, .10); }
.list .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); }
.list img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.list a:hover img { transform: scale(1.04); }
.list .txt { padding: 18px 20px 22px; }
.list h2 { margin: 6px 0 8px; padding: 0; border: 0; font-size: 20px; line-height: 1.45; text-wrap: balance; }
.list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.list time { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.list .go { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--red); }
@media (prefers-reduced-motion: reduce) { .list a, .list img { transition: none; } .list a:hover, .list a:hover img { transform: none; } }
/* 글 본문 사진도 한 장일 때 너무 길지 않게 */
article figure img { max-height: 78vh; object-fit: contain; }
/* 석재 도감 */
.lead { font-size: 18px; }
.spec { display: grid; grid-template-columns: 8.5em 1fr; margin: 8px 0 8px; border-top: 1px solid var(--line); font-size: 15.5px; }
.spec dt, .spec dd { margin: 0; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--muted); }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 8px 0 0; color: var(--ink); }
.list.stones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 12px; }
@media (max-width: 900px) { .list.stones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .list.stones { grid-template-columns: 1fr; } }
.list h3 { margin: 0 0 6px; font-size: 19px; }
main.wide > h2 { margin-top: 48px; }
/* 색으로 찾기, 상황별 돌 고르기 */
.colors { display: grid; gap: 6px; margin: 4px 0 8px; font-size: 16px; max-width: 900px; }
.colors p { margin: 0; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.colors b { display: inline-block; min-width: 6.5em; color: var(--muted); }
.note-link { margin: 20px 0 0; font-size: 16px; }
.picks { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 12px 0 8px; }
@media (max-width: 520px) { .picks { grid-template-columns: 1fr !important; } }
.picks .txt { padding: 14px 16px 16px; }
.picks p { font-size: 14.5px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.tbl { overflow-x: auto; margin: 8px 0 8px; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--stone); }
.tbl tbody th { white-space: nowrap; color: var(--muted); }
/* 실제 가공 영상 */
figure.vid video { width: 100%; max-width: 420px; max-height: 78vh; height: auto; display: block; border-radius: 3px; background: #111; }
/* 다듬기 2026-10-19: 홈페이지와 모서리·움직임 맞춤 */
figure img, .box, .colors p, .list a, .tbl table, figure.vid video { border-radius: 4px; }
.bar { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.2) blur(6px); background: rgba(251,250,249,.94); }
.call { border-radius: 4px; transition: transform .15s ease, box-shadow .15s ease; }
.call:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
h2 { border-left: 0; padding-left: 0; }
h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--red); margin-bottom: 12px; }
main.wide > h2::before, .list h2::before { display: none; }
@media (prefers-reduced-motion: reduce) { .call { transition: none; } .call:hover { transform: none; } }
.kicker { display: none; }
