:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2330;
  --muted: #5b6577;
  --line: #dfe3ea;
  --accent: #0f9d8a;
  --accent-ink: #ffffff;
  --code-bg: #f1f4f8;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --surface: #1a2029;
    --text: #e6eaf0;
    --muted: #9aa5b5;
    --line: #2b3441;
    --accent: #2cc2ab;
    --accent-ink: #0b1a17;
    --code-bg: #141a22;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}

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

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.25;
}

.lead { font-size: 1.08rem; margin: 0 0 12px; }
.repo { margin: 0; color: var(--muted); }

main section { padding: 36px 0 8px; }

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  margin: 0 0 12px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child { border-bottom: 0; }

.prompt {
  margin: 16px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
}

.prompt-title { font-weight: 700; font-size: 0.95rem; }

.prompt pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--code-bg);
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.copy {
  flex: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover { filter: brightness(1.08); }
.copy:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.copy.done { background: var(--text); color: var(--bg); }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 10px 0;
}

details > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
}

details > p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
details.alt { background: transparent; }
details.alt > .prompt { margin: 0 12px 12px; }

.note { color: var(--muted); }

.footer {
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
