/* TinyByte Apps Blog — shared stylesheet (light theme)
   Brand tokens extracted from public/index.html (Framer export). */

:root {
  --bg: #ffffff;
  --bg-soft: #f9fcff;
  --bg-card: #ffffff;
  --bg-elev: #f1f5fb;
  --border: #e6ecf3;
  --border-strong: #d4dde8;
  --text: #24272B;
  --text-muted: #36414D;
  --text-dim: #6b7480;
  --accent: #954ADD;
  --accent-strong: #7a36c0;
  --accent-blue: #1E57EA;
  --accent-blue-strong: #1747c5;
  --gradient: linear-gradient(135deg, #1E57EA 0%, #954ADD 100%);
  --max: 720px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(36, 39, 43, 0.04), 0 1px 3px rgba(36, 39, 43, 0.06);
  --shadow-md: 0 4px 12px rgba(36, 39, 43, 0.06), 0 2px 4px rgba(36, 39, 43, 0.04);
}

@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/heebo/v26/NGSpv5_NC0k9P_v6ZUCbLRAHxK1EiSysd0BL.woff2') format('woff2');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/heebo/v26/NGSpv5_NC0k9P_v6ZUCbLRAHxK1EiSysekJL.woff2') format('woff2');
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/heebo/v26/NGSpv5_NC0k9P_v6ZUCbLRAHxK1EiSysbEdL.woff2') format('woff2');
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-strong); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.site-header__brand:hover { color: var(--text); text-decoration: none; }
.site-header__logo {
  height: 32px;
  width: auto;
  display: block;
}
.site-header__brand .blog-tag {
  color: var(--text-dim);
  font-weight: 500;
  padding-left: 12px;
  border-left: 1px solid var(--border-strong);
}
.site-header__nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.site-header__nav a { color: var(--text-muted); }
.site-header__nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.container--wide { max-width: 980px; }

/* ---------- Blog landing ---------- */
.blog-hero {
  text-align: left;
  margin-bottom: 48px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.blog-hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
}

.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  display: block;
  padding: 26px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.post-card__date {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin: 0 0 6px;
}
.post-card__title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}
.post-card__excerpt {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 16px;
}
.post-card__cta {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.blog-empty {
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Article ---------- */
.breadcrumb {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--text);
}
.article-meta {
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.article-meta time { color: var(--text-muted); }

.article-hero {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

article {
  font-size: 17px;
  color: var(--text-muted);
}
article h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 48px 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
article h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 36px 0 12px;
  font-weight: 700;
  color: var(--text);
}
article p { margin: 0 0 20px; }
article p strong { color: var(--text); }
article ul, article ol { margin: 0 0 22px; padding-left: 22px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--accent); }
article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
article a:hover { color: var(--accent-strong); }
article blockquote {
  margin: 28px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}
article code {
  font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--text);
}
article pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
}
article pre code { background: transparent; padding: 0; font-size: inherit; }
article img {
  border-radius: var(--radius);
  margin: 28px 0;
  border: 1px solid var(--border);
}
article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ---------- App cards (used inside articles) ---------- */
.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  margin: 24px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.app-card__icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  margin: 0;
}
.app-card__icon img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
.app-card__icon img.is-padded { transform: scale(1.18); transform-origin: center; }
.app-card__body { flex: 1 1 auto; min-width: 0; }
.app-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.2;
}
.app-card__tagline {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.app-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.app-card .app-card__audience-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 22px 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  line-height: 1.3;
}
.app-card__audience {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}
.app-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.app-card__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  text-decoration: none;
}

.article-footer {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.article-footer__back { color: var(--text-muted); font-weight: 500; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}
.site-footer__inner a { color: var(--text-muted); }
.site-footer__inner a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 36px 20px 60px; }
  .site-header__inner { padding: 12px 18px; }
  .site-header__logo { height: 26px; }
  .site-header__brand .blog-tag { padding-left: 10px; font-size: 13px; }
  .site-header__nav { gap: 16px; font-size: 14px; }
  .post-card { padding: 22px 22px; }
  .post-card__title { font-size: 19px; }
  article h2 { font-size: 24px; margin-top: 36px; }
  article h3 { font-size: 19px; }
  .app-card { flex-direction: column; gap: 14px; padding: 20px; }
  .app-card__icon { width: 64px; height: 64px; }
}
