:root {
  color-scheme: light;
  --blog-bg: #f4f8ff;
  --blog-surface: #ffffff;
  --blog-surface-soft: #f8fbff;
  --blog-text: #172235;
  --blog-muted: #64748b;
  --blog-border: #d9e4f5;
  --blog-brand: #4f63ff;
  --blog-brand-strong: #2442da;
  --blog-accent: #0f8f7a;
  --blog-shadow: 0 18px 50px rgba(26, 43, 88, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(79, 99, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 92% 4%, rgba(15, 143, 122, 0.12), transparent 28rem),
    var(--blog-bg);
  color: var(--blog-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

.blog-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blog-text);
}

.blog-brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #5d75ff, #2f55d9);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(79, 99, 255, 0.26);
}

.blog-brand strong,
.blog-brand small {
  display: block;
}

.blog-brand small {
  margin-top: 2px;
  color: var(--blog-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.blog-topnav a,
.blog-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--blog-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.blog-link-button {
  background: var(--blog-brand);
  border-color: var(--blog-brand);
  color: #fff;
}

.blog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.blog-sidebar,
.blog-main,
.blog-article-detail,
.blog-section {
  border: 1px solid var(--blog-border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--blog-shadow);
}

.blog-sidebar {
  position: sticky;
  top: 24px;
  border-radius: 18px;
  padding: 18px;
}

.blog-sidebar-title {
  margin-bottom: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.blog-category-list {
  display: grid;
  gap: 8px;
}

.blog-category-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  text-align: left;
}

.blog-category-button:hover,
.blog-category-button.is-active {
  border-color: #b9c8ff;
  background: #eef3ff;
  color: var(--blog-brand-strong);
}

.blog-category-count {
  color: var(--blog-muted);
  font-size: 12px;
  font-weight: 700;
}

.blog-main {
  overflow: hidden;
  border-radius: 24px;
}

.blog-hero {
  padding: 38px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 58%, #f2fffb 100%);
  border-bottom: 1px solid var(--blog-border);
}

.blog-eyebrow {
  margin: 0 0 10px;
  color: var(--blog-brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.blog-hero h1,
.blog-section h2,
.blog-article-detail h2,
.blog-article-detail h3 {
  margin: 0;
  letter-spacing: 0;
}

.blog-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.blog-hero p:last-child {
  max-width: 740px;
  margin: 18px 0 0;
  color: var(--blog-muted);
  font-size: 17px;
  line-height: 1.7;
}

.blog-section {
  margin: 24px;
  border-radius: 18px;
  padding: 22px;
  box-shadow: none;
}

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

.blog-section h2 {
  font-size: 24px;
}

.blog-article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-article-card {
  display: grid;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: var(--blog-surface-soft);
  cursor: pointer;
  text-align: left;
}

.blog-article-card:hover,
.blog-article-card.is-active {
  border-color: #7fa2ff;
  background: #f3f7ff;
}

.blog-card-category {
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 800;
}

.blog-article-card strong {
  margin-top: 10px;
  color: var(--blog-text);
  font-size: 18px;
  line-height: 1.35;
}

.blog-article-card span:last-child {
  margin-top: 8px;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.55;
}

.blog-article-detail {
  margin: 0 24px 24px;
  border-radius: 18px;
  padding: 30px;
  box-shadow: none;
}

.blog-article-detail h2 {
  font-size: 32px;
  line-height: 1.25;
}

.blog-article-detail h3 {
  margin-top: 30px;
  font-size: 22px;
}

.blog-article-detail p {
  color: var(--blog-muted);
  font-size: 16px;
  line-height: 1.8;
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf5ff;
  color: #2d55c8;
  font-size: 12px;
  font-weight: 800;
}

.blog-step-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.blog-step-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: #fbfdff;
}

.blog-step-index {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e6f7f2;
  color: var(--blog-accent);
  font-weight: 900;
}

.blog-step-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.blog-step-card p {
  margin: 0;
}

.blog-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.blog-method-item {
  padding: 14px;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  background: #ffffff;
}

.blog-method-item strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .blog-shell {
    width: min(100% - 28px, 760px);
    padding-top: 18px;
  }

  .blog-topbar,
  .blog-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-topnav {
    flex-wrap: wrap;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-hero,
  .blog-article-detail {
    padding: 24px;
  }

  .blog-article-list,
  .blog-method-list {
    grid-template-columns: 1fr;
  }
}
