/* =========================================================
   비책기지 홈페이지 스타일 — 리플렛 톤 (주황 + 흰색)
   색상·글꼴은 아래 :root 에서 한 번에 바꿀 수 있어요.
   ========================================================= */
:root {
  --orange: #E65F36;       /* 리플렛 메인 주황 */
  --orange-deep: #C2461F;  /* 흰 배경 위 작은 글자용 진한 주황 */
  --orange-soft: #FDF0EA;  /* 연한 주황 배경 */
  --white: #FFFFFF;
  --ink: #4A2416;          /* 본문 글자 (주황빛 짙은 갈색) */
  --ink-soft: #8A5A48;     /* 보조 글자 */

  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "Gowun Batang", "AppleMyungjo", "Nanum Myeongjo", serif;

  --wrap: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--font-serif); font-weight: 700; line-height: 1.35; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 42px); color: var(--orange); margin-bottom: 36px; }
h3 { font-family: var(--font-sans); font-weight: 800; margin: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- 반짝이 장식 ---------- */
.sparkle { position: absolute; color: var(--white); pointer-events: none; }
.dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--white); pointer-events: none; }

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1.5px solid var(--orange);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { text-decoration: none; font-size: 16px; font-weight: 700; color: var(--orange); }
.site-nav a:hover { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 6px; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--orange); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1.5px solid var(--orange);
    display: none;
  }
  .site-nav a { padding: 14px 16px; border-top: 1px solid var(--orange-soft); }
  .site-header.open .site-nav { display: flex; }
  .site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- 버튼 ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-white { background: var(--white); color: var(--orange); border: 2px solid var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--orange); }

/* ---------- 첫 화면 (표지) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--orange); color: var(--white);
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 64px;
}
.hero-inner { position: relative; z-index: 1; width: 100%; display: grid; gap: 40px; align-items: center; }
.hero-logo { width: min(62vw, 300px); justify-self: center; order: -1; }
.hero h1 { font-size: clamp(30px, 5vw, 56px); }
.eyebrow { font-weight: 800; font-size: clamp(16px, 1.8vw, 19px); margin-bottom: 18px; }
.hero-lead { font-size: clamp(16px, 2vw, 19px); margin-top: 22px; opacity: .95; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; gap: 64px; }
  .hero-logo { order: 0; width: 100%; max-width: 380px; max-height: 74vh; object-fit: contain; }
}
.hero .sp-1 { width: 34px; height: 34px; top: calc(var(--header-h) + 32px); right: 14%; }
.hero .sp-2 { width: 22px; height: 22px; bottom: 12%; right: 6%; }
.hero .sp-3 { width: 42px; height: 42px; bottom: 9%; left: 46%; }
.hero .dt-1 { top: calc(var(--header-h) + 26px); right: 7%; }
.hero .dt-2 { width: 8px; height: 8px; bottom: 20%; left: 6%; }
.hero .dt-3 { width: 6px; height: 6px; top: 38%; left: 52%; }

/* ---------- 섹션 공통 ---------- */
.section { position: relative; padding: 104px 0; }
.section-soft { background: var(--orange-soft); }
@media (max-width: 767px) { .section { padding: 68px 0; } }

.two-col { display: grid; gap: 4px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 2fr; gap: 48px; } }
.prose { max-width: 700px; }
.serif { font-family: var(--font-serif); font-size: 18px; line-height: 1.95; color: var(--orange-deep); }

/* 주황 배경 섹션 (리플렛 안쪽 왼쪽 면) */
.section-orange { background: var(--orange); color: var(--white); }
.section-orange h2 { color: var(--white); }
.section-orange .lead { font-family: var(--font-serif); font-size: clamp(17px, 2vw, 19px); line-height: 1.95; }
.unesco { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.unesco li { border: 1.5px solid var(--white); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.note { font-size: 14px; line-height: 1.75; opacity: .92; border-top: 1px solid rgba(255,255,255,.6); padding-top: 20px; margin-top: 36px; }

/* ---------- 서점 목록 (리플렛 표기 방식) ---------- */
.bookstores {
  list-style: none; padding: 24px 0 0; margin: 32px 0 0;
  border-top: 1.5px solid var(--orange);
  font-family: var(--font-sans); font-size: 15px; line-height: 2.1; color: var(--ink-soft);
  columns: 2 260px; column-gap: 32px;
}
.bookstores li { break-inside: avoid; }
.bookstores strong { color: var(--orange); font-weight: 800; }

/* ---------- 프로젝트 ---------- */
.projects { display: grid; gap: 72px 56px; }
@media (min-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } }
.project-tag { font-size: 15px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.project h3 {
  font-size: clamp(23px, 2.6vw, 28px); color: var(--orange);
  padding-bottom: 12px; margin-bottom: 18px;
  border-bottom: 1.5px solid var(--orange);
}
.project > p:not(.project-tag) { font-size: 16px; }
.project .duo { margin-top: 28px; }

/* 리플렛처럼 주황 듀오톤 + 둥근 덩어리 모양 사진 */
.duo { position: relative; overflow: hidden; background: var(--white); isolation: isolate; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.duo::after {
  content: ""; position: absolute; inset: 0;
  background: var(--orange); mix-blend-mode: screen; pointer-events: none;
}
.blob-1 { border-radius: 46% 54% 42% 58% / 58% 46% 54% 42%; }
.blob-2 { border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; }
.blob-3 { border-radius: 40% 60% 48% 52% / 38% 44% 56% 62%; }
.blob-4 { border-radius: 62% 38% 56% 44% / 50% 58% 42% 50%; }
.blob-5 { border-radius: 50% 50% 38% 62% / 54% 40% 60% 46%; }
.blob-6 { border-radius: 44% 56% 60% 40% / 52% 48% 52% 48%; }
.duo-pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: center; margin-top: 28px; }
.duo-pair .duo { margin-top: 0; }
.duo-pair .blob-3 img { aspect-ratio: 3 / 4; }
.duo-pair .blob-4 img { aspect-ratio: 1; }

.more { text-align: center; margin-top: 64px; }
.more a { color: var(--orange); font-weight: 700; }

/* ---------- 문의 ---------- */
.contact-lead { margin-top: -20px; margin-bottom: 36px; color: var(--ink-soft); }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px; border: 2px solid var(--orange); border-radius: 24px;
  text-decoration: none; color: var(--orange); transition: background .2s, color .2s;
}
.contact-card:hover { background: var(--orange); color: var(--white); }
.contact-type { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.contact-card:hover .contact-type { color: var(--white); }
.contact-card strong { font-size: 19px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.contact-go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; }

/* 리플렛 하단 정보표 */
.info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 48px 0 0; font-size: 15px; }
.info dt { color: var(--ink-soft); }
.info dd { margin: 0; font-weight: 800; color: var(--orange); }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }

/* ---------- 하단 ---------- */
.site-footer { position: relative; background: var(--orange); color: var(--white); padding: 56px 0 32px; font-size: 14px; overflow: hidden; }
.site-footer .sp-f { width: 28px; height: 28px; top: 28px; right: 8%; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-brand { display: flex; align-items: flex-end; gap: 20px; }
.footer-brand img { width: 66px; }
.footer-brand p { margin: 0 0 2px; }
.footer-name { font-size: 17px; font-weight: 800; }
.partners { width: 240px; }
.copy { margin: 32px 0 0; font-size: 13px; opacity: .8; }

/* 표지와 소개 섹션 사이 구분선 */
.section-orange { border-top: 2px solid rgba(255,255,255,.4); }
/* 모바일에서 반짝이가 버튼을 가리지 않도록 */
@media (max-width: 899px) {
  .hero .sp-3 { width: 28px; height: 28px; bottom: 3%; left: auto; right: 12%; }
  .hero .dt-3 { display: none; }
}

/* ---------- 콜라보랩 사진 3장 ---------- */
.duo-pair .pair-wide { grid-column: 1 / -1; width: 78%; justify-self: center; }
.duo-pair .pair-wide img { aspect-ratio: 4 / 3; }

/* ---------- 홈 → 사업단 소개 링크 ---------- */
.team-link { margin-top: 32px; }

/* =========================================================
   사업단 소개 페이지 (team.html)
   ========================================================= */
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.page-hero {
  position: relative; overflow: hidden;
  background: var(--orange); color: var(--white);
  padding: calc(var(--header-h) + 72px) 0 72px;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); }
.page-hero .sp-1 { width: 36px; height: 36px; top: calc(var(--header-h) + 36px); right: 12%; }
.page-hero .sp-2 { width: 22px; height: 22px; bottom: 18%; right: 26%; }
.page-hero .dt-1 { top: calc(var(--header-h) + 28px); right: 6%; }

.member-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.member-jump a {
  border: 2px solid var(--white); border-radius: 999px; padding: 8px 20px;
  font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.member-jump a:hover { background: var(--white); color: var(--orange); }

.member-inner { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .member-inner { grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
  .member-side { position: sticky; top: calc(var(--header-h) + 32px); }
}
.member-photo { max-width: 340px; }
.member-photo img { aspect-ratio: 1; }
.member-role { margin: 24px 0 4px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.member h2 { margin-bottom: 14px; font-size: clamp(34px, 4.6vw, 46px); }
.member-project {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--orange); color: var(--white);
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.member-project::before { content: "담당 프로젝트 · "; font-weight: 500; opacity: .9; }
.member-project:hover { background: var(--orange-deep); }

.member-body { max-width: 720px; }
.member-body > p { font-size: 17px; line-height: 1.9; }
.pull {
  margin: 0 0 36px; padding: 0 0 28px;
  border-bottom: 1.5px solid var(--orange);
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px); line-height: 1.55; color: var(--orange);
}
.pull::before { content: "“"; display: block; font-size: 1.8em; line-height: .8; }

.member-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 44px; }
.member-gallery img { aspect-ratio: 1; }
.member-gallery .duo:nth-child(6n+1) { border-radius: 46% 54% 42% 58% / 58% 46% 54% 42%; }
.member-gallery .duo:nth-child(6n+2) { border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; }
.member-gallery .duo:nth-child(6n+3) { border-radius: 40% 60% 48% 52% / 38% 44% 56% 62%; }
.member-gallery .duo:nth-child(6n+4) { border-radius: 62% 38% 56% 44% / 50% 58% 42% 50%; }
.member-gallery .duo:nth-child(6n+5) { border-radius: 50% 50% 38% 62% / 54% 40% 60% 46%; }
@media (max-width: 599px) { .member-gallery { grid-template-columns: 1fr 1fr; } }

.cta { text-align: center; }
.cta .lead { max-width: 560px; margin: 0 auto; }
.cta .btn-row { justify-content: center; }

/* 사업단 페이지 사진은 주황 톤 없이 원본 색으로 */
.member .duo img { filter: none; }
.member .duo::after { display: none; }

/* 사업단 본문 사이사이 사진 */
.inline-photo { margin: 40px auto 44px; width: 86%; }
.inline-photo img { aspect-ratio: 4 / 3; }
.inline-photo.wide { width: 100%; }
.inline-photo.wide img { aspect-ratio: 16 / 9; }
.inline-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 44px; align-items: center; }
.inline-pair img { aspect-ratio: 1; }
@media (max-width: 599px) { .inline-photo { width: 100%; } }

/* 세로 사진에서 아래쪽 인물이 보이도록 (이수명 – 해 질 녘 숲가) */
.inline-photo.focus-people img { aspect-ratio: 1; object-position: 50% 95%; }
