:root {
  color-scheme: light dark;

  /* Light theme default */
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #eef2f7;
  --text: #111827;
  --muted: #4b5563;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --line: rgba(17, 24, 39, .12);
  --shadow: rgba(15, 23, 42, .10);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --panel: #11182e;
    --panel-2: #17213d;
    --text: #edf2ff;
    --muted: #aab6d3;
    --brand: #7dd3fc;
    --brand-2: #c084fc;
    --line: rgba(255,255,255,.12);
    --shadow: rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 16%, transparent), transparent 30rem),
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.15rem;
}

.logo span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: .96rem;
}

.hero {
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 32px;
  align-items: center;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -.04em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 0 0 14px;
}

p { color: var(--muted); }

.hero p {
  font-size: 1.13rem;
  max-width: 680px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-weight: 800;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px var(--shadow);
}

.profile-card {
  text-align: left;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  margin-bottom: 18px;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.post-meta {
  color: var(--brand);
  font-size: .84rem;
  font-weight: 700;
}

.post-card h3 {
  font-size: 1.35rem;
  margin: 12px 0 8px;
}

.post-card p {
  margin-bottom: 20px;
}

.read-more {
  margin-top: auto;
  font-weight: 800;
  color: var(--text);
}

.page {
  padding: 56px 0;
  max-width: 800px;
}

.article {
  max-width: 780px;
  padding: 56px 0;
}

.article h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.article-content {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.article-content h2 {
  font-size: 1.7rem;
  margin-top: 34px;
}

.article-content code {
  background: rgba(255,255,255,.12);
  padding: 2px 6px;
  border-radius: 7px;
}

.newsletter {
  margin: 64px auto;
  max-width: 920px;
  text-align: center;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .94rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  .hero-grid, .post-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 44px;
  }
}