:root {
  --brand: #794de1;
  --brand-dark: #503a84;
  --brand-soft: #f4f0ff;
  --ink: #111118;
  --muted: #62616f;
  --border: rgba(121, 77, 225, 0.18);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 80px rgba(80, 58, 132, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(121, 77, 225, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #fbfaff 46%, #fff 100%);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header, .site-footer, main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.brand-mark img { width: 44px; height: 44px; object-fit: cover; }
.brand-name { display: block; line-height: 1; font-size: 1.05rem; }
.brand-subtitle { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.site-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 0.94rem; font-weight: 720; }
.nav-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 0 20px;
  box-shadow: 0 14px 34px rgba(121, 77, 225, 0.25);
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  padding: 0 20px;
  font-weight: 800;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 40px;
  align-items: center;
  padding: 72px 0 56px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1, .post-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 950;
}
.hero p, .post-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cli-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff, var(--brand-soft));
  padding: 28px;
  box-shadow: var(--shadow);
}
.cli-card p { margin: 0 0 12px; color: var(--brand-dark); font-weight: 900; }
.cli-card code, .article-cta code {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-radius: 16px;
  background: #111118;
  color: #f4f0ff;
  padding: 18px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.92rem;
}
.cli-card span { display: block; margin-top: 14px; color: var(--muted); font-weight: 650; }
.post-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 20px 0 72px;
}
.post-card a {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 12px 44px rgba(80, 58, 132, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.post-card a:hover { transform: translateY(-3px); border-color: rgba(121, 77, 225, 0.45); box-shadow: var(--shadow); }
.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  background: var(--brand-soft);
}
.post-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}
.post-date { color: var(--brand); font-size: 0.78rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.12em; }
.post-card h2 { margin: 14px 0; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.06; letter-spacing: 0; }
.post-card p { color: var(--muted); }
.post-card span { color: var(--brand); font-weight: 900; }
.post-full { max-width: 860px; margin: 0 auto; padding: 64px 0 82px; }
.post-hero { margin-bottom: 48px; }
.post-feature-image {
  width: 100%;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-soft);
  box-shadow: var(--shadow);
}
.post-content { font-size: 1.08rem; color: #272532; }
.post-content h2 { margin-top: 42px; color: var(--ink); font-size: 2rem; line-height: 1.15; letter-spacing: 0; }
.post-content h3 { margin-top: 30px; color: var(--ink); }
.post-content a { color: var(--brand); font-weight: 760; text-decoration: underline; text-underline-offset: 3px; }
.post-content ul { padding-left: 1.2rem; }
.post-content figure { margin: 34px 0; }
.post-content figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(80, 58, 132, 0.12);
}
.post-content figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}
.post-content table {
  display: block;
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  border-spacing: 0;
  border-collapse: separate;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(80, 58, 132, 0.08);
}
.post-content th, .post-content td {
  min-width: 180px;
  padding: 15px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.post-content th {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-content tr:last-child td { border-bottom: 0; }
.post-content th:last-child, .post-content td:last-child { border-right: 0; }
.post-content pre {
  overflow-x: auto;
  border-radius: 18px;
  background: #111118;
  color: #f4f0ff;
  padding: 18px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.92rem;
}
.post-content blockquote {
  margin: 32px 0;
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--brand-soft);
  padding: 18px 22px;
  color: var(--brand-dark);
  font-weight: 760;
}
.article-cta {
  display: grid;
  gap: 22px;
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--brand-soft));
  padding: 28px;
  box-shadow: var(--shadow);
}
.article-cta h2 { margin: 0; font-size: 1.8rem; line-height: 1.12; }
.article-cta p { color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
}
.site-footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 18px; font-weight: 800; }
.pagination-wrap { padding-bottom: 54px; }
.error-page { padding: 96px 0; text-align: center; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { flex-wrap: wrap; gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 38px; }
  .post-feed { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .hero h1, .post-hero h1 { font-size: clamp(2.4rem, 16vw, 4.2rem); }
}
