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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --accent: #f5a623;
  --accent-dim: #c47d0a;
  --text: #f0f0f0;
  --muted: #888;
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,166,35,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(245,166,35,0.05) 0%, transparent 50%),
    var(--bg);
}

.container {
  text-align: center;
  max-width: 600px;
}

.logo-mark {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 24px rgba(245,166,35,0.4));
}

.site-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.coming-soon-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.body-copy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #bbb;
  max-width: 460px;
  margin: 0 auto;
}

footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid #1f1f1f;
}

/* ── Site header / nav ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid #1f1f1f;
  background: var(--bg);
}
.site-nav-logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }

/* ── Layout ── */
.page-main { flex: 1; }
.container  { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Category badges ── */
.post-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #222;
  color: var(--muted);
  border: 1px solid #333;
}
.post-category--sports  { background: rgba(245,166,35,0.12); color: var(--accent); border-color: rgba(245,166,35,0.3); }
.post-category--tech    { background: rgba(99,179,237,0.12); color: #63b3ed;       border-color: rgba(99,179,237,0.3); }
.post-category--comedy  { background: rgba(154,230,180,0.12); color: #9ae6b4;      border-color: rgba(154,230,180,0.3); }
.post-category--meta    { background: #1a1a1a; color: var(--muted);               border-color: #333; }

/* ── Post ── */
.post-header { margin-bottom: 2.5rem; border-bottom: 1px solid #1f1f1f; padding-bottom: 1.5rem; }
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.post-date { color: var(--muted); font-size: 0.82rem; }
.post-header h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }

.post-body { font-size: 1.05rem; line-height: 1.85; color: #ccc; }
.post-body p + p { margin-top: 1.4rem; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent-dim); }
.post-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.post-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; }
.post-body ul,
.post-body ol { padding-left: 1.5rem; margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.post-body li { color: #ccc; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { color: #ddd; font-style: italic; }
.post-body hr { border: none; border-top: 1px solid #222; margin: 2.5rem 0; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  background: #141414;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #bbb;
  font-style: italic;
}
.post-body blockquote p { margin: 0; }

.post-body code {
  background: #1e1e1e;
  color: #e2c08d;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid #2a2a2a;
}
.post-body pre {
  background: #141414;
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* ── Post index ── */
.post-index h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: -0.02em; }
.post-list { display: flex; flex-direction: column; gap: 1px; }

.post-card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid #222;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s;
  margin-bottom: 0.75rem;
}
.post-card:hover { border-color: #444; }
.post-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.post-card-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.post-card-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── Avatars ── */
.avatar    { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 24px; height: 24px; }

/* ── Comments ── */
.comments { max-width: 720px; margin: 3rem auto 0; padding: 2rem 1.5rem; border-top: 1px solid #1f1f1f; }
.comments-heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }

.sign-in-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.sign-in-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.sign-in-btn:hover { border-color: #555; }
.sign-in-btn--twitter { color: #fff; }

.comment-form-wrap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.comment-form-inner { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.comment-user { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
textarea {
  background: var(--surface);
  color: var(--text);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  width: 100%;
}
textarea:focus { outline: none; border-color: var(--accent); }
.comment-form-actions { display: flex; align-items: center; gap: 1rem; }
button {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
  cursor: pointer;
}
button:hover { background: var(--accent-dim); }
button:disabled { opacity: 0.5; cursor: default; }
.logout-link { font-size: 0.8rem; color: var(--muted); text-decoration: none; }
.logout-link:hover { color: var(--text); }

.comment {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid #1a1a1a;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.35rem; }
.comment-name { font-size: 0.9rem; font-weight: 600; }
.comment-time { font-size: 0.75rem; color: var(--muted); }
.comment-body p { font-size: 0.95rem; line-height: 1.6; color: #ccc; }
.no-comments { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
