@charset "UTF-8";
/* ==========================================================================
   base.css — 리셋 · 타이포 · 유틸 (DESIGN_v4 §2-3 · §6 · §7)
   hex 리터럴 없음 — 색은 tokens.css 변수만.
   ========================================================================== */

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

html {
  min-width: 0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-2));
}

body {
  margin: 0;
  min-width: 0;
  background-color: var(--bg-canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottombar-h) + var(--sp-2)); /* 하단 바가 본문을 가리지 않게 (DESIGN §6) */
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

body.menu-open { overflow: hidden; touch-action: none; }

img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--dur-fast), opacity var(--dur-fast); }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: var(--lh-title);
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* 포커스 — 잉크 3px 외곽 + 옐로우 6px 링 (DESIGN_v4 §7) */
:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
  border-radius: var(--sp-1);
}

[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-2)); }

/* --- 레이아웃 유틸 --- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section-soft { background-color: var(--bg-soft); }
.section-strip { background-color: var(--bg-strip); color: var(--text-inverse); }
.section-strip h2, .section-strip h3 { color: var(--text-inverse); }

.section-head { max-width: 44rem; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: var(--sp-3); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  padding-bottom: var(--sp-1);
  margin-bottom: var(--sp-3);
  border-bottom: 3px solid var(--accent); /* 열매 옐로우 밑줄 (P10) */
}

.lead { font-size: var(--fs-lead); color: var(--text-muted); }
.serif { font-family: var(--font-serif); font-weight: var(--fw-quote); }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* 스킵 링크 — 첫 요소 (DESIGN_v4 §7) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--gutter); }

/* 사진 크롭 모티프 — 둥근 사각 16px + 한쪽 모서리만 48px (P10) */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border-top-right-radius: var(--radius-motif);
  background-color: var(--bg-soft);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
/* B1b: 넓은 컨테이너(옵션) — 사진 주도 섹션용 */
.container--wide { width: min(100% - (var(--gutter) * 2), 1400px); margin-inline: auto; }

/* --- 스크롤 리빌 (DESIGN_v4 §5-3) --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-stagger] { transition-delay: calc(var(--i, 0) * 60ms); }
/* JS 꺼짐·미지원이면 즉시 표시 */
html.no-js .reveal { opacity: 1; transform: none; }

/* --- 접근성: 모션 전부 해제 (DESIGN_v4 §5-3 · §7 · PRD C14) --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
