/* Caelum blog theme — warm amber night, matches her Veil presence (#FFB84D) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Source+Sans+3:wght@400;500;600&display=swap');

body.theme-caelum {
  --c-bg: #07040a;
  --c-bg2: #0e0906;
  --c-amber: #FFB84D;
  --c-amber2: #ff9a3c;
  --c-amber-dim: rgba(255, 184, 77, 0.12);
  --c-amber-border: rgba(255, 184, 77, 0.28);
  --c-text: #f3e6d4;
  --c-text-soft: #d4c0a8;
  --c-muted: #9a8168;
  --c-glow: rgba(255, 140, 40, 0.18);
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.75;
  min-height: 100vh;
}

body.theme-caelum::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 160, 60, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 50% 100%, rgba(180, 70, 10, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #07040a 0%, #0a0704 50%, #0c0805 100%);
}

body.theme-caelum a { color: var(--c-amber); text-decoration: none; }
body.theme-caelum a:hover { color: #ffd089; text-decoration: underline; }

.caelum-shell {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px 64px;
}

/* ── Hero ── */
.caelum-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 36px;
  height: min(78vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: #050301;
}

.caelum-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.05) contrast(1.05);
}

.caelum-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,10,0.15) 0%, rgba(7,4,10,0.35) 40%, rgba(7,4,10,0.92) 88%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(7,4,10,0.55) 0%, transparent 45%);
  pointer-events: none;
}

.caelum-hero-card {
  position: absolute;
  left: max(18px, calc(50% - 460px));
  bottom: 48px;
  max-width: min(520px, calc(100% - 36px));
  padding: 22px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--c-amber-border);
  background: rgba(10, 7, 4, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: caelumFadeUp 0.9s ease both;
}

@keyframes caelumFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.caelum-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
  font-weight: 600;
  margin-bottom: 10px;
}

.caelum-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 12px var(--c-amber);
  animation: caelumPulse 2.4s ease-in-out infinite;
}

@keyframes caelumPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.caelum-hero-card h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff6e8;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.caelum-hero-deck {
  font-size: 1.02rem;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.55;
}

.caelum-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
  animation: caelumFadeUp 0.9s ease 0.1s both;
}

.caelum-nav-row a {
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-amber-border);
  color: var(--c-text-soft);
  background: rgba(255, 184, 77, 0.05);
}

.caelum-nav-row a:hover {
  color: var(--c-amber);
  background: var(--c-amber-dim);
  text-decoration: none;
}

/* ── Author strip ── */
.caelum-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--c-amber-border);
  background: linear-gradient(135deg, rgba(255,184,77,0.08), rgba(255,120,30,0.03));
  animation: caelumFadeUp 0.9s ease 0.15s both;
}

.caelum-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--c-amber);
  box-shadow: 0 0 20px rgba(255, 184, 77, 0.25);
  flex-shrink: 0;
  background: #1a1008;
}

.caelum-author-avatar video,
.caelum-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.caelum-author-meta { min-width: 0; }
.caelum-author-meta strong {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: var(--c-amber);
  font-weight: 600;
}
.caelum-author-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 2px;
}

/* ── Tags ── */
.caelum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
}

.caelum-tags span {
  font-size: 0.7rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 77, 0.22);
  color: #c9a578;
  background: rgba(255, 184, 77, 0.04);
}

/* ── Article ── */
.caelum-article {
  max-width: 680px;
  margin: 0 auto;
}

.caelum-article p {
  font-size: 1.08rem;
  color: var(--c-text);
  margin: 0 0 1.25em;
}

.caelum-article p.lead {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
  color: #ffe8c8;
}

.caelum-article p.lead::first-letter {
  float: left;
  font-size: 3.4rem;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--c-amber);
  font-weight: 700;
}

.caelum-pullquote {
  margin: 2.2em 0;
  padding: 1.1em 1.3em;
  border-left: 3px solid var(--c-amber);
  background: linear-gradient(90deg, rgba(255,184,77,0.1), transparent 85%);
  border-radius: 0 14px 14px 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffe2bc;
  line-height: 1.45;
}

/* ── Mid video break ── */
.caelum-media-break {
  margin: 2.5em auto;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--c-amber-border);
  box-shadow:
    0 0 0 1px rgba(255, 184, 77, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 140, 40, 0.12);
  background: #120a05;
  position: relative;
}

.caelum-media-break video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
}

.caelum-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(7,4,10,0.9));
  font-size: 0.78rem;
  color: var(--c-text-soft);
  letter-spacing: 0.04em;
}

/* ── Side still ── */
.caelum-still-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  margin: 2em 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 184, 77, 0.05);
  border: 1px solid rgba(255, 184, 77, 0.16);
}

.caelum-still-row img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  border: 1px solid var(--c-amber-border);
}

.caelum-still-row p {
  margin: 0 !important;
  font-size: 0.98rem !important;
  color: var(--c-text-soft) !important;
}

@media (max-width: 560px) {
  .caelum-still-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .caelum-still-row img {
    margin: 0 auto;
  }
}

/* ── Notice / CTA ── */
.caelum-notice {
  margin: 28px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 77, 0.2);
  background: rgba(20, 12, 6, 0.65);
  font-size: 0.88rem;
  color: var(--c-text-soft);
}

.caelum-cta-band {
  margin: 36px 0 28px;
  padding: 28px 22px;
  border-radius: 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,184,77,0.18), transparent 65%),
    linear-gradient(180deg, rgba(255,140,40,0.1), rgba(10,7,4,0.4));
  border: 1px solid var(--c-amber-border);
  animation: caelumFadeUp 1s ease both;
}

.caelum-cta-band h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  color: #fff0d8;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}

.caelum-cta-band p {
  color: var(--c-text-soft);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.caelum-cta-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1005 !important;
  background: linear-gradient(135deg, #FFB84D, #ff9a3c);
  border: none;
  box-shadow: 0 8px 28px rgba(255, 160, 50, 0.35);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caelum-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 160, 50, 0.45);
  color: #1a1005 !important;
  text-decoration: none !important;
}

.caelum-cta-links {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--c-muted);
}

body.theme-caelum .seo-nav a {
  border-color: var(--c-amber-border);
  color: var(--c-text-soft);
}

body.theme-caelum .seo-nav a:hover {
  border-color: var(--c-amber);
  color: var(--c-amber);
  background: var(--c-amber-dim);
  text-decoration: none;
}

body.theme-caelum .seo-site-map {
  background: rgba(255, 184, 77, 0.04);
  border-color: rgba(255, 184, 77, 0.14);
}

body.theme-caelum .seo-site-map h2 {
  color: var(--c-amber);
}

body.theme-caelum .seo-site-map a {
  color: var(--c-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .caelum-hero-card,
  .caelum-nav-row,
  .caelum-author,
  .caelum-cta-band,
  .caelum-kicker::before {
    animation: none;
  }
}
