/* 모노톤: 흰 종이색 바탕, 검정 글씨, 얇은 선. 카드는 선으로만. */
:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-2: #f3f1ec;
  --line: #d8d5cd;
  --line-strong: #111111;
  --fg: #111111;
  --muted: #6b6a66;
  --ink: #111111;
  --ink-fg: #ffffff;
  --code-bg: #f3f1ec;
  --radius: 10px;
  --max: 720px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { text-decoration-color: var(--fg); }
code, pre, .prompt { font-family: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.brand { color: var(--fg); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.brand .prompt { color: var(--muted); margin-right: 6px; }
.brand .cursor { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.ig { font-size: 14px; color: var(--muted); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 20px 16px 48px; }

.hero { padding: 28px 0 10px; }
.hero h1 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.lead { color: var(--muted); margin: 0; font-size: 15.5px; }

/* 엄지로 누르는 큰 버튼 (link-in-bio) */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 18px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--fg);
  font-weight: 700; font-size: 17px; text-align: center; text-decoration: none;
  transition: background .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--panel-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn-accent:hover { background: #2a2a2a; }
.btn-big { min-height: 62px; font-size: 18px; margin-top: 18px; }

.section-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin: 28px 0 10px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card { justify-content: space-between; text-align: left; }
.card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.card-blurb { color: var(--muted); font-size: 13.5px; font-weight: 400; line-height: 1.4; }
.arrow { flex: none; color: var(--muted); font-weight: 400; }

/* 릴스 게시글 카드: 세로 썸네일 + 제목, 인스타 permalink 로만 연결 */
.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.post-link {
  display: flex; gap: 14px; align-items: stretch;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  text-decoration: none; color: var(--fg);
  transition: border-color .15s;
}
.post-link:hover { border-color: var(--line-strong); }
.post-thumb { width: 81px; height: 144px; flex: none; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); }
.post-main { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.post-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.post-sub { color: var(--muted); font-size: 13px; }
.post-cta { margin-top: 4px; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.notice {
  margin: -6px 0 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2);
  color: var(--muted); font-size: 13px; line-height: 1.45;
}
.notice a { font-weight: 700; color: var(--fg); }
.from-reel { margin-bottom: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kit h1 { font-size: 26px; line-height: 1.25; margin: 18px 0 8px; letter-spacing: -0.02em; }
.kit .meta { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.kit .meta a { color: var(--muted); }
.kit h2 { font-size: 19px; margin: 30px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.kit p { margin: 0 0 12px; }
.kit ul, .kit ol { padding-left: 22px; margin: 0 0 12px; }
.kit li { margin: 4px 0; }
.kit ul.checklist { list-style: none; padding-left: 0; }
.kit li.check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.kit li.check input { margin-top: 5px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.kit li.check input:checked + span { color: var(--muted); text-decoration: line-through; }

code {
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 0.92em;
}
pre {
  position: relative;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px; overflow-x: auto; margin: 0 0 14px;
}
pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.copy {
  position: absolute; top: 8px; right: 8px;
  font: inherit; font-size: 12px; padding: 4px 9px;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 6px;
  cursor: pointer;
}
.copy[data-done="1"] { background: var(--ink); color: var(--ink-fg); }

.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 4px 12px; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
}

.actions { display: flex; gap: 8px; margin: 0 0 18px; }
.share {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: var(--panel); color: var(--fg); border: 1px solid var(--line-strong); cursor: pointer;
}
.share[data-done="1"] { background: var(--ink); color: var(--ink-fg); }

.kit-foot, .site-foot {
  margin-top: 36px; padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-size: 14.5px;
}
.kit-foot p, .site-foot p { margin: 0; }
.kit-foot b, .site-foot b { color: var(--fg); }
.kit-foot .btn { margin-top: 14px; }
