/* ==========================================================================
   Johnny AI Blog — Dark Editorial Theme
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0b;
  --bg-elevated:  #111113;
  --bg-card:      #151518;
  --bg-card-hover:#1a1a1e;
  --surface:      #1e1e23;
  --border:       #2a2a32;
  --border-subtle:#1f1f27;
  --text:         #e8e6e3;
  --text-muted:   #8a8a97;
  --text-faint:   #5a5a67;
  --accent:       #c8ff00;
  --accent-dim:   #a3cc00;
  --accent-glow:  rgba(200, 255, 0, 0.08);
  --accent2:      #00d4ff;
  --error:        #ff4466;
  --success:      #00cc88;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Newsreader', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --max-w:        1200px;
  --max-w-narrow: 720px;
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.main { padding: 2rem 0 6rem; }

/* --- Grain overlay for texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo:hover .logo-icon {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0.3;
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* ==========================================================================
   Post Cards
   ========================================================================== */
.posts-grid {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.post-card:hover::before { height: 100%; }

.post-card--featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 255, 0, 0.03) 100%);
  border-color: var(--border);
  padding: 2.5rem;
}
.post-card--featured .post-card__title { font-size: 1.75rem; }

.post-card__image {
  margin: -2rem -2rem 1.5rem;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.post-card__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-card:hover .post-card__image img { transform: scale(1.03); }

.post-card__tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(200, 255, 0, 0.08);
  padding: 0.2em 0.7em;
  border-radius: 4px;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.post-card__title a {
  color: var(--text);
  transition: color var(--transition);
}
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.meta-sep { opacity: 0.4; }

/* ==========================================================================
   Article / Single Post
   ========================================================================== */
.article { padding: 3rem 0; }

.article__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.article__tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.article__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.article__cover {
  margin: 0 -2rem 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article__cover img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* Prose / Article content */
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.prose p {
  margin-bottom: 1.4rem;
  color: var(--text);
  line-height: 1.8;
}
.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text);
}
.prose li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose li strong { color: var(--accent); }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent2);
}
.prose pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200, 255, 0, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

/* Author card */
.article__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.article__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.post-nav__link {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.post-nav__link:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}
.post-nav__next { text-align: right; }
.post-nav__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.post-nav__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter {
  margin: 4rem 0 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(200, 255, 0, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  position: relative;
}
.newsletter__desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
}
.newsletter__form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}
.newsletter__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__input::placeholder { color: var(--text-faint); }
.newsletter__input:focus { border-color: var(--accent); }

.newsletter__msg {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  position: relative;
}
.newsletter__msg--success { color: var(--success); }
.newsletter__msg--error { color: var(--error); }

/* ==========================================================================
   Buttons & Forms
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover {
  background: #d9ff33;
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200, 255, 0, 0.25);
}
.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: none;
}

/* Form fields */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.08);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* ==========================================================================
   Q&A / Comments Section
   ========================================================================== */
.qa-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}
.qa-section__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.qa-section__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Question form */
.qa-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.qa-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Questions list */
.qa-list { list-style: none; }
.qa-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeInUp 0.4s ease both;
}
.qa-item:last-child { border-bottom: none; }

.qa-question {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.qa-avatar {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.qa-avatar--johnny {
  background: var(--accent);
  color: var(--bg);
}
.qa-body { flex: 1; }
.qa-meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.qa-meta strong { color: var(--text-muted); }
.qa-text {
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.qa-answer {
  margin-top: 1rem;
  margin-left: 3rem;
  padding: 1rem 1.25rem;
  background: rgba(200, 255, 0, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qa-answer .qa-meta strong { color: var(--accent); }

.qa-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-faint);
  font-style: italic;
}

.qa-msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.qa-msg--success {
  background: rgba(0, 204, 136, 0.1);
  border: 1px solid rgba(0, 204, 136, 0.2);
  color: var(--success);
}
.qa-msg--error {
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid rgba(255, 68, 102, 0.2);
  color: var(--error);
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-page { padding: 3rem 0; }

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  text-align: center;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.about-avatar {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid rgba(200, 255, 0, 0.2);
  animation: pulse-border 3s ease-in-out infinite;
}
.about-avatar__icon {
  font-size: 1.8rem;
  color: var(--bg);
}
.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}
.about-lead em {
  color: var(--accent);
  font-style: italic;
}

.about-cta {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-page { padding: 3rem 0; }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  text-align: center;
}
.contact-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-info {
  padding: 2rem 0;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.contact-info__text span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-faq {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.contact-faq h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--accent);
}
.contact-faq p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.pagination__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.pagination__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination__info {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer-inner {
  text-align: center;
}
.footer-copy {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: 0.75rem;
}
.footer-powered {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.footer-powered a {
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.footer-powered a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-border {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.post-card { animation: fadeInUp 0.5s ease both; }
.post-card:nth-child(2) { animation-delay: 0.06s; }
.post-card:nth-child(3) { animation-delay: 0.12s; }
.post-card:nth-child(4) { animation-delay: 0.18s; }
.post-card:nth-child(5) { animation-delay: 0.24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 1.25rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .post-card { padding: 1.5rem; }
  .post-card--featured { padding: 1.75rem; }
  .post-card--featured .post-card__title { font-size: 1.4rem; }
  .post-card__image { margin: -1.5rem -1.5rem 1.25rem; }
  .newsletter { padding: 2rem 1.5rem; }
  .newsletter__form { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .qa-form__row { grid-template-columns: 1fr; }
  .qa-answer { margin-left: 1rem; }
  .post-nav { grid-template-columns: 1fr; }
  .site-nav { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .article__title { font-size: 1.75rem; }
  .qa-question { gap: 0.75rem; }
  .qa-avatar { width: 30px; height: 30px; font-size: 0.7rem; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-faint);
  font-style: italic;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
