/* baelab 활용법 사이트 테마 — 10/9 사용자가 고른 skillry "Amber Scrapbook" 색: 크림 종이 배경·진한 남색 글자·호박색(amber) 강조·남색 알약 버튼·마스킹테이프.
   페이지들은 메일용 HTML(인라인 스타일)을 그대로 쓰고 있어서, .bl 안에서는 색·여백을 !important로 덮어쓴다.
   붙이는 곳: src/site.js ensureTheme()(활용법 페이지)·rebuildIndex()(홈)·PAGE_TOP(레시피) */
:root {
  --bg: #fffefa; --wash: #fff3ea; --paper: #f3eadb; --tape: #f8d9ac; --line: #e9e1d2; --card: #ffffff;
  --ink: #14161b; --body: #3a3a40; --muted: #85817a;
  --amber: #c96706; --amber-dk: #8a5a1c; --amber-lt: #e7a35c; --navy: #0a2640;
  --grad: linear-gradient(90deg, #a8580a 0%, #d27a1c 55%, #e7a35c 100%);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: "Gaegu", "Nanum Pen Script", cursive;
}
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body.bl { margin: 0 !important; padding: 0 !important; background: var(--bg) !important; color: var(--body) !important; font-family: var(--font) !important; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
.bl a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
.bl a:hover { text-decoration-color: var(--amber); }

/* 상단 띠·바 */
.bl-ribbon { display: block; padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 600; color: #fff !important; text-decoration: none !important; background: linear-gradient(90deg, #cf7e21, #c57117); }
.bl-nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: rgba(255,254,250,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bl-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink) !important; text-decoration: none !important; }
.bl-logo i { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, #e7a35c, #b8620a); display: inline-block; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.bl-nav nav { display: flex; gap: 16px; font-size: 14px; }
.bl-nav nav a { color: #55524c !important; text-decoration: none; }
.bl-nav nav a:hover { color: var(--ink) !important; }
.bl-nav .bl-pill { margin-left: auto; padding: 8px 15px; font-size: 14px; }
.bl-social { margin-left: auto; display: flex; gap: 6px; }
.bl-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--ink) !important; transition: background .15s ease; }
.bl-ico:hover { background: var(--tape); }
.bl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bl svg .f { fill: currentColor; stroke: none; }
.bl-ghost svg { margin-right: 6px; }

/* 버튼 */
.bl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; border-radius: 12px; background: var(--navy); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none !important; box-shadow: 0 6px 18px rgba(10,38,64,.18); transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.bl-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,38,64,.24); }
.bl-ghost { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; font-weight: 600; text-decoration: none !important; box-shadow: 0 2px 8px rgba(20,22,27,.05); }
.bl-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--tape); color: var(--amber-dk); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.bl-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bl-wrap { max-width: 720px !important; margin: 0 auto !important; padding: 32px 20px 64px !important; }

/* 활용법 본문(메일 HTML 덮어쓰기) */
.bl-article { max-width: none !important; font-family: var(--font) !important; color: var(--body) !important; }
.bl-article h1 { font-size: clamp(28px, 6vw, 40px) !important; line-height: 1.25 !important; letter-spacing: -.03em; font-weight: 900; color: var(--ink) !important; margin: 8px 0 12px !important; }
.bl-article h2 { font-size: 23px !important; letter-spacing: -.02em; color: var(--ink) !important; margin: 44px 0 14px !important; }
.bl-article h3 { font-size: 19px !important; color: var(--ink) !important; margin: 32px 0 12px !important; }
.bl-article p, .bl-article li { color: var(--body) !important; font-size: 17px !important; line-height: 1.85 !important; }
.bl-article b, .bl-article strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(248,217,172,.7) 62%); }
.bl-article hr { border: 0 !important; height: 1px; background: var(--line) !important; margin: 40px 0 !important; }
.bl-article code { font-family: var(--mono); font-size: .84em; padding: 2px 7px; border-radius: 6px; background: var(--paper); color: var(--amber-dk); border: 1px solid var(--line); }
.bl-article blockquote { background: var(--wash) !important; border-left: 3px solid var(--amber) !important; border-radius: 0 12px 12px 0; color: var(--body) !important; }
.bl-article table { border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.bl-article th { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.bl-article td { border-color: var(--line) !important; color: var(--body) !important; background: var(--card); }
.bl-article span[style] { color: var(--muted) !important; }
.bl-meta { font-size: 13px !important; color: var(--muted) !important; margin: 0 0 26px !important; }

/* 첫 화면 '바로 써보기' 카드(마스킹테이프) */
.bl-try { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 36px; padding: 22px 20px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.bl-try::before { content: ""; position: absolute; top: -10px; left: 26px; width: 74px; height: 20px; background: var(--tape); opacity: .9; transform: rotate(-4deg); border-radius: 2px; }
.bl-try p { margin: 0 !important; font-size: 15px !important; line-height: 1.6 !important; color: var(--body) !important; }
.bl-try p b { color: var(--ink); font-size: 16px; background: none; }
/* 단계 제목 옆 '바로 해보기' */
.bl-step { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bl-steplink { flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--tape); background: var(--wash); font-size: 13px; font-weight: 700; color: var(--amber-dk) !important; text-decoration: none !important; }
.bl-steplink:hover { background: var(--tape); }

/* 꼬리말·같이 보면 좋은 활용법·옛 버튼(인라인 스타일) */
.bl-wrap div[style*="#f3efe6"], .bl-wrap div[style*="#e6dcc8"] { background: var(--paper) !important; border: 1px solid var(--line) !important; border-radius: 16px !important; }
.bl-wrap div[style*="#f3efe6"] p, .bl-wrap div[style*="#e6dcc8"] p, .bl-wrap div[style="margin-top:28px"] p { color: var(--body) !important; }
.bl-wrap div[style*="#f3efe6"] a[style*="#6b4f1d"] { color: var(--amber-dk) !important; }
.bl-wrap a[style*="background:#111"] { border-radius: 12px !important; background: var(--navy) !important; color: #fff !important; }
.bl-wrap a[style*="background:#d6249f"] { border-radius: 12px !important; background: var(--amber) !important; color: #fff !important; }
.bl-wrap a[style*="color:#222"] { color: var(--ink) !important; }
.bl-wrap p[style*="#fff3d6"], .bl-wrap pre { background: var(--wash) !important; color: var(--body) !important; border: 1px solid var(--line); }
.bl-wrap h1[style], .bl-wrap h2[style] { color: var(--ink) !important; letter-spacing: -.02em; }
.bl-wrap p[style*="#555"] { color: var(--body) !important; }
.bl-wrap button[style] { border-radius: 12px !important; background: var(--navy) !important; color: #fff !important; }

/* 홈 */
.bl-hero { position: relative; text-align: center; padding: 64px 20px 36px; background: radial-gradient(60% 70% at 85% 30%, var(--wash), transparent 70%); overflow: hidden; }
.bl-hero h1 { position: relative; margin: 18px auto 16px; max-width: 760px; font-size: clamp(36px, 8.4vw, 64px); line-height: 1.1; font-weight: 900; letter-spacing: -.035em; color: var(--ink); }
.bl-hero p { position: relative; margin: 0 auto 26px; max-width: 520px; color: #5d5a55; font-size: 16px; line-height: 1.75; }
.bl-cta { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bl-sticker { position: absolute; width: 48px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(20,22,27,.08); display: grid; place-items: center; font-size: 22px; }
.bl-note { position: absolute; font-family: var(--hand); font-size: 22px; color: var(--amber-dk); line-height: 1.1; text-align: center; }
.bl-note b { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 4px; border: 2px dashed var(--amber); border-radius: 50%; font-family: var(--font); font-size: 19px; font-weight: 800; }
.bl-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.bl-chips::-webkit-scrollbar { display: none; }
.bl-chips button { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #55524c; font: 600 14px var(--font); cursor: pointer; }
.bl-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.bl-search { width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 16px var(--font); outline: none; box-shadow: 0 2px 8px rgba(20,22,27,.04); }
.bl-search:focus { border-color: var(--amber-lt); box-shadow: 0 0 0 3px rgba(231,163,92,.25); }
.bl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 18px; }
.bl-card a { display: block; text-decoration: none !important; }
.bl-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; display: flex; align-items: flex-end; padding: 14px 16px; box-sizing: border-box; background: var(--g, var(--paper)); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.bl-thumb::before { content: ""; position: absolute; top: -8px; left: 50%; width: 60px; height: 16px; margin-left: -30px; background: var(--tape); opacity: .85; transform: rotate(-3deg); border-radius: 2px; }
.bl-shot { padding: 0; overflow: hidden; background: var(--paper); }
.bl-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 13px; }
.bl-shot::after { content: ""; position: absolute; inset: 0; border-radius: 13px; background: linear-gradient(to top, rgba(20,22,27,.62), rgba(20,22,27,0) 55%); }
.bl-shot::before { z-index: 2; }
.bl-shot b { z-index: 1; margin: 0 0 12px 14px; color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.bl-thumb b { position: relative; font-size: 24px; font-weight: 900; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.bl-card:nth-child(3n+2) .bl-thumb::before { transform: rotate(4deg); }
.bl-card a:hover .bl-thumb { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 12px 26px rgba(20,22,27,.08); }
.bl-card h3 { margin: 12px 2px 4px; font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card span { margin: 0 2px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bl-section { max-width: 1080px; margin: 0 auto; padding: 0 20px 72px; }
.bl-section h2 { margin: 40px 0 14px; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.bl-foot { max-width: 1080px; margin: 0 auto; padding: 28px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.bl-foot a { color: var(--body) !important; }

@media (max-width: 1080px) { .bl-sticker, .bl-note { display: none; } }
@media (max-width: 520px) {
  .bl-nav nav { display: none; }
  .bl-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .bl-thumb b { font-size: 18px; }
  .bl-article p, .bl-article li { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
