/* Dancingbear resource site — design guide 2026-10-30
   Type scale: H1 32/40 · H2 20/28 · H3 17/24 · Body 16/1.65 · Caption 14/20 · Label 12/16 (tags only) */
:root {
  --blue: #2563EB;          /* brand primary: links, buttons, numbers */
  --blue-dark: #1D4ED8;
  --blue-soft: #EAF1FF;
  --orange: #D97757;        /* Claude accent: highlights, checks, step-adjacent marks */
  --orange-dark: #B5583A;   /* orange where white text sits on it */
  --orange-soft: #FDF0EA;
  --fur: #B97A46;           /* bear brown, small touches only */
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --line: #E2E8F0;
  --muted: #64748B;         /* secondary text */
  --text: #334155;          /* long-form body */
  --title: #0F172A;
  --ok: #ECFDF3;
  --ok-ink: #166534;
  --warn: #FFF7ED;
  --warn-ink: #9A3412;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.65; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--blue); }
.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 16px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; color: var(--title); font-size: 24px; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--title); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 2px; }
.avatar { border-radius: 50%; background: var(--blue-soft); }
.paw { margin-left: auto; }

main { max-width: 640px; margin: 0 auto; padding: 0 16px 24px; }

/* Hero */
.hero { position: relative; margin: 16px 0 8px; }
.hero h1 { margin: 0; color: var(--title); font-size: 28px; line-height: 1.32; font-weight: 800; letter-spacing: -0.03em; }
.hero .sub { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hero .updated { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.hero-index {
  overflow: hidden; min-height: 300px; padding: 28px 20px 24px; border-radius: 24px;
  background: linear-gradient(160deg, #FFFFFF 0%, var(--blue-soft) 55%, var(--orange-soft) 100%);
  box-shadow: var(--shadow);
}
.hero-index h1 { font-size: 32px; line-height: 1.25; max-width: 15em; position: relative; z-index: 1; }
.hero-index .sub, .hero-index .updated { position: relative; z-index: 1; max-width: 58%; }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.hl { color: var(--blue); background: linear-gradient(transparent 68%, rgba(217, 119, 87, .28) 68%); }
.hero-bear { position: absolute; right: -14px; bottom: -6px; width: 46%; max-width: 230px; height: auto; }
.hero-guide { padding: 12px 2px 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tags span, .guide-card .tags span {
  padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 12px; line-height: 16px; font-weight: 600;
}

/* Index: promise tiles + guide list */
.content .promise { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; padding: 0; }
.content .promise li {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 14px 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  color: var(--title); font-size: 13px; line-height: 1.4; font-weight: 600; text-align: center;
}
.content .promise li::marker { content: ""; }
.tile-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; }
.tile-icon.orange { color: var(--orange); background: var(--orange-soft); }
.tile-icon.blue { color: var(--blue); background: var(--blue-soft); }
.content h2.list-title { display: flex; align-items: center; gap: 8px; margin: 32px 0 12px; padding: 0; background: none; border: 0; box-shadow: none; }
.list-title .icon { color: var(--fur); }
.list-title small { color: var(--muted); font-size: 14px; font-weight: 500; }
.guides { display: grid; gap: 12px; }
.guide-card {
  display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--title); text-decoration: none;
}
.guide-card .emoji { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); font-size: 28px; }
.guide-card .text { display: block; min-width: 0; flex: 1; }
.guide-card strong { display: block; font-size: 17px; line-height: 1.4; }
.guide-card .desc { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.guide-card .tags { margin-top: 10px; }
.guide-card .go { color: var(--muted); font-size: 20px; }

/* Guide content */
.content h2 { margin: 36px 0 14px; color: var(--title); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.content h3 { margin: 0 0 6px; color: var(--title); font-size: 17px; line-height: 24px; font-weight: 700; }
.content p { margin: 0 0 14px; }
.content strong { color: var(--title); font-weight: 700; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 6px 0; }
.content li::marker { color: var(--orange); }
code {
  font: 600 14px/1.4 ui-monospace, Consolas, monospace; background: var(--blue-soft); color: var(--blue-dark);
  padding: 2px 6px; border-radius: 6px;
}
.content img { display: block; width: 100%; height: auto; margin: 12px 0 4px; border-radius: 14px; }

/* "언제" section: orange check marks instead of bullets */
.sec-when ul { list-style: none; padding: 0; }
.sec-when li {
  position: relative; padding: 10px 12px 10px 40px; margin: 8px 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
}
.sec-when li::before {
  content: ""; position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Steps: numbered cards */
.step {
  display: flex; gap: 12px; margin: 0 0 12px; padding: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step .num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 700;
}
.step-body { min-width: 0; flex: 1; }
.step-body p { color: var(--text); font-size: 15px; margin-bottom: 8px; }

/* Callouts */
.callout { margin: 20px 0; padding: 16px 16px 14px; border-radius: 14px; background: var(--orange-soft); border-left: 4px solid var(--orange); }
.callout p { margin: 0 0 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn); color: var(--warn-ink); border-left-color: #F59E0B; }
.callout.check { background: var(--ok); color: var(--ok-ink); border-left-color: #22C55E; }
.callout.check strong { color: var(--ok-ink); }

/* Tables (cards on phones) */
.table { margin: 8px 0 18px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: var(--title); color: #fff; font-weight: 700; }
@media (max-width: 520px) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { display: none; }
  table { border: 0; background: none; }
  tr { margin: 0 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px; box-shadow: var(--shadow); }
  td { border: 0; padding: 4px 12px; }
  td:first-child { color: var(--title); font-weight: 700; font-size: 16px; }
  td::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--orange-dark); }
  td:first-child::before { display: none; }
}

/* Sources: quiet list */
.sec-sources ul { padding-left: 18px; }
.sec-sources li { color: var(--muted); font-size: 14px; }

/* Footer */
footer { max-width: 640px; margin: 16px auto 0; padding: 28px 16px 44px; text-align: center; border-top: 1px solid var(--line); }
.slogan { margin: 0 0 14px; color: var(--title); font-weight: 700; font-size: 17px; }
.follow {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 26px;
  background: var(--blue); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
