/* su.studio — 공용 문서 스타일
   FocusTimer의 민트크림 / 챠콜민트 테마에서 가져온 토큰 */

:root {
  --bg: #eef6f1;
  --surface: #ffffff;
  --ink: #12332a;
  --muted: #5c7a6e;
  --faint: #96b3a6;
  --accent: #3fae87;
  --rule: #d3e6db;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, 'D2Coding', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1e19;
    --surface: #16292322;
    --ink: #e6f2ec;
    --muted: #9dbbae;
    --faint: #5a7a6d;
    --accent: #4cc79a;
    --rule: #233d34;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ---- masthead ---- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.masthead a { color: var(--faint); text-decoration: none; }
.masthead a:hover { color: var(--accent); }

.wordmark { color: var(--accent); font-weight: 600; }

.masthead-right {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
}

.lang { color: var(--faint); }
.lang[aria-current="true"] { color: var(--accent); }

/* ---- hero ---- */

.hero {
  padding: 3rem 0 0.5rem;
  text-align: center;
}

.thesis {
  margin: 2.5rem auto 0;
  max-width: 24ch;
  font-size: clamp(1.75rem, 6.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.thesis em {
  font-style: normal;
  color: var(--accent);
}

.standfirst {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ---- gauge (개인정보처리방침 전용) ---- */

.gauge {
  width: min(15rem, 62vw);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes settle {
  from { opacity: 0; transform: rotate(-14deg) scale(0.94); }
  to   { opacity: 1; transform: none; }
}

.gauge-ticks { stroke: var(--faint); }
.gauge-major { stroke: var(--accent); }

.gauge-numeral {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.gauge-zero {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 74px;
  font-weight: 200;
  letter-spacing: -0.04em;
}

.gauge-caption {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---- sections ---- */

.section {
  border-top: 1px solid var(--rule);
  padding-top: 2.25rem;
  margin-top: 2.75rem;
}

/* 마커는 앱 다이얼의 분 눈금을 따른다 */
.marker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.marker::before {
  content: "";
  display: block;
  width: 1px;
  height: 0.875rem;
  background: var(--accent);
  margin-bottom: 0.3rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

ul {
  margin: 0 0 1.15rem;
  padding-left: 1.1rem;
  list-style: none;
}

li {
  position: relative;
  margin-bottom: 0.85rem;
}

li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.85em;
  width: 0.375rem;
  height: 1px;
  background: var(--accent);
}

li:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- 문의 ---- */

.contact {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.contact-hero {
  display: inline-block;
  margin-top: 2.25rem;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 4.6vw, 1.5rem);
  letter-spacing: -0.02em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* ---- FAQ ---- */

.qa {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.qa:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.qa p { color: var(--muted); margin-bottom: 0; }

/* ---- 앱 목록 (허브) ---- */

.apps {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.apps li { margin: 0; }
.apps li::before { display: none; }

.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.apps li:last-child .app-row { border-bottom: 1px solid var(--rule); }

/* 목록이 이미 밑줄로 닫혀 있으므로 푸터 선을 겹치지 않게 한다 */
.apps + footer {
  border-top: 0;
  margin-top: 2.25rem;
  padding-top: 0;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.app-links {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* 같은 앱의 다른 언어 줄 — 앱 이름을 반복하지 않는다 */
.app-row.app-sub {
  border-top: 0;
  padding-top: 0;
  margin-top: -0.75rem;
}

.app-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--rule);
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--faint);
}

@media (prefers-reduced-motion: reduce) {
  .gauge { animation: none; }
}
