/* 소리곁 소극장 — N1 일정·행사표 주도. 신문지색 바탕 + 먹 괘선 + 주홍 한 점 */
:root {
  --paper: #f2eee4;
  --paper2: #e8e2d4;
  --ink: #1b1a17;
  --mute: #66615a;
  --red: #c4381c;
  --rule: 2px solid var(--ink);
  --hair: 1px solid #c9c1b0;
  --w: 1120px;
  --head: 'Sunflower', 'Nanum Gothic', sans-serif;
  --mono: 'Nanum Gothic Coding', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.7 'Nanum Gothic', -apple-system, 'Malgun Gothic', sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.25; letter-spacing: -0.5px; }
section { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* 헤더 */
.top { border-bottom: var(--rule); }
.top__in { max-width: var(--w); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo__mark { font: 700 28px/1 var(--head); letter-spacing: -1px; }
.logo__sub { font-size: 13px; color: var(--mute); }
.top__nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; padding: 6px 0; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.top__tel { font: 700 17px/1 var(--mono); text-decoration: none; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.strip {
  margin: 0; border-top: var(--hair); padding: 9px 24px; font-size: 13.5px; color: var(--mute);
  display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: var(--w); margin-inline: auto;
}
.open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--mute); font-size: 13.5px; }
.open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9a948a; }
.open.is-on { color: var(--ink); }
.open.is-on::before { background: var(--red); }

/* 일정표 보드 (첫 화면) */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.board h1 { font-size: 46px; font-weight: 500; line-height: 1.12; }
.board h1 em { font-style: normal; font-weight: 700; }
.board__date { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mute); text-align: right; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); border: var(--rule); border-right: 0; }
.days button {
  position: relative; min-height: 56px; border: 0; border-right: var(--rule); background: transparent;
  font: 700 20px/1 var(--head); color: var(--ink); cursor: pointer; padding: 8px 4px;
}
.days button small { display: block; margin-top: 4px; font: 700 11px/1 'Nanum Gothic', sans-serif; letter-spacing: .5px; color: var(--red); }
.days button[aria-selected=true] { background: var(--ink); color: var(--paper); }
.days button.is-today[aria-selected=true] small { color: #ff8a6b; }
.days button:focus-visible { outline: 3px solid var(--red); outline-offset: -5px; }
.board:not(.is-tabbed) .days { display: none; }
.panel { border: var(--rule); border-top: 0; padding: 4px 22px 8px; }
.board:not(.is-tabbed) .panel { border-top: var(--rule); margin-bottom: 12px; }
.panel__h { font-size: 13px; font-family: 'Nanum Gothic', sans-serif; color: var(--mute); padding: 14px 0 4px; letter-spacing: 0; }
.slots { list-style: none; margin: 0; padding: 0; }
.slots li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 0; border-top: var(--hair); }
.slots li:first-child { border-top: 0; }
.slot {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none;
  border: var(--rule); padding: 10px 14px 9px; transition: background .15s, color .15s;
}
.slot b { font: 700 32px/1 var(--mono); letter-spacing: -1px; }
.slot span { font-size: 12.5px; font-weight: 800; color: var(--red); }
.slot span::after { content: ' →'; }
.slot:hover, .slot:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.slot:hover span, .slot:focus-visible span { color: #ff8a6b; }
.slot__info strong { display: block; font: 700 22px/1.35 var(--head); }
.slot__info span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--mute); }
.closed { margin: 10px 0 18px; font-size: 15.5px; }
.closed b { display: block; font: 700 26px/1.3 var(--head); color: var(--red); margin-bottom: 4px; }
.board__foot { margin: 14px 0 0; font-size: 13.5px; color: var(--mute); }

.side { border-top: var(--rule); padding-top: 4px; align-self: start; }
.side__dl { margin: 0 0 18px; }
.side__dl div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 0; border-bottom: var(--hair); }
.side__dl dt { font-weight: 800; font-size: 13.5px; }
.side__dl dd { margin: 0; font-size: 14.5px; line-height: 1.6; }
.side__btn {
  display: flex; align-items: center; min-height: 48px; padding: 0 16px; margin-top: 8px;
  border: var(--rule); text-decoration: none; font-weight: 700; font-size: 15px;
}
.side__btn::after { content: '→'; margin-left: auto; }
.side__btn--ink { background: var(--ink); color: var(--paper); font-family: var(--mono); }
.side__btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 공통 섹션 머리 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: var(--rule); padding-top: 14px; margin-bottom: 20px; }
.sec-head h2 { font-size: 30px; }
.stamp { margin: 0; font: 400 13px/1.5 var(--mono); color: var(--mute); }

/* 이번 주·다음 주 */
.week { padding-bottom: 64px; }
.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: var(--hair); border-top: var(--hair); }
.date { border-right: var(--hair); border-bottom: var(--hair); padding: 12px 12px 14px; min-height: 150px; }
.date h3 { font: 700 22px/1 var(--mono); letter-spacing: -1px; margin-bottom: 10px; }
.date h3 small { font: 700 14px/1 var(--head); letter-spacing: 0; margin-left: 4px; color: var(--mute); }
.date ul { list-style: none; margin: 0; padding: 0; }
.date li { font-size: 14px; line-height: 1.45; margin-top: 8px; }
.sec-head h2 small { font: 700 15px/1 var(--mono); color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.date li a {
  display: table; margin: 0 0 3px; padding: 2px 6px; font: 700 14px/1.3 var(--mono);
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.date li a:hover { background: var(--red); }
.date--off { background: var(--paper2); }
.date--off p { margin: 0; font-size: 14px; color: var(--red); font-weight: 700; }

/* 기획 공연 표 */
.coming { padding-bottom: 72px; }
.bill { width: 100%; border-collapse: collapse; }
.bill th { text-align: left; font-size: 12.5px; color: var(--mute); font-weight: 700; padding: 0 12px 8px 0; border-bottom: var(--rule); }
.bill td { padding: 18px 12px 18px 0; border-bottom: var(--hair); vertical-align: top; font-size: 15px; }
.bill td strong { display: block; font: 700 20px/1.35 var(--head); }
.bill td span { display: block; font-size: 14px; color: var(--mute); margin-top: 3px; }
.bill__when { font: 700 17px/1.4 var(--mono); white-space: nowrap; width: 170px; }
.bill td:last-child { width: 120px; text-align: right; padding-right: 0; }
.bill td a { display: inline-block; padding: 8px 12px; border: var(--rule); text-decoration: none; font-weight: 800; font-size: 14px; }
.bill td a:hover { background: var(--ink); color: var(--paper); }
.bill td .soon { display: inline-block; margin: 0; font: 700 13px/1.4 var(--mono); color: var(--red); }

/* 공간 */
.space { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: 'big text' 's1 s2'; gap: 24px 32px; padding-bottom: 72px; }
.space figure { margin: 0; }
.space img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.9); }
.space__big { grid-area: big; }
.space__text { grid-area: text; border-top: var(--rule); padding-top: 16px; }
.space__text h2 { font-size: 28px; margin-bottom: 14px; }
.space__text p { margin: 0 0 12px; font-size: 15.5px; }
.space__rent { border-top: var(--hair); padding-top: 12px; }
.space__rent b { margin-right: 6px; }
.space__s1 { grid-area: s1; }
.space__s2 { grid-area: s2; }
.space__s1 img, .space__s2 img { aspect-ratio: auto; height: 280px; }

/* 소식 */
.news { padding-bottom: 64px; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: var(--hair); }
.news__list time { font: 700 15px/1.7 var(--mono); }
.news__list p { margin: 0; }

/* 관람 안내 */
.guide { padding-bottom: 64px; }
.guide__dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.guide__dl div { padding: 14px 0; border-bottom: var(--hair); }
.guide__dl dt { font: 700 18px/1.4 var(--head); margin-bottom: 4px; }
.guide__dl dd { margin: 0; font-size: 15px; color: #3b3833; }

/* 오시는 길 */
.visit { padding-bottom: 80px; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.visit__addr { font: 700 24px/1.4 var(--head); margin: 0 0 6px; }
.visit__grid p { margin: 0 0 16px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.visit__btns a, .visit__btns button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--rule);
  background: transparent; color: var(--ink); font: 700 14.5px/1 'Nanum Gothic', sans-serif; text-decoration: none; cursor: pointer;
}
.visit__btns a:first-child { background: var(--ink); color: var(--paper); }
.visit__btns a:hover, .visit__btns button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hours { width: 100%; border-collapse: collapse; border-top: var(--rule); }
.hours caption { text-align: left; font-weight: 800; font-size: 13.5px; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: var(--hair); font-size: 15px; }
.hours th { width: 90px; font-weight: 700; }
.hours td { font-family: var(--mono); }
.hours td.hours__note { font-family: inherit; }

/* 푸터 */
.foot { background: var(--ink); color: #cfc8b9; }
.foot__in { max-width: var(--w); margin: 0 auto; padding: 36px 24px 40px; font-size: 13.5px; line-height: 1.8; }
.foot__in p { margin: 0 0 8px; }
.foot__in a { color: inherit; }
.foot__name { font: 700 20px/1.3 var(--head); color: var(--paper); }
.foot__c { color: #8d877b; }

/* 퀵메뉴 — PC 오른쪽 세로, 모바일 하단 바 */
.quick { position: fixed; z-index: 50; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; border: var(--rule); background: var(--paper); }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 66px; min-height: 58px; padding: 6px 4px; text-decoration: none; border-top: var(--hair); text-align: center; }
.quick a:first-child { border-top: 0; background: var(--ink); color: var(--paper); }
.quick b { font: 700 14px/1.2 var(--head); }
.quick span { font-size: 9.5px; white-space: nowrap; line-height: 1.3; color: var(--mute); margin-top: 2px; }
.quick a:first-child span { color: #cfc8b9; }
.quick a:hover { background: var(--red); color: #fff; }
.quick a:hover span { color: #fff; }

@media (max-width: 1279px) {
  .quick { top: auto; bottom: 20px; transform: none; }
}
@media (max-width: 1024px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .side__dl { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date li a { display: inline-block; margin: 0 8px 0 0; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  section { padding: 0 16px; }
  .top__in { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
  .top__nav { order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; font-size: 14px; scrollbar-width: none; }
  .top__nav::-webkit-scrollbar { display: none; }
  .top__tel { margin-left: auto; font-size: 15px; padding: 9px 11px; }
  .logo__sub { display: none; }
  .strip { padding: 8px 16px; font-size: 12.5px; gap: 2px 14px; }
  .board { padding-top: 24px; padding-bottom: 44px; gap: 28px; }
  .board__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .board h1 { font-size: 32px; }
  .board__date { text-align: left; white-space: normal; font-size: 13px; }
  .days { gap: 4px; border: 0; }
  .days button { min-height: 52px; border: var(--rule); font-size: 18px; padding: 6px 0; }
  .panel { border-top: var(--rule); margin-top: 8px; padding: 0 14px 4px; }
  .slots li { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
  .slot { padding: 8px 10px 7px; }
  .slot b { font-size: 24px; }
  .slot__info strong { font-size: 18px; }
  .slot__info span { font-size: 13.5px; }
  .side, .side__dl { display: block; }
  .sec-head h2 { font-size: 25px; }
  .dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date { min-height: 0; padding: 12px; }
  .date h3 { font-size: 19px; }
  .date li { font-size: 13.5px; }
  .bill thead { display: none; }
  .bill, .bill tbody, .bill tr, .bill td { display: block; width: auto; }
  .bill tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: var(--hair); }
  .bill td { border: 0; padding: 0; }
  .bill__when { grid-column: 1 / -1; width: auto; font-size: 15px; }
  .bill td:nth-child(2) { grid-column: 1 / -1; }
  .bill td:nth-child(3) { align-self: center; font-weight: 700; }
  .bill td:last-child { width: auto; }
  .space { grid-template-columns: 1fr 1fr; grid-template-areas: 'big big' 'text text' 's1 s2'; gap: 16px 12px; padding-bottom: 52px; }
  .space__text h2 { font-size: 23px; }
  .space__s1 img, .space__s2 img { height: 130px; }
  .news__list li { grid-template-columns: 1fr; gap: 2px; }
  .guide__dl { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; gap: 28px; }
  .visit__addr { font-size: 20px; }
  .quick { left: 0; right: 0; bottom: 0; top: auto; flex-direction: row; border: 0; border-top: var(--rule); padding-bottom: env(safe-area-inset-bottom); }
  .quick a { flex: 1; width: auto; min-height: 60px; border-top: 0; border-left: var(--hair); }
  .quick a:first-child { border-left: 0; }
  .quick .quick--pc { display: none; }
  .quick b { font-size: 15px; }
  .quick span { font-size: 11px; }
}
.bill th:last-child { text-align: right; padding-right: 0; }
