*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #a78bfa;
  --accent-dark: #7c3aed;
  --accent-light: #ede9fe;
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --border: #e7e5e4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; }

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.article-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.article-breadcrumb a {
  color: var(--accent-dark);
  text-decoration: none;
}

.article-breadcrumb a:hover { text-decoration: underline; }

.article-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.02rem;
}

.article ul, .article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  font-size: 1.02rem;
}

.article strong { font-weight: 700; }

.article a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 500;
}

.article a:hover { text-decoration: underline; }

.article-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.article-img-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

.callout {
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.callout-warning {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout-warning .callout-title {
  color: #991b1b;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }

.rating-best { color: #16a34a; font-weight: 700; }
.rating-good { color: #65a30d; font-weight: 600; }
.rating-ok { color: #d97706; font-weight: 600; }
.rating-poor { color: #dc2626; font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 0.4rem; }

.toc a {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.toc a:hover { text-decoration: underline; }

.infographic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.infographic-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.infographic svg { max-width: 100%; height: auto; }

.material-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.material-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.material-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.material-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.material-card .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.material-card .pros-title { color: #16a34a; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.material-card .cons-title { color: #991b1b; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.material-card ul { padding-left: 1.2rem; margin: 0; }
.material-card li { font-size: 0.9rem; margin-bottom: 0.3rem; }

.priority-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.priority-tier-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
}

.priority-critical { background: #fef2f2; color: #dc2626; }
.priority-high { background: #fff7ed; color: #ea580c; }
.priority-medium { background: #fefce8; color: #ca8a04; }
.priority-low { background: #f0fdf4; color: #16a34a; }

.priority-tier-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.faq-section { margin-top: 2.5rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .article { padding: 1.25rem 1.25rem 3rem; }
  .article h1 { font-size: 1.7rem; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.5rem 0.6rem; }
  .nav { padding: 1rem 1.25rem; }
  .infographic { padding: 1rem; }
  .priority-tier { padding: 1rem; }
  .material-card .pros-cons { grid-template-columns: 1fr; }
}
