@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --subtle: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --emerald: #047857;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 66px; flex-wrap: wrap; padding: 10px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.05rem;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #059669);
  color: #fff; display: grid; place-items: center; font-size: 0.9rem; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92rem;
  padding: 6px 10px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--subtle); }
.support-btn {
  background: #fff7ed; color: #9a3412 !important; border: 1px solid #fed7aa;
  border-radius: 999px !important; padding: 6px 14px !important; font-weight: 700 !important;
}

.hero { padding: 54px 0 34px; }
.pill {
  display: inline-block; background: var(--emerald-bg); color: var(--emerald);
  border: 1px solid var(--emerald-border); border-radius: 999px;
  padding: 5px 14px; font-size: 0.84rem; font-weight: 700; margin-bottom: 16px;
}
h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.025em; max-width: 780px; margin-bottom: 16px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; padding: 14px 0 54px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  box-shadow: 0 10px 30px -14px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.card:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge {
  font-size: 0.78rem; font-weight: 700; color: var(--primary);
  background: #eff6ff; border: 1px solid #bfdbfe; padding: 4px 10px; border-radius: 999px;
}
.url { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--muted); }
.card h2 { font-size: 1.3rem; font-weight: 800; margin: 10px 0 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #ffffff; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; padding: 11px 16px; border-radius: 10px;
}
.cta:hover { background: var(--primary-hover); }

.prose-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 32px; margin: 28px 0 54px; max-width: 820px;
}
.prose-card h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.prose-card p, .prose-card li { color: var(--muted); margin-bottom: 10px; }
.prose-card ul { padding-left: 20px; }

.footer {
  border-top: 1px solid var(--border); background: #ffffff;
  padding: 28px 0 38px; color: var(--muted); font-size: 0.9rem;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .header-inner { min-height: auto; padding: 10px 0; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
}
