/* ==========================================================================
   포트폴리오 랜딩 페이지
   프레임워크 없음 · 외부 리소스 없음 · 모바일 퍼스트
   색은 아래 :root 변수만 바꾸면 전체가 따라 바뀝니다.
   ========================================================================== */

/* --- 디자인 토큰 (라이트) ------------------------------------------------ */
:root {
  --bg:            #f7f5f1;   /* 웜 오프화이트 */
  --bg-alt:        #f1eee7;   /* 섹션 교차 배경 */
  --surface:       #fffefb;   /* 카드 */
  --text:          #23282d;   /* 딥 슬레이트 */
  --text-mute:     #5c6570;   /* 보조 텍스트 */
  --accent:        #4f6d63;   /* 저채도 세이지 */
  --accent-hover:  #3d564e;
  --on-accent:     #fffefb;
  --border:        #e3ded5;
  --shadow:        0 1px 2px rgba(35, 40, 45, .04),
                   0 8px 24px rgba(35, 40, 45, .05);

  --radius:        12px;
  --maxw:          46rem;
  --pad-x:         clamp(1.25rem, 5vw, 2rem);

  --step--1:       clamp(.875rem, .84rem + .18vw, .95rem);
  --step-0:        clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1:        clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2:        clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:        clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
}

/* --- 디자인 토큰 (다크) -------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #191c1f;
    --bg-alt:       #14171a;
    --surface:      #21252a;
    --text:         #e8e6e1;
    --text-mute:    #a3aab3;
    --accent:       #8fb3a4;
    --accent-hover: #a8c6ba;
    --on-accent:    #171a1c;
    --border:       #31363c;
    --shadow:       0 1px 2px rgba(0, 0, 0, .3),
                    0 8px 24px rgba(0, 0, 0, .25);
  }
}

/* --- 리셋 ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
               "Malgun Gothic", "맑은 고딕", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; margin: 0; }
p, ul, ol, dl { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 공통 레이아웃 -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .75rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* --- 히어로 -------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 14vw, 8rem) clamp(3rem, 10vw, 6rem);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__name {
  font-size: var(--step-3);
  font-weight: 650;
}

.hero__role {
  font-size: var(--step-1);
  color: var(--text-mute);
  margin-top: .5rem;
}

.hero__tagline {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--text-mute);
}

/* --- 버튼 ---------------------------------------------------------------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;              /* 터치 타겟 */
  padding: .6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 550;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

/* --- 섹션 ---------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 9vw, 5.5rem); }
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__title {
  font-size: var(--step-2);
  font-weight: 620;
}
.section__title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: .9rem;
  background: var(--accent);
  border-radius: 2px;
}

.section__lead {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--text-mute);
}

.subhead {
  font-size: var(--step-1);
  font-weight: 600;
  margin-top: 2.5rem;
}

/* --- 카드 그리드 (미디어쿼리 없이 자동 반응) ------------------------------ */
.cards {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.card__title {
  font-size: var(--step-0);
  font-weight: 620;
}

.card__body {
  margin-top: .5rem;
  font-size: var(--step--1);
  color: var(--text-mute);
}

/* --- 회사 --------------------------------------------------------------- */
.company__name {
  margin-top: 1.75rem;
  font-size: var(--step-1);
  font-weight: 620;
}

.list-check {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
  display: grid;
  gap: .7rem;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-mute);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

.facts {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}
.facts__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.facts dt {
  font-size: var(--step--1);
  color: var(--text-mute);
}
.facts dd {
  margin: .2rem 0 0;
  font-weight: 600;
}

/* --- 연락처 -------------------------------------------------------------- */
.contact {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  display: grid;
  gap: .75rem;
}

.contact__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  padding: .85rem 1.15rem;
  min-height: 44px;              /* 터치 타겟 */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact__label {
  flex: 0 0 4.5rem;
  font-size: var(--step--1);
  color: var(--text-mute);
}

.contact__link {
  font-weight: 550;
  text-decoration: none;
  overflow-wrap: anywhere;       /* 긴 주소가 가로 스크롤을 만들지 않도록 */
}
.contact__link:hover { text-decoration: underline; }

/* --- 카카오톡 채널 안내 --------------------------------------------------- */
.kakao {
  margin-top: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.kakao__title {
  font-size: var(--step-0);
  font-weight: 620;
}

.kakao__text,
.kakao__hint {
  font-size: var(--step--1);
  color: var(--text-mute);
}

.kakao__text strong {
  color: var(--text);
  font-weight: 620;
}

.kakao .btn { justify-self: start; }   /* 버튼만 왼쪽 정렬, 문단은 폭 그대로 */

/* --- 푸터 ---------------------------------------------------------------- */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--text-mute);
}

/* --- 접근성 / 인쇄 ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --bg: #fff; --bg-alt: #fff; --surface: #fff;
    --text: #000; --text-mute: #333; --accent: #000;
    --border: #bbb; --shadow: none;
  }
  .skip-link, .hero__actions { display: none; }
  .section, .hero { padding-block: 1.5rem; }
  .card, .facts__item, .contact__item { break-inside: avoid; }
  .contact__link::after { content: " (" attr(href) ")"; font-size: .8em; }
}
