:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 50px rgba(15, 23, 42, 0.14);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --radius: 12px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.external-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.external-link:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: white;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 16px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-weight: 500;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.86);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
}

.nav-link.is-active {
  background: rgba(59, 130, 246, 0.12);
}

/* Hero */
.hero {
  position: relative;
  padding: 54px 0 34px;
  overflow: hidden;
  background: radial-gradient(
      900px 500px at 10% 10%,
      rgba(59, 130, 246, 0.18),
      transparent 60%
    ),
    radial-gradient(900px 500px at 85% 0%, rgba(96, 165, 250, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.75);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.hero h1 {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.hero-subtitle {
  margin: 0 0 18px;
  max-width: 56ch;
  color: rgba(15, 23, 42, 0.74);
  font-size: 15px;
}

/* keep hero copy spacing comfortable now that search is removed */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  width: min(520px, 100%);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(59, 130, 246, 0.18);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Sections */
.section {
  padding: 44px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 14px;
}

/* Buttons + inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #2563eb);
  color: white;
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: white;
  color: rgba(15, 23, 42, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
}

.input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
  background: white;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 18px;
}

.grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-latest {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
  opacity: 0;
  animation: fadeUp 520ms ease forwards;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(59, 130, 246, 0.18);
}

.card-media {
  aspect-ratio: 16 / 9;
  background: rgba(59, 130, 246, 0.08);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px 14px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.24);
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
  font-size: 12px;
}

.card-title {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}

.card-excerpt {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 13px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.62);
}

.meta strong {
  color: rgba(15, 23, 42, 0.86);
}

/* Footer */
.footer {
  padding: 34px 0 18px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.footer-col p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(15, 23, 42, 0.76);
  font-size: 13px;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: white;
  color: rgba(15, 23, 42, 0.72);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
    color 160ms ease;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
  color: var(--accent);
}

.footer-bottom {
  padding-top: 14px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(15, 23, 42, 0.6);
  font-size: 12px;
}

.muted {
  color: rgba(15, 23, 42, 0.68);
}

.no-results {
  border-radius: 16px;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  padding: 18px;
  color: rgba(15, 23, 42, 0.74);
  font-weight: 500;
  margin-top: 14px;
}

/* Blog post page */
.post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.post-title {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
}

.post-figure {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.post-figure img {
  width: 100%;
  height: auto;
}

.post-body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(15, 23, 42, 0.86);
}

.post-body p {
  margin: 0 0 16px;
}

.post-body h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
}

/* Fade-in */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .grid-featured,
  .grid-latest {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .header-inner {
    gap: 12px;
  }
}

