/* The Snowberry blog: plain static pages, no JavaScript.
   Tokens (colors, type, spacing) come from the design system stylesheet linked before this file. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--ink-900); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--cream); color: var(--green-700); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.bh { position: sticky; top: 0; z-index: 50; background: rgba(253,251,248,0.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--hairline); }
.bh-in { max-width: var(--container-wide); margin: 0 auto; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; flex: none; }
.bh-brand span { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--green-700); letter-spacing: 0.04em; }
.bh-nav { display: flex; align-items: center; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.bh-nav::-webkit-scrollbar { display: none; }
.bh-nav a { font-size: 14px; font-weight: 500; color: var(--ink-700); text-decoration: none; letter-spacing: 0.02em; white-space: nowrap; }
.bh-nav a:hover, .bh-nav a.is-current { color: var(--green-600); }
.bh-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--brand); color: var(--cream); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.bh-cta:hover { background: var(--green-600); }

/* Shared */
.wrap { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.sb-label { font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand); line-height: 1.4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill); background: var(--brand); color: var(--cream); font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { background: var(--green-700); }
.btn-ghost { background: transparent; color: var(--green-700); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--green-50); }

/* Blog index */
.blog-index { padding: 88px 0 96px; }
.blog-index h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; color: var(--green-700); margin: 14px 0 16px; text-wrap: balance; }
.blog-index .lead { font-size: 19px; color: var(--ink-700); max-width: 56ch; margin: 0 0 40px; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.post-list li { border-bottom: 1px solid var(--hairline); }
.post-list a { display: block; padding: 28px 0; text-decoration: none; color: inherit; }
.post-list h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; color: var(--green-700); margin: 10px 0 10px; letter-spacing: -0.01em; }
.post-list a:hover h2 { color: var(--brand); }
.post-list p { margin: 0; color: var(--ink-700); font-size: 16px; }
.post-list .more { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--green-700); font-size: 14px; }

/* Article */
.post { padding: 80px 0 96px; }
.post-head h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; color: var(--green-700); margin: 14px 0 18px; text-wrap: balance; }
.post-head .post-lead { font-size: 20px; line-height: 1.5; color: var(--ink-700); margin: 0 0 36px; }
.post-body { font-size: 18px; line-height: 1.7; color: var(--ink-900); }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; color: var(--green-700); margin: 2em 0 0.6em; letter-spacing: -0.01em; }
.post-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--green-700); margin: 1.6em 0 0.5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.post-body li { margin: 0 0 0.5em; }
.post-body blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 2px solid var(--brand); font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 24px; line-height: 1.3; color: var(--green-700); }
.post-body blockquote p { margin: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2.5em 0; }
.post-body strong { font-weight: 600; color: var(--ink-900); }
.post-body a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.post-cta { margin: 64px 0 0; padding: 36px 32px; border-radius: var(--radius-xl); background: var(--green-700); color: var(--cream); box-shadow: var(--shadow-green); }
.post-cta .sb-label { color: rgba(253,251,248,0.78); }
.post-cta h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; margin: 10px 0 12px; color: var(--cream); }
.post-cta p { margin: 0 0 20px; color: rgba(253,251,248,0.92); font-size: 17px; }
.post-cta .btn { background: var(--cream); color: var(--green-700); }
.post-cta .btn:hover { background: #fff; }
.post-cta .btn-ghost { background: transparent; color: var(--cream); border-color: rgba(253,251,248,0.6); }
.post-cta .btn-ghost:hover { background: rgba(253,251,248,0.12); }
.post-cta .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.post-more { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.post-more ul { list-style: none; margin: 14px 0 0; padding: 0; }
.post-more li { margin: 0 0 10px; }
.post-more a { font-family: var(--font-display); font-size: 21px; color: var(--green-700); text-decoration: none; }
.post-more a:hover { color: var(--brand); }
.post-more small { display: block; color: var(--ink-500); font-size: 13px; margin-top: 2px; }

/* Footer */
.bf { background: var(--green-900); color: rgba(253,251,248,0.86); padding: 56px 0 36px; font-size: 14px; }
.bf-in { max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }
.bf-cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(253,251,248,0.16); }
.bf-brand { display: flex; align-items: center; gap: 14px; }
.bf-name { font-family: var(--font-display); font-size: 24px; color: var(--cream); letter-spacing: 0.04em; }
.bf-tag { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(253,251,248,0.6); margin-top: 4px; }
.bf-nap { font-style: normal; line-height: 1.9; text-align: right; }
.bf a { color: rgba(253,251,248,0.86); text-decoration: none; }
.bf a:hover { color: var(--cream); }
.bf-muted { color: rgba(253,251,248,0.55); }
.bf-members { margin-top: 24px; font-size: 13px; color: rgba(253,251,248,0.7); }
.bf-meta { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(253,251,248,0.16); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(253,251,248,0.5); }
.bf-meta a { color: rgba(253,251,248,0.7); }

@media (max-width: 900px) {
  .bh-in { padding: 12px 20px; gap: 14px; }
  .bh-nav { gap: 18px; }
  .bh-cta { display: none; }
}
@media (max-width: 720px) {
  .bh-in { gap: 10px; }
  .bh-nav { flex: 1; min-width: 0; justify-content: flex-end; gap: 14px; }
  .bh-nav a:not(.is-current):not([href="/#faq"]) { display: none; }
  .bh-brand span { font-size: 19px; }
  .bh-cta { display: none; }
  .blog-index, .post { padding-top: 56px; padding-bottom: 72px; }
  .post-body { font-size: 17px; }
  .post-cta { padding: 28px 22px; }
  .bf-in { padding: 0 20px; }
  .bf-nap { text-align: left; }
}
