/* vol1/css/vol_index.css
 * 안성마춤 웹진 — 메인 페이지 섹션 스타일.
 * 공통 규칙(헤더 대비 등)은 webzine_common/css/index.css.
 *
 * 구조 규약
 *   section.section            섹션 루트
 *   .section__inner            섹션 내부 콘텐츠 컨테이너 (최대 1200px)
 *   .w-max                     모든 텍스트 출력 div 의 최대 너비(1200px) 제약
 *
 * 섹션 목록
 *   1 hero        배경 + 배경 내 텍스트
 *   2 focus       풀블리드 이미지 + 왼쪽 텍스트
 *   3 people      풀블리드 이미지 + 오른쪽 텍스트(내부 왼쪽 정렬)
 *   4 mosaic      2x2 엇갈림 그리드 (ONE DAY / HOME TABLE)
 *   5 banner      이미지 + 우측 캡션 패널 (SEASON PICK)
 *   6 cards       2단 카드 (MARKET / LOCAL BRAND)
 */

/* ═══ 공통 토큰 ═══════════════════════════════ */
:root {
  --w-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-gap: 30px;
  --section-pad: clamp(48px, 6vw, 88px);
}

/* 모든 텍스트 출력 div 의 최대 너비 제약 */
.w-max {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  box-sizing: border-box;
}

.section {
  position: relative;
  margin-block: var(--section-gap);
}
.section:first-child { margin-top: 0; }
.section:last-child { margin-bottom: var(--section-gap); }
.section__inner {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* ═══ 1. HERO ═════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #1a1a1a;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #1a1a1a;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 10, 0.32) 0%, rgba(10, 14, 10, 0.12) 42%, rgba(10, 14, 10, 0.4) 100%);
}
.hero__text {
  padding-inline: var(--gutter);
  padding-block: calc(var(--header-h) + 24px) 64px;
  text-align: center;
  color: #ffffff;
}
.hero__eyebrow {
  margin-bottom: 18px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.hero__title {
  margin-bottom: 28px;
  color : white;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.hero__rule {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero__mark {
  height: clamp(52px, 7vw, 100px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hero__line {
  width: 100%;
  height: 2px;
  margin: 0;
  border: 0;
  background: #ffffff;
}
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color : white;
  font-weight: 500;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  word-break: keep-all;
}
.hero__scrolldown {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ═══ 2·3. 풀블리드 피처 (FOCUS / PEOPLE) ═════ */
.feature {
  position: relative;
  display: block;
  min-height: 100vh;
  /* margin-top: 30px; */
  overflow: hidden;
  isolation: isolate;
  background: #111;
}
.feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.feature:hover .feature__img { transform: scale(1.04); }
.feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.05) 75%);
}
.feature--right .feature__scrim {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.05) 75%);
}
/* 텍스트 컨테이너: 최대 1200px 안에서 좌/우 절반 칼럼에 배치 */
.feature__body {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.feature__text {
  grid-column: 1 / 2;
  margin-block: 10px;
  color: #ffffff;
  text-align: left;
}
.feature--right .feature__text { grid-column: 2 / 3; }
.feature__kicker {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.feature__kicker::after {
  content: '';
  display: block;
  margin-top: 14px;
  width: 100%;
  max-width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.55);
}
.feature__title {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 720;
  line-height: 1.4;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.feature__summary {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  word-break: keep-all;
}
.feature__author {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ═══ 4. 모자이크 2x2 (ONE DAY / HOME TABLE) ══ */
.mosaic-section {
  background: var(--surface);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 0px;
}
.mosaic__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  height: 100%;
}
.mosaic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mosaic__media:hover img { transform: scale(1.04); }
.mosaic__panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
}
.mosaic__kicker {
  margin-bottom: 14px;
  color: var(--ink-sub);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.mosaic__title {
  margin-bottom: 14px;
  color: var(--ink-strong);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 750;
  line-height: 1.5;
  word-break: keep-all;
}
.mosaic__summary {
  color: var(--ink-sub);
  font-size: 1.1rem;
  line-height: 1.8;
  word-break: keep-all;
}
/* 셀 기본 배경: 흰색 */
.mosaic__cell { background: #ffffff; }

/* 패널 내부 여백 */
.mosaic {
  --panel-pad-x: clamp(28px, 3.4vw, 52px);
  --panel-pad-y: clamp(28px, 3.4vw, 48px);
}

/* 글자 출력 div: 회색 박스 (셀 배경은 흰색 유지)
   셀의 남은 높이를 모두 채워 상/하 빈 공간이 생기지 않게 한다 */
.mosaic__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-2, #f2f1ee);
  padding: var(--panel-pad-y) var(--panel-pad-x);
  border-radius: var(--radius-sm);
}

/* 셀 바깥 여백(offset): 회색 박스를 어느 쪽에서 띄울지 결정 */
.mosaic {
  --panel-offset: clamp(24px, 3vw, 56px);
}

/* ── 1행: 사진(좌) · ONE DAY 텍스트(우) ──
   회색 박스를 위쪽·오른쪽에서 띄운다 */
.mosaic__cell--media-left { grid-column: 1 / 2; }
.mosaic__cell--panel-right {
  grid-column: 2 / 3;
  justify-content: flex-start;
  padding-top: var(--panel-offset);
  padding-right: var(--panel-offset);
}

/* ── 2행: HOME TABLE 텍스트(좌) · 사진(우) ──
   회색 박스를 아래쪽·왼쪽에서 띄운다 */
.mosaic__cell--panel-left {
  grid-column: 1 / 2;
  justify-content: flex-end;
  padding-bottom: var(--panel-offset);
  padding-left: var(--panel-offset);
}
.mosaic__cell--media-right { grid-column: 2 / 3; }

/* ═══ 5. 배너 (SEASON PICK) ═══════════════════ */
.banner-section {
  padding-block: var(--section-pad);
  background: var(--surface-2, #f2f1ee);
}
.banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* gap: clamp(24px, 4vw, 56px); */
  /* padding: clamp(24px, 3.5vw, 48px); */
  background: #ffffff;
  border-radius: var(--radius-sm);
}
.banner__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
}
.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.banner:hover .banner__media img { transform: scale(1.03); }
.banner__text { 
  text-align: center; 
  padding: 40px;
}
.banner__badge {
  display: block;
  padding: clamp(18px, 2.6vw, 28px) clamp(16px, 3vw, 32px);
  background: #cfc9bd;
  border-radius: 2px;
}
.banner__kicker {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: clamp(1.1rem, 1.9vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.banner__title {
  color: #ffffff;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  line-height: 1.7;
  word-break: keep-all;
}
.banner__summary {
  margin-top: clamp(18px, 2.4vw, 28px);
  color: var(--ink-sub);
  font-size: 1.1rem;
  line-height: 1.8;
  word-break: keep-all;
}

/* ═══ 6. 카드 (MARKET / LOCAL BRAND) ══════════ */
.cards-section {
  padding-block: var(--section-pad);
  background: var(--surface);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.card { display: block; }
.card__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img { transform: scale(1.03); }
.card__text { text-align: center; }
.card__title {
  margin-bottom: 10px;
  color: var(--ink-sub);
  font-size: clamp(1.1rem, 1.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.card__desc {
  color: var(--ink-sub);
  font-size: 1.1rem;
  line-height: 1.7;
  word-break: keep-all;
}

/* ═══ 반응형 ══════════════════════════════════ */
@media (max-width: 1024px) {
  .banner { grid-template-columns: 1fr; }
  .banner__media { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  :root { --section-pad: 44px; }
  .feature__body {
    grid-template-columns: 1fr;
    align-items: end;
    padding-bottom: 36px;
  }
  .feature__text,
  .feature--right .feature__text {
    grid-column: 1 / 2;
    text-align: left;
  }
  .feature__scrim,
  .feature--right .feature__scrim {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.1) 55%);
  }
  .mosaic {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mosaic__cell--media-left,
  .mosaic__cell--panel-right,
  .mosaic__cell--panel-left,
  .mosaic__cell--media-right {
    grid-column: 1 / 2;
    /* 모바일에서는 좌우 offset 여백 제거 */
    padding-left: 0;
    padding-right: 0;
  }
  /* 이미지 → 글박스 순서로 흐르도록 (2행은 DOM 상 글이 먼저라 순서를 뒤집는다) */
  .mosaic__cell--media-left  { order: 1; }
  .mosaic__cell--panel-right { order: 2; }
  .mosaic__cell--media-right { order: 3; }
  .mosaic__cell--panel-left  { order: 4; }
  /* 세로로 쌓일 때는 상/하 offset 도 필요 없다 */
  .mosaic__cell--panel-right { padding-top: 0; }
  .mosaic__cell--panel-left { padding-bottom: 0; }
  /* 글박스 자체의 좌우 패딩도 제거 */
  .mosaic__text {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}
