:root {
  color-scheme: light;
  --bg: #f8f5fc;
  --bg-soft: #faf8ff;
  --surface: #ffffff;
  --surface-tint: #f1ecfb;
  --text: #17113b;
  --text-strong: #080620;
  --muted: #5c5375;
  --muted-2: #6d6688;
  --brand: #5c2bb3;
  --brand-2: #7f5bea;
  --accent: #18b7a9;
  --danger: #a32235;
  --success: #167860;
  --line: rgba(45, 41, 66, 0.12);
  --line-strong: rgba(92, 43, 179, 0.24);
  --shadow: 0 22px 60px rgba(45, 41, 66, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 4%, rgba(127, 91, 234, 0.18), transparent 29%),
    radial-gradient(circle at 88% 8%, rgba(24, 183, 169, 0.13), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 55%, var(--bg-soft) 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(92, 43, 179, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 43, 179, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
}

.brand img {
  width: 164px;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav a,
.primary-link,
.back-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(45, 41, 66, 0.06);
}

.topnav a:first-child,
.primary-link {
  border-color: transparent;
  background: var(--brand);
  color: #ffffff;
}

.topnav a:hover,
.primary-link:hover,
.back-link:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.topnav a:first-child:hover,
.primary-link:hover {
  background: #211b4f;
  color: #ffffff;
}

.topnav a.is-active {
  border-color: var(--brand);
  background: rgba(92, 43, 179, 0.1);
  color: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 48px;
  align-items: center;
  min-height: 430px;
  padding: 50px 0 62px;
}

.hero h1,
.article-copy h1,
.empty-state h1 {
  margin: 0;
  max-width: 820px;
  color: var(--text-strong);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-icon-panel {
  display: grid;
  min-height: 320px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(127, 91, 234, 0.18), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8f5fc 100%);
  box-shadow: var(--shadow);
}

.hero-icon-panel img {
  width: min(72%, 280px);
  height: auto;
  filter: drop-shadow(0 22px 38px rgba(92, 43, 179, 0.18));
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-head h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 70px;
}

.news-card {
  overflow: hidden;
  border: 1px solid rgba(45, 41, 66, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(45, 41, 66, 0.1);
}

.image-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-tint);
}

.image-link img,
.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-row span + span::before {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.news-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 21px;
  line-height: 1.24;
}

.news-card h3 a:hover,
.read-more:hover {
  color: var(--brand);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.read-more {
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-links a,
.share-links button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(92, 43, 179, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand);
  font: 900 12px/1 Inter, sans-serif;
  cursor: pointer;
}

.share-links a:hover,
.share-links button:hover,
.share-links button.is-copied {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.article-layout {
  padding: 30px 0 80px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: 34px;
  align-items: end;
  margin-top: 28px;
}

.article-copy {
  padding: 28px 0;
}

.article-image {
  aspect-ratio: 16 / 11;
  border: 10px solid #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: 42px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.share-panel {
  position: sticky;
  top: 22px;
  align-self: start;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.story p {
  margin: 0 0 24px;
  color: #332b55;
  font-size: 18px;
  line-height: 1.85;
}

.empty-state {
  display: grid;
  min-height: 60vh;
  place-content: center;
  justify-items: start;
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
}

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

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-icon-panel {
    min-height: 240px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .article-copy {
    padding-bottom: 0;
  }

  .share-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
  }

  .topnav a {
    flex: 1;
    text-align: center;
  }

  .hero h1,
  .article-copy h1,
  .empty-state h1 {
    font-size: 38px;
  }
}
