:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #86868b;
  --accent: #0066cc;
  --accent-hover: #004499;
  --border: #d2d2d7;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container { display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 18px; font-weight: 700; }
header h1 a { color: var(--text); }
header h1 a:hover { text-decoration: none; }
header nav { display: flex; gap: 18px; }
header nav a { color: var(--muted); font-size: 13px; font-weight: 500; }

/* Homepage articles grid */
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.article-card .card-img {
  width: 100%;
  height: 180px;
  background: #f0f0f0;
  overflow: hidden;
}
.article-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card .card-body { padding: 14px; }
.article-card .card-body .meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.article-card .card-body h2 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.article-card .card-body h2 a { color: var(--text); }
.article-card .card-body h2 a:hover { color: var(--accent); text-decoration: none; }
.article-card .card-body p { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Article page */
article h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
article .meta { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.product-hero {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.product-hero .hero-img {
  width: 280px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}
.product-hero .hero-img img {
  width: 100%;
  height: auto;
  display: block;
}
.product-hero .hero-info { flex: 1; }
.product-hero .hero-info p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.buy-btn {
  display: inline-flex;
  align-items: center;
  background: #00a650;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 8px;
  gap: 6px;
  transition: background .15s;
}
.buy-btn:hover { background: #008f45; text-decoration: none; color: #fff; }
.buy-btn .arrow { font-size: 18px; }
@media (max-width: 600px) {
  .product-hero { flex-direction: column; }
  .product-hero .hero-img { width: 100%; max-width: 300px; }
  article h1 { font-size: 22px; }
}

/* Article body */
.article-body { max-width: 680px; }
.article-body p { margin-bottom: 18px; font-size: 15px; line-height: 1.7; }
.article-body ul, .article-body ol { margin-bottom: 18px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; font-size: 15px; }
.article-body h2 { font-size: 20px; font-weight: 600; margin: 32px 0 14px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.disclosure {
  background: #fefce8;
  border: 1px solid #eab308;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #713f12;
}

/* Footer */
footer {
  margin-top: 56px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer nav { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
footer a { color: var(--muted); }

/* Empty state */
.empty { color: var(--muted); margin-top: 40px; text-align: center; }
