/* AutomateYourStack - Dark Mode Theme */
:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-code: #252830;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --text: #e2e4e9;
  --text-muted: #8b8fa3;
  --text-dim: #5f6377;
  --border: #2a2d3a;
  --success: #00b894;
  --warning: #fdcb6e;
  --max-w: 850px;
  --max-w-wide: 1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header { border-bottom: 1px solid var(--border); padding: 1.2rem 0; position: sticky; top: 0; background: rgba(15,17,23,.92); backdrop-filter: blur(12px); z-index: 100; }
header .container-wide { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--accent); }
nav a { color: var(--text-muted); text-decoration: none; margin-left: 2rem; font-size: .9rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--accent-light); }

/* Hero */
.hero { padding: 4rem 0 3rem; text-align: center; }
.hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 550px; margin: 0 auto; }

/* Post Cards */
.posts { padding: 2rem 0 4rem; }
.posts h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 1.5rem; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; margin-bottom: 1.5rem; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-card a { text-decoration: none; color: inherit; }
.post-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.post-card .meta { color: var(--text-dim); font-size: .85rem; margin-bottom: .75rem; }
.post-card .excerpt { color: var(--text-muted); font-size: .95rem; }
.tag { display: inline-block; background: var(--bg-code); color: var(--accent-light); font-size: .75rem; padding: .2rem .6rem; border-radius: 4px; margin-right: .4rem; }

/* Article */
article { padding: 3rem 0 4rem; }
article h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .75rem; }
article .meta { color: var(--text-dim); font-size: .9rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
article h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
article h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 .75rem; }
article p { margin-bottom: 1.2rem; }
article a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
article ul, article ol { margin: 0 0 1.2rem 1.5rem; }
article li { margin-bottom: .4rem; }
article strong { color: #fff; }
article blockquote { border-left: 3px solid var(--accent); background: var(--bg-card); padding: 1rem 1.5rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
article blockquote p { margin-bottom: 0; }
article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; }
article th { background: var(--bg-code); text-align: left; padding: .7rem .8rem; font-weight: 600; border-bottom: 2px solid var(--border); white-space: nowrap; }
article td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
article .table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 8px; border: 1px solid var(--border); }
article .table-wrap table { margin: 0; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.product-card h3 { margin-top: 0; }
.btn-affiliate { display: inline-block; background: var(--accent); color: #fff; padding: .6rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .2s; margin-top: .5rem; }
.btn-affiliate:hover { background: var(--accent-light); color: var(--bg); }

/* Disclosure */
.disclosure-banner { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1.2rem; font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; }

/* About */
.page-content { padding: 3rem 0 4rem; }
.page-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; }
.page-content p { margin-bottom: 1.2rem; color: var(--text-muted); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 0; margin-top: 2rem; }
footer .container-wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: .8rem; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: .9rem; margin-bottom: .4rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: .8rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom a { color: var(--text-muted); }
.affiliate-notice { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.5rem; font-size: .82rem; color: var(--text-muted); margin-top: 1.5rem; max-width: var(--max-w); }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  article h1 { font-size: 1.6rem; }
  header .container-wide { flex-wrap: wrap; }
  nav { margin-top: .5rem; }
  nav a { margin-left: 0; margin-right: 1.5rem; }
  article table { font-size: .78rem; }
  article th, article td { padding: .4rem .5rem; }
  footer .container-wide { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .post-card { padding: 1.3rem; }
}
