:root {
  --bg: #0c1118;
  --surface: #151c28;
  --surface-2: #1c2536;
  --text: #eef2f8;
  --muted: #8b98ab;
  --accent: #22c55e;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 17, 24, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-2px);
}

.card-thumb {
  height: 140px;
  background: linear-gradient(145deg, var(--surface-2), #243044);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.card-body { padding: 1rem 1.1rem 1.15rem; }

.card-body h2 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.card-body h2 a { color: var(--text); text-decoration: none; }
.card-body h2 a:hover { color: var(--accent); }

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

@media (max-width: 720px) { .featured { grid-template-columns: 1fr; } }

.featured-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: linear-gradient(180deg, transparent 30%, rgba(12, 17, 24, 0.95)),
    linear-gradient(135deg, #1a3d2e 0%, #151c28 60%);
}

.featured-main h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0;
}

.featured-side { display: grid; gap: 0.75rem; }

.featured-side .card { display: flex; gap: 0.85rem; align-items: center; }
.featured-side .card-thumb { width: 88px; height: 72px; flex-shrink: 0; border-radius: 8px; }
.featured-side .card-body { padding: 0.65rem 0.85rem 0.65rem 0; }

.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.newsletter h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.newsletter p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.7rem 1.1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
