/* Base tokens */
:root {
  --text: #1d1d1f;
  --text-light: #86868b;
  --bg: #ffffff;
  --accent: #0071e3;
  --border: #d2d2d7;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

/* Simple layout helpers */
.container { max-width: 900px; margin: 0 auto; padding: 80px 40px; }

.top-logo {
  position: fixed;
  top: 0; left: 0;
  background: white;
  padding: 12px 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  z-index: 100;
}

/* Footer */
footer { padding: 80px 40px; text-align: center; background: #fafafa; margin-top: auto; }
.footer-content { max-width: 800px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: auto auto; /* shrink to content */
  gap: 16px 48px;
  align-items: start;
  justify-content: center; /* center the two columns block */
  justify-items: center;   /* center each column within its grid cell */
  margin-bottom: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.footer-col a { color: var(--text-light); text-decoration: none; font-size: 16px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--text); }

@media (max-width: 600px) {
  .container { padding: 80px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px 0; }
}

/* Blog */
.post { border: none; border-radius: 0; padding: 24px; background: transparent; }
.post h2 { font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.01em; margin: 0 0 8px; }
.post .post-meta { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.post h3 { font-size: 20px; margin: 24px 0 8px; }
.post p { color: var(--text); font-size: 16px; line-height: 1.7; margin: 12px 0; }
.post ul { margin: 12px 0 12px 18px; color: var(--text); }
.post li { margin: 6px 0; }
.post pre { background: #f6f6f6; border: 1px solid #ececec; padding: 12px 14px; border-radius: 8px; overflow: auto; }
.post code, .post pre { font-family: 'SF Mono', Monaco, Consolas, monospace; font-size: 14px; }

/* Shared BYOA screenshot styles (used on blog as well) */
.byoa-screenshot { margin: 24px 0 0; border-radius: 12px; overflow: hidden; }
.byoa-screenshot img { display: block; width: 100%; height: auto; }
.byoa-shot-mobile { display: none !important; }
.byoa-shot-desktop { display: block !important; }
@media (max-width: 768px) {
  .byoa-shot-mobile { display: block !important; }
  .byoa-shot-desktop { display: none !important; }
}
