/* ==========================================================================
   AXEWOUND — theme styles (loaded on the front end and in the editor)
   ========================================================================== */

:root {
	--ax-void: var(--wp--preset--color--void, #0a0707);
	--ax-crypt: var(--wp--preset--color--crypt, #161010);
	--ax-ash: var(--wp--preset--color--ash, #2b2121);
	--ax-smoke: var(--wp--preset--color--smoke, #8f8478);
	--ax-bone: var(--wp--preset--color--bone, #ece5d8);
	--ax-blood: var(--wp--preset--color--blood, #b20018);
	--ax-gore: var(--wp--preset--color--gore, #ff2440);
	--ax-drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 72' preserveAspectRatio='none'%3E%3Cpath d='M0 0V14.3Q3.8 14.2 7.6 15.2C12.8 15.6 15 17.8 15 22.9C15 28 15.6 22.5 15.6 24.6C13.3 27.6 14.6 31.9 18 31.9C21.4 31.9 22.7 27.6 20.4 24.6C20.4 22.5 21 28 21 22.9C21 17.8 23.2 15.6 28.4 15.1Q50.4 13.2 72.3 15C76.1 15.4 77.7 17 77.7 20.8C77.7 25.1 78.3 20.7 78.3 22.8C76.2 25.6 77.4 29.8 80.7 29.8C84.1 29.8 85.3 25.6 83.1 22.8C83.1 20.7 83.8 25.1 83.8 20.8C83.8 17 85.4 15.4 89.2 15.4Q108.2 14.1 127.3 9.8C132.4 9 134.5 11.2 134.5 16.2C134.5 26.7 135.2 29.5 135.2 31.6C133.1 34.5 134.4 38.7 137.7 38.7C141.1 38.7 142.4 34.5 140.2 31.6C140.2 29.5 140.9 26.7 140.9 16.2C140.9 11.2 143.1 9 148.1 9.4Q167.7 12.8 187.2 13.3C193.5 13.1 196.3 15.8 196.3 22.1C196.3 24.2 197.1 11.4 197.1 14C194.7 17.4 196.2 22.5 200.3 22.5C204.3 22.5 205.8 17.4 203.4 14C203.4 11.4 204.3 24.2 204.3 22.1C204.3 15.8 207 13.1 213.3 12.8Q217.5 13.1 221.7 13C226.1 13.9 227.9 15.7 227.9 20C227.9 20.9 228.6 10.4 228.6 12.5C226.3 15.4 227.5 19.7 230.9 19.7C234.3 19.7 235.6 15.4 233.3 12.5C233.3 10.4 234 20.9 234 20C234 15.7 235.8 13.9 240.1 15.1Q258.3 18 276.5 15.8C282 13.9 284.3 16.2 284.3 21.7C284.3 39.7 285 53.7 285 55.7C283.1 58.4 284.3 62.4 287.5 62.4C290.6 62.4 291.8 58.4 289.9 55.7C289.9 53.7 290.6 39.7 290.6 21.7C290.6 16.2 292.9 13.9 298.4 11.9Q312 9.6 325.6 10.7C330.7 11.4 332.9 13.6 332.9 18.7C332.9 29.4 333.6 31.7 333.6 34.1C331.3 37.3 332.7 42.1 336.5 42.1C340.3 42.1 341.6 37.3 339.3 34.1C339.3 31.7 340.1 29.4 340.1 18.7C340.1 13.6 342.3 11.4 347.3 12Q358.4 11.5 369.4 11.2C372.9 10.6 374.4 12.1 374.4 15.6C374.4 18.6 375.5 8.2 375.5 11.9C371.5 16.9 373.7 24.4 379.6 24.4C385.5 24.4 387.7 16.9 383.6 11.9C383.6 8.2 384.8 18.6 384.8 15.6C384.8 12.1 386.3 10.6 389.8 10.6Q395.8 10.8 401.9 11.8C406 13.6 407.8 15.4 407.8 19.5C407.8 24.6 408.7 18.7 408.7 21.5C405.8 25.3 407.4 31 412 31C416.5 31 418.1 25.3 415.2 21.5C415.2 18.7 416.1 24.6 416.1 19.5C416.1 15.4 417.9 13.6 422 15.5Q430.2 16.6 438.4 17C442.5 16.7 444.2 18.4 444.2 22.5C444.2 33.3 445 37.6 445 39.9C442.8 42.9 444.1 47.5 447.7 47.5C451.4 47.5 452.7 42.9 450.5 39.9C450.5 37.6 451.3 33.3 451.3 22.5C451.3 18.4 453 16.7 457.1 15.6Q476.7 12.6 496.3 12.8C503.1 13.2 506.1 16.1 506.1 23C506.1 27.8 506.8 19.4 506.8 21.5C504.4 24.4 505.7 28.8 509.1 28.8C512.6 28.8 513.8 24.4 511.5 21.5C511.5 19.4 512.2 27.8 512.2 23C512.2 16.1 515.1 13.2 522 12.9Q531.8 11.2 541.6 10.7C545.9 9.4 547.8 11.3 547.8 15.6C547.8 24.5 548.9 22.4 548.9 25.8C545.5 30.4 547.5 37.3 553 37.3C558.4 37.3 560.4 30.4 557 25.8C557 22.4 558.1 24.5 558.1 15.6C558.1 11.3 560 9.4 564.4 9.1Q582.2 11.1 600 14.3V0Z'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; }

::selection { background: var(--ax-blood); color: var(--ax-bone); }

/* Film grain over everything */
body:not(.block-editor-iframe__body)::after {
	content: "";
	position: fixed;
	inset: -50%;
	z-index: 9999;
	pointer-events: none;
	opacity: 0.08;
	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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: ax-grain 0.9s steps(4) infinite;
}
@keyframes ax-grain {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-3%, 2%); }
	50% { transform: translate(2%, -3%); }
	75% { transform: translate(-1%, 3%); }
	100% { transform: translate(3%, -1%); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

/* ---------------------------------------------------------------- header */
.ax-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.admin-bar .ax-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ax-header.is-scrolled {
	background-color: rgb(10 7 7 / 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgb(178 0 24 / 0.5);
}
.ax-header .ax-header__logo img { transition: transform 0.3s ease, filter 0.3s ease; }
.ax-header .ax-header__logo a:hover img { transform: rotate(-2deg) scale(1.04); filter: drop-shadow(0 0 10px rgb(255 36 64 / 0.6)); }
.ax-header .wp-block-navigation a { color: var(--ax-bone); }
.ax-header .wp-block-navigation a:hover { color: var(--ax-gore); text-decoration: none; }
.ax-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ax-void); color: var(--ax-bone); }
.ax-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 2rem; gap: 1.25rem; }

/* ------------------------------------------------------------ smoke group */
.is-style-ax-smoke {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 50% 35%, rgb(120 0 16 / 0.55), transparent 60%),
		radial-gradient(ellipse at 30% 80%, rgb(60 0 8 / 0.6), transparent 55%),
		var(--ax-void);
}
.is-style-ax-smoke > .ax-smoke-canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	z-index: -1;
	max-width: none !important;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.is-style-ax-smoke.ax-smoke-ready > .ax-smoke-canvas { opacity: 1; }

/* ---------------------------------------------------------------- hero */
.ax-hero { min-height: 100vh; min-height: 100svh; }
.ax-hero .ax-logo { width: min(1000px, 92vw); margin: 0; }
.ax-hero p { text-wrap: balance; max-width: 40rem; }
.ax-hero .ax-logo img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 0 24px rgb(178 0 24 / 0.55)) drop-shadow(0 10px 30px rgb(0 0 0 / 0.8));
	animation: ax-flicker 7s infinite;
}
@keyframes ax-flicker {
	0%, 91%, 100% { opacity: 1; transform: translate(0, 0); }
	92% { opacity: 0.65; transform: translate(2px, -1px); }
	93% { opacity: 1; transform: translate(-2px, 1px); }
	95% { opacity: 0.8; }
	96% { opacity: 1; }
}
.ax-scroll-cue {
	font-family: var(--wp--preset--font-family--label);
	letter-spacing: 0.2em;
	color: var(--ax-smoke);
	animation: ax-bob 2.2s ease-in-out infinite;
}
.ax-scroll-cue a { color: inherit; }
@keyframes ax-bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
	.ax-hero .ax-logo img, .ax-scroll-cue { animation: none; }
}

/* --------------------------------------------------------- paragraph styles */
.is-style-ax-presents {
	font-family: var(--wp--preset--font-family--label);
	font-size: 1.15rem;
	letter-spacing: 0.06em;
	color: var(--ax-smoke);
	margin-bottom: 0 !important;
}
.is-style-ax-stamp {
	display: inline-block;
	width: fit-content;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.6rem;
	line-height: 1;
	padding: 0.35rem 0.8rem 0.25rem;
	color: var(--ax-gore);
	border: 3px solid currentColor;
	transform: rotate(-4deg);
	mix-blend-mode: screen;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Marquee */
.ax-marquee-wrap { overflow: hidden; padding-block: 2.5rem !important; margin-block: 0 !important; position: relative; z-index: 2; }
.is-style-ax-marquee {
	overflow: hidden;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.6rem, 4vw, 2.75rem);
	line-height: 1.1;
	padding-block: 0.6rem;
	margin: 0 !important;
	background: var(--ax-blood);
	color: var(--ax-void);
	transform: rotate(-1.5deg) scale(1.03);
	box-shadow: 0 10px 40px rgb(0 0 0 / 0.6);
}
.ax-marquee__track { display: inline-flex; animation: ax-marquee 28s linear infinite; }
.ax-marquee__item { padding-right: 2.5rem; }
.is-style-ax-marquee:hover .ax-marquee__track { animation-play-state: paused; }
@keyframes ax-marquee { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .ax-marquee__track { animation: none; } }

/* ------------------------------------------------------------ drip divider */
.wp-block-separator.is-style-ax-drip,
.wp-block-separator.is-style-ax-drip:not(.is-style-wide):not(.is-style-dots) {
	border: 0 !important;
	height: 72px;
	width: 100% !important;
	max-width: none !important;
	margin-block: 0;
	background: var(--ax-blood) !important;
	opacity: 1;
	-webkit-mask: var(--ax-drip) top left / 600px 72px repeat-x;
	mask: var(--ax-drip) top left / 600px 72px repeat-x;
}
@media (max-width: 600px) {
	.wp-block-separator.is-style-ax-drip { height: 54px; -webkit-mask-size: 450px 54px; mask-size: 450px 54px; }
}
.wp-block-separator.is-style-ax-drip.has-text-color { background: currentColor !important; }

/* ------------------------------------------------------------- gore covers */
.wp-block-image.is-style-ax-gore {
	position: relative;
	perspective: 900px;
	--ax-rx: 0deg;
	--ax-ry: 0deg;
}
.wp-block-image.is-style-ax-gore img,
.wp-block-image.is-style-ax-gore .ax-gl-holder {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 0;
}
.wp-block-image.is-style-ax-gore .ax-gl-holder,
.wp-block-image.is-style-ax-gore.ax-gl-ready {
	transform: rotateX(var(--ax-rx)) rotateY(var(--ax-ry));
	transition: transform 0.25s ease-out;
}
.wp-block-image.is-style-ax-gore.ax-gl-ready .ax-gl-holder { transform: none; }
.ax-gl-holder { position: relative; overflow: hidden; }
.ax-gl-canvas {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	display: block;
	cursor: crosshair;
}
.wp-block-image.is-style-ax-gore.ax-gl-ready img { visibility: hidden; }
/* Shadow sits on the artwork itself (so it tilts with it), plus a soft pool underneath */
.wp-block-image.is-style-ax-gore img,
.wp-block-image.is-style-ax-gore .ax-gl-holder {
	box-shadow: 0 2px 3px rgb(0 0 0 / 0.5), 0 22px 36px -16px rgb(0 0 0 / 0.85);
}
.wp-block-image.is-style-ax-gore.ax-gl-ready img { box-shadow: none; }
.wp-block-image.is-style-ax-gore { isolation: isolate; }
.wp-block-image.is-style-ax-gore::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: calc(100% - 2rem);
	height: 3.5rem;
	z-index: -1;
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(0 0 0 / 0.75), transparent);
	filter: blur(10px);
	transition: background 0.5s ease, transform 0.5s ease;
}
.wp-block-image.is-style-ax-gore:has(figcaption)::after { top: auto; bottom: 1.5rem; }
.wp-block-image.is-style-ax-gore:hover::after {
	background: radial-gradient(closest-side, rgb(150 0 18 / 0.75), transparent);
	transform: scaleX(1.15);
}
.wp-block-image.is-style-ax-gore figcaption { margin-top: 0.75rem; }

/* ---------------------------------------------------------------- releases */
.ax-release { position: relative; }
.ax-release h2 {
	text-shadow: 3px 3px 0 var(--ax-blood);
}
.ax-release .wp-block-embed { margin-block: 1.5rem; }
.ax-release .wp-block-embed iframe { border-radius: 12px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9); }
.ax-index {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(6rem, 18vw, 16rem);
	line-height: 0.75;
	color: transparent;
	-webkit-text-stroke: 1px rgb(178 0 24 / 0.45);
	position: absolute;
	top: 0;
	right: 0;
	margin: 0 !important;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.ax-release > * { position: relative; z-index: 1; }
.ax-release > .ax-index { position: absolute; z-index: 0; }

.ax-grid .wp-block-column { transition: transform 0.3s ease; }
.ax-grid h3 { margin-top: 1rem; }
.ax-grid h3 a { color: var(--ax-bone); }
.ax-grid h3 a:hover { color: var(--ax-gore); text-decoration: none; }

/* --------------------------------------------------------------- buttons */
.wp-block-button .wp-block-button__link { transition: background-color 0.2s, color 0.2s, transform 0.15s; position: relative; }
.wp-block-button .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ax-bone); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ax-bone);
	border: 2px solid var(--ax-bone);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ax-bone); color: var(--ax-void); box-shadow: 4px 4px 0 var(--ax-blood); }

/* ----------------------------------------------------------- scream quote */
.wp-block-quote.is-style-ax-scream {
	border: 0 !important;
	padding: 0 !important;
	margin-inline: 0;
}
.wp-block-quote.is-style-ax-scream p {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.4rem, 6vw, 5rem);
	line-height: 0.95;
	color: var(--ax-bone);
}
.wp-block-quote.is-style-ax-scream p::before { content: "\201C"; color: var(--ax-blood); margin-right: 0.05em; }
.wp-block-quote.is-style-ax-scream p::after { content: "\201D"; color: var(--ax-blood); }
.wp-block-quote.is-style-ax-scream cite {
	display: block;
	margin-top: 1rem;
	font-family: var(--wp--preset--font-family--label);
	font-style: normal;
	color: var(--ax-smoke);
	font-size: 1.1rem;
}

/* ---------------------------------------------------------------- footer */
.ax-footer { border-top: 1px solid rgb(178 0 24 / 0.35); }
.ax-footer .wp-block-social-links .wp-social-link { transition: transform 0.2s, color 0.2s; }
.ax-footer .wp-block-social-links .wp-social-link:hover { transform: translateY(-3px) rotate(-6deg); color: var(--ax-gore) !important; }
.ax-footer small, .ax-small { color: var(--ax-smoke); font-size: 0.85rem; }

/* ------------------------------------------------------------- utilities */
.ax-section { position: relative; }
.ax-bg-crypt { background: linear-gradient(180deg, var(--ax-void), var(--ax-crypt) 30%, var(--ax-crypt) 70%, var(--ax-void)); }

/* Editor: no WebGL in the editor, show a hint so people know it's switched on */
.editor-styles-wrapper .is-style-ax-gore::before,
.editor-styles-wrapper .is-style-ax-smoke::before {
	content: "WebGL on the live site";
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 5;
	font: 600 10px/1 system-ui, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 6px;
	background: var(--ax-blood);
	color: var(--ax-bone);
	pointer-events: none;
}
.editor-styles-wrapper .ax-header { position: relative; }

/* Flipped release row: cover on the right on desktop, still first on mobile */
@media (min-width: 782px) {
	.ax-flip > .wp-block-columns { flex-direction: row-reverse; }
	.ax-flip > .ax-index { right: auto; left: 0; }
}
.ax-page:not(.ax-blank) { min-height: 70vh; }
