/* Chad blog theme — steel blue architect (#5B9BFF) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

body.theme-chad {
  --ch-bg: #06090f;
  --ch-bg2: #0a1018;
  --ch-blue: #5B9BFF;
  --ch-blue2: #7eb2ff;
  --ch-blue-dim: rgba(91, 155, 255, 0.12);
  --ch-blue-border: rgba(91, 155, 255, 0.3);
  --ch-text: #e8eef8;
  --ch-text-soft: #b8c6d8;
  --ch-muted: #7a8ba0;
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--ch-bg);
  color: var(--ch-text);
  line-height: 1.75;
  min-height: 100vh;
}

body.theme-chad::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 30% 0%, rgba(91, 155, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 80% 100%, rgba(40, 80, 140, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #06090f 0%, #080c14 50%, #0a1018 100%);
}

body.theme-chad a { color: var(--ch-blue2); text-decoration: none; }
body.theme-chad a:hover { color: #b8d4ff; text-decoration: underline; }

.chad-shell {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

.chad-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 36px;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #04070c;
}

.chad-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.04);
}

.chad-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,9,15,0.15) 0%, rgba(6,9,15,0.35) 42%, rgba(6,9,15,0.94) 88%, var(--ch-bg) 100%),
    linear-gradient(90deg, rgba(6,9,15,0.55) 0%, transparent 48%);
  pointer-events: none;
}

.chad-hero-card {
  position: absolute;
  left: max(18px, calc(50% - 460px));
  bottom: 48px;
  max-width: min(540px, calc(100% - 36px));
  padding: 22px 24px 24px;
  border-radius: 12px;
  border: 1px solid var(--ch-blue-border);
  background: rgba(8, 12, 20, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: chadFadeUp 0.85s ease both;
}

@keyframes chadFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.chad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ch-blue2);
  font-weight: 700;
  margin-bottom: 10px;
}

.chad-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ch-blue);
  box-shadow: 0 0 12px var(--ch-blue);
  animation: chadPulse 2.4s ease-in-out infinite;
}

@keyframes chadPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.chad-hero-card h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  color: #f2f6fc;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.chad-hero-deck {
  font-size: 1.02rem;
  color: var(--ch-text-soft);
  margin: 0;
  line-height: 1.55;
}

.chad-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
  animation: chadFadeUp 0.85s ease 0.08s both;
}

.chad-nav-row a {
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--ch-blue-border);
  color: var(--ch-text-soft);
  background: rgba(91, 155, 255, 0.05);
}

.chad-nav-row a:hover {
  color: var(--ch-blue2);
  background: var(--ch-blue-dim);
  text-decoration: none;
}

.chad-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--ch-blue-border);
  background: linear-gradient(135deg, rgba(91,155,255,0.1), rgba(20,40,70,0.05));
  animation: chadFadeUp 0.85s ease 0.12s both;
}

.chad-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--ch-blue);
  box-shadow: 0 0 18px rgba(91, 155, 255, 0.28);
  flex-shrink: 0;
  background: #0c1420;
}

.chad-author-avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.chad-author-meta strong {
  display: block;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--ch-blue2);
  font-weight: 700;
}

.chad-author-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--ch-muted);
  margin-top: 2px;
}

.chad-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.chad-tags span {
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(91, 155, 255, 0.22);
  color: #9bb4d0;
  background: rgba(91, 155, 255, 0.05);
}

.chad-article {
  max-width: 680px;
  margin: 0 auto;
}

.chad-article p {
  font-size: 1.08rem;
  color: var(--ch-text);
  margin: 0 0 1.25em;
}

.chad-article p.lead {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.24rem);
  font-weight: 600;
  line-height: 1.55;
  color: #eef4fc;
}

.chad-article p.lead::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  padding: 0.06em 0.08em 0 0;
  color: var(--ch-blue);
  font-weight: 700;
}

.chad-pullquote {
  margin: 2.2em 0;
  padding: 1.1em 1.3em;
  border-left: 3px solid var(--ch-blue);
  background: linear-gradient(90deg, rgba(91,155,255,0.12), transparent 85%);
  border-radius: 0 10px 10px 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #dce9ff;
  line-height: 1.4;
}

.chad-media-break {
  margin: 2.5em auto;
  max-width: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ch-blue-border);
  box-shadow:
    0 0 0 1px rgba(91, 155, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(60, 120, 220, 0.14);
  background: #0a121c;
  position: relative;
}

.chad-media-break video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
}

.chad-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(6,9,15,0.92));
  font-size: 0.78rem;
  color: var(--ch-text-soft);
  letter-spacing: 0.04em;
}

.chad-notice {
  margin: 28px 0;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(91, 155, 255, 0.22);
  background: rgba(10, 16, 24, 0.7);
  font-size: 0.88rem;
  color: var(--ch-text-soft);
}

.chad-cta-band {
  margin: 36px 0 28px;
  padding: 28px 22px;
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91,155,255,0.18), transparent 65%),
    linear-gradient(180deg, rgba(40,80,140,0.12), rgba(6,9,15,0.4));
  border: 1px solid var(--ch-blue-border);
}

.chad-cta-band h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.35rem;
  color: #eef4fc;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}

.chad-cta-band p {
  color: var(--ch-text-soft);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.chad-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #061018 !important;
  background: linear-gradient(135deg, #7eb2ff, #5B9BFF);
  border: none;
  box-shadow: 0 8px 28px rgba(91, 155, 255, 0.35);
  text-decoration: none !important;
}

.chad-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(91, 155, 255, 0.45);
  color: #061018 !important;
  text-decoration: none !important;
}

.chad-cta-links {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ch-muted);
}

body.theme-chad .seo-nav a {
  border-color: var(--ch-blue-border);
  color: var(--ch-text-soft);
}

body.theme-chad .seo-nav a:hover {
  border-color: var(--ch-blue);
  color: var(--ch-blue2);
  background: var(--ch-blue-dim);
  text-decoration: none;
}

body.theme-chad .seo-site-map {
  background: rgba(91, 155, 255, 0.04);
  border-color: rgba(91, 155, 255, 0.16);
}

body.theme-chad .seo-site-map h2 { color: var(--ch-blue2); }
body.theme-chad .seo-site-map a { color: var(--ch-text-soft); }

@media (prefers-reduced-motion: reduce) {
  .chad-hero-card, .chad-nav-row, .chad-author, .chad-kicker::before { animation: none; }
}
