/* Starbound Founders blog: shared styles for /blog/ and every post. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { margin: 0; background: #0C1929; }

.sb-blog-shell {
  background-color: #0C1929;
  background-image: radial-gradient(1.3px 1.3px at 40px 60px, rgba(245,243,238,0.4), transparent), radial-gradient(1px 1px at 180px 170px, rgba(245,243,238,0.25), transparent), radial-gradient(1.4px 1.4px at 280px 90px, rgba(232,160,32,0.4), transparent), radial-gradient(1px 1px at 90px 250px, rgba(126,180,255,0.35), transparent);
  background-size: 340px 300px;
  color: #F5F3EE; font-family: 'Nunito Sans', sans-serif; line-height: 1.6;
  min-height: 100vh; display: flex; flex-direction: column;
}

/* nav */
.sb-blog-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 6%; height: 68px; border-bottom: 1px solid rgba(245,243,238,0.1); }
.sb-blog-logo { display: flex; align-items: center; gap: 0.6rem; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; color: #E8A020; text-decoration: none; }
.sb-blog-logo img { display: block; flex-shrink: 0; }
.sb-blog-navlinks { display: flex; align-items: center; gap: 1.4rem; }
.sb-blog-navlink { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,243,238,0.7); text-decoration: none; }
.sb-blog-navlink:hover { color: #E8A020; }
.sb-blog-navcta { background: #22C55E; color: #0C1929; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 1.2rem; border-radius: 4px; }
.sb-blog-navcta:hover { background: #16A34A; color: #0C1929; }

/* green CTA shine (same as the rest of the site) */
@keyframes sbShine { 0% { left: -65%; } 55%, 100% { left: 135%; } }
@keyframes sbCtaGlow {
  0%, 100% { box-shadow: 0 10px 32px rgba(34,197,94,0.30); }
  50%      { box-shadow: 0 12px 44px rgba(34,197,94,0.58); }
}
.sb-cta { position: relative; overflow: hidden; animation: sbCtaGlow 2.8s ease-in-out infinite; }
.sb-cta, .sb-cta:hover, .sb-cta span { text-decoration: none !important; }
.sb-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -65%; width: 42%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg); pointer-events: none;
  animation: sbShine 3.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sb-cta { animation: none; }
  .sb-cta::after { display: none; }
}

/* blog index */
.sb-blog-intro { max-width: 760px; margin: 0 auto; padding: 64px 6% 28px; text-align: center; }
.sb-blog-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #E8A020; margin-bottom: 0.8rem; }
.sb-blog-intro h1 { font-family: 'Fredoka', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.15; color: #F5F3EE; margin-bottom: 0.8rem; }
.sb-blog-intro p { font-size: 1.05rem; color: rgba(245,243,238,0.68); line-height: 1.7; }
.sb-blog-list { max-width: 1040px; width: 100%; margin: 0 auto; padding: 20px 6% 80px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.sb-blog-card { display: flex; flex-direction: column; background: #F7F3EA; border-radius: 14px; overflow: hidden; text-decoration: none; color: #112236; box-shadow: 0 14px 40px rgba(0,0,0,0.35); transition: transform 0.2s ease; }
.sb-blog-card:hover { transform: translateY(-3px); }
.sb-blog-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.sb-blog-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.sb-blog-card-meta { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #B77D14; }
.sb-blog-card h2 { font-family: 'Fredoka', sans-serif; font-size: 1.22rem; font-weight: 700; line-height: 1.3; color: #1E3A66; }
.sb-blog-card p { font-size: 0.93rem; line-height: 1.65; color: rgba(17,34,54,0.72); }
.sb-blog-card-more { margin-top: auto; padding-top: 0.4rem; font-size: 0.86rem; font-weight: 700; color: #B77D14; }

/* post */
.sb-post-head { max-width: 760px; width: 100%; margin: 0 auto; padding: 48px 6% 28px; }
.sb-post-back { display: inline-block; font-size: 0.85rem; font-weight: 600; color: rgba(245,243,238,0.65); text-decoration: none; margin-bottom: 1.2rem; }
.sb-post-back:hover { color: #E8A020; }
.sb-post-head h1 { font-family: 'Fredoka', sans-serif; font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.18; color: #F5F3EE; margin-bottom: 0.9rem; }
.sb-post-meta { font-size: 0.86rem; font-weight: 600; color: #E8A020; letter-spacing: 0.02em; }
.sb-post-hero { max-width: 960px; width: 100%; margin: 0 auto; padding: 0 6%; }
.sb-post-hero img { display: block; width: 100%; height: auto; border-radius: 14px 14px 0 0; }
.sb-post-body { max-width: 960px; width: 100%; margin: 0 auto 72px; padding: 0 6%; }
.sb-prose { background: #F7F3EA; color: #112236; border-radius: 0 0 14px 14px; padding: 2.8rem clamp(1.3rem, 6vw, 5rem) 3rem; font-size: 1.08rem; line-height: 1.8; }
.sb-prose > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.sb-prose p { margin-bottom: 1.2rem; }
.sb-prose h2 { font-family: 'Fredoka', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.3; color: #1E3A66; margin: 2.4rem auto 0.9rem; }
.sb-prose strong { color: #0C1929; font-weight: 700; }
.sb-prose a { color: #B77D14; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sb-prose a:hover { color: #8a5f0f; }
.sb-prose ol, .sb-prose ul { padding-left: 1.4rem; margin-bottom: 1.3rem; }
.sb-prose li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.sb-post-figure { margin: 1.8rem auto 2rem; max-width: 760px !important; }
.sb-post-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sb-post-foot { padding-top: 1.6rem; }

/* footer */
.sb-blog-footer { border-top: 1px solid rgba(245,243,238,0.12); padding: 1.7rem 6%; margin-top: auto; }
.sb-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem; max-width: 1200px; margin: 0 auto; }
.sb-footer-copy { font-size: 0.8rem; color: rgba(245,243,238,0.5); }
.sb-footer-links { display: flex; align-items: center; gap: 1.5rem; }
.sb-footer-links a { font-size: 0.8rem; font-weight: 600; color: rgba(245,243,238,0.6); text-decoration: none; }
.sb-footer-links a:hover { color: #E8A020; }

@media (max-width: 560px) {
  #sb-wordmark { display: none; }
  .sb-footer-row { flex-direction: column; align-items: flex-start; }
  .sb-prose { font-size: 1.02rem; padding-top: 2rem; }
  .sb-post-hero, .sb-post-body { padding: 0 4%; }
}

/* legal popup (same as the rest of the site) */
#sb-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 5vh 5%; background: rgba(3,8,15,0.74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#sb-modal[data-open="1"] { display: flex; }
#sb-modal-panel { position: relative; width: 100%; max-width: 820px; max-height: 88vh; overflow-y: auto; background: #0C1929; border: 1px solid rgba(232,160,32,0.35); border-radius: 14px; padding: 2.6rem 2.4rem; box-shadow: 0 24px 80px rgba(0,0,0,0.6); outline: none; font-family: 'Nunito Sans', sans-serif; }
#sb-modal-close { position: absolute; top: 0.7rem; right: 0.9rem; background: transparent; border: 0; color: rgba(245,243,238,0.55); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; font-family: inherit; }
#sb-modal-close:hover { color: #E8A020; }
#sb-modal .sb-legal h1 { font-family: 'Fredoka', sans-serif; font-size: 1.7rem; font-weight: 900; color: #F5F3EE; line-height: 1.2; margin-bottom: 0.5rem; }
#sb-modal .sb-legal h2 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; font-weight: 700; color: #F5F3EE; margin: 1.8rem 0 0.6rem; }
#sb-modal .sb-legal h3 { font-family: 'Fredoka', sans-serif; font-size: 0.95rem; font-weight: 600; color: #E8A020; margin: 1.3rem 0 0.4rem; }
#sb-modal .sb-legal p { color: rgba(245,243,238,0.75); line-height: 1.75; font-size: 0.94rem; margin-bottom: 0.9rem; }
#sb-modal .sb-legal ul { margin: 0 0 1rem 1.2rem; color: rgba(245,243,238,0.75); line-height: 1.75; font-size: 0.94rem; }
#sb-modal .sb-legal li { margin-bottom: 0.4rem; }
#sb-modal .sb-legal strong { color: #F5F3EE; font-weight: 600; }
#sb-modal .sb-legal a { color: #E8A020; }
@media (max-width: 560px) { #sb-modal { padding: 3vh 4%; } #sb-modal-panel { padding: 2.3rem 1.3rem; } }
