/* OmegleChat Blog — blog.omeglechat.online */
:root {
  --bg: #0f1419;
  --bg-card: #1a222d;
  --bg-elevated: #232d3b;
  --text: #e8edf4;
  --text-muted: #9aa8b8;
  --accent: #6c9eff;
  --accent-soft: rgba(108, 158, 255, 0.15);
  --border: #2d3a4d;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --max: 720px;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; opacity: 0.9; }

.brand img { border-radius: 8px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; }
.brand-text small { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.site-nav a { color: var(--text-muted); }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* Main */
.site-main { flex: 1; padding: 2.5rem 0 4rem; }

.content-wrap { max-width: var(--max); }

/* Home */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36em;
}

.featured-serial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.featured-serial .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.featured-serial h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.featured-serial p { color: var(--text-muted); margin-bottom: 1rem; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0f1419;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.post-list { list-style: none; }

.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.post-list a.title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.05rem;
}

.post-list .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Post page */
.post-kicker {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.post-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-meta .sep { margin: 0 0.35rem; }

.post-deck {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.prose {
  font-size: 1.0625rem;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

.prose p, .prose ul, .prose ol { margin-bottom: 1.15rem; }

.prose ul, .prose ol { padding-left: 1.5rem; }

.prose li { margin-bottom: 0.35rem; }

.prose strong { color: #fff; font-weight: 600; }

.prose em { color: var(--text-muted); }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.prose th { background: var(--bg-elevated); }

.serial-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.serial-nav-next { margin-left: auto; text-align: right; }

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.cta-chat {
  background: var(--accent-soft);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

/* Static pages */
.page-static h1 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-static h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.page-static p { margin-bottom: 1rem; color: var(--text-muted); }
.page-static .prose p { color: var(--text); }

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.toc-table { width: 100%; margin: 1rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  background: var(--bg-card);
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .site-nav { font-size: 0.8rem; }
  .header-inner { padding: 0.5rem 0; }
}
