/* 열정상회 — 기본 스타일
   색: 흰 바탕 + 벽돌 레드(간판) + 호박색(강조). 서체: 제목 Black Han Sans, 본문 IBM Plex Sans KR */

:root {
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --brick: #b5402a;
  --brick-deep: #923221;
  --brick-tint: #f8ece8;
  --amber: #e3a33b;
  --amber-tint: #fbf2e1;
  --ink: #26221f;
  --ink-2: #5f5853;
  --ink-3: #736c66;
  --rule: #e5e0db;
  --rule-strong: #cfc7c0;

  --display: 'Black Han Sans', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --body: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  --wrap: 1120px;
  --text: 680px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

[id] { scroll-margin-top: 88px; }
.form-result { scroll-margin-top: 88px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--text); }

/* ---------- 제목 체계 ---------- */
.h-display,
.section h2,
.page-head h1 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  line-height: 1.22;
}
.section h2 { font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 20px; }
.section h3 { font-size: 19px; font-weight: 700; line-height: 1.45; }
.lead { font-size: 18px; color: var(--ink-2); max-width: var(--text); }

/* ---------- 머리글 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; text-decoration: none;
  font-family: var(--display); font-size: 20px; letter-spacing: 0.08em; color: var(--brick);
  border: 2.5px solid var(--brick); padding: 3px 10px 1px;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--brick);
  line-height: 1.3;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 2px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--brick); font-weight: 700; }
.nav .nav-cta {
  margin-left: 8px; background: var(--brick); color: #fff; font-weight: 700; padding: 8px 16px;
}
.nav .nav-cta:hover { background: var(--brick-deep); color: #fff; }
.nav .nav-cta[aria-current='page'] { color: #fff; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 2px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); padding: 6px 12px; cursor: pointer;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- 버튼 ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-deep); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--brick); }
.btn-light:hover { background: var(--amber-tint); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn[disabled] { opacity: .55; cursor: progress; }

.text-link {
  display: inline-block; margin-top: 8px; font-weight: 700; color: var(--brick);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--brick-deep); }

/* ---------- 히어로: 간판 ---------- */
.hero { padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.sign { display: inline-flex; flex-direction: column; align-items: center; margin: 0 auto; }
.sign-board {
  display: block;
  border: clamp(5px, 0.9vw, 9px) solid var(--brick);
  padding: clamp(10px, 1.6vw, 18px);
  background: #fff;
}
.sign-text {
  display: flex; gap: 0.06em;
  font-family: var(--display); color: var(--brick);
  font-size: clamp(64px, 15vw, 168px); line-height: 1;
  border: 2px solid var(--brick);
  padding: 0.16em 0.32em 0.12em;
}
.sign-hanja {
  display: block; margin-top: 18px;
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.9em; padding-left: 0.9em;
  color: var(--ink-2); font-weight: 500;
}
.hero-title { margin: clamp(36px, 5vw, 56px) 0 14px; }
.hero-tagline {
  display: block;
  font-family: var(--display); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.3;
}
.hero-sub {
  display: block; margin-top: 10px;
  font-family: var(--body); font-weight: 600; font-size: clamp(15px, 1.8vw, 18px); color: var(--brick);
}
.hero-desc { max-width: 560px; margin: 0 auto; color: var(--ink-2); font-size: 18px; }

/* 간판에 불이 들어오는 한 번의 움직임 */
@media (prefers-reduced-motion: no-preference) {
  .js .sign-text span { animation: sign-on .5s ease-out both; }
  .js .sign-text span:nth-child(1) { animation-delay: .15s; }
  .js .sign-text span:nth-child(2) { animation-delay: .3s; }
  .js .sign-text span:nth-child(3) { animation-delay: .45s; }
  .js .sign-text span:nth-child(4) { animation-delay: .6s; }
  .js .sign-board { animation: board-on .7s ease-out both; }
}
@keyframes sign-on { from { color: var(--rule); } to { color: var(--brick); } }
@keyframes board-on { from { border-color: var(--rule); } to { border-color: var(--brick); } }

/* ---------- 다음 장날 공지 ---------- */
.notice { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.notice-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 32px;
  padding-top: 24px; padding-bottom: 24px;
}
.notice-label {
  font-family: var(--display); font-size: 22px; color: var(--brick);
  border-left: 5px solid var(--brick); padding-left: 14px; line-height: 1.2;
}
.notice-body { margin: 0; color: var(--ink); }
.notice-body strong { font-weight: 700; }
.notice-body .muted { color: var(--ink-2); }
.notice .text-link { margin-top: 0; white-space: nowrap; }
@media (max-width: 760px) { .notice-inner { grid-template-columns: 1fr; } }

/* ---------- 섹션 ---------- */
.section { padding: var(--section) 0; }
.section.alt { background: var(--paper-2); }
.section + .section:not(.alt) { border-top: 1px solid var(--rule); }
.section.alt + .section { border-top: 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.fact {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 15px; color: var(--ink-2); line-height: 1.7;
}
.src { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

.closing { margin-top: 48px; font-size: 19px; font-weight: 600; }

/* 장부 줄 목록 */
.ledger-list { list-style: none; border-top: 2px solid var(--ink); }
.ledger-list li {
  position: relative; padding: 15px 4px 15px 28px; border-bottom: 1px solid var(--rule);
  font-size: 17px; line-height: 1.6;
}
.ledger-list li::before {
  content: ''; position: absolute; left: 4px; top: 50%; width: 12px; height: 2px; background: var(--brick);
}

/* 구조: 장날 → 상단 → 사랑방 → 단골 */
.path { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 2px solid var(--ink); }
.path li { padding: 28px 24px 8px 0; position: relative; }
.path li + li { padding-left: 24px; border-left: 1px solid var(--rule-strong); }
.path-no { display: block; font-size: 14px; font-weight: 700; color: var(--brick); margin-bottom: 10px; }
.path h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 8px; }
.path-meta { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.path p:last-child { font-size: 16px; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr 1fr; }
  .path li:nth-child(3) { border-left: 0; padding-left: 0; }
  .path li:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 560px) {
  .path { grid-template-columns: 1fr; }
  .path li, .path li + li { padding: 24px 0 8px; border-left: 0; }
  .path li + li { border-top: 1px solid var(--rule-strong); }
}

/* 진행 순서(타임라인) */
.timeline { list-style: none; border-left: 2px solid var(--brick); margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px;
  background: #fff; border: 2px solid var(--brick);
}
.timeline time { display: block; font-size: 14px; font-weight: 700; color: var(--brick); font-variant-numeric: tabular-nums; }
.timeline strong { display: block; font-size: 18px; margin: 2px 0 4px; }
.timeline span { display: block; color: var(--ink-2); font-size: 16px; }

/* 실행 장부 */
.ledger {
  margin: 40px 0 0; background: #fff; border: 1px solid var(--rule-strong);
  padding: 28px clamp(16px, 3vw, 36px) 12px clamp(28px, 5vw, 64px);
  position: relative; overflow-x: auto;
}
.ledger::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: clamp(16px, 3.2vw, 44px);
  border-left: 1.5px solid var(--brick); opacity: .55;
}
.ledger figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.ledger table { width: 100%; min-width: 620px; border-collapse: collapse; }
.ledger th {
  text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-2);
  padding: 10px 12px; border-bottom: 2px solid var(--ink);
}
.ledger td { padding: 16px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 16px; }
.ledger td:first-child { white-space: nowrap; color: var(--ink-2); font-size: 15px; }
.ledger td:last-child { color: var(--ink-2); font-size: 15px; }

.stamp {
  display: inline-block; font-family: var(--display); font-size: 16px; line-height: 1;
  padding: 7px 9px 5px; border: 2px solid currentColor; transform: rotate(-4deg); white-space: nowrap;
}
.stamp.done { color: var(--brick); }
.stamp.changed { color: #a2711f; }
.stamp.missed { color: var(--ink-3); }
@media (max-width: 640px) {
  .ledger { padding: 20px 16px 8px 36px; }
  .ledger::before { left: 18px; }
  .ledger table { min-width: 0; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(1), .ledger td:nth-child(2) { grid-column: 1 / -1; }
  .ledger td:nth-child(1) { font-size: 13px; }
}

/* 약속 목록 */
.promises { margin: 40px 0 0; border-top: 2px solid var(--ink); }
.promises > div {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(0, 2fr); gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.promises dt { font-weight: 700; font-size: 19px; }
.promises dd { margin: 0; color: var(--ink-2); }
.promises .ref { font-size: 14px; color: var(--brick); font-weight: 600; text-align: right; }
@media (max-width: 760px) {
  .promises > div { grid-template-columns: 1fr; }
  .promises .ref { text-align: left; }
}

/* 다섯 갈래 */
.axes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 40px 0 28px; border-top: 2px solid var(--ink); }
.axes > div { padding: 22px 20px 0 0; }
.axes > div + div { padding-left: 20px; border-left: 1px solid var(--rule-strong); }
.axes h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.axes .axis-line { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.axes .axis-items { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) {
  .axes { grid-template-columns: 1fr 1fr; }
  .axes > div, .axes > div + div { padding: 20px 16px 16px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 520px) { .axes { grid-template-columns: 1fr; } }

/* 간판 이야기 */
.story-inner { max-width: 760px; }
.story-inner p { font-size: 18px; }
.roles-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 36px 0 12px; border: 1px solid var(--rule-strong); }
.roles-mini > div { padding: 20px 22px; }
.roles-mini > div + div { border-left: 1px solid var(--rule-strong); }
.roles-mini h3 { font-size: 17px; color: var(--brick); margin-bottom: 6px; }
.roles-mini p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 720px) {
  .roles-mini { grid-template-columns: 1fr; }
  .roles-mini > div + div { border-left: 0; border-top: 1px solid var(--rule-strong); }
}

/* 마무리 띠 */
.cta { background: var(--brick); color: #fff; padding: clamp(64px, 9vw, 104px) 0; }
.cta h2 { font-family: var(--display); font-size: clamp(30px, 4.2vw, 44px); line-height: 1.25; margin-bottom: 16px; }
.cta p { max-width: 600px; font-size: 18px; color: rgba(255, 255, 255, .9); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- 하위 페이지 머리 ---------- */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.page-head .lead { margin: 0; }
.page-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.page-nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.page-nav a:hover { color: var(--brick); border-color: var(--brick); }

/* 본문 블록 */
.prose p, .prose li { max-width: var(--text); }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--brick); }

.steps { list-style: none; counter-reset: step; border-top: 2px solid var(--ink); margin-top: 32px; max-width: 860px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step); grid-row: span 2; font-family: var(--display); font-size: 28px; color: var(--brick); line-height: 1.2;
}
.steps strong { font-size: 18px; }
.steps span { color: var(--ink-2); }

/* 한자 풀이 */
.hanja { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-strong); margin-top: 36px; }
.hanja > div { padding: 28px 24px; }
.hanja > div + div { border-left: 1px solid var(--rule-strong); }
.hanja .char { font-size: 64px; line-height: 1; color: var(--brick); font-weight: 500; margin-bottom: 14px; }
.hanja .read { font-weight: 700; margin-bottom: 4px; }
.hanja p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 760px) {
  .hanja { grid-template-columns: 1fr 1fr; }
  .hanja > div:nth-child(3) { border-left: 0; }
  .hanja > div:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
}

.statement { border-left: 5px solid var(--brick); padding: 4px 0 4px 24px; margin: 28px 0; max-width: 760px; }
.statement h3 { font-size: 15px; color: var(--brick); margin-bottom: 6px; }
.statement p { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.55; }

/* 표 */
.table-wrap { overflow-x: auto; margin-top: 28px; }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 16px; }
.table thead th { font-size: 14px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table .price { font-weight: 700; color: var(--brick); white-space: nowrap; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* 프로그램 목록 */
.program-group { margin-top: 56px; }
.program-group:first-of-type { margin-top: 40px; }
.program-group > h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 4px; }
.program-group > p { color: var(--ink-2); margin-bottom: 0; }
.programs { list-style: none; border-top: 2px solid var(--ink); margin-top: 18px; }
.programs li {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 3fr); gap: 6px 28px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.programs .p-name { font-weight: 700; font-size: 19px; }
.programs .p-desc { color: var(--ink); }
.programs .p-meta { font-size: 14px; color: var(--ink-2); }
.programs .p-meta b { display: block; color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 12px; font-weight: 700; color: #8a5a12; background: var(--amber-tint); padding: 2px 8px; border-radius: 2px;
}
@media (max-width: 760px) { .programs li { grid-template-columns: 1fr; } }

/* 두 칸 정보 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.two-col h3 { margin-bottom: 10px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* 헌장 */
.charter { list-style: none; counter-reset: art; border-top: 2px solid var(--ink); margin-top: 36px; max-width: 880px; }
.charter li {
  counter-increment: art; display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.charter li::before {
  content: '제' counter(art) '조'; font-family: var(--display); font-size: 22px; color: var(--brick); line-height: 1.5;
}
.charter p { margin: 0; font-size: 20px; line-height: 1.6; font-weight: 500; }
.charter small { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); font-weight: 400; }
@media (max-width: 560px) { .charter li { grid-template-columns: 1fr; gap: 4px; } }

.pledge {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  margin-top: 48px; padding: 32px clamp(20px, 4vw, 44px); border: 1px solid var(--rule-strong); max-width: 880px;
}
.pledge p { margin: 0; font-size: 18px; }
.seal {
  width: 112px; height: 112px; display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  background: var(--brick); color: #fff; font-family: var(--display); font-size: 34px; line-height: 1;
  padding: 10px; transform: rotate(-6deg); border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--brick), inset 0 0 0 5px rgba(255,255,255,.85);
}
@media (max-width: 560px) { .pledge { grid-template-columns: 1fr; } .seal { margin: 0 auto; } }

/* 운영진 */
.team { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 2px solid var(--ink); margin-top: 24px; }
.team li { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); }
.team .role { font-size: 14px; color: var(--brick); font-weight: 700; }
.team .name { font-size: 18px; font-weight: 600; }
.empty {
  margin-top: 24px; padding: 24px; border: 1px dashed var(--rule-strong); color: var(--ink-2); max-width: var(--text);
}
.empty p { margin: 0; }

/* 장날 일정 */
.sessions { list-style: none; border-top: 2px solid var(--ink); margin-top: 28px; }
.sessions li { display: grid; grid-template-columns: 200px 1fr auto; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.sessions .s-date { font-family: var(--display); font-size: 24px; line-height: 1.3; }
.sessions .s-date small { display: block; font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sessions .s-topic { font-weight: 700; font-size: 18px; }
.sessions .s-place { color: var(--ink-2); font-size: 15px; }
.badge { justify-self: start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 2px; white-space: nowrap; }
.badge.open { background: var(--brick-tint); color: var(--brick-deep); }
.badge.full, .badge.closed { background: var(--paper-2); color: var(--ink-2); }
@media (max-width: 680px) { .sessions li { grid-template-columns: 1fr; } }

/* 자주 묻는 질문 */
.faq { border-top: 2px solid var(--ink); margin-top: 28px; max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding: 0 0 20px; margin: 0; max-width: var(--text); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- 신청서 ---------- */
.form-section { background: var(--paper-2); }
.section.alt + .form-section { border-top: 1px solid var(--rule); }
.form-card { background: #fff; border: 1px solid var(--rule-strong); padding: clamp(24px, 4vw, 48px); max-width: 860px; margin-top: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field .req { color: var(--brick); margin-left: 2px; }
.field .hint { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.field input[type='text'], .field input[type='tel'], .field input[type='email'], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff; padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px var(--brick-tint); }
.field [aria-invalid='true'] { border-color: var(--brick); background: #fffaf8; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brick); flex: none; }
.consents { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 20px; display: grid; gap: 12px; }
.consents a { color: var(--brick); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--brick-deep); font-weight: 600; font-size: 15px; margin: 16px 0 0; min-height: 1em; }
.form-submit { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-submit .note { margin: 0; }

.form-result { border-left: 5px solid var(--brick); padding: 8px 0 8px 24px; }
.form-result h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 10px; }
.form-result textarea { width: 100%; min-height: 220px; font: inherit; font-size: 14px; border: 1px solid var(--rule-strong); padding: 12px; margin: 12px 0; }
.form-result .actions { margin-top: 12px; }

/* ---------- 바닥글 ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h2 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--brick); text-decoration: underline; }
.footer-tag { margin-top: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.operator span + span::before { content: ' | '; color: var(--rule-strong); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* 개인정보처리방침 */
.policy h2 { font-size: 22px; font-family: var(--body); font-weight: 700; margin: 40px 0 12px; }
.policy p, .policy li { max-width: 760px; color: var(--ink); }
.policy ul { padding-left: 20px; }
.policy li { margin-bottom: 6px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound .sign-text { font-size: clamp(56px, 12vw, 120px); display: inline-flex; }
.notfound .hero-tagline { margin: 40px 0 12px; }

/* ---------- 위치 표시 ---------- */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-3); }
.breadcrumb li + li::before { content: '/'; margin: 0 10px; color: var(--rule-strong); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brick); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink-3); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 이런 분들이 함께합니다 ---------- */
.who-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-top: 2px solid var(--ink); }
.who-list li + li { border-left: 1px solid var(--rule-strong); }
.who-list a { display: block; height: 100%; padding: 24px 22px 26px 0; text-decoration: none; }
.who-list li + li a { padding-left: 22px; }
.who-list strong { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; margin-bottom: 10px; color: var(--ink); }
.who-list span { display: block; font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.who-list a::after { content: '자세히 보기'; display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--brick); border-bottom: 2px solid var(--brick); }
.who-list a:hover strong { color: var(--brick); }
.who-list-compact { margin-top: 40px; }
.who-list-compact strong { font-size: 22px; }
@media (max-width: 900px) {
  .who-list { grid-template-columns: 1fr 1fr; }
  .who-list li:nth-child(3) { border-left: 0; }
  .who-list li:nth-child(3) a { padding-left: 0; }
  .who-list li:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
}
@media (max-width: 560px) {
  .who-list { grid-template-columns: 1fr; }
  .who-list li + li { border-left: 0; border-top: 1px solid var(--rule-strong); }
  .who-list li a, .who-list li + li a { padding: 20px 0; }
}

/* ---------- 상회보 목록 ---------- */
.post-list { list-style: none; border-top: 2px solid var(--ink); margin: 28px 0 8px; }
.post-list li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 6px; font-size: 14px; color: var(--ink-3); }
.post-meta > * + *::before { content: '·'; margin: 0 8px; color: var(--rule-strong); }
.post-meta span:first-child { color: var(--brick); font-weight: 700; }
.post-title { font-size: 21px; font-weight: 700; line-height: 1.45; margin-bottom: 6px; }
.post-title a { text-decoration: none; }
.post-title a:hover { color: var(--brick); text-decoration: underline; text-underline-offset: 4px; }
.post-summary { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 760px; }

/* ---------- 글 페이지 ---------- */
.article-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.article-head h1 { font-family: var(--display); font-size: clamp(32px, 4.8vw, 50px); line-height: 1.25; margin: 6px 0 18px; max-width: 900px; letter-spacing: -0.01em; }
.article-head .lead { margin: 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1040px) {
  .article-layout { grid-template-columns: minmax(0, 700px) 260px; justify-content: space-between; }
  .article-layout .toc { order: 2; position: sticky; top: 96px; align-self: start; }
  .article-layout .article-body { order: 1; }
}
.toc { border-top: 2px solid var(--ink); padding-top: 14px; font-size: 15px; }
.toc-title { font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 8px; display: grid; grid-template-columns: 24px 1fr; }
.toc li::before { content: counter(toc); color: var(--brick); font-weight: 700; }
.toc a { color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.toc a:hover { color: var(--brick); text-decoration: underline; }
.article-body { max-width: 700px; font-size: 18px; line-height: 1.85; }
.article-body > p { margin: 0 0 1.25em; }
.article-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(25px, 3vw, 30px); line-height: 1.35; margin: 2em 0 0.7em; }
.article-body h3 { font-size: 20px; font-weight: 700; margin: 1.6em 0 0.5em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.article-body li { position: relative; padding-left: 26px; margin-bottom: 0.55em; }
.article-body ul > li::before { content: ''; position: absolute; left: 4px; top: 0.85em; width: 10px; height: 2px; background: var(--brick); }
.article-body ol { counter-reset: ol; }
.article-body ol > li { counter-increment: ol; }
.article-body ol > li::before { content: counter(ol) '.'; position: absolute; left: 0; color: var(--brick); font-weight: 700; }
.article-body blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--amber); background: var(--amber-tint); }
.article-body blockquote p { margin: 0; }
.article-body a { color: var(--brick); text-underline-offset: 3px; }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.note-box { margin: 2.4em 0 1.6em; padding: 22px 24px; border: 1px solid var(--rule-strong); border-left: 5px solid var(--brick); font-size: 16px; line-height: 1.75; }
.note-box p { margin: 0; }
.post-figure { margin: 2em 0; }
.post-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.post-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.article-body p img { max-width: 100%; height: auto; vertical-align: middle; }
.article-body > p:last-child, .article-body > ul:last-child { font-size: 15px; color: var(--ink-2); }

/* ---------- 상회 용어 ---------- */
.glossary { margin: 32px 0 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.glossary > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.glossary dt { font-weight: 700; color: var(--brick); }
.glossary dd { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 860px) { .glossary { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .glossary > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 기타 ---------- */
.more-links { margin-top: 32px; font-size: 15px; color: var(--ink-2); }
.more-links a { color: var(--brick); font-weight: 600; }
.promises-2 > div { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); }
@media (max-width: 760px) { .promises-2 > div { grid-template-columns: 1fr; } }
.section h2.h-small { font-family: var(--display); font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.sub-title { margin-top: 56px; }
.steps-tight { margin-top: 0; }
.timeline-in { margin-top: 16px; }
.two-col-first { margin-top: 8px; }
.prose-block p { font-size: 18px; max-width: var(--text); }

/* ---------- 그림 ---------- */
.illust { display: block; width: 100%; height: auto; }
.section.alt .illust, .page-head .illust, .article-head .illust { background: #fff; }
.section.alt .illust { border: 1px solid var(--rule); }
.icon { display: block; width: 48px; height: 48px; }

/* 홈 첫 화면: 상회 골목 */
.hero-street { position: relative; overflow: hidden; isolation: isolate; }
.hero-street::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('/assets/img/heads/hero-street-1600.webp') center bottom / max(1280px, 112%) auto no-repeat;
  opacity: .22;
}
@media (min-width: 1700px) { .hero-street::before { background-image: url('/assets/img/heads/hero-street-1920.webp'); } }
@media (max-width: 760px) {
  .hero-street::before { background-image: url('/assets/img/heads/hero-street-960.webp'); background-size: 200% auto; opacity: .2; }
}

/* 구조·다섯 가지 방법 아이콘 */
.path .icon { width: 64px; height: 64px; margin-bottom: 14px; }
.axes .icon { width: 52px; height: 52px; margin-bottom: 12px; }

/* 이런 분들이 함께합니다 */
.who-art { display: block; margin-bottom: 18px; }
.who-art .illust { aspect-ratio: 3 / 2; object-fit: cover; }

/* 본문 옆 그림 */
.col-art { margin-top: 36px; max-width: 480px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px clamp(32px, 5vw, 72px); align-items: center; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head .lead { margin-bottom: 0; }
.sec-head-story { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.sec-art { max-width: 520px; justify-self: end; width: 100%; }
@media (max-width: 900px) {
  .sec-head, .sec-head-story { grid-template-columns: 1fr; }
  .sec-art { justify-self: start; max-width: 460px; }
}

/* 실행 장부 도장 */
.stamp-img { display: block; width: 92px; height: auto; }
@media (max-width: 640px) { .stamp-img { width: 80px; } }

/* 하위 페이지 머리와 글 머리의 그림 */
.page-head.has-art .wrap, .article-head.has-art .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center;
}
.page-head-art { justify-self: end; width: 100%; max-width: 460px; }
.page-head-art .illust { width: 100%; }
@media (max-width: 900px) {
  .page-head.has-art .wrap, .article-head.has-art .wrap { grid-template-columns: 1fr; }
  .page-head-art { justify-self: start; max-width: 420px; }
}
@media (max-width: 560px) { .page-head-art { max-width: 300px; } }

/* 프로그램: 중심 세 가지 */
.programs-core { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; border-top: 2px solid var(--ink); }
.programs-core li { padding: 24px 24px 8px 0; }
.programs-core li + li { padding-left: 24px; border-left: 1px solid var(--rule-strong); }
.programs-core .illust { margin-bottom: 18px; }
.programs-core .p-name { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.programs-core .p-desc { margin-bottom: 12px; }
.programs-core .p-meta { font-size: 14px; color: var(--ink-2); margin: 0; }
.programs-core .p-meta b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .programs-core { grid-template-columns: 1fr; }
  .programs-core li, .programs-core li + li { padding: 24px 0 16px; border-left: 0; }
  .programs-core li + li { border-top: 1px solid var(--rule-strong); }
  .programs-core .illust { max-width: 460px; }
}
.pg-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px 32px; align-items: end; }
.pg-head h3 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 4px; }
.pg-head p { color: var(--ink-2); margin-bottom: 0; }
@media (max-width: 760px) { .pg-head { grid-template-columns: 1fr; } .pg-head .illust { max-width: 260px; } }
.programs .p-name { display: flex; align-items: center; gap: 12px; }
.programs .p-name .icon { width: 44px; height: 44px; flex: none; }

/* 가입 절차 옆 그림 */
.steps-art { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
.steps-art .col-art { margin-top: 32px; }
@media (max-width: 900px) { .steps-art { grid-template-columns: 1fr; } .steps-art .col-art { margin-top: 0; max-width: 420px; } }

/* 상회보 목록 썸네일 */
.post-list li.has-thumb { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 28px; align-items: center; }
.post-thumb { display: block; }
.post-thumb .thumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; border: 1px solid var(--rule); }
.post-list li.has-thumb:hover .thumb { border-color: var(--rule-strong); }
@media (max-width: 640px) {
  .post-list li.has-thumb { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
  .post-list li.has-thumb .post-summary { display: none; }
  .post-list li.has-thumb .post-title { font-size: 18px; }
}

/* 404 */
.notfound-art { max-width: 520px; margin: 48px auto 0; }
.section .post-list .post-title { font-family: var(--body); font-weight: 700; font-size: 21px; line-height: 1.45; letter-spacing: 0; margin-bottom: 6px; }
@media (max-width: 640px) { .section .post-list li.has-thumb .post-title { font-size: 17px; } }
@media (max-width: 560px) {
  .who-list a { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .who-list .who-art { grid-row: 1 / span 3; margin: 4px 0 0; }
  .who-list strong { font-size: 22px; margin-bottom: 4px; }
  .who-list a::after { margin-top: 8px; justify-self: start; }
}
