/*
Theme Name: Creator Studio Journal
Theme URI: https://ultramuse.art/
Author: UltraMuse
Description: A dark editorial WordPress theme for Creator Studio AI guides, field notes, and long-form creator education.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: creator-studio-journal
*/

:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #11141a;
  --panel-2: #1a1d24;
  --line: rgba(255,255,255,.09);
  --line-bright: rgba(255,255,255,.16);
  --text: #f8fafc;
  --muted: #9aa6b8;
  --dim: #667085;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --mint: #10b981;
  --amber: #f3b64c;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 80px rgba(0,0,0,.48);
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(99,102,241,.15), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(236,72,153,.1), transparent 24rem),
    var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: Outfit, Inter, sans-serif; line-height: 1.08; letter-spacing: -.025em; }
p { margin: 0; color: var(--muted); }
.shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 16px; background: white; color: black; border-radius: 8px; }
.skip-link:focus { top: 20px; }
.eyebrow { color: #8fdcca; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(3,4,7,.84);
  backdrop-filter: blur(22px);
}
.header-inner { width: min(1280px, calc(100% - 36px)); height: 100%; margin: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-family: Outfit, sans-serif; font-weight: 800; background: linear-gradient(135deg, #f230bd, #7c3aed 48%, #13c989); box-shadow: 0 0 28px rgba(99,102,241,.28); }
.custom-logo { width: 38px; height: 38px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font: 700 .94rem Outfit, sans-serif; }
.brand-copy small { margin-top: 3px; color: var(--dim); font-size: .63rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; align-items: center; gap: 26px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 650; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: white; }
.header-cta,.btn-primary,.btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 19px; border-radius: 12px; font-size: .88rem; font-weight: 800; text-decoration: none; }
.header-cta,.btn-primary { color: white; background: linear-gradient(135deg, var(--indigo), var(--violet)); box-shadow: 0 12px 32px rgba(99,102,241,.23); }
.btn-secondary { color: var(--text); border: 1px solid var(--line-bright); background: rgba(255,255,255,.045); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: white; }

.resource-hero { position: relative; min-height: 760px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.resource-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 240px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.resource-hero-inner { position: relative; z-index: 2; text-align: center; padding: 130px 0 110px; }
.resource-hero h1 { max-width: 900px; margin: 24px auto; font-size: clamp(3.4rem, 8vw, 7.6rem); letter-spacing: -.055em; }
.resource-hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg,#b8b8ff,#a78bfa 45%,#f075c4); background-clip: text; -webkit-background-clip: text; }
.resource-hero-inner > p:not(.eyebrow) { max-width: 720px; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; color: var(--dim); font-size: .78rem; font-weight: 700; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: var(--mint); }
.resource-orbit { position: absolute; inset: 0; pointer-events: none; }
.resource-orbit span { position: absolute; width: 230px; aspect-ratio: 4/3; border: 1px solid var(--line-bright); border-radius: 20px; background: linear-gradient(145deg, rgba(99,102,241,.16), rgba(236,72,153,.06)), var(--panel); box-shadow: var(--shadow); opacity: .5; }
.resource-orbit span:nth-child(1) { left: 5%; top: 21%; transform: rotate(-8deg); }
.resource-orbit span:nth-child(2) { right: 4%; top: 20%; transform: rotate(8deg); }
.resource-orbit span:nth-child(3) { right: 14%; bottom: 9%; transform: rotate(-3deg); }

.featured-guides,.latest-section { padding-block: 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin-top: 10px; font-size: clamp(2.2rem,5vw,4.2rem); }
.section-heading > p { max-width: 470px; }
.guide-choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.guide-choice { position: relative; min-height: 420px; display: flex; flex-direction: column; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg,rgba(99,102,241,.1),transparent 42%),var(--panel); transition: transform .25s ease,border-color .25s ease; }
.guide-choice:nth-child(2) { background: linear-gradient(145deg,rgba(236,72,153,.1),transparent 42%),var(--panel); }
.guide-choice:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.45); }
.choice-number { position: absolute; right: 25px; top: 9px; color: rgba(255,255,255,.035); font: 800 8.5rem Outfit,sans-serif; letter-spacing: -.08em; }
.choice-label { position: relative; z-index: 1; color: #a5b4fc; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.guide-choice h3 { position: relative; z-index: 1; max-width: 520px; margin: 52px 0 18px; font-size: clamp(2rem,4vw,3.25rem); }
.guide-choice h3 a { text-decoration: none; }
.guide-choice > p:not(.choice-label) { max-width: 540px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 30px; color: white; text-decoration: none; font-weight: 800; }
.text-link span { color: #a78bfa; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.system-band { padding: 100px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.025); }
.system-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 90px; }
.system-grid h2 { margin: 14px 0 20px; font-size: clamp(2.3rem,5vw,4.6rem); }
.system-grid .btn-primary { margin-top: 26px; }
.system-steps { display: grid; gap: 10px; }
.system-steps span { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 15px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); color: white; font-weight: 700; }
.system-steps b { color: #a5b4fc; font: 800 .72rem Outfit,sans-serif; }
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.post-card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; border-bottom: 1px solid var(--line); background: #0d0f14; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover img { transform: scale(1.035); }
.card-orb { position: absolute; width: 55%; aspect-ratio: 1; left: 18%; top: -13%; border-radius: 50%; background: radial-gradient(circle at 35% 35%,#d971c7,#6d5deb 45%,transparent 70%); filter: blur(7px); opacity: .72; }
.card-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(#000,transparent); }
.post-card-body { padding: 24px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--dim); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.post-card h2 { margin: 15px 0 12px; font-size: 1.55rem; }
.post-card h2 a { text-decoration: none; }
.post-card .text-link { padding-top: 18px; font-size: .88rem; }
.empty-state { grid-column: 1/-1; padding: 50px; border: 1px dashed var(--line-bright); border-radius: var(--radius); text-align: center; }
.archive-hero,.article-hero { width: min(900px,calc(100% - 40px)); margin-inline: auto; padding: 130px 0 72px; text-align: center; }
.archive-hero h1,.article-hero h1 { margin: 18px 0; font-size: clamp(3rem,7vw,6.5rem); }
.archive-hero > p:last-child,.article-deck { max-width: 720px; margin-inline: auto; font-size: 1.14rem; }
.pagination { padding: 50px 0 100px; }

.guide-hero { position: relative; width: min(1280px,calc(100% - 40px)); min-height: 560px; margin: 0 auto; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 60px; padding: 100px 0 80px; }
.guide-hero h1 { margin: 20px 0 24px; font-size: clamp(3.2rem,6.7vw,6.7rem); letter-spacing: -.052em; }
.guide-hero .article-deck { margin: 0; max-width: 710px; }
.guide-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.guide-badges span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .72rem; font-weight: 700; }
.guide-visual { position: relative; min-height: 380px; }
.visual-window { position: absolute; inset: 35px 10px 45px 30px; display: block; padding: 18px; border: 1px solid var(--line-bright); border-radius: 24px; background: linear-gradient(145deg,rgba(99,102,241,.12),rgba(236,72,153,.05)),#0c0e13; box-shadow: var(--shadow); transform: perspective(900px) rotateY(-7deg) rotateX(3deg); }
.visual-window i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #4b5261; }
.visual-window i:first-child { background:#ed6574; }.visual-window i:nth-child(2){background:#f4b94f}.visual-window i:nth-child(3){background:#31c68a}
.visual-window b { position: absolute; inset: 0; display: grid; place-items: center; color: transparent; background: linear-gradient(90deg,#8fdcca,#a78bfa,#ef7dc9); background-clip: text; font: 800 clamp(1.3rem,2.5vw,2.5rem) Outfit,sans-serif; letter-spacing: .05em; }
.visual-card { position: absolute; z-index: 2; min-width: 120px; padding: 12px 15px; border: 1px solid var(--line-bright); border-radius: 12px; background: rgba(26,29,36,.94); box-shadow: 0 15px 35px rgba(0,0,0,.38); font-size: .78rem; font-weight: 800; }
.visual-card.one { left: 0; top: 55px; }.visual-card.two { right: 0; top: 150px; }.visual-card.three { left: 45px; bottom: 20px; }
.guide-progress { position: sticky; top: 76px; z-index: 30; height: 3px; background: rgba(255,255,255,.04); }
.guide-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--mint),var(--indigo),var(--pink)); }
.guide-layout { width: min(1380px,calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0,760px) 250px; justify-content: center; gap: clamp(28px,4vw,64px); padding: 76px 0 110px; }
.guide-toc { position: relative; }
.toc-card { position: sticky; top: 112px; }
.guide-rail {
  position: sticky;
  top: 112px;
  align-self: start;
  height: max-content;
}
.guide-rail > * { position: static; }
.toc-card > p { margin-bottom: 15px; color: white; font: 800 .74rem Outfit,sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.toc-card nav { display: grid; border-left: 1px solid var(--line); }
.toc-card nav a { padding: 7px 0 7px 16px; color: var(--dim); text-decoration: none; font-size: .76rem; line-height: 1.35; transition: color .2s,border-color .2s; border-left: 1px solid transparent; margin-left: -1px; }
.toc-card nav a:hover,.toc-card nav a.is-active { color: white; border-left-color: var(--violet); }
.toc-start { display: inline-block; margin-top: 18px; color: #a78bfa; text-decoration: none; font-size: .78rem; font-weight: 800; }
.article-content { font-size: 1.03rem; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin: 3.8rem 0 1.15rem; padding-top: 1rem; font-size: clamp(2rem,4vw,3rem); scroll-margin-top: 110px; }
.article-content h3 { margin: 2.3rem 0 .75rem; color: #c4b5fd; font-size: 1.45rem; }
.article-content h4 { margin: 1.6rem 0 .55rem; font-size: 1.12rem; }
.article-content p { margin: 0 0 1.2rem; color: #c3cad5; }
.article-content ul,.article-content ol { margin: 0 0 1.5rem; padding-left: 1.35rem; color: #c3cad5; }
.article-content li { margin: .5rem 0; padding-left: .25rem; }
.article-content strong { color: white; }
.article-content a { color: #b7a2ff; text-underline-offset: 3px; }
.article-content blockquote,.guide-callout { margin: 2rem 0; padding: 22px 24px; border: 1px solid rgba(139,92,246,.35); border-left: 3px solid var(--violet); border-radius: 0 14px 14px 0; background: linear-gradient(90deg,rgba(139,92,246,.11),rgba(139,92,246,.025)); }
.article-content blockquote p,.guide-callout p { margin: 0; color: white; font-weight: 650; }
.guide-callout.success { border-color: rgba(16,185,129,.35); border-left-color: var(--mint); background: linear-gradient(90deg,rgba(16,185,129,.1),transparent); }
.guide-callout.warning { border-color: rgba(243,182,76,.35); border-left-color: var(--amber); background: linear-gradient(90deg,rgba(243,182,76,.1),transparent); }
.guide-callout .callout-label { display: block; margin-bottom: 6px; color: #a5b4fc; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.article-content table { width: 100%; margin: 1.8rem 0 2.2rem; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; font-size: .86rem; }
.article-content th,.article-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { color: white; background: #171b25; }
.article-content td { color: #bdc5d2; background: rgba(255,255,255,.018); }
.article-content tr:last-child td { border-bottom: 0; }.article-content th:last-child,.article-content td:last-child { border-right: 0; }
.article-content figure { margin: 2.4rem 0; }
.article-content figure img { width: 100%; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.article-content figcaption { margin-top: 9px; color: var(--dim); font-size: .78rem; text-align: center; }
.step-grid,.money-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 1.7rem 0 2.2rem; }
.step-card,.money-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.step-card b,.money-card b { display: block; margin-bottom: 8px; color: white; font-family: Outfit,sans-serif; }
.step-card span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 14px; border-radius: 8px; color: white; background: var(--indigo); font-size: .68rem; font-weight: 850; }
.step-card p,.money-card p { margin: 0; font-size: .9rem; }
.aside-card { padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg,rgba(99,102,241,.1),transparent 60%),var(--panel); }
.aside-card h2 { margin: 14px 0 10px; font-size: 1.25rem; }
.aside-card p { font-size: .86rem; }
.aside-card .btn-primary { width: 100%; margin-top: 18px; font-size: .8rem; }
.signal-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px var(--mint); }
.rail-note { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.rail-note strong { color: white; font-size: .78rem; }.rail-note p { margin-top: 5px; font-size: .78rem; }
.guide-next { margin-bottom: 100px; padding: 56px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; background: radial-gradient(circle at 50% 0,rgba(99,102,241,.22),transparent 55%),var(--panel); }
.guide-next h2 { max-width: 720px; margin: 14px auto 24px; font-size: clamp(2.2rem,5vw,4.2rem); }

.article-layout { width: min(1080px,calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0,760px) 250px; gap: 60px; padding: 60px 0 110px; }
.article-aside { position: relative; }.article-aside .aside-card { position: sticky; top: 112px; }
.article-featured { width: min(1080px,calc(100% - 40px)); margin: 0 auto; }
.article-featured img { width: 100%; max-height: 650px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-hero .post-meta { justify-content: center; margin-top: 24px; }
.article-hero.compact { padding-bottom: 20px; }.page-content { width: min(760px,calc(100% - 40px)); margin: 0 auto; padding-bottom: 110px; }
.not-found { min-height: 72vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { max-width: 800px; margin: 20px auto; font-size: clamp(3rem,7vw,6rem); }.not-found .btn-primary { justify-self: center; margin-top: 28px; }

.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: #030406; }
.footer-glow { position: absolute; width: 600px; height: 260px; left: 50%; top: -170px; transform: translateX(-50%); border-radius: 50%; background: rgba(99,102,241,.18); filter: blur(70px); }
.footer-inner,.footer-base { position: relative; width: var(--shell); margin: auto; display: flex; justify-content: space-between; gap: 40px; }
.footer-inner { padding: 70px 0; }.footer-inner > div:first-child > p { max-width: 430px; margin-top: 18px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: center; gap: 24px; }.footer-links ul { display: contents; list-style: none; }.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 700; }
.footer-base { padding: 20px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: .72rem; }

@media (max-width: 1100px) {
  .guide-layout { grid-template-columns: minmax(0,760px) 240px; }
  .guide-toc { display: none; }
  .guide-hero { grid-template-columns: 1fr .75fr; }
  .post-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto auto 1fr; gap: 12px; }
  .nav-toggle { display: block; justify-self: end; order: 2; }
  .header-cta { justify-self: end; order: 3; }
  .primary-nav { display: none; position: absolute; top: 76px; left: 18px; right: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0b0d12; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }.primary-nav a { display: block; padding: 10px; }
  .guide-hero { grid-template-columns: 1fr; min-height: auto; }.guide-visual { display: none; }
  .guide-layout,.article-layout { grid-template-columns: 1fr; }.guide-rail,.article-aside { display: none; }
  .guide-choice-grid,.system-grid { grid-template-columns: 1fr; }.system-grid { gap: 45px; }
  .section-heading { display: block; }.section-heading > p { margin-top: 16px; }
}
@media (max-width: 620px) {
  :root { --shell: min(100% - 28px,1160px); }
  .header-inner { width: calc(100% - 24px); }.brand-copy { display: none; }.header-cta { padding: 0 12px; font-size: .75rem; }
  .resource-hero { min-height: 680px; }.resource-hero h1 { font-size: clamp(3rem,16vw,5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .resource-orbit span { width: 145px; opacity: .34; }
  .featured-guides,.latest-section { padding-block: 76px; }.guide-choice { min-height: 380px; padding: 25px; }
  .post-grid { grid-template-columns: 1fr; }
  .guide-hero { width: calc(100% - 28px); padding-top: 72px; }.guide-hero h1 { font-size: clamp(2.8rem,14vw,4.5rem); }
  .guide-layout { width: calc(100% - 28px); padding-top: 52px; }
  .step-grid,.money-grid { grid-template-columns: 1fr; }
  .article-content table { display: block; overflow-x: auto; }
  .guide-next { width: calc(100% - 28px); padding: 38px 22px; }
  .footer-inner,.footer-base { display: grid; }.footer-base span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
