/* 샤이닝트리즈 홈페이지 — 디자인 캔버스 "확정안" 기준 */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --text: #1F2226;
  --lead: #4A4F56;
  --muted: #5E636A;
  --line: #E4E4E1;
  --hover: #000000;
  --sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191919;
    --text: #E9E9E7;
    --lead: #C4C7CC;
    --muted: #9EA3AA;
    --line: #333333;
    --hover: #FFFFFF;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

:lang(en) body {
  --sans: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.65;
  word-break: normal;
}

a { color: var(--text); }
a:hover { color: var(--hover); }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

/* 글자 크기 6단계 */
.label, .lang, .site-footer { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.note, .site-nav, .case span + span { font-size: 14px; color: var(--muted); }

/* 상단 */
.site-header .wrap {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}
:lang(en) .brand { letter-spacing: normal; }
.brand img { display: block; width: 20px; height: 20px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a, .lang a { text-decoration: none; color: var(--muted); padding: 8px 0; }
.site-nav a:hover, .lang a:hover { color: var(--hover); }

.lang { display: flex; align-items: baseline; gap: 6px; }
.lang [aria-current] { color: var(--text); font-weight: 500; }

/* 본문 */
main {
  padding-top: clamp(48px, 10vw, 128px);
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 12vw, 144px);
}
:lang(en) main { gap: clamp(72px, 10vw, 120px); }

.intro { display: flex; flex-direction: column; gap: 28px; }

.label { letter-spacing: 0.1em; }

h1 {
  max-width: 17em;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 strong, h1 span { display: block; }
h1 strong { font-weight: 600; }
h1 span { text-wrap: balance; }
:lang(en) h1 { line-height: 1.25; letter-spacing: -0.025em; }

.lead {
  max-width: 36em;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--lead);
}
:lang(en) .lead { max-width: 38em; }

.facts {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--text);
}
.facts div { padding: 16px 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 0; font-size: 16px; font-weight: 500; }

h2 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h3 { font-size: 16px; font-weight: 600; line-height: 1.7; }

/* 왼쪽 제목 240px + 오른쪽 내용, 좁은 화면에서는 한 단 */
.row { display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
.row > :first-child { flex: 0 0 240px; }
.row > :last-child { flex: 1 1 380px; min-width: 0; }

.services-head { gap: 8px 48px; padding-bottom: 28px; }
.services > h2 { margin-bottom: 28px; }

.service { align-items: stretch; padding: 32px 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
:lang(en) .service { gap: 8px 48px; padding: 24px 0; }

.service-body { display: flex; flex-direction: column; gap: 18px; }
.cases { display: flex; flex-direction: column; gap: 12px; }
.case { display: flex; flex-direction: column; gap: 2px; }
.case span:first-child { font-weight: 500; }

.clients { line-height: 1.9; }

.email {
  font-size: clamp(24px, 3vw, 28px);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

/* 하단 */
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .row > :first-child, .row > :last-child { flex-basis: 100%; }
}
