/* John Ratcliffe Own Words — Dark Theme */

:root {
  --bg: #0f1115;
  --bg-card: #1a1d24;
  --bg-card-hover: #22262f;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --accent: #8ab4f8;
  --accent-soft: rgba(138, 180, 248, 0.15);
  --official: #8ab4f8;
  --personal: #f6c177;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0 1.5rem;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

header .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  align-items: center;
}

.search-wrap {
  flex: 1 1 220px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.search-wrap input:focus {
  border-color: var(--accent);
}

.search-wrap input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.95rem;
}

.filters {
  display: flex;
  gap: 0.4rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: #3a4150;
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
}

.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: background 0.15s, border-color 0.15s;
}

.post:hover {
  background: var(--bg-card-hover);
  border-color: #333946;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.post-date {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.post-account {
  font-weight: 550;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.post-account.official {
  background: rgba(138, 180, 248, 0.12);
  color: var(--official);
}

.post-account.personal {
  background: rgba(246, 193, 119, 0.12);
  color: var(--personal);
}

.post-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}

.post-quoted {
  border-left: 3px solid var(--border);
  padding-left: 0.85rem;
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-media {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.post-link {
  font-size: 0.85rem;
}

/* Empty / status */
.status {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
}
footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* About page */
.about-content {
  padding-bottom: 3rem;
}

.about-content h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}

.about-content p {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.about-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-muted);
}

.about-content li {
  margin-bottom: 0.35rem;
}

/* Responsive */
@media (max-width: 520px) {
  header h1 {
    font-size: 1.3rem;
  }
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .filters {
    justify-content: flex-start;
  }
}
