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

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #222222;
  --text: #e8e8e8;
  --muted: #888888;
  --accent: #1D9E75;
  --accent2: #16785a;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Banner ── */
.banner {
  background: #854F0B;
  color: #FAC775;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #EF9F27;
  width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent2);
}

/* ── Header ── */

header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
/* ── About ── */

#about {
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-hook {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #cccccc;
  line-height: 1.9;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  text-align: justify;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.about-item span:last-child {
  font-size: 0.88rem;
  color: #cccccc;
}

@media (max-width: 600px) {
  .about-details {
    grid-template-columns: 1fr;
  }
}
.identity h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.status {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text);
}

.back {
  font-size: 0.875rem;
  color: var(--muted);
}

.back:hover {
  color: var(--text);
}

/* ── Main ── */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ── Section header ── */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ── Filters ── */

.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Post cards ── */

#posts-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
  color: var(--text);
}

.post-card:hover {
  border-color: var(--accent);
  background: var(--bg2);
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #0d3d2e;
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.subtag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: #1a2a1a;
  color: #7ec8a0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

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

.post-card h3 a:hover {
  color: var(--accent);
}

.yt-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.yt-link:hover {
  color: var(--accent);
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ── Blog post (article) ── */

article#post-content {
  max-width: 680px;
}

article#post-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

article#post-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

article#post-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

article#post-content p {
  color: #cccccc;
  margin-bottom: 1rem;
}

article#post-content ul,
article#post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #cccccc;
}

article#post-content li {
  margin-bottom: 0.4rem;
}

article#post-content code {
  background: var(--bg3);
  color: var(--accent);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'Fira Code', 'Courier New', monospace;
}

article#post-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

article#post-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.875rem;
}

article#post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1.5rem 0;
  font-style: italic;
}

article#post-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  margin: 1.5rem 0;
}

article#post-content strong {
  color: var(--text);
  font-weight: 600;
}

article#post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

article#post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── All Posts page controls ── */

.cat-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  min-width: 200px;
}

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

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

.sort-select {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.sort-select:focus {
  border-color: var(--accent);
}

.sort-select option {
  background: var(--bg2);
  color: var(--text);
}

.category-page-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.category-page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted-count {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg3);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.view-all-wrap {
  margin-top: 2rem;
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  transition: all 0.2s;
  font-weight: 500;
}

.view-all-btn:hover {
  background: var(--accent);
  color: #fff;
}
.post-card-link {
  display: block;
  text-decoration: none;
  color: var(--text);
}
/* ── Name row with contact pills ── */

.name-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.contact-pills {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
  background: var(--bg2);
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #0d3d2e;
}

/* ── Socials row ── */

.socials {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
  transition: all 0.2s;
}
.post-tags {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.social-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #0d3d2e;
}
/* ── Responsive ── */

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .date {
    margin-left: 0;
  }
}