/* BlankBuilder blog. Same look as the site (blankbuilder-site/src/assets/site.css): Geist, off-white with sage bands,
   one accent (the builder's green). Kept self-contained so a change on the site never breaks the blog. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f7f9f6; --bg-2: #e3eee6; --surface: #ffffff; --surface-2: #f1f4f0;
  --line: rgba(23, 40, 30, .10); --line-strong: rgba(23, 40, 30, .18);
  --ink: #434343; --muted: #5b675f; --faint: #8a958d;
  --accent: #557f69; --accent-hover: #476d59; --accent-ink: #ffffff; --accent-soft: rgba(85, 127, 105, .12);
  --shadow: 0 1px 2px rgba(23, 40, 30, .06), 0 24px 60px rgba(23, 40, 30, .14);
  --r-btn: 10px; --r-card: 16px;
  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 16px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); font: 600 15px var(--font); text-decoration: none; white-space: nowrap; color: var(--ink);
  transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

/* header */
.top { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding: 10px 0; }
.brand { display: inline-flex; text-decoration: none; }
.logo-art { height: 34px; width: auto; display: block; }
.lg-ink { fill: #434343; } .lg-acc { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--accent); }

/* index */
.blog-index { padding: 56px 0 72px; }
.blog-index h1 { font-size: clamp(34px, 5vw, 52px); margin: 0; }
.lead { color: var(--muted); max-width: 62ch; margin: 12px 0 36px; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--surface-2); }
.card-meta { font-size: 13px; color: var(--faint); padding: 16px 18px 0; }
.card-title { font-weight: 650; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; padding: 4px 18px 0; }
.card-desc { font-size: 15px; color: var(--muted); line-height: 1.5; padding: 8px 18px 20px; }

/* post */
.post { padding: 40px 0 72px; }
.post article { max-width: 760px; margin-inline: auto; }
.crumbs { margin: 0 0 12px; font-size: 14px; } .crumbs a { text-decoration: none; font-weight: 600; }
.post h1 { font-size: clamp(32px, 5vw, 48px); margin: 0; }
.meta { color: var(--faint); font-size: 14px; margin: 14px 0 26px; }
.cover { margin: 0 0 36px; } .cover img { border-radius: var(--r-card); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.body h2 { font-size: clamp(24px, 3vw, 30px); margin: 48px 0 12px; }
.body h3 { font-size: 20px; margin: 32px 0 8px; }
.body p, .body li { color: #3e423f; }
.body ul, .body ol { padding-left: 1.3em; } .body li { margin: 6px 0; }
.body figure { margin: 30px 0; }
.body figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.body blockquote, .body .tip { margin: 26px 0; padding: 16px 20px; border-radius: 12px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
.body blockquote p, .body .tip p { margin: 0; }
.body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.body th, .body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.body th { font-weight: 650; background: var(--surface-2); }
.faq { margin-top: 48px; } .faq h2 { font-size: 26px; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; } .faq details p { margin: 10px 0 0; color: var(--muted); }
.cta-box { margin: 56px 0 0; padding: 28px; border-radius: var(--r-card); background: var(--bg-2); }
.cta-box h2 { margin: 0 0 6px; font-size: 24px; } .cta-box p { margin: 0 0 18px; color: var(--muted); }
.more { max-width: 1120px; margin: 72px auto 0; } .more h2 { font-size: 26px; margin: 0 0 20px; }

/* footer */
.foot { background: var(--bg-2); padding: 40px 0 32px; border-top: 1px solid var(--line); }
.cta-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-weight: 650; font-size: 20px; margin: 0 0 24px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.small { color: var(--faint); font-size: 13px; margin: 18px 0 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; } .nav a:not(.btn) { font-size: 14px; }
  .logo-art { height: 28px; }
  .cta-box { padding: 22px; }
}
