/* ============================================================
   styleguide.css — 타이포그래피 · 유틸리티 클래스
   ============================================================ */

/* ── 베이스 타이포 ────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
}

/* Heading */
.heading-xl {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6.25rem); /* 100px → 유연 */
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.heading-lg {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 3.4375rem); /* 55px → 유연 */
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.heading-md {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  line-height: 1.2;
}

.heading-sm {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
}

/* Body copy */
.body-lg {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.5;
  color: rgba(25, 24, 29, 0.8);
}

.body-md {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray);
}

/* Label / Eyebrow */
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── 색상 유틸리티 ────────────────────────────────────────── */
.text-white {
  color: var(--white);
}
.text-black {
  color: var(--black);
}
.text-red {
  color: var(--red);
}
.text-blue {
  color: var(--blue);
}
.text-gray {
  color: var(--gray);
}

.bg-white {
  background-color: var(--white);
}
.bg-light {
  background-color: var(--bg-light);
}
.bg-light-pink {
  background-color: var(--light-pink);
}
.bg-navy {
  background-color: var(--navy);
}
.bg-black {
  background-color: var(--black);
}

/* ── 레이아웃 유틸리티 ────────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
}

.section--sm {
  padding: 4rem 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── 버튼 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 80px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn--black {
  background: var(--black);
  color: var(--white);
}
.btn--black:hover {
  background: #2d2c32;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover {
  background: #c00010;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ── 진입 애니메이션 ──────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up {
  transform: translateY(48px);
}
.reveal-left {
  transform: translateX(-52px);
}
.reveal-right {
  transform: translateX(52px);
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Section Heading 공통 ─────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}
:root {
  /* 색상 */
  --black: rgba(25, 24, 29, 1);
  --white: #ffffff;
  --gray: rgba(25, 24, 29, 0.5);
  --red: rgba(230, 0, 18, 1);
  --pink: rgba(250, 27, 72, 1);
  --blue: rgba(45, 116, 255, 1);
  --navy: #0f172a;
  --light-pink: rgba(253, 242, 247, 1);
  --light-blue: rgba(239, 248, 254, 1);
  --bg-light: #f9f9f9;

  /* 타이포 */
  --font-sans:
    "Pretendard-Regular", "Pretendard-Medium", "Pretendard-SemiBold",
    "Pretendard-Bold", Helvetica, sans-serif;
  --font-serif: "Georgia-Regular", Georgia, serif;

  /* 레이아웃 */
  --container: 1320px;

  /* 애니메이션 */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
:root {
  --red: rgba(230, 0, 18, 1);
  --pink: rgba(250, 27, 72, 1);
  --blue: rgba(45, 116, 255, 1);
  --light-pink: rgba(253, 242, 247, 1);
  --light-blue: rgba(239, 248, 254, 1);
  --black: rgba(25, 24, 29, 1);
}
