/* 여주예총 — 갤러리 벽처럼 비우고, 작품(사진·글)이 주인공이 되게 */
:root {
  --paper: #F5F3EE;
  --white: #FFFFFF;
  --ink: #151515;
  --ink-2: #2A2A2A;
  --gray: #66625C;
  --line: #DCD8CF;
  --seal: #B8432F;
  --seal-dark: #963322;
  --max: 1240px;
  --font: 'Pretendard', 'Pretendard Variable', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.7; word-break: keep-all; letter-spacing: -0.01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.notice-bar { background: var(--ink); color: #EDEAE3; text-align: center; font-size: 13px; padding: 8px 16px; }
.notice-bar a { color: #fff; }

/* 머리 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seal { width: 40px; height: 40px; background: var(--seal); color: #fff; display: grid; place-items: center; font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif; font-size: 24px; font-weight: 700; border-radius: 3px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand-text small { font-size: 10px; letter-spacing: .2em; color: var(--gray); font-weight: 600; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px; transition: background-size .25s; }
.menu a:hover, .menu a[aria-current="page"] { background-size: 100% 1px; }
.menu a[aria-current="page"] { font-weight: 700; }
.menu-toggle { display: none; font: inherit; font-size: 14px; font-weight: 600; background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
}

/* 히어로 */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.hero h1 { margin: 20px 0 28px; font-size: clamp(44px, 7.2vw, 104px); font-weight: 200; line-height: 1.08; letter-spacing: -0.05em; }
.hero h1 b { font-weight: 700; }
.hero h1 .dot { color: var(--seal); }
.hero-lead { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 520px; }
.hero-meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--gray); }
.hero-meta span::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--gray); vertical-align: middle; margin-right: 10px; }
.hero-art { position: relative; height: 560px; }
.hero-art figure { position: absolute; margin: 0; overflow: hidden; background: var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.hero-art figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .f1 { right: 0; top: 0; width: 72%; height: 66%; }
.hero-art .f2 { left: 0; top: 30%; width: 48%; height: 46%; }
.hero-art .f3 { right: 10%; bottom: 0; width: 40%; height: 34%; }
.hero-art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif; font-size: 360px; line-height: 1; color: rgba(184, 67, 47, .1); user-select: none; }
.hero-art .caption { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--gray); letter-spacing: .04em; max-width: 46%; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { height: 420px; }
}
@media (max-width: 560px) { .hero { padding: 40px 0 64px; } .hero-art { height: 320px; } .hero-art .glyph { font-size: 220px; } }

/* 여섯 갈래 */
.arts { border-top: 1px solid var(--ink); }
.arts ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.arts li { border-right: 1px solid var(--line); }
.arts li:last-child { border-right: none; }
.arts a { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px 30px; text-decoration: none; height: 100%; position: relative; transition: background .25s, color .25s; }
.arts a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.arts a:hover::before, .arts a:focus-visible::before { transform: scaleX(1); }
.arts .no { font-size: 12px; color: var(--gray); font-weight: 600; letter-spacing: .1em; }
.arts .ko { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.arts .en { font-size: 12px; color: var(--gray); letter-spacing: .08em; }
@media (max-width: 960px) { .arts ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } .arts li:nth-child(3) { border-right: none; } .arts li:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .arts ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } .arts li { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); } .arts li:nth-child(2n) { border-right: none !important; } }

/* 섹션 공통 */
.section { padding: 120px 0; }
.section.white { background: var(--white); }
.section.dark { background: var(--ink); color: #EDEAE3; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 56px; }
.sec-head h2 { margin: 10px 0 0; font-size: clamp(32px, 4.2vw, 52px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.15; }
.sec-head h2 b { font-weight: 700; }
.dark .label { color: #A9A49B; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid currentColor; white-space: nowrap; }
.more:hover { color: var(--seal); }
@media (max-width: 640px) { .section { padding: 80px 0; } .sec-head { margin-bottom: 36px; } }

/* 행사 */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.event { display: flex; flex-direction: column; gap: 18px; padding: 32px 28px 36px 0; text-decoration: none; border-right: 1px solid var(--line); }
.event + .event { padding-left: 28px; }
.event:last-child { border-right: none; }
.event .d { display: flex; align-items: baseline; gap: 10px; }
.event .d b { font-size: 64px; font-weight: 200; line-height: 1; letter-spacing: -0.04em; }
.event .d span { font-size: 13px; color: var(--gray); font-weight: 600; letter-spacing: .06em; }
.event h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -0.02em; }
.event:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.event .go { margin-top: auto; font-size: 13px; color: var(--gray); }
@media (max-width: 860px) { .events { grid-template-columns: 1fr; } .event, .event + .event { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--line); } }

/* 회원단체 카드 */
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.member { background: var(--white); padding: 40px 36px 44px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; position: relative; min-height: 300px; transition: background .3s; }
.member::after { content: ""; position: absolute; left: 36px; top: 0; width: 40px; height: 4px; background: var(--c); transition: width .35s; }
.member:hover::after { width: calc(100% - 72px); }
.member .no { font-size: 13px; color: var(--gray); font-weight: 600; letter-spacing: .1em; margin-top: 12px; }
.member h3 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; }
.member .en { font-size: 13px; color: var(--gray); letter-spacing: .08em; }
.member p { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }
.member .head { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--gray); }
@media (max-width: 960px) { .members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .members { grid-template-columns: 1fr; } .member { min-height: 0; } }

/* 갤러리 띠 */
.strip-wrap { position: relative; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(21,21,21,.72); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: background .2s, opacity .2s, border-color .2s; backdrop-filter: blur(4px); }
.strip-btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.strip-btn:disabled { opacity: 0; pointer-events: none; }
.strip-btn.prev { left: -26px; }
.strip-btn.next { right: -26px; }
@media (max-width: 1320px) { .strip-btn.prev { left: 12px; } .strip-btn.next { right: 12px; } }
.strip a { scroll-snap-align: start; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #2b2b2b; }
.strip a:nth-child(3n+2) { aspect-ratio: 1 / 1; align-self: end; }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .6s, filter .4s; }
.strip a:hover img { transform: scale(1.04); filter: none; }

/* 공지 + 인사말 */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px 0; text-decoration: none; align-items: baseline; }
.list a:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.list .t { font-size: 17px; font-weight: 500; }
.list .clip { font-size: 12px; color: var(--seal); margin-left: 8px; font-weight: 600; }
.list time { font-size: 14px; color: var(--gray); font-variant-numeric: tabular-nums; }
.quote { margin: 0; padding: 32px 0 0; border-top: 1px solid var(--ink); }
.quote p { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 300; line-height: 1.6; letter-spacing: -0.03em; }
.quote p::before { content: "“"; color: var(--seal); font-weight: 700; margin-right: 2px; }
.quote footer { margin-top: 28px; font-size: 14px; color: var(--gray); }
.quote footer a { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 64px; } }

/* 하위 페이지 머리 */
.page-head { padding: 80px 0 56px; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 12px 0 0; font-size: clamp(40px, 6vw, 80px); font-weight: 200; letter-spacing: -0.05em; line-height: 1.1; }
.page-head p { margin: 20px 0 0; font-size: 17px; color: var(--ink-2); max-width: 640px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.subnav a { text-decoration: none; font-size: 14px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.subnav a:hover { border-color: var(--ink); }
.subnav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 게시판 */
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list a { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; padding: 24px 0; text-decoration: none; align-items: baseline; }
.board-list .no { font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums; }
.board-list .t { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.board-list .s { display: block; font-size: 14px; color: var(--gray); margin-top: 6px; font-weight: 400; }
.board-list a:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.board-list time { font-size: 14px; color: var(--gray); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .board-list a { grid-template-columns: 1fr; gap: 4px; } .board-list .no { display: none; } .board-list time { order: -1; } }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pager button { font: inherit; font-size: 14px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; cursor: pointer; color: var(--ink); }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry a { display: block; break-inside: avoid; margin-bottom: 28px; text-decoration: none; }
.masonry img { width: 100%; background: var(--line); transition: opacity .3s; }
.masonry a:hover img { opacity: .88; }
.masonry p { margin: 12px 0 0; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.masonry time { font-size: 13px; color: var(--gray); font-weight: 400; white-space: nowrap; }
.noimg { aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gray); font-size: 13px; }
.empty { padding: 80px 0; text-align: center; color: var(--gray); }

/* 글 보기 */
.article { max-width: 820px; margin: 0 auto; }
.article-head { padding: 72px 0 40px; border-bottom: 1px solid var(--ink); }
.article-head h1 { margin: 16px 0 20px; font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.3; }
.article-head .meta { font-size: 14px; color: var(--gray); }
.article-body { padding: 48px 0; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.article-body img { margin: 24px 0; height: auto; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }
.files { border: 1px solid var(--line); background: var(--white); padding: 24px 28px; margin-bottom: 48px; }
.files h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .2em; color: var(--gray); font-weight: 600; }
.files ul { margin: 0; padding: 0; list-style: none; }
.files li { padding: 8px 0; }
.files a { font-weight: 600; }
.files span { color: var(--gray); font-size: 13px; margin-left: 6px; }
.post-nav { border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; }
.post-nav a { text-decoration: none; padding: 24px 0; display: flex; flex-direction: column; gap: 4px; }
.post-nav a + a { text-align: right; }
.post-nav small { font-size: 12px; letter-spacing: .2em; color: var(--gray); font-weight: 600; }
.post-nav a:hover span { text-decoration: underline; }
.back { text-align: center; padding: 24px 0 96px; }
.btn { display: inline-block; text-decoration: none; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 999px; border: 1px solid var(--ink); }
.btn:hover { background: var(--ink); color: #fff; }

/* 소개 */
.prose { max-width: 760px; font-size: 18px; line-height: 1.95; }
.prose p { margin: 0 0 1.2em; }
.two { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding: 96px 0; border-bottom: 1px solid var(--line); }
.two > h2 { margin: 0; font-size: 26px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.3; }
.two > h2 .label { display: block; margin-bottom: 12px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; } }
.facts { display: grid; grid-template-columns: 140px 1fr; margin: 0; border-top: 1px solid var(--ink); }
.facts dt, .facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--gray); font-size: 15px; }
.facts dd { font-weight: 500; }
.charter { font-size: 17px; line-height: 2; color: var(--ink-2); }
.org-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 40px; }
.org-top div { background: var(--white); padding: 24px; }
.org-top b { display: block; font-size: 22px; margin-top: 4px; }
.org-top span { font-size: 13px; color: var(--gray); }
.org-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.org-table th, .org-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.org-table th { font-weight: 600; width: 160px; }
.org-table td i { font-style: normal; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: middle; }
@media (max-width: 640px) { .org-top { grid-template-columns: 1fr; } }

/* 회원단체 상세 */
.member-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--ink); position: relative; }
.member-hero::before { content: ""; position: absolute; left: 0; top: 0; width: 80px; height: 6px; background: var(--c); }
.member-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.member-hero h1 { margin: 12px 0 0; font-size: clamp(44px, 7vw, 96px); font-weight: 200; letter-spacing: -0.05em; line-height: 1.05; }
.member-hero h1 b { font-weight: 700; }
.member-hero .tag { margin: 24px 0 0; font-size: 20px; font-weight: 300; }
.member-hero .big-no { font-size: clamp(80px, 14vw, 200px); font-weight: 100; line-height: .8; color: var(--c); letter-spacing: -0.06em; }
.member-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; padding: 80px 0 96px; }
.member-body aside { font-size: 15px; color: var(--gray); }
.member-body aside b { display: block; color: var(--ink); font-size: 22px; margin-top: 6px; }
.member-body aside img { margin-bottom: 20px; width: 100%; max-width: 240px; filter: grayscale(.2); }
@media (max-width: 860px) { .member-body { grid-template-columns: 1fr; gap: 32px; } .member-hero .wrap { grid-template-columns: 1fr; } .member-hero .big-no { display: none; } }
.member-nav { border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 96px; }
.member-nav a { text-decoration: none; padding: 28px 0; font-size: 22px; font-weight: 300; }
.member-nav a + a { text-align: right; }
.member-nav small { display: block; font-size: 12px; letter-spacing: .2em; color: var(--gray); font-weight: 600; }

/* 꼬리 */
.site-footer { background: var(--ink); color: #BDB8AE; font-size: 14px; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 48px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #333; }
.foot-top .brand-text b { color: #fff; font-size: 22px; }
.foot-top .brand-text small { color: #8F8A81; }
.foot-info { display: grid; grid-template-columns: auto auto; gap: 6px 20px; margin: 0; }
.foot-info dt { color: #8F8A81; }
.foot-info dd { margin: 0; color: #EDEAE3; }
.foot-info a { color: #EDEAE3; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-bottom a { color: #BDB8AE; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
