/*
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 { 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 p, .article li { color: var(--muted); font-size: 17px; line-height: 1.72; }
.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: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; 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 h3 { margin: 24px 0 18px; 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); }
.article { max-width: 860px; padding: 150px 0 90px; }
.back { display: inline-block; margin-bottom: 50px; color: rgba(244, 241, 234, .52); font-size: 10px; letter-spacing: .22em; }
.article section, .article .wp-block-heading { margin-top: 62px; padding-top: 34px; border-top: 1px solid var(--faint); }
.article h2 { margin-bottom: 18px; }
.article ul { margin: 20px 0 0 22px; }
.article li + li { margin-top: 8px; }
.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); }
  .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); }
  .foot { flex-direction: column; }
}
