/*
Theme Name: The Content Catapult
Theme URI: https://thecontentcatapult.com/
Author: The Content Catapult
Description: Lightweight custom theme for the selector homepage, AI video portfolio, content engine, and WordPress blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: the-content-catapult
*/

:root {
  --bg: #0a0a0a;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, .66);
  --faint: rgba(244, 241, 234, .11);
  --accent: #5aa9ff;
  --accent-rgb: 90, 169, 255;
  --warm: #d94a2b;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100%; background: radial-gradient(70% 60% at 70% 0%, rgba(var(--accent-rgb), .16), transparent 58%), var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .055; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>"); }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 34px; color: #fff; mix-blend-mode: difference; pointer-events: none; }
.topbar a { pointer-events: auto; }
.wordmark, .nav, .kicker, .back, .foot, .meta, .chip, .button, .article-meta, .article-aside { font-family: var(--mono); text-transform: uppercase; }
.wordmark { font-size: 11px; letter-spacing: .28em; opacity: .88; }
.nav { display: flex; gap: 22px; font-size: 10px; letter-spacing: .24em; opacity: .72; }
.hero { position: relative; min-height: 48svh; display: grid; align-items: center; overflow: hidden; padding: 86px 34px 34px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 65% at 72% 40%, rgba(var(--accent-rgb), .24), transparent 62%), radial-gradient(45% 42% at 20% 70%, rgba(217, 74, 43, .14), transparent 66%), repeating-linear-gradient(90deg, #121110 0 2px, transparent 2px 180px), #0b0a09; transform: scale(1.02); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, .14), rgba(10, 10, 10, .22) 45%, var(--bg) 96%); }
.hero-inner, .section, .foot, .article { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero-inner { position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .32em; color: rgba(244, 241, 234, .58); margin-bottom: 18px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 28px rgba(var(--accent-rgb), .9); }
h1 { max-width: 12ch; font-weight: 300; font-size: clamp(54px, 9vw, 128px); line-height: .92; letter-spacing: 0; text-wrap: balance; }
h1 em { display: block; color: var(--accent); font-style: normal; font-weight: 300; }
.intro, .dek { margin-top: 28px; max-width: 760px; font-size: clamp(18px, 2vw, 23px); line-height: 1.58; color: rgba(244, 241, 234, .76); }
.section { padding: 28px 0 76px; }
.section-head { display: grid; grid-template-columns: minmax(0, .72fr) minmax(280px, .28fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; font-size: 10px; letter-spacing: .28em; color: var(--accent); margin-bottom: 14px; }
h2 { font-size: clamp(34px, 5vw, 72px); line-height: .98; font-weight: 300; letter-spacing: 0; text-wrap: balance; }
.section-copy, .entry-summary, .article-content p, .article-content li { color: var(--muted); font-size: 18px; line-height: 1.82; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--faint); border-left: 1px solid var(--faint); }
.post-card { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint); background: linear-gradient(180deg, rgba(244, 241, 234, .04), transparent); transition: background .25s ease, border-color .25s ease; }
.post-card:hover { background: radial-gradient(90% 80% at 50% 0%, rgba(var(--accent-rgb), .16), transparent 68%), rgba(244, 241, 234, .035); border-color: rgba(var(--accent-rgb), .34); }
.post-card-image { display: block; width: 100%; aspect-ratio: 16 / 10; margin: 0 0 24px; overflow: hidden; border: 1px solid rgba(244, 241, 234, .1); background: radial-gradient(75% 80% at 62% 24%, rgba(var(--accent-rgb), .32), transparent 62%), radial-gradient(60% 70% at 18% 76%, rgba(217, 74, 43, .18), transparent 68%), #111216; }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.08); transition: transform .35s ease, filter .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); filter: saturate(1.16) contrast(1.12); }
.post-card-body { flex: 1; }
.post-card h3 { margin: 0 0 22px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.04; font-weight: 300; letter-spacing: 0; }
.meta { font-size: 10px; letter-spacing: .2em; color: rgba(244, 241, 234, .46); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: 10px; letter-spacing: .18em; padding: 7px 10px; border: 1px solid rgba(244, 241, 234, .1); color: rgba(244, 241, 234, .68); background: rgba(244, 241, 234, .045); }
.button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 28px; padding: 13px 16px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .12); color: var(--ink); font-size: 10px; letter-spacing: .22em; }
.arrow { width: 28px; height: 1px; background: currentColor; position: relative; flex: 0 0 auto; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.single-article { position: relative; z-index: 1; }
.article-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 90px; }
.article-hero { display: grid; grid-template-columns: minmax(0, .58fr) minmax(320px, .42fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.article-hero-copy { min-width: 0; }
.article-hero h1 { max-width: 16ch; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.back { display: inline-block; margin-bottom: 42px; color: rgba(244, 241, 234, .52); font-size: 10px; letter-spacing: .22em; }
.back:hover, .article-aside a:hover { color: var(--accent); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; color: var(--accent); font-size: 10px; letter-spacing: .22em; }
.article-meta span + span::before { content: "/"; margin-right: 10px; color: rgba(244, 241, 234, .34); }
.article-featured { margin: 0; min-height: 320px; border: 1px solid rgba(var(--accent-rgb), .22); overflow: hidden; background: radial-gradient(80% 90% at 50% 20%, rgba(var(--accent-rgb), .16), transparent 66%), rgba(244, 241, 234, .035); box-shadow: 0 0 70px rgba(var(--accent-rgb), .1); }
.article-featured img { display: block; width: 100%; height: min(520px, 34vw); object-fit: cover; filter: saturate(1.08) contrast(1.08); }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(34px, 6vw, 86px); align-items: start; margin-top: 70px; }
.article-aside { position: sticky; top: 110px; display: grid; gap: 14px; padding-top: 6px; font-size: 10px; letter-spacing: .18em; color: rgba(244, 241, 234, .52); }
.article-aside .eyebrow { margin-bottom: 8px; }
.article-aside a { display: block; padding: 14px 0; border-top: 1px solid var(--faint); line-height: 1.55; }
.article-content { min-width: 0; }
.article-content > *:first-child { margin-top: 0; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4 { color: var(--ink); font-weight: 300; letter-spacing: 0; text-wrap: balance; }
.article-content h1 { margin: 54px 0 18px; padding-top: 26px; border-top: 1px solid var(--faint); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; max-width: none; }
.article-content h2 { margin: 54px 0 18px; padding-top: 26px; border-top: 1px solid var(--faint); font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.article-content h3 { margin: 36px 0 12px; font-size: clamp(22px, 2vw, 30px); line-height: 1.16; }
.article-content h4 { margin: 28px 0 10px; font-size: 20px; line-height: 1.25; }
.article-content p { margin: 0 0 24px; }
.article-content ul, .article-content ol { margin: 24px 0 30px 24px; }
.article-content li + li { margin-top: 10px; }
.article-content a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb), .38); }
.article-content blockquote { margin: 42px 0; padding: 28px 0 28px 28px; border-left: 1px solid rgba(var(--accent-rgb), .55); color: rgba(244, 241, 234, .84); font-size: clamp(22px, 3vw, 34px); line-height: 1.28; font-weight: 300; }
.article-content blockquote p { color: inherit; font-size: inherit; line-height: inherit; margin: 0; }
.article-content img { max-width: 100%; height: auto; border: 1px solid var(--faint); }
.article-content .wp-block-image { margin: 42px 0; }
.article-content figcaption { margin-top: 10px; color: rgba(244, 241, 234, .48); font-size: 13px; line-height: 1.5; }
.article-cta { margin-top: 76px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; border: 1px solid rgba(var(--accent-rgb), .28); background: radial-gradient(70% 90% at 0% 50%, rgba(var(--accent-rgb), .16), transparent 66%), rgba(244, 241, 234, .035); }
.article-cta h2 { max-width: 640px; font-size: clamp(32px, 4.6vw, 58px); }
.article-cta p { max-width: 680px; margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.72; }
.foot { padding: 34px 0 46px; display: flex; justify-content: space-between; gap: 18px; color: rgba(244, 241, 234, .45); font-size: 10px; letter-spacing: .22em; border-top: 1px solid var(--faint); }
@media (max-width: 900px) {
  .topbar { padding: 18px; }
  .nav { gap: 14px; font-size: 9px; letter-spacing: .16em; }
  .hero { min-height: 48svh; padding: 76px 24px 30px; }
  .section, .hero-inner, .foot, .article { width: min(100% - 36px, 760px); }
  .article-shell { width: min(100% - 36px, 760px); padding: 120px 0 70px; }
  .article-hero { grid-template-columns: 1fr; align-items: start; }
  .article-layout { grid-template-columns: 1fr; margin-top: 52px; }
  .article-aside { position: static; grid-template-columns: 1fr; }
  .article-featured img { height: 320px; }
  .article-cta { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .post-card { min-height: 300px; }
}
@media (max-width: 560px) {
  .wordmark { max-width: 160px; line-height: 1.6; }
  .nav { flex-direction: column; align-items: flex-end; gap: 8px; }
  h1 { font-size: clamp(50px, 17vw, 84px); }
  .article-hero h1 { font-size: clamp(38px, 12vw, 58px); line-height: 1.03; }
  .article-shell { padding-top: 112px; }
  .article-meta { display: grid; gap: 8px; }
  .article-meta span + span::before { content: ""; margin: 0; }
  .article-content p, .article-content li { font-size: 17px; }
  .article-featured { min-height: 220px; }
  .article-featured img { height: 240px; }
  .foot { flex-direction: column; }
}
