:root{
  --brand: #D4A574;
  --brand-dark: #B07A3C;
  --text: #1a1a1a;
  --muted: #6b7280;
  --bg: #FBF7F2;            /* warm off-white background */
  --surface: #FFF8EF;       /* card surface */
  --surface-2: #FFF3E3;     /* accent surface */
  --border: #eadccd;        /* softer border */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.7}
a{color:var(--brand-dark);text-decoration:none}
a:hover{text-decoration:underline}

.site-header,.site-footer{max-width:1200px;margin:0 auto;padding:16px}
.site-header{background:
  linear-gradient(180deg, rgba(212,165,116,0.10), rgba(255,255,255,0));
  border-bottom:1px solid var(--border);
  border-radius:0 0 14px 14px;
}
.site-footer{border-top:1px solid var(--border);}
.site-header-nav{display:flex;align-items:center;gap:16px}
.site-header-nav a{font-weight:600}

.container{max-width:760px;margin:24px auto;padding:0 16px}
.container.list{max-width:1000px}
.page-title{font-size:40px;line-height:1.2;margin:8px 0 12px;color:#2b2116}
.article-title{font-size:36px;line-height:1.2;margin:8px 0 12px;color:#2b2116}
.page-title,.article-title{position:relative;padding-left:12px}
.page-title:before,.article-title:before{content:"";position:absolute;left:0;top:6px;bottom:6px;width:4px;background:var(--brand-dark);border-radius:8px}
.meta{color:var(--muted);font-size:14px;margin-bottom:16px}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.tag{font-size:12px;background:var(--surface);color:#5b4631;border:1px solid var(--border);border-radius:999px;padding:4px 10px}
img{max-width:100%;height:auto;border-radius:10px}
/* Featured image container keeps nice aspect and avoids overly tall images */
.featured{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:var(--surface-2);box-shadow:0 2px 10px rgba(0,0,0,0.04);margin:10px 0 18px}
.featured img{width:100%;height:100%;object-fit:cover;display:block}
/* Limit inline images height inside article content */
.card img{max-height:520px}

.card{border:1px solid var(--border);border-radius:14px;padding:20px;background:var(--surface);box-shadow:0 2px 10px rgba(0,0,0,0.04)}
.list article{padding:16px 0;border-bottom:1px solid var(--border)}
.list h2{font-size:22px;margin:0 0 6px}
.list article:hover{background:linear-gradient(180deg, rgba(212,165,116,0.05), rgba(255,255,255,0));border-radius:10px}

pre{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:10px;overflow:auto}
code{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.btn{display:inline-block;background:var(--brand-dark);color:white;padding:10px 14px;border-radius:10px;border:1px solid #a36b31;box-shadow:0 2px 6px rgba(176,122,60,0.25)}
.btn:hover{background:#9e6429}

.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:12px}
.breadcrumbs a{color:var(--muted)}

.toc{border:1px dashed var(--border);background:#fffdf8;padding:12px;border-radius:12px;margin:16px 0}
.toc h3{margin:0 0 8px;font-size:14px;color:#5b4631}
.toc ul{margin:0;padding-left:18px}
.toc li{margin:6px 0}

.social{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:18px 0
}
.social a{
  display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);
  border-radius:999px;background:var(--surface);color:#2b2116;font-weight:600;transition:background .2s,transform .1s
}
.social a:hover{background:var(--surface-2)}
.social a:active{transform:translateY(1px)}
.social svg{width:18px;height:18px;display:block}

/* Platform tints via icon color */
.social a.ig svg{color:#C13584}
.social a.fb svg{color:#1877F2}
.social a.tt svg{color:#EE1D52}
.social a.x svg{color:#111111}
.social a.yt svg{color:#FF0000}

/* Article Layout with Sidebar */
.article-layout{
  max-width:1200px;
  margin:24px auto;
  padding:0 16px;
  display:grid;
  grid-template-columns:1fr;
  gap:32px;
}

@media (min-width: 1024px) {
  .article-layout{
    grid-template-columns:minmax(0, 760px) 320px;
  }
}

.article-content{
  min-width:0;
}

/* Sidebar Styles */
.article-sidebar{
  display:none;
}

@media (min-width: 1024px) {
  .article-sidebar{
    display:block;
  }
  
  .sidebar-sticky{
    position:sticky;
    top:24px;
    display:flex;
    flex-direction:column;
    gap:20px;
  }
}

/* CTA Card */
.cta-card{
  background:linear-gradient(135deg, #FFF8EF 0%, #FFF3E3 100%);
  border-radius:16px;
  padding:24px;
  color:#2b2116;
  box-shadow:0 4px 20px rgba(176,122,60,0.15);
  text-align:center;
  border:2px solid var(--border);
}

.cta-logo{
  width:80px;
  height:80px;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cta-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:0;
}

.cta-title{
  font-size:20px;
  font-weight:700;
  margin:0 0 12px;
  line-height:1.3;
  color:#2b2116;
}

.cta-text{
  font-size:14px;
  line-height:1.5;
  margin:0 0 20px;
  color:#5b4631;
}

.cta-buttons{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
}

.store-btn-wrapper{
  position:relative;
  width:100%;
}

.store-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#000;
  color:white;
  padding:12px 16px;
  border-radius:10px;
  font-weight:600;
  font-size:14px;
  transition:all 0.3s ease;
  border:1px solid #333;
  text-decoration:none;
  width:100%;
}

.store-btn:hover{
  background:#1a1a1a;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  text-decoration:none;
}

.store-btn-disabled{
  opacity:0.7;
  cursor:default;
}

.store-btn-disabled:hover{
  transform:none;
  background:#000;
}

.coming-soon-badge{
  position:absolute;
  top:-8px;
  right:-8px;
  background:#FFD700;
  color:#000;
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  box-shadow:0 2px 8px rgba(255,215,0,0.4);
  animation:pulse 2s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{
    opacity:1;
  }
  50%{
    opacity:0.7;
  }
}

.store-btn svg{
  width:20px;
  height:20px;
  flex-shrink:0;
}

.cta-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(212,165,116,0.15);
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  border:1px solid var(--brand);
  color:#5b4631;
}

.cta-badge svg{
  width:16px;
  height:16px;
  color:var(--brand-dark);
}

/* Info Card */
.info-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:20px;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.info-card h4{
  font-size:16px;
  font-weight:700;
  margin:0 0 14px;
  color:#2b2116;
}

.info-card ul{
  margin:0;
  padding:0;
  list-style:none;
}

.info-card li{
  font-size:14px;
  line-height:1.6;
  padding:8px 0;
  padding-left:24px;
  position:relative;
  color:#5b4631;
}

.info-card li:before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--brand-dark);
  font-weight:700;
  font-size:16px;
}

/* Mobile CTA - show at bottom on mobile */
@media (max-width: 1023px) {
  .article-sidebar{
    display:none;
  }
}

/* Mobile Sticky Bottom Bar */
.mobile-cta-bar{
  display:none;
}

@media (max-width: 1023px) {
  .mobile-cta-bar{
    display:block;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:linear-gradient(180deg, rgba(255,248,239,0.98) 0%, rgba(255,248,239,1) 100%);
    backdrop-filter:blur(10px);
    border-top:2px solid var(--border);
    box-shadow:0 -4px 20px rgba(0,0,0,0.08);
    padding:12px 16px;
    z-index:1000;
    animation:slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp{
    from{
      transform:translateY(100%);
    }
    to{
      transform:translateY(0);
    }
  }
  
  .mobile-cta-content{
    display:flex;
    align-items:center;
    gap:12px;
    max-width:600px;
    margin:0 auto;
  }
  
  .mobile-cta-logo{
    width:48px;
    height:48px;
    flex-shrink:0;
  }
  
  .mobile-cta-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
  }
  
  .mobile-cta-buttons{
    display:flex;
    gap:8px;
    flex:1;
  }
  
  .mobile-store-btn{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    background:#000;
    color:white;
    padding:10px 12px;
    border-radius:8px;
    font-weight:600;
    font-size:13px;
    border:1px solid #333;
    text-decoration:none;
    transition:all 0.2s ease;
    position:relative;
  }
  
  .mobile-store-btn svg{
    width:18px;
    height:18px;
    flex-shrink:0;
  }
  
  .mobile-store-btn:active{
    transform:scale(0.97);
  }
  
  .mobile-store-btn-disabled{
    opacity:0.6;
  }
  
  .mobile-coming-soon{
    position:absolute;
    top:-6px;
    right:-6px;
    background:#FFD700;
    color:#000;
    font-size:9px;
    font-weight:700;
    padding:2px 6px;
    border-radius:999px;
    box-shadow:0 2px 6px rgba(255,215,0,0.4);
  }
  
  /* Add padding to body to prevent content being hidden behind sticky bar */
  body{
    padding-bottom:80px;
  }
}

