:root {
  color-scheme: light;
  --ink: #17162d;
  --muted: #5f6174;
  --line: #e4e3ee;
  --paper: #ffffff;
  --soft: #f6f5ff;
  --brand: #4e46e5;
  --brand-dark: #3730a3;
  --accent: #dff7ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.narrow { width: min(760px, calc(100% - 40px)); }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 52px; height: auto; }
.header-inner nav { display: flex; gap: 24px; flex-wrap: wrap; }
.header-inner nav a { font-size: .92rem; font-weight: 700; text-decoration: none; }

.blog-hero,
.article-header {
  padding-block: 76px 62px;
}

.blog-hero {
  background: linear-gradient(145deg, var(--soft), #fff 72%);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1, h2 {
  margin-top: 0;
  line-height: 1.16;
  letter-spacing: -.025em;
}

h1 { margin-bottom: 24px; font-size: clamp(2.25rem, 6vw, 4.35rem); }
h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.lead { margin: 0; color: var(--muted); font-size: clamp(1.08rem, 2.5vw, 1.3rem); }

.article-list-section { padding-block: 64px 88px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.article-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(29, 25, 87, .06);
}

.article-card h2 { font-size: 1.35rem; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card p:not(.card-kicker) { color: var(--muted); font-size: .96rem; }
.read-more { font-weight: 800; }

.article-shell { padding-bottom: 84px; }
.article-header { border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.65rem); }
.byline { margin: 26px 0 0; color: var(--muted); font-size: .9rem; }
.article-body { padding-top: 56px; }
.article-body section { margin-bottom: 52px; }
.article-body p { margin: 0 0 20px; }
.article-body ul { margin: 0 0 24px; padding-left: 1.35em; }
.article-body li { margin-bottom: 10px; }

.sector-note,
.arvisflows-note {
  padding: 30px;
  border-radius: 18px;
}

.sector-note { background: var(--soft); }
.arvisflows-note { background: var(--accent); }
.sector-note h2, .arvisflows-note h2 { font-size: 1.45rem; }
.arvisflows-note p { color: #25483e; }

.cta {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.cta:hover { color: #fff; background: var(--brand-dark); }

.site-footer {
  padding-block: 30px;
  border-top: 1px solid var(--line);
  background: #fafafe;
  font-size: .88rem;
}

.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-inner span { margin-right: auto; color: var(--muted); }

@media (max-width: 860px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: min(100% - 28px, 760px); }
  .header-inner { align-items: flex-start; padding-block: 15px; }
  .header-inner nav { justify-content: flex-end; gap: 12px; }
  .blog-hero, .article-header { padding-block: 52px 44px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-list-section { padding-block: 42px 64px; }
  .article-card, .sector-note, .arvisflows-note { padding: 22px; }
}
