@charset "utf-8";
/* ============================================================
   RAM KOREA — base.css
   디자인 토큰 / 리셋 / 타이포그래피 / 공통 유틸리티
   ============================================================ */

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* Primary — 딥 네이비 */
  --navy-900: #131a23;
  --navy-800: #1c2430;
  --navy-700: #27313f;
  --navy-600: #38455a;

  /* Accent — 로고 레드 */
  --red-600: #8f1d24;
  --red-500: #b3262e;
  --red-400: #cc4a51;

  /* Neutral */
  --white: #ffffff;
  --gray-50: #f4f5f7;
  --gray-100: #e9ebef;
  --gray-200: #d7dae1;
  --gray-400: #9aa1ad;
  --gray-600: #5c6472;
  --gray-800: #333a45;

  /* 의미 기반 */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --text: var(--navy-800);
  --text-muted: var(--gray-600);
  --line: var(--gray-100);
  --accent: var(--red-500);

  /* 타이포그래피 */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;

  /* 레이아웃 */
  --container: 1280px;
  --container-narrow: 960px;
  --header-h: 84px;
  --header-h-mobile: 64px;

  /* 여백 스케일 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* 기타 */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 8px rgba(28, 36, 48, 0.06);
  --shadow-md: 0 8px 28px rgba(28, 36, 48, 0.10);
  --shadow-lg: 0 18px 48px rgba(28, 36, 48, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  /* 안전망 : 어떤 콘텐츠가 들어와도 모바일에서 가로로 밀리지 않게.
     clip 은 hidden 과 달리 스크롤 컨테이너를 만들지 않아 position:sticky 가 그대로 동작한다. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.015em;
  word-break: keep-all;        /* 한글 단어 단위 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, dl, dd { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

/* 키보드 포커스 — 접근성(WCAG) */
:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 본문 바로가기 */
.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 24px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 3. 타이포그래피 스케일 ---------- */
.t-display { font-size: clamp(32px, 6vw, 60px); line-height: 1.25; letter-spacing: -0.04em; }
.t-h1      { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; letter-spacing: -0.035em; }
.t-h2      { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.35; }
.t-h3      { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.45; }
.t-h4      { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.5; }
.t-lead    { font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; color: var(--text-muted); }
.t-body    { font-size: 16px; line-height: 1.8; }
.t-small   { font-size: 14px; line-height: 1.7; }
.t-caption { font-size: 13px; line-height: 1.6; color: var(--text-muted); }

.t-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-500);
}
.t-eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-top: 10px;
  background: var(--red-500);
}
.t-eyebrow.is-center::after { margin-left: auto; margin-right: auto; }

.text-accent  { color: var(--red-500); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

/* 확인 필요 자리표시자 — 실제 자료 입력 후 삭제 */
.placeholder {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--red-400);
  border-radius: 3px;
  background: rgba(179, 38, 46, 0.05);
  color: var(--red-500);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- 4. 레이아웃 유틸 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-800); color: var(--white); }
.section--dark .t-lead,
.section--dark .text-muted { color: rgba(255, 255, 255, 0.68); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .t-eyebrow { margin-bottom: 18px; }
.section-head .t-lead { margin-top: 18px; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* ---------- 5. 스크롤 등장 효과 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* 스크린리더 전용 */
.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;
}

/* 인쇄 */
@media print {
  .site-header, .site-footer, .to-top, .hero__scroll { display: none !important; }
  body { color: #000; }
}

/* 어두운 배경 위 자리표시자 */
.placeholder--light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}
