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

:root {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #0f172a;
  --bg2: #111c31;
  --bg3: #1f2d48;
  --panel: rgba(17, 28, 49, 0.9);
  --text: #f8fbff;
  --text2: #d6e0ef;
  --text3: #9db0cb;
  --border: rgba(148, 163, 184, 0.2);
  --max-w: 780px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  --radius: 16px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, #10192d 0%, #0f172a 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* HEADER */
header {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 0 1rem;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-title:hover { color: var(--accent); text-decoration: none; }
nav a {
  color: var(--text2);
  margin-left: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* TAGLINE */
.tagline-bar {
  background: linear-gradient(90deg, var(--accent), #1d4ed8);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}

/* MAIN */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.hero-card {
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.95), rgba(17, 28, 49, 0.76));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.8rem;
}

.hero-card h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.hero-copy {
  font-size: 1rem;
  color: var(--text2);
  margin: 0;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* POST LIST */
.post-list { list-style: none; }
.post-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); text-decoration: none; }
.post-meta {
  font-size: 0.8rem;
  color: var(--text3);
  margin-top: 0.25rem;
}
.post-desc {
  color: var(--text2);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* ARTICLE */
article h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  margin-bottom: 0.5rem;
  font-weight: 800;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 0.8rem;
}
.article-dek {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}
.article-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.4rem;
  color: var(--text2);
}
.article-content p { margin: 0.75rem 0; color: var(--text2); }
.article-content ul, .article-content ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
  color: var(--text2);
}
.article-content li { margin: 0.3rem 0; }
.article-content strong { color: var(--text); }
.article-content a { color: var(--accent); }
.article-content a:hover { color: var(--accent-hover); }

/* BACKLINK BLOCK */
.backlink-block {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 2rem 0 0;
  border-radius: 0 8px 8px 0;
  color: var(--text2);
  font-size: 0.95rem;
}
.backlink-block a { color: var(--accent); font-weight: 600; }

/* TAGS */
.tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  background: var(--bg3);
  color: var(--text2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.pagination a, .pagination span {
  padding: 0.4rem 0.8rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text2);
}
.pagination a:hover { background: var(--accent); color: #fff; text-decoration: none; border-color: var(--accent); }
.pagination .active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* FOOTER */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text3);
}
footer a { color: var(--text3); }
footer a:hover { color: var(--accent); }

/* ABOUT PAGE */
.page-content h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
}
.page-content p { color: var(--text2); margin: 0.75rem 0; }

.page-content, article {
  background: linear-gradient(180deg, rgba(17, 28, 49, 0.9), rgba(17, 28, 49, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  article h1 { font-size: 1.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav a:first-child { margin-left: 0; }
  .page-content, article, .hero-card { padding: 1.15rem; }
}
