/* StickerBridge blog — shared styles.
   Design tokens intentionally identical to public/index.html. */

:root {
  color-scheme: light dark;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f0f4ff;
  --card: #ffffff;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-deep: #1e3a8a;
  --head: #1e3a8a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --bg: #0b1220;
    --card: #141b2e;
    --line: #243044;
    --blue: #60a5fa;
    --blue-deep: #93c5fd;
    --head: #93c5fd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

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

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

/* ---- Header / nav: same gradient + nav as the landing hero ---- */
header.hero {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  padding-block: 28px 32px;
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav .links a { color: #dbeafe; text-decoration: none; margin-left: 18px; font-size: 15px; }
nav .links a:hover { color: #fff; }

.header-title { padding-top: 34px; }
.header-title h1 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 12px; max-width: 20em; }
.header-title p.lead { font-size: 18px; color: #dbeafe; margin: 0; max-width: 34em; }
.header-title .meta { font-size: 14px; color: #bfdbfe; margin-top: 14px; }

/* ---- Breadcrumbs ---- */
.crumbs { font-size: 14px; color: #bfdbfe; margin: 0 0 4px; }
.crumbs a { color: #dbeafe; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---- Article body ---- */
.article { max-width: 720px; margin: 0 auto; padding-inline: 20px; padding-block: 8px 24px; }
.article h2 { font-size: clamp(22px, 3.2vw, 28px); letter-spacing: -0.01em; margin: 44px 0 10px; }
.article h3 { font-size: 18px; margin: 28px 0 6px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article img { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.article ol.steps-list > li { margin-bottom: 16px; }
.article ol.steps-list > li strong { display: block; }

.answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0 28px;
}
.answer p:last-child { margin-bottom: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 16px 0; }
.card h3 { margin-top: 0; }

code {
  background: rgba(127, 127, 127, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.faq h3 { margin-top: 24px; }

/* ---- CTA block ---- */
.cta-box {
  background: var(--card);
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 36px 0;
}
.cta-box h3 { margin-top: 0; }
.cta-box p:last-child { margin-bottom: 0; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store-btn svg { width: 22px; height: 22px; fill: currentColor; }
.store-btn:hover { background: #111827; }

/* ---- Blog index list ---- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { margin-bottom: 16px; }
.post-list a.post-title { font-size: 20px; font-weight: 700; text-decoration: none; display: block; margin-bottom: 4px; }
.post-list a.post-title:hover { text-decoration: underline; }
.post-list p { margin: 0; color: var(--muted); }
.post-list .date { font-size: 13px; color: var(--muted); margin-top: 8px; }

.section-sub { color: var(--muted); margin: 0 0 24px; font-size: 17px; }

/* ---- Footer: same as landing ---- */
footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 14px; margin-top: 56px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 760px) {
  nav .links a { margin-left: 12px; }
  .header-title { padding-top: 24px; }
}
