/* ------------------------------------------------------------------
   토큰
   종이 질감의 웜 뉴트럴 위에 잉크 텍스트, 딥그린 액센트.
   보라 그라디언트나 장식용 블롭 없이, 활자와 여백으로만 위계를 만든다.
------------------------------------------------------------------- */
:root {
  --paper:        #faf8f4;
  --paper-sunk:   #f2efe8;
  --rule:         #e2ddd2;
  --ink:          #17191d;
  --ink-soft:     #4c525c;
  --ink-faint:    #838a95;
  --accent:       #1c5c4c;
  --accent-soft:  #e6efe9;
  --clay:         #8a5a2b;
  --clay-soft:    #f4ece1;

  --measure: 34rem;
  --page: 48rem;
  --radius: 10px;

  /* 유동 스케일: 최소값, 뷰포트 비례, 최대값.
     중간 구간에서 끊기지 않고 연속적으로 변한다. */
  --gutter:      clamp(1.15rem, 4vw, 2rem);
  --section-pad: clamp(3.25rem, 9vw, 6rem);
  --gap:         clamp(0.85rem, 2.2vw, 1.25rem);

  --font: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #14161a;
    --paper-sunk:   #1b1e23;
    --rule:         #2b3037;
    --ink:          #eceef1;
    --ink-soft:     #a8afb9;
    --ink-faint:    #767d88;
    --accent:       #6cc4a5;
    --accent-soft:  #16302a;
    --clay:         #d19a63;
    --clay-soft:    #2a2119;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 0.92rem + 0.28vw, 18px);
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;   /* 한국어 단어 중간에서 끊기지 않게 */
  overflow-wrap: break-word;
}

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; }

section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule);
}

section > h2 {
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.section-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

section > h2 + .services,
section > h2 + .promise,
section > h2 + ul,
section > h2 + ol { margin-top: 2.5rem; }

/* ------------------------------------------------------------------
   1. 히어로
------------------------------------------------------------------- */
.hero { padding: clamp(4rem, 11vw, 7rem) 0 var(--section-pad); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}

/* ------------------------------------------------------------------
   버튼
------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn:hover { opacity: 0.9; }
.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ------------------------------------------------------------------
   2. 할 수 있는 일
------------------------------------------------------------------- */
/* 폭이 허락하는 만큼 열이 늘어난다: 1단 → 2단 → 3단.
   breakpoint 없이 카드 최소 폭(13rem)이 열 개수를 스스로 정한다. */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--gap);
}

.service {
  padding: 1.6rem 1.5rem;
  background: var(--paper-sunk);
  border-radius: var(--radius);
}

.service h3 {
  font-size: 1.12rem;
  margin-bottom: 1.1rem;
}

.service dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.service dd {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.service dd:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------
   3. 실제로 돌아가는 것들
------------------------------------------------------------------- */
.running { display: grid; gap: 2rem; }

.tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.running h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.running p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ------------------------------------------------------------------
   4. 일하는 방식
------------------------------------------------------------------- */
.steps { display: grid; gap: 0; }

.steps li {
  display: grid;
  grid-template-columns: clamp(2.5rem, 7vw, 4rem) 1fr;
  gap: 0 1rem;
  padding: clamp(1.35rem, 3vw, 1.75rem) 0;
  border-top: 1px solid var(--rule);
}

.steps li:first-child { border-top: none; padding-top: 0; }
.steps li:last-child { padding-bottom: 0; }

.step-num {
  grid-row: 1 / 3;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.steps p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ------------------------------------------------------------------
   5. 약속하는 것 / 안 하는 것
------------------------------------------------------------------- */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--gap);
}

.promise-col {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

.promise-col h3 {
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.promise-col li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.promise-col li:last-child { margin-bottom: 0; }

.promise-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.do { background: var(--accent-soft); border-color: transparent; }
.do h3 { color: var(--accent); }
.do li::before { content: "✓"; color: var(--accent); }

.dont { background: var(--clay-soft); border-color: transparent; }
.dont h3 { color: var(--clay); }
.dont li::before { content: "✕"; color: var(--clay); }

/* ------------------------------------------------------------------
   6. CTA
------------------------------------------------------------------- */
.contact { padding-bottom: 5rem; }

.contact h2 { margin-bottom: 1rem; }

.contact p {
  color: var(--ink-soft);
  max-width: var(--measure);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.fineprint {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}

/* ------------------------------------------------------------------
   푸터
------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------
   좁은 화면 보정
   폭 375px 아래에서는 유동값만으로 부족해 버튼과 여백만 손본다.
------------------------------------------------------------------- */
@media (max-width: 23.4375rem) {
  .btn { display: block; text-align: center; }
  .service,
  .promise-col { padding: 1.35rem 1.15rem; }
}

/* ------------------------------------------------------------------
   접근성
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
