/* ViniJack Editorial Stylesheet — Lightweight, Zero-Framework, Responsive */
:root {
  --bg: #0b0f17;
  --surface: #121826;
  --surface-2: #192235;
  --border: #26324a;
  --text: #e6ecf5;
  --muted: #9aa7bd;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --ok: #34d399;
  --warn-bg: rgba(251, 191, 36, 0.08);
  --warn-border: rgba(251, 191, 36, 0.35);
  --maxw: 1120px;
  --prose: 760px;
  --radius: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.prose-wrap { width: 100%; max-width: var(--prose); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.94rem;
}
.nav a { color: var(--muted); font-weight: 500; }
.nav a.active, .nav a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #06121f;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

.hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 36px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-pill.is-active, .filter-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}
.search-input {
  width: 100%;
  max-width: 360px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.38;
}
.card h3 a { color: var(--text); }
.card p.summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}
.disclosure-banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}
.newsletter-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius);
  padding: 26px;
  margin: 34px 0;
}
.newsletter-box h2, .newsletter-box h3 { margin: 0 0 8px; }
.newsletter-box p { margin: 0 0 16px; color: var(--muted); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 24px 0 12px;
}
.article-header h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 20px; }

.article-body {
  font-size: 1.03rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.article-body h2 {
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.42rem;
  line-height: 1.3;
}
.article-body h3 { margin: 26px 0 10px; font-size: 1.16rem; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  margin: 20px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}
.article-figure {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.article-figure img {
  margin: 0 auto;
  border-radius: 8px;
}
.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-wrap th, .table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table-wrap th { background: var(--surface-2); font-weight: 600; }
.code-block {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: #070a10;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.87rem;
  line-height: 1.55;
  margin: 18px 0;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 2px 5px;
  border-radius: 4px;
}
.article-body pre code { background: transparent; padding: 0; }

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.is-hidden { display: none !important; }
