/* Sonatafy blog article styles — matches site design system */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-start: #00b7ff;
  --brand-end: #0051dc;
  --brand: #0051dc;
  --brand-deep: #003a9e;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-muted: #7a7a7a;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-tint: #eef3ff;
  --border: #e5e7ee;
  --font-serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Top brand bar */
/* Top nav — matches site nav used on static solution pages */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-i {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-l { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.nav-l img { display: block; height: 38px; }
.nav-k { display: flex; gap: 32px; align-items: center; }
.nav-k a { font-size: 14px; font-weight: 500; color: var(--text-soft); text-decoration: none; transition: color .2s; }
.nav-k a:hover { color: var(--text); }
.nav-cta {
  font-size: 14px; font-weight: 600; color: #fff !important;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  padding: 10px 22px; border-radius: 6px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,81,220,.25); }
@media(max-width: 900px){ .nav-k a:not(.nav-cta){ display: none; } }

/* Article container — center body sections in a readable column */
body > nav.breadcrumb,
body > .tag-row,
body > header,
body > .quick-answer,
body > p,
body > h2,
body > h3,
body > ul,
body > ol,
body > .definition-block,
body > .stat-row,
body > .dimension-grid,
body > .output-block,
body > .steps-list,
body > .cta-block,
body > .faq-section,
body > footer.author-block {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 24px);
  padding-right: clamp(20px, 4vw, 24px);
}

/* Push the article body below the fixed nav */
body > nav.breadcrumb { margin-top: 104px; }
body > header { padding-top: 8px; padding-bottom: 8px; }
body > footer.author-block { padding-bottom: 80px; }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 5px 12px;
  border-radius: 100px; color: var(--brand-deep);
  background: var(--bg-tint); letter-spacing: 0.03em; text-transform: uppercase;
}

/* Headings */
h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 56px;
  margin-bottom: 18px;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

/* Body */
p { margin-bottom: 22px; color: var(--text-soft); }
ul, ol { padding-left: 22px; margin-bottom: 24px; color: var(--text-soft); }
li { margin-bottom: 10px; }
strong { color: var(--text); }
a { color: var(--brand); }

/* Article meta */
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.article-meta a { color: var(--brand); text-decoration: none; font-weight: 500; }
.article-meta a:hover { text-decoration: underline; }

/* Quick answer */
.quick-answer {
  background: linear-gradient(135deg, rgba(0,183,255,0.06), rgba(0,81,220,0.06));
  border-left: 3px solid var(--brand);
  padding: 22px 26px;
  margin: 28px auto 36px;
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.quick-answer strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 8px;
  font-weight: 700;
}

/* Definition block */
.definition-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 30px auto;
}
.definition-block .term {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand); margin-bottom: 8px;
}
.definition-block p { margin-bottom: 0; font-size: 16px; color: var(--text); }
.definition-block p strong { color: var(--brand-deep); }

/* Dimension grid (article 2) */
.dimension-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px auto;
}
@media (max-width: 600px) { .dimension-grid { grid-template-columns: 1fr; } }
.dimension-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.dimension-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(0,81,220,0.06);
}
.dimension-card .num {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand); margin-bottom: 6px;
}
.dimension-card strong {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.dimension-card p {
  font-size: 14px; color: var(--text-soft);
  line-height: 1.6; margin-bottom: 0;
}

/* Output blocks */
.output-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 16px auto;
}
.output-block h3 {
  margin-top: 0; font-size: 14px;
  color: var(--brand); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700;
  margin-bottom: 8px;
}
.output-block p { font-size: 16px; color: var(--text); margin-bottom: 0; }

/* Steps list */
.steps-list { counter-reset: steps; list-style: none; padding: 0; margin: 22px auto; }
.steps-list li {
  counter-increment: steps;
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 20px;
}
.steps-list li::before {
  content: counter(steps);
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}

/* Stat cards */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 32px auto;
}
@media (max-width: 500px) { .stat-row { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 400;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; line-height: 1.1;
}
.stat-card .lbl {
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px; display: block;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, #0a0f1e, #0051dc);
  color: #fff;
  border-radius: 14px;
  padding: 40px 44px;
  margin: 56px auto;
  box-shadow: 0 20px 60px rgba(0,81,220,.18);
}
.cta-block h3 {
  color: #fff; margin-top: 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.01em; line-height: 1.2;
  margin-bottom: 12px;
}
.cta-block p {
  color: rgba(255,255,255,0.78);
  font-size: 15px; margin-bottom: 22px;
  line-height: 1.65;
}
.cta-block a {
  display: inline-block;
  background: #fff;
  color: var(--brand-deep);
  font-size: 14px; font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.cta-block a:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* FAQ */
.faq-section h2 { margin-top: 56px; }
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin-top: 0; font-size: 16px; color: var(--text); margin-bottom: 10px; }
.faq-item p { font-size: 15px; margin-bottom: 0; color: var(--text-soft); line-height: 1.7; }

/* Author */
.author-block {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.author-block::before {
  content: "ST";
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-block .author-info strong {
  font-size: 15px; color: var(--text);
  display: block; margin-bottom: 4px;
}
.author-block .author-info span {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}


@media (max-width: 600px) {
  body { font-size: 16px; }
  .cta-block { padding: 28px 24px; }
  body > header { padding-top: 36px; }
}
