@charset "utf-8";

/* =====================================================
   Reset — Josh Comeau "A Modern CSS Reset" (Mar 2026)
   https://www.joshwcomeau.com/css/custom-css-reset
===================================================== */

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

/* 2. margin 제거 (dialog 제외) */
*:not(dialog) { margin: 0; }

/* 3. 키워드 애니메이션 활성화 (height: 0 → auto 등) */
@media (prefers-reduced-motion: no-preference) {
  html { interpolate-size: allow-keywords; }
}

/* 4–5. body 기본 + 프로젝트 공통 */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* 6. 미디어 기본값 */
img, picture, video, canvas, svg { display: block; max-width: 100%; }

/* 7. 폼 요소 — 폰트 상속 + 브라우저 기본 스타일 제거 */
button, input, optgroup, select, textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: 1;
}
textarea { resize: vertical; min-height: 0; }
select::-ms-expand { display: none; }
input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
  -webkit-appearance: none; appearance: none;
}
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; appearance: textfield; }
:is(button, input, select, textarea):focus { outline: none; }
:is(button, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* 8. 텍스트 오버플로 방지 */
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* 9. 텍스트 줄바꿈 최적화 */
p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

/* 프로젝트 공통 */
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* =====================================================
   CSS 변수
===================================================== */
:root {
  /* ── 브랜드 컬러 ── */
  --red:     #F44336;   /* 모든 파일에서 이 변수를 사용 (#ef4444, #f44336 혼용 금지) */
  --red-dk:  #d43326;
  --red-lt:  #fff5f5;
  --red-rgb: 244, 67, 54; /* rgba(var(--red-rgb), 0.X) 형태로 사용 */

  /* ── 텍스트 ── */
  --ink:   #111111;
  --mid:   #374151;
  --muted: #6b7280;

  /* ── 회색 팔레트 (#aaa, #888, #666, #555, #333 하드코딩 금지) ── */
  --gray-400: #9ca3af;  /* 2차 텍스트(번호·날짜 등) — admin 전용 */
  --gray-300: #aaaaaa;
  --gray-200: #888888;
  --gray-100: #666666;
  --gray-50:  #555555;
  --nav-gray: #5F6368;  /* 네비 회색 버튼 전용 */

  /* ── 배경 / 보더 ── */
  --border:      #e5e7eb;
  --border-soft: #f0f0f0;
  --soft:        #f9fafb;
  --bg-page:     #f8f9fa;   /* admin / dashboard 배경 */

  /* ── 애니메이션 ── */
  --ease: cubic-bezier(.25, .46, .45, .94);
}

/* =====================================================
   Layout 공통
===================================================== */
.vd-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   공통 색상
===================================================== */
.main-color { color: var(--red); }

/* =====================================================
   공통 컨텐츠 타이틀
===================================================== */
.content__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.25rem;
  word-break: keep-all;
}

.content__title .content__title__sub {
  color: var(--red);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 40px;
}

.content__title h2 {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 56px;
}

@media (max-width: 768px) {
  .content__title .content__title__sub { font-size: 1rem; line-height: 24px; }
  .content__title h2 { font-size: 1.5rem; line-height: 32px; }
}

/* =====================================================
   공통 애니메이션 (scroll-animate)
===================================================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.scroll-animate.animate-in { opacity: 1; transform: translateY(0); }
.scroll-animate.delay-1 { transition-delay: 0.3s; }

/* =====================================================
   JS 상태 유틸 — JS는 아래 클래스만 토글함
===================================================== */
.no-scroll { overflow: hidden; }
.is-hidden  { display: none !important; }
.is-visible { display: block !important; }

/* =====================================================
   공통 애니메이션
===================================================== */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
