:root {
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --accent: #6366f1;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 80;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0.75rem; }

.logo-text {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-wash {
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(59, 130, 246, 0.16), transparent 70%),
    #f8fafc;
}

.about-hero {
  background:
    radial-gradient(900px 280px at 50% 0%, rgba(99, 102, 241, 0.22), transparent 65%),
    linear-gradient(180deg, #eef4ff 0%, #ffffff 70%);
}

.ad-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.ad-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}
.gpt-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 336px;
  margin-inline: auto;
  overflow: hidden;
}
.gpt-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid #e2e8f0;
}
.gpt-ad-anchor {
  max-width: 320px;
  min-height: 50px;
}
body {
  padding-bottom: 72px;
}

.prose-article h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 2.25rem 0 0.85rem;
  color: #0f172a;
}
.prose-article h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.65rem;
  color: #1e293b;
}
.prose-article p {
  margin: 0 0 1rem;
  color: #334155;
  line-height: 1.8;
}
.prose-article ul,
.prose-article ol {
  margin: 0 0 1.15rem 1.2rem;
  color: #334155;
  line-height: 1.75;
}
.prose-article li { margin-bottom: 0.4rem; }
.prose-article a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.prose-article strong { color: #0f172a; font-weight: 600; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
.data-table th,
.data-table td {
  border: 1px solid #e2e8f0;
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #0f172a;
}
.data-table td { color: #334155; }

.callout {
  border-left: 4px solid #6366f1;
  background: #eef2ff;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  color: #312e81;
  margin: 1.25rem 0;
}

.legal-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.75rem 0 0.6rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #c7d2fe;
  display: inline-block;
}
.legal-card p,
.legal-card li {
  color: #475569;
  line-height: 1.75;
}
.legal-card ul { margin: 0.4rem 0 0.8rem 1.15rem; }

.cookie-banner {
  position: fixed;
  inset: auto 0.75rem 5.5rem;
  z-index: 2147483000;
  max-width: 42rem;
  margin-inline: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.post-card { content-visibility: auto; contain-intrinsic-size: 420px; }

/* First paint: 6 cards (3×2) before pagination JS runs */
#post-grid > article:nth-child(n+7) { display: none; }
#post-grid.is-filtered > article { display: flex; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
