/*
Theme Name: Dr Crazy B-Movie
Theme URI: https://www.drcrazyonemadband.com/
Author: Caleb Mascarenhas
Description: Dark 1950s B-movie / horror double feature theme for Dr Crazy One Mad Band — Space Trash Blues from another galaxy. Works with the Dr Crazy Core plugin and with posts published by the Insta AI Agent.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: drcrazy
*/

:root {
	--void: #0D0B0A;
	--crypt: #2A1614;
	--bone: #E6DDC8;
	--bone-dim: #B9AE97;
	--blood: #B3121B;
	--blood-hi: #D4232D;
	--radioactive: #8BC34A;
	--f-marquee: 'Bungee', Impact, sans-serif;
	--f-cond: 'Anton', Impact, sans-serif;
	--f-type: 'Special Elite', 'Courier New', monospace;
	--f-body: 'Archivo', system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	--line: rgba(230, 221, 200, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--void); color: var(--bone); font: 400 17px/1.65 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--radioactive); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 3px solid var(--radioactive); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--radioactive); color: var(--void); padding: 10px 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* film grain + halftone */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .08; mix-blend-mode: screen;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.halftone { background-image: radial-gradient(rgba(179, 18, 27, .33) 1.2px, transparent 1.4px); background-size: 7px 7px; }

/* type helpers */
.label { font: 400 12px/1.3 var(--f-type); letter-spacing: .2em; text-transform: uppercase; color: var(--radioactive); margin: 0 0 6px; }
.sec-title { font: 400 clamp(30px, 5.4vw, 56px)/1 var(--f-marquee); color: var(--blood-hi); margin: 6px 0 28px; text-shadow: 3px 3px 0 var(--crypt); text-transform: uppercase; overflow-wrap: anywhere; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--bone); max-width: 760px; }
.muted { color: var(--bone-dim); }

/* buttons */
.btn { display: inline-block; font: 400 15px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 2px solid var(--bone); color: var(--bone); background: transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--bone); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--radioactive); }
.btn.primary { background: var(--blood); border-color: var(--blood); color: var(--bone); }
.btn.ghost { border-color: var(--radioactive); color: var(--radioactive); }
.btn.small { padding: 10px 14px; font-size: 13px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

section.block { padding: clamp(56px, 8vw, 88px) 0; border-top: 1px dashed var(--line); }
section.block.alt { background-color: var(--crypt); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 11, 10, .94); border-bottom: 2px solid var(--blood); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.nav { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: block; flex: 0 0 auto; }
.brand .site-logo { height: 48px; width: auto; }
@media (min-width: 900px) {
	.nav { min-height: 110px; }
	.brand .site-logo { height: 95px; }
}
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { font: 400 14px/1 var(--f-cond); letter-spacing: .08em; color: var(--bone); text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--radioactive); }
.lang-switch { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font: 400 13px/1 var(--f-type); }
.lang-switch a { color: var(--bone-dim); text-decoration: none; }
.lang-switch .current-lang a { color: var(--radioactive); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--bone); color: var(--bone); font: 400 14px/1 var(--f-cond); letter-spacing: .1em; padding: 10px 12px; cursor: pointer; }
@media (max-width: 1080px) {
	.menu-toggle { display: block; }
	.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--void); border-bottom: 2px solid var(--blood); display: none; padding: 16px var(--gutter) 24px; margin: 0; }
	.primary-nav.open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 14px; }
	.primary-nav a { font-size: 22px; }
	.nav > .btn { display: none; }
	.primary-nav .btn-mobile { display: inline-block; margin-top: 18px; }
}
.primary-nav .btn-mobile { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: grid; align-items: end; overflow: hidden; border-bottom: 4px solid var(--blood); }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3) brightness(.5) sepia(.45) hue-rotate(-30deg); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 10, .15), var(--void) 94%); }
.hero .halftone { position: absolute; inset: 0; mix-blend-mode: multiply; }
.hero__inner { position: relative; padding-top: 120px; padding-bottom: 60px; }
.hero__logo { width: min(760px, 92%); transform: rotate(-3deg); filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, .85)); margin: 8px 0 10px -1%; }
.hero h1 { position: absolute; }
.hero .tag { font: 400 clamp(15px, 2.2vw, 20px)/1.3 var(--f-type); color: var(--radioactive); margin: 22px 0 8px; }
.hero .aux { color: var(--bone-dim); max-width: 560px; }
.billing { font: 400 12px/1.6 var(--f-cond); letter-spacing: .14em; color: var(--bone-dim); margin-top: 36px; max-width: 640px; text-transform: uppercase; }

/* page hero (inner pages) */
.page-hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); border-bottom: 4px solid var(--blood); overflow: hidden; }
.page-hero .sec-title { font-size: clamp(40px, 9vw, 104px); transform: skewY(-3deg); margin-bottom: 18px; }
.page-hero .entry { max-width: 760px; }

/* marquee strip */
.strip { background: var(--blood); color: var(--bone); font: 400 clamp(16px, 2.4vw, 22px)/1 var(--f-cond); letter-spacing: .1em; overflow: hidden; white-space: nowrap; padding: 14px 0; }
.strip__track { display: inline-block; animation: dc-marq 30s linear infinite; }
@keyframes dc-marq { to { transform: translateX(-50%); } }

/* grids */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 2px solid var(--bone); }
.stat { padding: 22px; border-right: 1px dashed var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(40px, 6vw, 64px)/1 var(--f-marquee); color: var(--blood-hi); }
.stat span { font: 400 13px/1.3 var(--f-type); text-transform: uppercase; letter-spacing: .12em; color: var(--bone-dim); }

/* poster cards (releases) */
.poster { position: relative; background: var(--crypt); border: 2px solid var(--bone); padding: 12px; transition: transform .2s; display: flex; flex-direction: column; }
.poster:hover { transform: rotate(-1.2deg) scale(1.02); }
.poster__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
.poster__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) sepia(.35); }
.poster__img::after { content: ""; position: absolute; inset: 0; background: var(--blood); mix-blend-mode: multiply; opacity: .35; }
.poster h3 { font: 400 clamp(22px, 2.4vw, 28px)/1 var(--f-marquee); margin: 14px 0 4px; }
.poster h3 a { color: var(--bone); text-decoration: none; }
.poster h3 a::after { content: ""; position: absolute; inset: 0; }
.poster .meta { font: 400 12px/1.4 var(--f-type); color: var(--radioactive); text-transform: uppercase; margin: 0; }
.stamp { position: absolute; z-index: 2; top: 22px; right: -8px; background: var(--radioactive); color: var(--void); font: 400 13px/1 var(--f-cond); letter-spacing: .1em; padding: 6px 10px; transform: rotate(6deg); }

/* feature (latest release) */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature__title { font: 400 clamp(44px, 8vw, 96px)/.9 var(--f-marquee); color: var(--blood-hi); text-shadow: 4px 4px 0 var(--crypt); margin: 6px 0 16px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* screen (video embeds) */
.screen, .wp-block-embed-youtube .wp-block-embed__wrapper { position: relative; border: 10px solid #000; outline: 2px solid var(--bone); box-shadow: 0 0 0 14px var(--crypt); margin: 22px 14px 32px; aspect-ratio: 16 / 9; background: #000; }
.screen iframe, .wp-block-embed-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed-youtube.wp-has-aspect-ratio .wp-block-embed__wrapper::before { display: none; }

/* formats */
.format { background: var(--void); border: 2px solid var(--bone); padding: 24px; position: relative; }
.format .no { font: 400 13px/1 var(--f-type); color: var(--radioactive); letter-spacing: .2em; }
.format h3 { font: 400 clamp(26px, 3vw, 34px)/1 var(--f-marquee); color: var(--bone); margin: 10px 0 12px; }
.format p { color: var(--bone-dim); }
.format .for { font: 400 13px/1.5 var(--f-type); color: var(--radioactive); margin: 0; }

/* post cards (Transmission / agent posts) */
.post-card { background: var(--crypt); border-top: 6px solid var(--blood); display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.12) saturate(.7) sepia(.25); transition: transform .3s; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__body .btn { margin-top: auto; align-self: flex-start; }
.post-card h3 { font: 400 24px/1.1 var(--f-cond); letter-spacing: .03em; margin: 6px 0 10px; }
.post-card h3 a { color: var(--bone); text-decoration: none; }
.post-card p { color: var(--bone-dim); font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters a { font: 400 13px/1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--bone); border: 1px solid var(--line); padding: 9px 12px; }
.filters a.on, .filters a:hover { border-color: var(--radioactive); color: var(--radioactive); }
.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }

/* shows */
.shows-year { margin-bottom: 28px; }
.shows-year h3 { font: 400 32px/1 var(--f-marquee); color: var(--bone); margin: 0 0 10px; }
.shows { border: 2px solid var(--bone); }
.show { display: grid; grid-template-columns: 116px 1fr auto; gap: 14px; padding: 13px 18px; border-bottom: 1px dashed var(--line); align-items: center; }
.show:last-child { border-bottom: 0; }
.show .d { font: 400 20px/1 var(--f-cond); color: var(--blood-hi); }
.show .v { font-weight: 600; }
.show .c { color: var(--bone-dim); font-size: 14px; }
.show .s { font: 400 11px/1 var(--f-type); color: var(--radioactive); border: 1px solid var(--radioactive); padding: 4px 6px; white-space: nowrap; text-transform: uppercase; }
@media (max-width: 560px) { .show { grid-template-columns: 84px 1fr; } .show .d { font-size: 17px; } .show .s { grid-column: 2; justify-self: start; } }
details.more-shows > summary { list-style: none; cursor: pointer; display: inline-block; margin: 8px 0 24px; }
details.more-shows > summary::-webkit-details-marker { display: none; }
details.more-shows[open] > summary { display: none; }
.countries { font: 400 14px/1.8 var(--f-type); color: var(--bone-dim); text-transform: uppercase; letter-spacing: .08em; }

/* lab */
.lab-card { border: 2px dashed var(--radioactive); padding: 22px; background: rgba(139, 195, 74, .04); }
.lab-card h3 { font: 400 24px/1.1 var(--f-cond); letter-spacing: .04em; color: var(--radioactive); margin: 0 0 10px; }
.lab-card p { color: var(--bone-dim); margin: 0; }

/* artifact */
.artifact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 760px) { .artifact { grid-template-columns: 1fr; } }
.artifact__frame { background: var(--bone); padding: 18px; transform: rotate(1.5deg); max-width: 460px; }
.artifact__frame img { aspect-ratio: 148 / 210; width: 100%; object-fit: cover; background: #000; }
.specs { list-style: none; padding: 0; margin: 16px 0 24px; font-family: var(--f-type); font-size: 15px; }
.specs li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.specs b { font-weight: 400; color: var(--radioactive); margin-right: 8px; text-transform: uppercase; }

/* files / dossier */
.dossier { background: var(--bone); color: #1b1512; padding: 30px; font-family: var(--f-type); position: relative; transform: rotate(-.6deg);
	clip-path: polygon(0 1%, 4% 0, 30% 1%, 60% 0, 100% 1%, 99% 40%, 100% 99%, 70% 100%, 35% 99%, 0 100%, 1% 60%); }
.dossier:nth-child(even) { transform: rotate(.5deg); }
.dossier .no { font-size: 13px; letter-spacing: .2em; color: #5a4a3c; }
.dossier h3 { font: 400 clamp(26px, 3vw, 34px)/1 var(--f-cond); letter-spacing: .05em; margin: 6px 0 12px; padding-right: 150px; }
.dossier h3 a { color: #1b1512; text-decoration: none; }
.dossier h3 a::after { content: ""; position: absolute; inset: 0; }
.dossier .cls { position: absolute; right: 24px; top: 24px; border: 3px solid var(--blood); color: var(--blood); font: 400 18px/1 var(--f-marquee); padding: 6px 10px; transform: rotate(-12deg); opacity: .85; text-transform: uppercase; }
.dossier .go { color: var(--blood); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.redact { background: #1b1512; color: #1b1512; }
@media (max-width: 560px) { .dossier h3 { padding-right: 0; } .dossier .cls { position: static; display: inline-block; margin-bottom: 12px; font-size: 15px; } }
.dossier-full { background: var(--bone); color: #1b1512; padding: clamp(24px, 5vw, 56px); font-family: var(--f-type); position: relative; }
.dossier-full a { color: var(--blood); }

/* forms */
.dc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; max-width: 820px; }
.dc-form label { font: 400 12px/1 var(--f-type); letter-spacing: .14em; text-transform: uppercase; color: var(--radioactive); display: grid; gap: 8px; }
.dc-form .full { grid-column: 1 / -1; }
input, select, textarea { font: 400 16px/1.4 var(--f-body); color: var(--bone); background: var(--void); border: 2px solid var(--bone-dim); padding: 12px; min-width: 0; width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--radioactive); }
.dc-hp { position: absolute; left: -9999px; }
.dc-subscribe { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.dc-subscribe input { flex: 1 1 240px; }
.dc-notice { font: 400 15px/1.4 var(--f-type); padding: 12px 16px; border: 2px solid; margin: 0 0 18px; }
.dc-ok { border-color: var(--radioactive); color: var(--radioactive); }
.dc-err { border-color: var(--blood-hi); color: #ff8a8f; }

/* single post / entry content */
.entry { font-size: 18px; }
.entry > * { max-width: 760px; }
.entry img { margin: 22px 0; }
.entry h2 { font: 400 32px/1.1 var(--f-cond); margin: 1.4em 0 .5em; }
.entry h3 { font: 400 24px/1.1 var(--f-cond); margin: 1.2em 0 .5em; }
.entry blockquote { border-left: 4px solid var(--blood); margin: 1.5em 0; padding: 4px 0 4px 20px; font-family: var(--f-type); }
.entry .wp-block-image, .entry figure { margin: 22px 0; }
.single-head .featured { border: 2px solid var(--bone); padding: 10px; background: var(--crypt); margin-top: 28px; max-width: 900px; }
.single-head .featured img { width: 100%; filter: contrast(1.08) saturate(.85); }
.post-meta { font: 400 13px/1.4 var(--f-type); color: var(--radioactive); text-transform: uppercase; letter-spacing: .12em; }
.post-meta a { color: inherit; }

/* footer */
.site-footer { padding: 64px 0 40px; border-top: 4px solid var(--blood); text-align: center; background: var(--void); }
.site-footer .site-logo { width: min(380px, 80%); margin: 0 auto 10px; }
.site-footer .billing { margin: 16px auto; }
.social { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 24px 0; }
.social a { font: 400 15px/1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.social a:hover { color: var(--radioactive); }
.copyright { color: var(--bone-dim); font-size: 13px; }

/* WordPress core classes */
.alignwide { max-width: 1180px; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font: 400 13px/1.4 var(--f-type); color: var(--bone-dim); margin-top: 8px; }
.wp-block-button__link { font-family: var(--f-cond); letter-spacing: .08em; text-transform: uppercase; border-radius: 0; background: var(--blood); color: var(--bone); }

/* misc */
.video-title { display: block; font: 400 22px/1.15 var(--f-cond); letter-spacing: .03em; color: var(--bone); margin: 4px 0 0; }
.yt-card { text-decoration: none; }
.stamp-classified { position: absolute; right: clamp(16px, 4vw, 40px); top: clamp(16px, 4vw, 40px); border: 3px solid var(--blood); color: var(--blood); font: 400 clamp(15px, 2vw, 20px)/1 var(--f-marquee); padding: 6px 10px; transform: rotate(-12deg); opacity: .85; text-transform: uppercase; }
.dossier-full .entry { font-size: 18px; }

/* official release covers: square, true colors */
.poster__img.is-cover { aspect-ratio: 1 / 1; }
.poster__img.is-cover img { filter: none; }
.poster__img.is-cover::after { display: none; }
.poster h3 a::after { z-index: 1; }
.poster__links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; }
.poster__links a { font: 400 12px/1.2 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.poster__links a:hover { color: var(--radioactive); border-color: var(--radioactive); }
.cover-frame { border: 2px solid var(--bone); padding: 10px; background: var(--crypt); max-width: 460px; margin-bottom: 8px; transform: rotate(-1deg); }
.cover-frame img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Sold My Soul prints gallery */
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; margin-top: 48px; }
.print { margin: 0; background: var(--bone); padding: 10px 10px 12px; transition: transform .2s; }
.print:nth-child(odd) { transform: rotate(-.8deg); }
.print:nth-child(even) { transform: rotate(.8deg); }
.print:hover { transform: rotate(0) scale(1.03); }
.print img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.print figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 10px; font: 400 13px/1.3 var(--f-type); color: #1b1512; }
.print__no { font: 400 18px/1 var(--f-cond); color: var(--blood); letter-spacing: .05em; }
.print figcaption a { margin-left: auto; color: var(--blood); text-decoration: none; }
.print figcaption a:hover { text-decoration: underline; }
.artifact .artifact__frame img { aspect-ratio: auto; }
.print__price { font: 400 16px/1 var(--f-cond); letter-spacing: .04em; color: #1b1512; background: var(--radioactive); padding: 3px 6px; }
