@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

/* 이음 펠로우십 — 기존 사이트 정체성(Pretendard·흰 바탕·민트)을 정돈한 스타일 */
:root {
  --white: #ffffff;
  --tint: #f7f8f8;
  --ink: #212121;
  --body: #4b4b4b;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --mint: #49beb7;
  --mint-deep: #389c96;
  --mint-text: #2a7d78;
  --coral: #ff8a5c;

  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --max: 1120px;
  --read: 680px;
  --sec: 96px;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--body);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.025em; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
::selection { background: #d9f2f0; }

.wrap { max-width: calc(var(--max) + 64px); margin: 0 auto; padding: 0 32px; }
.read { max-width: var(--read); margin-left: auto; margin-right: auto; }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; white-space: nowrap; }
.hd nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--mute); }
.hd nav a { transition: color .15s; }
.hd nav a:hover { color: var(--ink); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 24px;
  font-size: 15px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  cursor: pointer; transition: background-color .18s, border-color .18s, color .18s;
}
.btn:hover { border-color: var(--ink); }
.btn--pri { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn--pri:hover { background: var(--mint-deep); border-color: var(--mint-deep); color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* 첫 화면 */
.hero { position: relative; min-height: 620px; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .48); }
.hero__in { position: relative; z-index: 1; padding: 96px 20px; }
.hero h1 { color: var(--white); font-size: 56px; font-weight: 700; line-height: 1.25; }
.hero p { font-size: 18px; line-height: 1.7; margin-top: 20px; opacity: .92; }
.hero .btn { margin-top: 36px; }

/* 섹션 공통 */
.sec { padding: var(--sec) 0; }
.sec--tint { background: var(--tint); }
.sec + .sec:not(.sec--tint) { border-top: 1px solid var(--line); }
.sec--tint + .sec { border-top: 0; }
.sh { text-align: center; margin-bottom: 40px; }
.sh h2 { font-size: 34px; font-weight: 700; line-height: 1.35; }
.sh p { max-width: var(--read); margin: 14px auto 0; color: var(--mute); }
.cap { font-size: 14px; line-height: 1.6; color: var(--mute); }
figcaption { font-size: 14px; line-height: 1.6; color: var(--mute); margin-top: 10px; }

/* 이음이 찾는 사람 */
.quote { max-width: 820px; margin: 0 auto; text-align: center; font-size: 26px; font-weight: 500; line-height: 1.6; color: var(--mint-text); letter-spacing: -0.02em; }
.about { margin-top: 48px; display: grid; gap: 1.1em; }
.who { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.who h3 { font-size: 22px; font-weight: 600; line-height: 1.45; }
.who ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.who li { padding-left: 18px; position: relative; }
.who li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* 1년의 여정 */
.beads { display: block; width: 220px; height: 40px; margin: -16px auto 40px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.steps .k { font-size: 14px; font-weight: 600; color: var(--mint-text); }
.steps h3 { font-size: 22px; font-weight: 600; line-height: 1.45; margin-top: 4px; }
.steps p { font-size: 16px; line-height: 1.7; margin-top: 10px; }

/* 활동과 참여자의 말 */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.voices { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voices blockquote { border-top: 1px solid var(--line); padding-top: 20px; }
.voices blockquote p { font-size: 18px; font-weight: 500; line-height: 1.65; color: var(--mint-text); }
.voices__src { margin-top: 24px; text-align: center; }

/* 부산 */
.busan { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.busan__txt { display: grid; gap: 1.1em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.stats div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.stats div:nth-child(odd) { padding-right: 24px; }
.stats dt { font-size: 44px; font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats dd { font-size: 15px; line-height: 1.6; margin-top: 8px; }
.stats-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.stats-src { margin-top: 14px; }

/* 일정과 연혁 */
.plan { max-width: 880px; margin: 0 auto; }
.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 172px 1fr auto; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row .d { font-weight: 600; color: var(--mint-text); font-variant-numeric: tabular-nums; }
.row .t { font-size: 18px; font-weight: 600; color: var(--ink); }
.row .w { font-size: 15px; color: var(--mute); text-align: right; }
.hist { margin-top: 56px; }
.hist h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.hist .row { padding: 12px 0; }
.hist .row .t { font-size: 16px; font-weight: 500; color: var(--body); }
.hist .row .d { color: var(--mute); font-weight: 500; }

/* 이음 나이트 안내 */
.night { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.night h2 { font-size: 34px; font-weight: 700; line-height: 1.35; }
.night .facts { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 16px; color: var(--ink); }
.night .desc { margin-top: 14px; max-width: 520px; }

/* 파트너 */
.partners { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 880px; margin: 0 auto; }
.partners li { padding-top: 24px; border-top: 1px solid var(--line); }
.partners .logo { height: 56px; display: flex; align-items: center; }
.partners .logo img { max-height: 40px; width: auto; }
.partners .logo span { font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.partners .role { font-size: 14px; font-weight: 600; color: var(--mint-text); margin-bottom: 6px; }
.partners p:not(.role) { font-size: 15px; line-height: 1.7; margin-top: 6px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink); transition: color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--mint-text); }
.faq details p { padding: 0 0 24px; max-width: 680px; }
.faq a { color: var(--mint-text); text-decoration: underline; text-underline-offset: 3px; }

/* 푸터 */
.ft { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 14px; color: var(--mute); }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.ft .brand { display: block; margin-bottom: 8px; }
.ft b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.ft a:hover { color: var(--ink); }
.ft .copy { grid-column: 1 / -1; margin-top: 24px; }

/* 이음 나이트 상세 페이지 */
.page-hd { padding: 80px 0 48px; text-align: center; }
.page-hd .k { font-size: 15px; font-weight: 600; color: var(--mint-text); }
.page-hd h1 { font-size: 48px; font-weight: 700; line-height: 1.3; margin-top: 8px; }
.page-hd p { max-width: var(--read); margin: 16px auto 0; }
.info { max-width: 800px; margin: 0 auto; }
.info .row { grid-template-columns: 120px 1fr; }
.todo { max-width: 800px; margin: 0 auto; list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.todo li { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; color: var(--ink); }
.cta { text-align: center; }
.cta p { margin-top: 14px; }
.cta .btn { margin-top: 28px; }

/* 태블릿 */
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .hd .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 0 16px; }
  .hd .btn { margin-left: auto; }
  .hd nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 22px; padding: 10px 0 12px; white-space: nowrap; scrollbar-width: none; }
  .hd nav::-webkit-scrollbar { display: none; }
  .busan { grid-template-columns: 1fr; gap: 40px; }
}

/* 모바일 */
@media (max-width: 760px) {
  :root { --sec: 64px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand { font-size: 17px; }
  .hd .btn--sm { padding: 0 12px; }
  .hero__bg { object-position: 35% 50%; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .sh { margin-bottom: 28px; }
  .sh h2, .night h2 { font-size: 28px; }
  .quote { font-size: 22px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps h3 { font-size: 20px; }
  .beads { width: 150px; height: 28px; margin-bottom: 28px; }
  .photos, .voices, .partners { grid-template-columns: 1fr; gap: 16px; }
  .voices { margin-top: 40px; gap: 24px; }
  .stats dt { font-size: 36px; }
  .row, .info .row { grid-template-columns: 1fr; gap: 2px; }
  .row .w { text-align: left; }
  .night { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; }
  .ft .wrap { grid-template-columns: 1fr; }
  .page-hd { padding: 56px 0 32px; }
  .page-hd h1 { font-size: 34px; }
}
.photos--two { margin-top: 56px; grid-template-columns: repeat(2, 1fr); }
.cta__btns { margin-top: 28px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cta .cta__btns .btn { margin-top: 0; }
@media (max-width: 760px) { .photos--two { grid-template-columns: 1fr; } }

/* 접근성 */
[id] { scroll-margin-top: 88px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sec--short { padding: 64px 0; }
@media (max-width: 1000px) { [id] { scroll-margin-top: 120px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media (max-width: 360px) { .hero h1 { font-size: 29px; } }

/* 연말 파티 페이지 */
.night-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: start; max-width: 1040px; }
.night-poster img { width: 100%; border-radius: var(--r); }
.night-h { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.page-hd .cta__btns { margin-top: 28px; }
@media (max-width: 860px) { .night-grid { grid-template-columns: 1fr; } .night-poster { max-width: 420px; } }
