:root {
  --primary: #060118;
  --secondary: #c079f7;
  --bg: #f9f9fc;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #555a6b;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --max-width: 880px;
  --line-height: 1.7;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  background: var(--primary);
  color: #fff;
  padding: 0px;
  text-align: center;
}
header h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 10px;
  font-weight: 700;
}
header .blog-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Container */
main.container {
  max-width: var(--max-width);
  margin: 300px auto 40px auto;
  padding: 0 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.blog-meta {
  text-align: right;
}
/* Hero Image */
.blog-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Typography */
p {
  margin-bottom: 18px;
  color: var(--text);
}
strong {
  font-weight: 600;
}

h2 {
  font-size: 1.6rem;
  margin: 28px 0 14px;
  color: var(--primary);
  font-weight: 700;
}
h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  color: var(--secondary);
  font-weight: 600;
}

/* Lists */
ul,
ol {
  margin: 0 0 20px 22px;
  color: var(--muted);
}
li {
  margin: 8px 0;
}

/* Blockquote */
blockquote {
  border-left: 4px solid var(--secondary);
  background: #f7f1ff;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 24px 0;
  color: var(--primary);
  font-style: italic;
}

/* Call to Action */
.cta {
  background: linear-gradient(180deg, var(--secondary), #9f55db);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  margin: 36px 0;
  text-align: center;
}
.cta p {
  margin: 0;
  font-weight: 600;
}
.cta a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

/* Links */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-container {
  display: flex;
  font-size: 0.9em;
  height: 3.5em;
  align-items: center;
  padding: 2.5em 0;
}
.contact-container p {
  color: #ffffff;
}
footer p {
  color: white;
}
a.blog-cta {
  display: block;
  color: var(--baseShade1);
  text-decoration: none;
}
body {
  margin: 0;
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  font-size: 16px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

/* Blog card */
article.blog-post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Header */
article.blog-post > header {
  padding: var(--content-pad);
  border-bottom: 1px solid rgba(6, 1, 24, 0.04);
  display: block;
  text-align: center;
}
article.blog-post > header h1 {
  margin: 0 0 10px;
  color: var(--baseShade1);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.06;
  font-weight: 700;
}
.blog-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Featured image */
.featured-image,
.blog-image {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 4px);
  margin: 18px 0;
  object-fit: cover;
  box-shadow: var(--elev);
}

/* Post body layout */
.post-body {
  padding: var(--content-pad);
  display: block;
}
.article-content {
  max-width: var(--measure);
  margin: 0 auto;
}

/* Headings */
.post-body h2 {
  color: var(--baseShade1);
  margin: 36px 0 12px;
  font-size: clamp(1.2rem, 1.6vw + 0.6rem, 1.8rem);
  font-weight: 700;
  position: relative;
  padding-bottom: 6px;
}
.post-body h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 56px;
  background: linear-gradient(
    90deg,
    var(--accentShade),
    color-mix(in srgb, var(--accentShade) 60%, var(--baseShade1) 40%)
  );
  border-radius: 3px;
  margin-top: 8px;
}
.post-body h3 {
  color: var(--accentShade);
  margin: 20px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Paragraphs & lists */
.post-body p {
  margin: 0 0 16px;
  color: var(--text);
}
.post-body ul,
.post-body ol {
  margin: 0 0 20px 20px;
  color: var(--muted);
}
.post-body li {
  margin: 8px 0;
}

/* Emphasis & examples */
.example,
pre,
.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    monospace;
  background: var(--baseShade1);
  color: #f7f3ff;
  padding: 10px 12px;
  border-radius: 8px;
  display: block;
  white-space: pre-wrap;
  margin: 12px 0;
}

/* Callout */
.callout {
  border-left: 4px solid var(--accentShade);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accentShade) 6%, white 94%),
    var(--glass)
  );
  padding: 14px 16px;
  border-radius: 8px;
  margin: 20px 0;
  color: var(--baseShade1);
  box-shadow: 0 6px 18px rgba(12, 6, 30, 0.04);
}

/* Numbered steps */
.steps {
  counter-reset: step;
  margin: 20px 0 28px;
  padding-left: 0;
}
.steps li {
  list-style: none;
  position: relative;
  padding-left: 56px;
  margin-bottom: 18px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--baseShade1);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--elev);
}

/* Key takeaways */
.key-takeaways {
  border: 2px solid color-mix(in srgb, var(--accentShade) 18%, white 82%);
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  margin: 22px 0;
  box-shadow: 0 4px 14px rgba(12, 6, 30, 0.03);
}
.key-takeaways h3 {
  margin: 0 0 8px;
  color: var(--baseShade1);
}
.key-takeaways ul {
  margin: 8px 0 0 18px;
  color: var(--muted);
}

/* Links & inline interactions */
a {
  color: var(--accentShade);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  border-radius: 4px;
  padding: 0 2px;
}

/* CTA block */
.cta {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accentShade) 70%, #fff 30%),
    var(--accentShade)
  );
  color: #fff;
  padding: 20px 18px;
  border-radius: 12px;
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 8px 30px rgba(192, 115, 247, 0.12);
}
.cta p {
  margin: 0 0 8px;
  font-weight: 700;
}
a.cta-btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--baseShade1);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}
a.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(6, 1, 24, 0.18);
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 36px;
}
.post-nav a {
  color: var(--accentShade);
  text-decoration: none;
  font-weight: 600;
}
.post-nav a:hover {
  color: var(--baseShade1);
}

/* Footer */
.blog-footer {
  padding: 18px var(--content-pad);
  border-top: 1px solid rgba(6, 1, 24, 0.04);
  text-align: center;
  color: var(--muted);
}

/* Accessibility focus */
a:focus,
button:focus {
  outline: 3px solid
    color-mix(in srgb, var(--accentShade) 20%, var(--baseShade1) 10%);
  outline-offset: 3px;
  border-radius: 6px;
}
