/*
Theme Name: CafeMaru
Theme URI: https://cafemaru.nz
Description: CafeMaru 공개 페이지 전용 최소 테마. 애플리케이션(/app/)은 이 테마를 거치지 않는다.
Version: 0.1.0
Requires PHP: 8.3
Text Domain: maru-theme
*/

/*
 * 앱과 같은 팔레트를 쓴다.
 *
 * 랜딩에서 로그인을 누르면 곧바로 앱이다. 두 화면의 색이 다르면
 * 그 순간 '다른 서비스로 넘어왔나' 싶어진다.
 *
 * 테마 세 상태는 앱과 같은 규칙이다 — 명시적 선택이 양방향 모두에서
 * 이기고, 색은 언제나 토큰으로만 쓴다.
 */
:root {
  color-scheme: light;

  --ground: #f6f7f6;
  --surface: #ffffff;
  --surface-2: #edf1ef;
  --ink: #111917;
  --ink-2: #40514c;
  --ink-3: #6e807a;
  --line: #d9e1dd;
  --accent: #0b6e5f;
  --accent-soft: #ddefea;
  --accent-ink: #075247;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --ground: #0d1211;
    --surface: #141c1a;
    --surface-2: #1b2523;
    --ink: #e7eeeb;
    --ink-2: #afbdb8;
    --ink-3: #849690;
    --line: #25302d;
    --accent: #5ccbb2;
    --accent-soft: #12332d;
    --accent-ink: #8fe0cd;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --ground: #0d1211;
  --surface: #141c1a;
  --surface-2: #1b2523;
  --ink: #e7eeeb;
  --ink-2: #afbdb8;
  --ink-3: #849690;
  --line: #25302d;
  --accent: #5ccbb2;
  --accent-soft: #12332d;
  --accent-ink: #8fe0cd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }

.site-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.site-head .name {
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
}
.site-head .spacer { flex: 1; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px 72px; }

/* ── 히어로 ── */
.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 56px 0 44px;
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1fr 320px; gap: 48px; }
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hero p {
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 42ch;
}

.btn {
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-quiet {
  display: inline-block;
  margin-left: 14px;
  color: var(--ink-3);
  text-decoration: none;
  font-size: .9rem;
}
.btn-quiet:hover { color: var(--ink); }

/* ── 일러스트 ── */
.scene { width: 100%; height: auto; display: block; }
.scene .line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scene .thin { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; }
.scene .steam { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.scene .fill-soft { fill: var(--accent-soft); }
.scene .fill-accent { fill: var(--accent); }
.scene .fill-surface { fill: var(--surface); }

/* ── 세 줄 설명 ── */
.steps {
  display: grid;
  gap: 14px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 620px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.step h2 {
  font-size: .95rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step h2 span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.step p { margin: 0; color: var(--ink-3); font-size: .88rem; }

/* ── 본문 페이지 ── */
.page { padding: 40px 0; }
.page h1 { font-size: 1.6rem; margin: 0 0 20px; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: .82rem;
}

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