/* ==========================================================================
   Onion Watch — Shared Styles
   ========================================================================== */

:root {
  --bg: #121014;
  --bg-alt: #1b1720;
  --card: #201b26;
  --text: #e9e5f0;
  --muted: #a89fb5;
  --accent: #7c3fe4;
  --accent-light: #a97cff;
  --border: #322a3c;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

header.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 28px 20px;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.logo .onion-icon {
  font-size: 1.6rem;
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

nav.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.site-nav a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero {
  text-align: center;
  padding: 30px 10px 50px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.post-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-card .tag {
  display: inline-block;
  background: rgba(124, 63, 228, 0.18);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.post-card h2 a {
  color: var(--text);
}

.post-card p.excerpt {
  color: var(--muted);
  margin-bottom: 14px;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

article.post h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

article.post .post-meta {
  margin-bottom: 28px;
}

article.post h2 {
  color: var(--accent-light);
  margin-top: 36px;
}

article.post p {
  margin-bottom: 18px;
}

article.post ul, article.post ol {
  margin-bottom: 18px;
  padding-left: 22px;
}

article.post li {
  margin-bottom: 8px;
}

blockquote.note {
  border-left: 4px solid var(--accent);
  background: var(--card);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--muted);
  margin: 24px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer.site-footer a {
  color: var(--muted);
}

@media (min-width: 700px) {
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }
}
