:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #202938;
  --muted: #5f6b7a;
  --line: #dce3ed;
  --blue: #3768d6;
  --purple: #6d3fe8;
  --pink: #e34498;
  --green: #2d9f74;
  --amber: #b06b00;
  --soft-blue: #eef4ff;
  --soft-purple: #f4efff;
  --soft-pink: #fff0f8;
  --soft-green: #edf9f3;
  --shadow: 0 18px 50px rgba(32, 41, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.article-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.article-top-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.article-home-link,
.article-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.article-home-link {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--purple);
  padding: 9px 13px;
}

.article-home-link:hover {
  border-color: #cebfff;
  color: var(--pink);
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.deck {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.quick-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.quick-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.quick-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.quick-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(220px, 1fr);
  gap: 36px;
  align-items: start;
}

article {
  min-width: 0;
}

.content-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  box-shadow: var(--shadow);
}

p {
  margin: 0 0 18px;
}

h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2:first-child {
  margin-top: 0;
}

ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

li {
  margin: 6px 0;
}

figure {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  background: #fbfcfe;
}

.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid #c8d9ff;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--soft-blue);
  color: #22375f;
  font-weight: 700;
}

aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.side-panel p,
.side-panel li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.side-panel ul {
  margin-bottom: 0;
}

.sidebar-cta {
  border-color: #dccdff;
  background: linear-gradient(135deg, var(--soft-purple), var(--soft-pink));
}

.sidebar-cta p {
  color: #40314f;
}

.sidebar-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  background: var(--purple);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.sidebar-cta-button:hover {
  background: var(--pink);
  color: #ffffff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  background: var(--soft-green);
  color: #1f7254;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.final-takeaway {
  margin-top: 34px;
  padding: 22px;
  border-radius: 8px;
  background: #fff7e8;
  border: 1px solid #efd6a8;
  color: #60400c;
}

.final-takeaway h2 {
  margin-top: 0;
  color: var(--ink);
}

.article-cta {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #dccdff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--soft-purple), var(--soft-pink));
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  max-width: 620px;
  color: #40314f;
}

.article-cta-button {
  min-height: 44px;
  background: var(--purple);
  color: #ffffff;
  padding: 11px 15px;
}

.article-cta-button:hover {
  background: var(--pink);
  color: #ffffff;
}

.blog-home {
  background:
    linear-gradient(115deg, rgba(109, 63, 232, 0.08), transparent 28%),
    linear-gradient(245deg, rgba(227, 68, 152, 0.07), transparent 24%),
    var(--bg);
}

.blog-index-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px 72px;
}

.blog-home main {
  display: block;
}

.blog-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 42px;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

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

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--purple);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.nav-link:hover,
.read-link:hover {
  color: var(--pink);
}

.nav-cta:hover {
  background: var(--pink);
  color: #ffffff;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 68px;
}

.featured-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.featured-media img,
.article-card img {
  display: block;
  width: 100%;
  height: auto;
}

.featured-media img {
  aspect-ratio: 895 / 783;
  object-fit: cover;
}

.metric-chip {
  position: absolute;
  right: 18px;
  min-width: 122px;
  padding: 11px 12px;
  border: 1px solid rgba(220, 227, 237, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(32, 41, 56, 0.16);
}

.metric-chip strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.metric-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.metric-chip::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--purple);
}

.metric-chip.sales {
  top: 46px;
}

.metric-chip.risk {
  top: 136px;
}

.metric-chip.risk::after {
  background: var(--pink);
}

.metric-chip.profit {
  right: 52px;
  bottom: 44px;
}

.metric-chip.profit::after {
  background: var(--green);
}

.featured-copy {
  padding-right: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--soft-purple);
  color: var(--purple);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.featured-copy h1 {
  max-width: 620px;
  font-size: clamp(38px, 5vw, 60px);
}

.featured-copy p {
  max-width: 620px;
  color: var(--muted);
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.read-link::after {
  content: "->";
  color: var(--pink);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-controls {
  display: flex;
  gap: 8px;
}

.circle-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  min-width: 0;
}

.article-card figure {
  margin: 0 0 16px;
  box-shadow: none;
}

.article-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card .card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.article-card .author {
  color: var(--pink);
  font-weight: 800;
}

.article-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.article-card h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--purple);
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.placeholder-art {
  display: grid;
  min-height: 180px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(109, 63, 232, 0.16), rgba(227, 68, 152, 0.13)),
    #ffffff;
}

.placeholder-art span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--purple);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 880px) {
  .article-header,
  main,
  .featured-post,
  .recent-grid {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
  }

  .featured-post {
    gap: 28px;
    margin-bottom: 48px;
  }
}

@media (max-width: 560px) {
  .article-shell {
    padding: 24px 14px 40px;
  }

  .article-home-link,
  .article-cta-button {
    width: 100%;
  }

  .content-block {
    padding: 22px 18px;
  }

  h1 {
    font-size: 36px;
  }

  .deck {
    font-size: 17px;
  }

  .blog-index-shell {
    padding: 28px 14px 48px;
  }

  .blog-nav,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-nav-links {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-cta {
    width: 100%;
  }

  .metric-chip {
    min-width: 104px;
    right: 10px;
    padding: 8px 9px;
  }

  .metric-chip strong {
    font-size: 18px;
  }

  .metric-chip.sales {
    top: 18px;
  }

  .metric-chip.risk {
    top: 88px;
  }

  .metric-chip.profit {
    right: 28px;
    bottom: 18px;
  }
}
