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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
}

/* Nav */
header nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid #eee;
}

.logo { font-weight: 700; font-size: 1.2rem; color: #2563eb; text-decoration: none; }
header nav a { color: #555; text-decoration: none; font-size: 0.9rem; }
header nav a:hover { color: #1a1a1a; }

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.hero p { color: #555; font-size: 1.1rem; }

/* Index grid */
main { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: #2563eb; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.card-category { font-size: 0.75rem; font-weight: 600; color: #2563eb; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card h2 a { color: #1a1a1a; text-decoration: none; }
.card h2 a:hover { color: #2563eb; }
.card p { font-size: 0.875rem; color: #555; margin-bottom: 1rem; }
.read-more { font-size: 0.875rem; color: #2563eb; text-decoration: none; font-weight: 500; }

/* Article */
.article { max-width: 760px; margin: 0 auto; padding: 1.5rem; }
.breadcrumb { font-size: 0.85rem; color: #888; margin-bottom: 1rem; }
.breadcrumb a { color: #2563eb; text-decoration: none; }
.article h1 { font-size: 2rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.5rem; }
.meta { font-size: 0.85rem; color: #888; margin-bottom: 2rem; }

.content h2 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content li { margin-bottom: 0.25rem; }

.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.content table th, .content table td {
  padding: 0.6rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}
.content table th { background: #f9fafb; font-weight: 600; }
.content table tr:hover td { background: #f9fafb; }

.content a[rel="sponsored"] {
  display: inline-block;
  background: #2563eb;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.25rem 0.25rem 0.25rem 0;
}
.content a[rel="sponsored"]:hover { background: #1d4ed8; }

/* Footer */
footer {
  border-top: 1px solid #eee;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}
.disclaimer { font-size: 0.8rem; color: #bbb; margin-top: 0.5rem; }
