/* ==========================================================
   소릿 SOLIT — 스타일
   색을 바꾸려면 아래 :root 의 값만 고치면 됩니다.
   ========================================================== */

:root {
  --paper: #efefec;      /* 바탕 */
  --ink: #0e0e0e;        /* 글자·로고 먹색 */
  --ink-2: #4b4b47;      /* 보조 글자 */
  --rule: rgb(14 14 14 / 0.16);
  --signal: #e8e23a;     /* 예매 버튼 (ENTANGLED 포스터의 노랑) */
  --field: #5a2a78;      /* 교육 프로젝트 (결과보고서의 보라) */
  --night: #070607;      /* 맨 아래 영역 (흰 로고 바탕과 같은 색) */

  --latin: "Jost", "SUIT Variable", "SUIT", system-ui, sans-serif;
  --ko: "SUIT Variable", "SUIT", "Jost", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scrollbar-color: var(--ink-2) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ko);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  caret-color: var(--ink);
  accent-color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

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

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

/* ---------- 머리글 ---------- */

.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
  padding: 0 var(--gutter);
  background: rgb(239 239 236 / 0.94);
  border-bottom: 1px solid var(--rule);
}
.masthead__logo img { height: 28px; width: auto; mix-blend-mode: multiply; }
.masthead__nav { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 0.9375rem; font-weight: 500; }
.masthead__nav a { text-decoration: none; padding: 8px 0; }
.masthead__nav a:hover { text-decoration: underline; }

/* ---------- 다음 공연 ---------- */

.release {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 32px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100svh - 64px);
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px);
}

.release__cover {
  grid-column: 1 / 6;
  position: relative;
  align-self: center;
  display: flex; gap: 14px; align-items: stretch;
}
.release__cover img {
  width: auto;
  height: min(76svh, 880px);
  aspect-ratio: 1131 / 1600;
  object-fit: cover;
  box-shadow: 0 30px 60px -28px rgb(14 14 14 / 0.55), 0 8px 18px -10px rgb(14 14 14 / 0.3);
}
.facts__cat dd { font-family: var(--latin); font-size: 1.375rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.facts__cat dd span { display: block; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-2); }
.facts__cat dt { padding-top: 6px; }

.release__edge {
  writing-mode: vertical-rl;
  display: flex; justify-content: space-between;
  font-family: var(--latin);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.release__edge span:first-child { color: var(--ink); font-weight: 500; }

.release__body { grid-column: 7 / 13; padding-bottom: 8px; }

.release__title {
  font-family: var(--latin);
  font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin-left: -0.05em;
}
.release__subtitle {
  margin-top: 18px;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
}

.facts { margin-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--ink); }
.facts > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt { color: var(--ink-2); font-size: 0.875rem; padding-top: 2px; }
.facts dd { font-variant-numeric: tabular-nums; }
.facts__dday dd { font-family: var(--latin); font-weight: 500; letter-spacing: 0.04em; }

.release__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--ink); color: var(--signal); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn__icon { width: 14px; height: 14px; }

/* ---------- 공연 카탈로그 ---------- */

.catalogue {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter) clamp(64px, 8vw, 120px);
}
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  grid-column: 1 / 6;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
}
.section-head p { grid-column: 7 / 12; color: var(--ink-2); max-width: 46ch; padding-top: 8px; }

.shelf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.shelf__spines { display: flex; align-items: flex-end; gap: 6px; }

.spine {
  appearance: none; border: 0; cursor: pointer;
  writing-mode: vertical-rl;
  display: flex; justify-content: space-between; align-items: center;
  width: 58px; height: 440px;
  padding: 16px 0;
  background: var(--spine); color: var(--spine-ink);
  font: inherit; font-size: 0.9375rem; line-height: 1;
  transition: transform 460ms var(--ease-out), box-shadow 460ms var(--ease-out);
  box-shadow: inset -1px 0 0 rgb(0 0 0 / 0.12), inset 1px 0 0 rgb(255 255 255 / 0.12);
}
.spine__no { font-family: var(--latin); font-weight: 500; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.spine__title { font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.02em; }
.spine__date { font-family: var(--latin); font-size: 0.8125rem; letter-spacing: 0.08em; opacity: 0.8; }
.spine:hover { transform: translateY(-10px); }
.spine[aria-selected="true"] {
  transform: translateY(-28px);
  box-shadow: 0 18px 30px -14px rgb(14 14 14 / 0.5), inset -1px 0 0 rgb(0 0 0 / 0.12);
}
.spine:focus-visible { outline-offset: 4px; }

.shelf__line { position: relative; height: 34px; border-top: 1px solid var(--ink); margin-top: 0; }
.shelf__now {
  position: absolute; top: -1px; left: 0;
  transform: translateX(-50%);
  padding-top: 10px;
  font-size: 0.8125rem; font-weight: 700;
  white-space: nowrap;
}
.shelf__now::before {
  content: ""; position: absolute; left: 50%; top: -9px;
  width: 1px; height: 17px; background: var(--ink);
}
.shelf__now[hidden] { display: none; }

.shelf__panels { min-width: 0; }

.work {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: end;
}
.work + .work { margin-top: 64px; }           /* 스크립트가 없을 때: 모두 나열 */
.js .work + .work { margin-top: 0; }
.work[hidden] { display: none; }

.work__figure { display: flex; gap: 12px; align-items: stretch; }
.work__edge {
  writing-mode: vertical-rl;
  display: flex; justify-content: space-between;
  font-family: var(--latin); font-size: 0.75rem; letter-spacing: 0.12em;
  color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.work__edge span:first-child { color: var(--ink); font-weight: 500; }
.work__cover {
  flex: 1 1 0; min-width: 0; width: 100%;
  aspect-ratio: 1131 / 1600; object-fit: cover;
  box-shadow: 0 24px 48px -26px rgb(14 14 14 / 0.5);
}
.js .work.is-entering .work__figure { animation: pull-out 620ms var(--ease-out) both; }
.js .work.is-entering .work__text { animation: settle 620ms 80ms var(--ease-out) both; }

@keyframes pull-out {
  from { clip-path: inset(0 100% 0 0); transform: translateX(-28px); }
  to   { clip-path: inset(0 0 0 0);   transform: none; }
}
@keyframes settle {
  from { opacity: 0.001; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.work__text h3 { font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.work__en { margin-top: 8px; font-family: var(--latin); color: var(--ink-2); font-size: 1.0625rem; }
.facts--small { margin-top: 28px; font-size: 0.9375rem; }
.facts--small > div { grid-template-columns: 5.5rem 1fr; }
.work__no {
  margin-top: 18px;
  font-family: var(--latin); font-size: 0.8125rem; letter-spacing: 0.04em;
  color: var(--ink-2);
}
.work__link {
  display: inline-block; margin-top: 20px;
  font-weight: 700;
  background: var(--signal); padding: 10px 18px; min-height: 44px; text-decoration: none;
  border: 1px solid var(--ink);
}
.work__link:hover { background: var(--ink); color: var(--signal); }

/* ---------- 소개 ---------- */

.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(72px, 9vw, 128px);
}
.about__lead h2 { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.about__ko { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.about__en { font-family: var(--latin); font-weight: 400; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: 0.3em; }
.about__one {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(1.25rem, 2.5vw, 2.25rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.02em;
  max-width: 32em; text-wrap: balance;
}
.about__more { margin-top: 18px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.75; color: var(--ink-2); }

.imprints {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 2px solid var(--ink);
}
.imprint { padding: 24px 28px 8px 0; }
.imprint + .imprint { padding-left: 28px; border-left: 1px solid var(--rule); }
.imprint__name { font-family: var(--latin); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: 0.1em; line-height: 1.2; }
.imprint__role { margin: 4px 0 18px; color: var(--ink-2); font-size: 0.9375rem; }
.imprint__works {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--latin); font-size: 0.875rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}

/* ---------- 교육: 소리조립소 ---------- */

.sorijo {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter);
}
.sorijo__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  align-items: end;
}
.sorijo__mark { grid-column: 1 / 8; }
.sorijo__mark img { width: 100%; mix-blend-mode: multiply; }
.sorijo__name { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.sorijo__lead { grid-column: 8 / 13; padding-bottom: 12px; }
.sorijo__lead > p { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }

.sorijo__flow {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  margin-top: clamp(56px, 7vw, 96px);
}
.sorijo__flow h3 { grid-column: 1 / 4; font-size: 1.25rem; font-weight: 700; }
.flow { grid-column: 4 / 13; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.flow li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.flow__name { font-weight: 700; }
.flow__what { color: var(--ink-2); }

.sorijo__media {
  max-width: 960px;
  margin-top: clamp(56px, 7vw, 96px);
}
.sorijo__media img, .sorijo__media video {
  display: block; width: 100%; height: auto; background: var(--ink);
  box-shadow: 0 24px 48px -26px rgb(14 14 14 / 0.5);
}
.sorijo__media figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- 교육: 핑거아트? 핑거액트! ---------- */

.education { background: var(--field); color: #fff; }
.education ::selection { background: #fff; color: var(--field); }
.education :focus-visible { outline-color: #fff; }
.education__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter);
}
.education__title {
  display: flex; flex-direction: column;
  font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em;
}
.education__title span:last-child { padding-left: clamp(40px, 12vw, 200px); }
.education__meta { margin-top: 24px; font-size: 1rem; color: rgb(255 255 255 / 0.8); }
.education__cols {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.5);
}
.education__cols p { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 40ch; }
.education__keys li { padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / 0.28); font-weight: 600; }
.education__keys li:first-child { padding-top: 0; }
.education__credit { margin-top: 48px; font-size: 0.875rem; color: rgb(255 255 255 / 0.8); }

/* ---------- 함께한 곳 ---------- */

.support {
  max-width: var(--max); margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px;
  border-bottom: 1px solid var(--rule);
}
.support h2 { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.support ul { display: flex; flex-wrap: wrap; gap: 8px 32px; font-weight: 600; }

/* ---------- 문의 ---------- */

.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 144px) var(--gutter);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px;
}
.contact h2 {
  grid-column: 1 / 7;
  font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em;
}
.contact__list { grid-column: 7 / 13; align-self: end; border-top: 2px solid var(--ink); }
.contact__list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact__list dt { color: var(--ink-2); }
.contact__list dd { font-size: 1.25rem; font-weight: 600; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.contact__list a:hover { background: var(--signal); }

/* ---------- 바닥글 ---------- */

.colophon {
  background: var(--night); color: rgb(255 255 255 / 0.72);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 56px var(--gutter) 40px;
  font-size: 0.875rem;
}
.colophon img { width: 96px; }
.colophon__text { text-align: right; }
.colophon__line { color: #fff; font-family: var(--latin); letter-spacing: 0.06em; margin-bottom: 4px; }

/* 넓은 화면: 소개 두 번째 문단을 두 줄로 고정 */
@media (min-width: 1081px) {
  .about__line { display: block; white-space: nowrap; }
}

/* ---------- 태블릿 ---------- */

@media (max-width: 1080px) {
  .shelf { grid-template-columns: minmax(0, 1fr); }
  .shelf__spines { justify-content: flex-start; }
  .work { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* ---------- 휴대폰 ---------- */

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .masthead { height: 56px; }
  .masthead__logo img { height: 22px; }
  .masthead__nav { gap: 18px; font-size: 0.875rem; }
  html { scroll-padding-top: 64px; }

  .release { display: block; min-height: 0; padding-top: 12px; }
  .release__cover img { height: auto; width: 52vw; flex: none; }
  .release__edge { display: none; }
  .release__body { margin-top: 16px; }
  .facts > div { grid-template-columns: 6rem 1fr; padding: 7px 0; }
  .release__subtitle { margin-top: 10px; }
  .facts { margin-top: 20px; }
  .release__actions { margin-top: 20px; }
  .release__actions .btn { flex: 1 1 auto; justify-content: center; }

  .section-head { display: block; }
  .section-head p { margin-top: 12px; }

  .shelf__spines { gap: 4px; }
  .spine { flex: 1 1 0; width: auto; min-width: 0; height: 300px; font-size: 0.8125rem; padding: 12px 0; }
  .spine__title { font-size: 0.9375rem; }
  .spine[aria-selected="true"] { transform: translateY(-18px); }
  .work { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .work__figure { width: 80%; }

  .imprints { grid-template-columns: minmax(0, 1fr); }
  .imprint, .imprint + .imprint { padding: 24px 0 16px; border-left: 0; }
  .imprint + .imprint { border-top: 1px solid var(--rule); }

  .sorijo__head, .sorijo__flow { display: block; }
  .sorijo__lead { margin-top: 24px; }
  .sorijo__flow h3 { margin-bottom: 14px; }
  .flow li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .flow__what { font-size: 0.9375rem; }

  .education__cols { grid-template-columns: minmax(0, 1fr); }

  .contact { display: block; }
  .colophon { flex-direction: column; align-items: flex-start; }
  .colophon__text { text-align: left; }
  .contact__list { margin-top: 32px; }
  .contact__list > div { grid-template-columns: 6rem 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
