/*
 * Bearers 홈페이지. 색은 Re:Bible 앱(Re-Bible-iOS/Bible/Common/View/Theme.swift)과 같다.
 * 종이 #FAFAF7 / #151515 · 잉크 #1A1A1C / #F2F2F2 · 카드 #FFFFFF / #202020 · 버튼 #1C1C1C.
 */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #1A1A1C;
  --ink-2: rgba(26, 26, 28, 0.68);
  --ink-3: rgba(26, 26, 28, 0.45);
  --line: rgba(26, 26, 28, 0.09);
  --btn: #1C1C1C;
  --btn-press: #000000;
  --on-btn: #FAFAF7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.06);
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mark: "Fraunces", "Noto Serif KR", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --surface: #202020;
    --ink: #F2F2F2;
    --ink-2: rgba(242, 242, 242, 0.7);
    --ink-3: rgba(242, 242, 242, 0.45);
    --line: #373737;
    --btn: #F2F2F2;
    --btn-press: #FFFFFF;
    --on-btn: #151515;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.top, main, .foot {
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}

/* 상단 */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
}
.mark {
  font-family: var(--mark);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.mark.small { font-size: 18px; }
.top nav { display: flex; gap: 20px; }
.top nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}
.top nav a:hover { color: var(--ink); }

/* 첫 화면 */
.hero { padding: clamp(80px, 18vh, 160px) 0 clamp(72px, 14vh, 128px); }
.hero h1 {
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.lede {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-2);
}
.wide { display: none; }
@media (min-width: 560px) { .wide { display: inline; } }

/* 구간 공통 */
section + section { border-top: 1px solid var(--line); }
.work, .services { padding: 56px 0 64px; }
h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-bottom: 28px;
}
h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* 하는 일 */
.tenets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: tenet;
}
.tenets li {
  counter-increment: tenet;
  display: grid;
  grid-template-columns: 2.2em 1fr;
  column-gap: 8px;
}
.tenets li::before {
  content: counter(tenet, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--mark);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-3);
  padding-top: 4px;
}
.tenets p { color: var(--ink-2); margin-top: 6px; }

/* 서비스 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 26px;
  box-shadow: var(--shadow);
}
.card-name {
  font-family: var(--mark);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 { font-size: 22px; }
.card > p:not(.card-name) { color: var(--ink-2); margin-top: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--on-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms ease;
}
.button:hover, .button:active { background: var(--btn-press); }
@media (max-width: 420px) { .button { width: 100%; } }

/* 아래 */
.foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
