:root {
  --bg: #0d0d12;
  --surface: #16161f;
  --text: #f0f0f5;
  --muted: #9a9aad;
  --accent: #ff3366;
  --accent2: #00d4aa;
  --border: #2a2a38;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand, .logo { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover, .logo:hover { text-decoration: none; }
.brand img, .logo img { height: 40px; width: auto; }
.brand span, .logo span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 1.1rem; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.hero { padding: 36px 0 8px; }
.hero h1 {
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
.hero p { margin: 0; color: var(--muted); font-size: 1rem; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 8px 0 24px; }
.section-title {
  margin: 0 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.35rem;
}
.list-meta { margin: 0 0 20px; color: var(--muted); font-size: 0.95rem; }
.meta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-featured { padding: 28px 0 8px; }
.hero-featured .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.hero-card a { display: block; color: inherit; text-decoration: none; }
.hero-card img { width: 100%; height: 220px; object-fit: cover; background: #222; }
.hero-card.primary { grid-row: span 2; }
.hero-card.primary img { height: 100%; min-height: 320px; }
.hero-copy { padding: 20px; }
.hero-copy h2 {
  margin: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}
.hero-copy p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 28px 0 48px;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255, 51, 102, 0.12);
}
.article-card a { display: block; color: inherit; text-decoration: none; }
.article-card img { width: 100%; height: 180px; object-fit: cover; background: #222; }
.card-copy { padding: 18px; }
.card-copy h3 {
  margin: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}
.card-copy p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 0 56px;
}
.pagination a.page-link, .pagination span.page-status {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.pagination a.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.pagination span.page-status {
  border: none;
  color: var(--text);
}

@media (max-width: 800px) {
  .hero-featured .wrap { grid-template-columns: 1fr; }
  .hero-card.primary { grid-row: auto; }
  .hero-card.primary img { min-height: 220px; }
}

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
}

.article-page { padding: 40px 0 64px; }
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}
.article-header h1 {
  margin: 10px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
}
.article-meta {
  margin-top: 12px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}
.article-hero { margin: 28px 0; }
.article-hero img { border-radius: 8px; width: 100%; max-height: 420px; object-fit: cover; }
.article-body {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.article-body h2, .article-body h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 1.4em 0 0.6em;
  text-align: left;
  line-height: 1.3;
}
.article-body p { margin: 0 0 1.15em; }
.article-body img { border-radius: 6px; margin: 1em auto; display: block; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9rem;
}
