/* =============================================
   site-common.css
   공개 사이트 공통 기반 스타일 / CSS 변수
   ============================================= */

/* --- Paperlogy 폰트 --- */
@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-4Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-5Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-6SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-7Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy-8ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── 주조색: 포레스트 그린 ── */
  --sc-primary: #5C8A3C;
  --sc-primary-dark: #3D6828;
  --sc-primary-light: #EBF3E4;
  --sc-primary-mid: #7AAD57;

  /* ── 보조색: 세이지 그린 (그린 계열 통일) ── */
  --sc-accent: #8FB87A;
  --sc-accent-dark: #6A9458;
  --sc-accent-light: #F0F6EB;

  /* ── 중립 ── */
  --sc-dark: #1A1A1A;
  --sc-text: #2E2E2E;
  --sc-text-sub: #5A5A5A;
  --sc-text-light: #8A8A8A;
  --sc-text-placeholder: #BBBBBB;

  --sc-border: #DEDEDE;
  --sc-border-light: #EBEBEB;

  --sc-bg: #F4F6F3;
  --sc-bg-white: #FFFFFF;
  --sc-bg-section: #F7F9F5;

  --sc-error: #C93030;
  --sc-warning: #D08020;
  --sc-info: #3A7AAC;

  --sc-footer-bg: #181C16;
  --sc-footer-text: #AAAAAA;

  /* ── 폰트 ── */
  --sc-font: 'Paperlogy', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;

  /* ── 타이포 스케일 (전반 상향) ── */
  --sc-fs-xs: 1rem;
  /* 16px */
  --sc-fs-sm: 1.075rem;
  /* 17.2px */
  --sc-fs-md: 1.15rem;
  /* 18.4px */
  --sc-fs-base: 1.225rem;
  /* 19.6px */
  --sc-fs-lg: 1.3rem;
  /* 20.8px */
  --sc-fs-xl: 1.375rem;
  /* 22px */
  --sc-fs-2xl: 1.5rem;
  /* 24px */
  --sc-fs-3xl: 1.75rem;
  /* 28px */
  --sc-fs-4xl: 2rem;
  /* 32px */
  --sc-fs-5xl: 2.25rem;
  /* 36px */

  --sc-fw-regular: 400;
  --sc-fw-medium: 500;
  --sc-fw-semibold: 600;
  --sc-fw-bold: 700;
  --sc-fw-extrabold: 800;

  --sc-lh-tight: 1.3;
  --sc-lh-base: 1.7;

  /* ── 스페이싱 ── */
  --sc-sp-xs: 0.25rem;
  /* 4px */
  --sc-sp-sm: 0.5rem;
  /* 8px */
  --sc-sp-md: 0.75rem;
  /* 12px */
  --sc-sp-base: 1rem;
  /* 16px */
  --sc-sp-lg: 1.375rem;
  /* 22px */
  --sc-sp-xl: 1.75rem;
  /* 28px */
  --sc-sp-2xl: 2.25rem;
  /* 36px */
  --sc-sp-3xl: 3rem;
  /* 48px */
  --sc-sp-4xl: 4rem;
  /* 64px */

  /* ── 보더 ── */
  --sc-radius-sm: 4px;
  --sc-radius-md: 8px;
  --sc-radius-lg: 12px;
  --sc-radius-xl: 20px;
  --sc-radius-full: 9999px;

  /* ── 그림자 ── */
  --sc-shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --sc-shadow-md: 0 2px 14px rgba(0, 0, 0, 0.09);
  --sc-shadow-lg: 0 6px 28px rgba(0, 0, 0, 0.11);

  /* ── 레이아웃 ── */
  --sc-header-height: 64px;
  --sc-content-max: 700px;
  --sc-site-max: 1400px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  font-family: var(--sc-font);
  font-size: var(--sc-fs-md);
  color: var(--sc-text);
  background-color: var(--sc-bg-white);
  line-height: var(--sc-lh-base);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--sc-primary);
  outline-offset: 2px;
}