/* === Ten Candles Theme === */
/* Optional fonts: swap to your site defaults if you prefer */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;700&family=Inter:wght@400;600&display=swap');

body.ten-candles {
  /* Typography */
  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Palette (very dark + warm candle accents) */
  --color-bg: #0b0b0e;          /* near-black midnight */
  --color-text: #e9e6e1;        /* warm ash */
  --color-muted: #b7b2ac;
  --color-accent: #f3c98b;      /* candle flame */
  --color-link: #ffd7a1;        /* warm link */
  --color-border: #1a171b;      /* deep charcoal */

  --color-callout-bg: #131217;  /* dim panel */
  --color-callout-border: #2a252d;

  background: var(--color-bg);
  color: var(--color-text);

  /* Better type rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Candle “glow” overlay (subtle + accessible) */
body.ten-candles::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* faint warm blooms; most intense low-center */
  background:
    radial-gradient(ellipse at 50% 80%, rgba(243,201,139,0.10) 0%, rgba(243,201,139,0) 40%),
    radial-gradient(ellipse at 20% 10%, rgba(243,201,139,0.05) 0%, rgba(243,201,139,0) 25%),
    radial-gradient(ellipse at 80% 20%, rgba(243,201,139,0.04) 0%, rgba(243,201,139,0) 30%);
  mix-blend-mode: screen;
  opacity: 0.85;
  animation: tc-flicker 7s infinite steps(60, end);
}

/* Headings: restrained glow */
body.ten-candles h1,
body.ten-candles h2,
body.ten-candles h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(243,201,139,0.12);
  color: var(--color-text);
}

/* Body text */
body.ten-candles, 
body.ten-candles p,
body.ten-candles li {
  font-family: var(--font-body);
}

/* Links */
body.ten-candles a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,215,161,0.4);
  transition: color .25s ease, text-shadow .25s ease, border-color .25s ease;
}
body.ten-candles a:hover {
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(243,201,139,0.35);
  border-color: rgba(243,201,139,0.6);
}

/* Cards / callouts */
body.ten-candles .card,
body.ten-candles .callout {
  background: var(--color-callout-bg);
  border: 1px solid var(--color-callout-border);
  border-radius: 10px;
}

/* Subtle separators */
body.ten-candles hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,215,161,0.15) 15%,
    rgba(255,215,161,0.25) 50%,
    rgba(255,215,161,0.15) 85%,
    transparent 100%
  );
}

/* Focus states for accessibility */
body.ten-candles :focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Text selection */
body.ten-candles ::selection {
  background: rgba(243,201,139,0.35);
  color: #1a140e;
}

/* Keyframes: gentle flicker */
@keyframes tc-flicker {
  0%   { opacity: 0.80; }
  5%   { opacity: 0.86; }
  10%  { opacity: 0.82; }
  20%  { opacity: 0.88; }
  30%  { opacity: 0.79; }
  40%  { opacity: 0.85; }
  50%  { opacity: 0.81; }
  60%  { opacity: 0.87; }
  70%  { opacity: 0.80; }
  80%  { opacity: 0.86; }
  90%  { opacity: 0.82; }
  100% { opacity: 0.85; }
}
/* Add to theme-ten-candles.css */
body.ten-candles {
  --sidebar-bg: #14100d;        /* warm, very dark */
  --sidebar-text: #f1e6d7;      /* warm light text */
  --sidebar-link: #ffd8a8;      /* amber */
  --sidebar-link-hover: #ffc56b;/* brighter amber */
  --sidebar-divider: #2a1d14;   /* warm shadow line */
}

body.ten-candles .sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}

body.ten-candles .sidebar a {
  color: var(--sidebar-link);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,216,168,.35);
  transition: color .2s ease, border-color .2s ease;
}
body.ten-candles .sidebar a:hover {
  color: var(--sidebar-link-hover);
  border-color: rgba(255,197,107,.55);
}

body.ten-candles .sidebar h2,
body.ten-candles .sidebar h3 { color: var(--sidebar-text); }

body.ten-candles .sidebar hr {
  border: 0;
  height: 1px;
  background: var(--sidebar-divider);
  opacity: .7;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.ten-candles::before { animation: none; opacity: 0.65; }
  body.ten-candles a { transition: none; }
}

/* Optional: a reusable display title (great for page H1) */
body.ten-candles .display-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  text-shadow: 0 0 12px rgba(243,201,139,0.18);
}
