/* Hybrid theme mockup for the main site (25 Oct): cosmic "world" moments + journal-page reading.
   Loaded after style.css on preview pages only. */

/* Light "journal page" defaults for reading areas */
body {
  --ink: #241d2c; --muted: #5c5160; --accent: #8a6a25; --peach: #8a6a25; --line: rgba(120, 90, 40, .22);
  --violet: #7b5cff; --teal: #22c3b4; --coral: #ff7a59;
  --aurora: linear-gradient(100deg, var(--violet), var(--teal) 45%, #e6c574 75%, var(--coral));
  color: var(--ink);
  background-color: #f7f0e1;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(110, 130, 170, .09) 31px 32px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .15 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#stars { display: none !important; }
h1, h2, h3, h4 { color: #1d1733; }

/* Cosmic "world" areas keep light-on-dark */
.cos-hero, .section.dark, .cosmic-band, .site-foot, .site-head {
  --ink: #f6eedd; --muted: #cdbfd8; --accent: #e9c46a; --peach: #f1cf7a; --line: rgba(255, 255, 255, .14);
  color: var(--ink);
}
.cos-hero h1, .cos-hero h2, .section.dark h2, .section.dark h3, .cosmic-band h2, .site-foot h3 { color: #fff; }

/* Header: midnight glass */
.site-head, .site-head.scrolled { background: rgba(14, 10, 38, .88); }

/* Hero uses the visionary tree painting */
body .cos-hero .bg { background: url(img/art2/tree.jpg) center 30% / cover; opacity: 1; filter: none; }
@media (max-width: 700px) { body .cos-hero .bg { background-image: url(img/art2/tree.jpg); background-position: 50% 30%; } }
body .cos-hero::after { background: radial-gradient(70% 55% at 50% 45%, rgba(12, 8, 34, .62), rgba(12, 8, 34, .25) 70%), linear-gradient(180deg, rgba(12, 8, 34, .2) 50%, #f7f0e1); }
body .cos-hero::before { opacity: .1; }

/* Dark method section + quote band get the new paintings */
.section.dark { background: #0c0822; }
.section.dark::before { background: linear-gradient(180deg, rgba(12, 8, 34, .78), rgba(12, 8, 34, .6) 45%, rgba(12, 8, 34, .85)), url(img/art2/hero-love.jpg) center / cover no-repeat; opacity: 1; }
body .cosmic-band::before { background: url(img/art2/hero-unsent.jpg) center 40% / cover; opacity: 1; }
body .cosmic-band::after { background: linear-gradient(180deg, #f7f0e1, rgba(12, 8, 34, .35) 22%, rgba(12, 8, 34, .55) 70%, #f7f0e1); }

/* Cards on paper: journal cards */
.card { background: rgba(255, 252, 245, .94); border: 1px solid rgba(160, 120, 48, .3); box-shadow: 0 22px 44px -32px rgba(36, 29, 44, .5); backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
.section.dark .card, .cos-hero .card { background: linear-gradient(160deg, rgba(30, 22, 80, .75), rgba(12, 8, 34, .6)); border-color: rgba(233, 196, 106, .25); color: #f6eedd; }

/* Aurora accents */
.eyebrow { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.read-progress { background: var(--aurora); }
.btn { background: linear-gradient(170deg, #f3d488, #d3a64f); color: #120d2a; box-shadow: 0 10px 30px -8px rgba(201, 150, 62, .7), 0 0 0 1px rgba(255, 255, 255, .3) inset; }
.num, .step .n { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-foot { background: radial-gradient(120% 90% at 50% 0%, #241a5c, #0c0822 70%); }

/* Fixes after the first look: dark components keep dark styling */
body .ritual {
  --ink: #f6eedd; --muted: #cdbfd8; --accent: #e9c46a; --peach: #f1cf7a; --line: rgba(255, 255, 255, .14);
  color: var(--ink);
  background: radial-gradient(ellipse at 20% 0%, rgba(123, 92, 255, .5), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(34, 195, 180, .35), transparent 55%), linear-gradient(rgba(12, 8, 34, .8), rgba(12, 8, 34, .92)), url(img/art2/hero-unsent.jpg) center / cover, #0c0822;
}
body .ritual h2, body .ritual h3 { color: #fff; }
body .orbit li { background: rgba(255, 252, 245, .96); color: #241d2c; border-color: rgba(123, 92, 255, .35); box-shadow: 0 8px 20px -12px rgba(36, 29, 44, .5); }
body .orbit .core { color: #8a6a25; }
body .orbit .ring { border-color: rgba(123, 92, 255, .4); }
p[style*="color:#fff"] { color: #1d1733 !important; }

/* Journal page hero + quiz: cosmic world, light text */
.hero.painted, main.quiz { --ink: #f6eedd; --muted: #d6c9e0; --accent: #e9c46a; --peach: #f1cf7a; --line: rgba(255,255,255,.16); color: var(--ink); }
.hero.painted h1, .hero.painted h2, main.quiz h1, main.quiz h2, main.quiz h3 { color: #fff; }
.hero.painted::before { background: linear-gradient(180deg, rgba(12,8,34,.5), rgba(12,8,34,.78) 60%, #f7f0e1), url(img/art2/tree.jpg) center 25% / cover no-repeat !important; }
body:has(main.quiz) { background: linear-gradient(180deg, rgba(12,8,34,.6), rgba(12,8,34,.85) 60%, #0c0822), url(img/art2/hero-love.jpg) center top / cover no-repeat, #0c0822 !important; }
.section.alt { background: rgba(255, 252, 245, .55); border-color: rgba(160,120,48,.18); }
.consent { --ink: #f6eedd; color: #f6eedd; background: #120d2a; }
.consent a { color: #e9c46a; }
