/*
 * AI Shorts theme styles (candy-ai-shorts.net).
 * Colors, fonts and spacing come from theme.json presets (var(--wp--preset--*)).
 */

:root {
	--as-base: var(--wp--preset--color--base);
	--as-surface: var(--wp--preset--color--surface);
	--as-surface-2: var(--wp--preset--color--surface-2);
	--as-border: var(--wp--preset--color--border);
	--as-text: var(--wp--preset--color--contrast);
	--as-muted: var(--wp--preset--color--muted);
	--as-accent: var(--wp--preset--color--accent);
	--as-accent-strong: var(--wp--preset--color--accent-strong);
	--as-spicy: var(--wp--preset--color--spicy);
	--as-candy: var(--wp--preset--gradient--candy);
	--as-display: var(--wp--preset--font-family--display);
	--as-radius-s: var(--wp--custom--radius--small);
	--as-radius-m: var(--wp--custom--radius--medium);
	--as-radius-l: var(--wp--custom--radius--large);
	--as-header-h: var(--wp--custom--header-height);
	--as-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--as-accent); color: var(--as-base); }

:where(a, button, summary, input, [tabindex]):focus-visible {
	outline: 2px solid var(--as-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* Template parts sit flush: spacing is handled by sections. */
.wp-site-blocks > * { margin-block-start: 0; }

img { height: auto; }

/* ---------- Header ---------- */

.as-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/*
 * The frosted background lives on a pseudo-element: a backdrop-filter on the
 * header itself would become the containing block of the fixed mobile menu
 * overlay, trapping it inside the 68px header (page content then painted over it).
 */
.as-site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(10, 12, 20, .78);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	pointer-events: none;
}
.admin-bar .as-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .as-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .as-site-header { top: 0; } }

.as-header__inner { min-height: var(--as-header-h); gap: 1rem; }
.as-header__right { gap: clamp(.75rem, 2vw, 1.75rem); }
.as-nav .wp-block-navigation__container { gap: clamp(1rem, 2vw, 1.75rem); }
.as-nav .wp-block-navigation-item__content { padding-block: .35rem; }
.as-nav .wp-block-navigation-item__content:hover { color: var(--as-accent); }
.as-nav .current-menu-item > .wp-block-navigation-item__content,
.as-nav [aria-current="page"] { color: var(--as-accent); }
/* Mobile menu overlay */
.as-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 !important;
	background:
		radial-gradient(90% 50% at 100% 0%, rgba(255, 84, 112, .18), transparent 70%),
		var(--as-base) !important;
}
.as-nav .is-menu-open .wp-block-navigation__responsive-close { max-width: none; min-height: 100%; }
.as-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	min-height: 100%;
	padding: calc(var(--as-header-h) + .5rem) clamp(1rem, 6vw, 2rem) 2rem;
}
/* Close button sits exactly where the hamburger was. */
.as-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: calc((var(--as-header-h) - 24px) / 2);
	right: var(--as-close-right, clamp(1rem, 4vw, 2rem));
}
.admin-bar .as-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(46px + (var(--as-header-h) - 24px) / 2); }
@media (min-width: 783px) { .admin-bar .as-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: calc(32px + (var(--as-header-h) - 24px) / 2); } }
.as-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
	align-items: stretch !important;
}
.as-nav .is-menu-open .wp-block-navigation__container {
	align-items: stretch !important;
	width: 100%;
	gap: 0 !important;
	font-family: var(--as-display);
	font-size: 1.625rem;
	font-weight: 700;
}
.as-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--as-border); }
.as-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex !important;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.05rem 0 !important;
}
.as-nav .is-menu-open .wp-block-navigation-item:not(.as-nav-cta) .wp-block-navigation-item__content::after {
	content: "→";
	color: var(--as-accent);
	font-size: 1.25rem;
}
/* CTA item: hidden in the desktop bar (the header has its own button), a big button in the overlay */
.as-nav .wp-block-navigation-item.as-nav-cta { display: none; }
.as-nav .is-menu-open .wp-block-navigation-item.as-nav-cta { display: block; margin-top: 1.75rem; border: 0; }
.as-nav .is-menu-open .as-nav-cta .wp-block-navigation-item__content {
	justify-content: center;
	padding: 1rem 1.5rem !important;
	border-radius: 999px;
	background: var(--as-accent-strong);
	color: #fff !important;
	font-size: 1.125rem;
	box-shadow: 0 12px 34px -12px rgba(255, 84, 112, .85);
}
.as-nav .is-menu-open .as-nav-cta .wp-block-navigation-item__content::after {
	content: "18+ · continues on candy.ai";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1.75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 500;
	color: var(--as-muted);
	text-align: center;
}
.as-nav .is-menu-open .as-nav-cta { position: relative; }
.as-nav .wp-block-navigation__responsive-container-open,
.as-nav .wp-block-navigation__responsive-container-close { color: var(--as-text); }
.as-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
	outline: none;
	color: var(--as-accent);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .25em;
}

.as-btn-sm .wp-block-button__link {
	padding: .55rem 1.05rem;
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 380px) {
	.as-header__cta .wp-block-button__link { padding: .5rem .8rem; font-size: .8125rem; }
}

/* ---------- Logo (text, spans only) ---------- */

.as-logo {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	text-decoration: none;
	color: var(--as-text);
	font-family: var(--as-display);
	line-height: 1;
	white-space: nowrap;
}
.as-logo:hover { color: var(--as-text); }
.as-logo__mark {
	position: relative;
	flex: none;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: .55rem;
	background: var(--as-candy);
	box-shadow: 0 6px 18px -6px rgba(255, 84, 112, .8);
}
.as-logo__mark::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 0;
	height: 0;
	transform: translateX(1px);
	border-style: solid;
	border-width: .38rem 0 .38rem .62rem;
	border-color: transparent transparent transparent #fff;
}
.as-logo__word { font-size: 1.375rem; font-weight: 800; letter-spacing: -.03em; }
.as-logo__shorts {
	background: var(--as-candy);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.as-logo__by {
	font-family: var(--wp--preset--font-family--body);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--as-muted);
	padding-left: .55rem;
	border-left: 1px solid var(--as-border);
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: transform .2s var(--as-ease), box-shadow .2s var(--as-ease), background-color .2s var(--as-ease), border-color .2s var(--as-ease);
}
.wp-block-button:not(.is-style-ghost) .wp-block-button__link { box-shadow: 0 10px 30px -12px rgba(255, 84, 112, .75); }
.wp-block-button:not(.is-style-ghost) .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -12px rgba(255, 84, 112, .9); }

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--as-text);
	border: 1px solid rgba(255, 255, 255, .22);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .04);
	border-color: var(--as-accent);
	color: var(--as-text);
}
.as-btn-lg .wp-block-button__link { padding: 1rem 1.9rem; font-size: 1.0625rem; }

/* ---------- Small typographic helpers ---------- */

.as-eyebrow {
	margin: 0 0 .75rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--as-accent);
}
.as-eyebrow a { color: inherit; text-decoration: none; }
.as-eyebrow a:hover { color: var(--as-text); }

.as-section > .as-link-more { margin-top: 1.25rem; }
.as-link-more { margin: 0; font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.as-link-more a { text-decoration: none; }

/* Copy placeholders: clearly visible until the real text is in. */
.as-ph {
	position: relative;
	padding: .9rem 1rem .9rem 2.4rem;
	border: 1.5px dashed rgba(255, 84, 112, .5);
	border-radius: var(--as-radius-s);
	background: rgba(255, 84, 112, .06);
	color: #FFA3B3;
	font-size: .875rem;
	line-height: 1.5;
}
.as-ph::before {
	content: "✎";
	position: absolute;
	left: .95rem;
	top: .85rem;
	color: var(--as-accent);
}

/* ---------- Sections ---------- */

.as-section > .wp-block-heading:first-child,
.as-section__head .wp-block-heading { margin-top: 0; }
.as-section__head { margin-bottom: 1.25rem; gap: .5rem 1.5rem; }
.as-section__intro > .wp-block-heading { margin-top: 0; }
.as-section__intro > :not(.wp-block-heading),
.as-prose--left > * { max-width: 760px; }
.as-prose--left > .wp-block-heading:first-child { margin-top: 0; }
.as-section__head .wp-block-heading { margin-bottom: 0; }

/* ---------- Hero (home) ---------- */

.as-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: clamp(2.5rem, 7vw, 5.5rem);
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.as-hero::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto auto;
	width: min(900px, 120vw);
	aspect-ratio: 1;
	z-index: -1;
	background: radial-gradient(closest-side, rgba(255, 84, 112, .30), rgba(255, 149, 72, .14) 55%, transparent 75%);
	filter: blur(10px);
}
.as-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
}
.as-hero__cols { gap: clamp(2rem, 5vw, 4rem); }
.as-hero__title { margin: 0 0 1.25rem; font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.as-hero__lead { margin: 0 0 1.75rem; color: var(--as-muted); line-height: 1.55; max-width: 38ch; text-wrap: pretty; }
.as-hero__actions { gap: .75rem; margin-bottom: 1.5rem; }

.as-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--as-muted);
}
.as-checks li { display: inline-flex; align-items: center; gap: .5rem; }
.as-checks li::before {
	content: "";
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 50%;
	background: rgba(255, 84, 112, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23FF5470' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Hero poster (links to the series page, where episode 1 plays) */
.as-hero__media { display: flex; justify-content: center; }
.as-hero-poster { position: relative; width: min(330px, 78vw); transform: rotate(2.5deg); }
.as-hero-poster__img {
	margin: 0;
	aspect-ratio: 240 / 342;
	border-radius: 24px;
	overflow: hidden;
	background: var(--as-surface-2);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 30px 90px -40px rgba(255, 84, 112, .65);
}
.as-hero-poster__img a { position: relative; display: block; height: 100%; }
.as-hero-poster__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--as-ease); }
.as-hero-poster__img a::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: rgba(226, 38, 74, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5l9 5.5-9 5.5z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 50% no-repeat;
	box-shadow: 0 0 0 8px rgba(255, 84, 112, .22), 0 18px 40px -10px rgba(255, 84, 112, .8);
	transition: transform .25s var(--as-ease);
}
.as-hero-poster__img a:hover img { transform: scale(1.03); }
.as-hero-poster__img a:hover::after,
.as-hero-poster__img a:focus-visible::after { transform: scale(1.08); }
.as-hero-poster__tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 2;
	margin: 0 !important;
	padding: .3rem .7rem;
	border-radius: 999px;
	background: var(--as-accent-strong);
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
	box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6);
}

/* ---------- Series cards ---------- */

.as-series-grid .wp-block-post-template { gap: clamp(.75rem, 2vw, 1.25rem); }
.as-series-grid .wp-block-post { margin: 0; }

/* Home: one horizontal, swipeable row of posters. */
.as-series-grid--row .wp-block-post-template {
	display: grid !important;
	grid-auto-flow: column;
	grid-template-columns: none !important;
	grid-auto-columns: clamp(150px, 40vw, 220px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding-bottom: .75rem;
	scrollbar-width: thin;
	scrollbar-color: var(--as-border) transparent;
}
.as-series-grid--row .wp-block-post { scroll-snap-align: start; }
@media (max-width: 781px) {
	.as-series-grid--row .wp-block-post-template {
		max-width: none !important;
		margin-inline: calc(var(--wp--style--root--padding-left) * -1) calc(var(--wp--style--root--padding-right) * -1);
		padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
		scroll-padding-inline: var(--wp--style--root--padding-left);
	}
}

.as-card--series { position: relative; }
.as-poster {
	position: relative;
	aspect-ratio: 240 / 342;
	border-radius: var(--as-radius-m);
	overflow: hidden;
	background:
		radial-gradient(110% 60% at 20% 15%, rgba(255, 84, 112, .55), transparent 60%),
		radial-gradient(90% 60% at 90% 80%, rgba(255, 149, 72, .45), transparent 65%),
		var(--as-surface-2);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--wp--preset--shadow--card);
	transition: transform .35s var(--as-ease), box-shadow .35s var(--as-ease);
}
.wp-block-post:nth-child(4n+2) .as-poster { background: radial-gradient(110% 60% at 80% 15%, rgba(255, 178, 36, .5), transparent 60%), radial-gradient(90% 60% at 10% 85%, rgba(255, 84, 112, .45), transparent 65%), var(--as-surface-2); }
.wp-block-post:nth-child(4n+3) .as-poster { background: radial-gradient(110% 60% at 30% 80%, rgba(255, 149, 72, .6), transparent 60%), radial-gradient(90% 60% at 80% 20%, rgba(255, 84, 112, .35), transparent 65%), var(--as-surface-2); }
.wp-block-post:nth-child(4n+4) .as-poster { background: radial-gradient(110% 60% at 50% 10%, rgba(255, 84, 112, .4), transparent 60%), radial-gradient(90% 60% at 50% 95%, rgba(255, 178, 36, .35), transparent 65%), var(--as-surface-2); }

/* Play icon shown while there's no poster image. */
.as-poster:has(img)::before { display: none; }
.as-poster::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: rgba(10, 12, 20, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 55% no-repeat;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.as-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 12, 20, .55) 0%, transparent 28%, transparent 70%, rgba(10, 12, 20, .45) 100%);
	pointer-events: none;
}
.as-poster .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.as-poster .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.as-poster .as-badges { position: absolute; top: .6rem; left: .6rem; right: .6rem; z-index: 2; }

.as-card__title {
	margin: .7rem 0 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}
.as-card__title a { color: var(--as-text); text-decoration: none; }
.as-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--as-radius-m); }
.as-card__meta { margin: .25rem 0 0; font-size: .8125rem; color: var(--as-muted); }
.as-card--series:hover .as-poster { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(255, 84, 112, .5), 0 24px 50px -20px rgba(255, 84, 112, .55); }
.as-card--series:hover .as-card__title a { color: var(--as-accent); }
.as-card--series:focus-within .as-poster { box-shadow: 0 0 0 2px var(--as-accent); }

/* ---------- Badges & facts ---------- */

.as-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.as-badge {
	display: inline-block;
	padding: .28rem .55rem;
	border-radius: 999px;
	background: rgba(10, 12, 20, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .14);
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--as-text);
}
.as-badge--free { border-color: rgba(255, 84, 112, .6); color: #FF8A9D; }
.as-badge--spicy { background: var(--as-spicy); border-color: transparent; color: var(--as-base); }
.as-badge--new { background: #FF7A45; border-color: transparent; color: #fff; }
.as-poster .as-badges { justify-content: space-between; }
.as-badge--spicy::before {
	content: "";
	display: inline-block;
	width: .8em;
	height: .8em;
	margin: 0 .3em -.08em 0;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 1.5s.9 3.2-1.4 6.2c-1.4 1.8-3.6 3.3-3.6 6.3 0 .9.3 1.8.7 2.5-.9-.5-2.2-1.7-2.2-4 0 0-3 2.4-3 6.1C4 21.8 7.6 24 12 24s8-2.9 8-7.4c0-6.7-6.5-8.2-6.5-15.1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 1.5s.9 3.2-1.4 6.2c-1.4 1.8-3.6 3.3-3.6 6.3 0 .9.3 1.8.7 2.5-.9-.5-2.2-1.7-2.2-4 0 0-3 2.4-3 6.1C4 21.8 7.6 24 12 24s8-2.9 8-7.4c0-6.7-6.5-8.2-6.5-15.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.as-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 0 1rem;
	margin: 1.25rem 0 1.5rem;
	padding: 0;
}
.as-facts > div { padding: .7rem 0; border-bottom: 1px solid var(--as-border); }
.as-facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--as-muted); }
.as-facts dd { margin: .2rem 0 0; font-weight: 600; }

/* ---------- Steps / tiers / stars / answer cards ---------- */

.as-steps, .as-tiers, .as-stars { gap: clamp(.75rem, 2vw, 1.25rem); }

.as-step, .as-tier, .as-ask-card, .is-style-card {
	position: relative;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: var(--as-radius-l);
	background: var(--as-surface);
	border: 1px solid var(--as-border);
}
.as-step > *, .as-tier > *, .as-ask-card > * { margin-block: 0; }
.as-step > * + *, .as-tier > * + *, .as-ask-card > * + * { margin-top: .6rem; }

.as-step__num {
	font-family: var(--as-display);
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	background: var(--as-candy);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.as-tier__label {
	display: inline-block;
	padding: .25rem .6rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--as-muted);
}
.as-tier--featured {
	border-color: transparent;
	background:
		linear-gradient(var(--as-surface), var(--as-surface)) padding-box,
		var(--as-candy) border-box;
}
.as-tier--featured .as-tier__label { background: rgba(255, 84, 112, .16); color: #FF8A9D; }
.as-tier--spicy .as-tier__label { background: rgba(255, 178, 36, .16); color: var(--as-spicy); }

.as-star {
	display: grid;
	grid-template-columns: clamp(96px, 28%, 150px) 1fr;
	grid-template-rows: auto 1fr;
	column-gap: 1.25rem;
	align-items: start;
	padding: 1rem;
	border-radius: var(--as-radius-l);
	background: var(--as-surface);
	border: 1px solid var(--as-border);
}
.as-star > .as-portrait { grid-row: 1 / span 2; }
.as-star > .wp-block-heading { align-self: end; margin-top: .75rem !important; }
.as-portrait {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: var(--as-radius-l);
	overflow: hidden;
	background:
		radial-gradient(90% 60% at 30% 20%, rgba(255, 84, 112, .45), transparent 60%),
		radial-gradient(80% 60% at 80% 90%, rgba(255, 149, 72, .4), transparent 60%),
		var(--as-surface-2);
	border: 1px solid var(--as-border);
}
.as-portrait__ph { margin: 0; padding: .25rem .55rem; font-size: .6875rem !important; border: 1px dashed rgba(255, 255, 255, .35); border-radius: 999px; font-size: .75rem; color: rgba(255, 255, 255, .7); }
.as-star > .wp-block-heading { margin: 0 0 .25rem; }
.as-star > p { margin: 0; }

.as-asks__grid { gap: clamp(.75rem, 2vw, 1.25rem); }
.as-ask-card { transition: border-color .2s var(--as-ease), transform .2s var(--as-ease); }
.as-ask-card .wp-block-heading { font-size: 1.125rem; padding-right: 1.5rem; }
.as-ask-card .wp-block-heading a { color: var(--as-text); text-decoration: none; }
.as-ask-card .wp-block-heading a::after { content: ""; position: absolute; inset: 0; border-radius: var(--as-radius-l); }
.as-ask-card::after {
	content: "→";
	position: absolute;
	top: clamp(1.25rem, 2.5vw, 1.75rem);
	right: clamp(1.25rem, 2.5vw, 1.75rem);
	color: var(--as-accent);
	font-weight: 700;
	transition: transform .2s var(--as-ease);
}
.as-ask-card:hover { border-color: rgba(255, 84, 112, .55); transform: translateY(-2px); }
.as-ask-card:hover::after { transform: translateX(3px); }

/* ---------- Creators (digital twins) ---------- */

.as-creators {
	list-style: none;
	margin: 0;
	padding: 0 0 .75rem;
	margin-top: 1.5rem !important;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(170px, 44vw, 260px);
	gap: clamp(.75rem, 2vw, 1.25rem);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--as-border) transparent;
}
@media (max-width: 781px) {
	/* Full-bleed swipe row; beats the !important auto margins WP puts on .alignwide. */
	.as-section .as-creators.alignwide {
		max-width: none !important;
		margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
		margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
	}
	.as-creators {
		padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
		scroll-padding-inline: var(--wp--style--root--padding-left);
	}
}
.as-creator { scroll-snap-align: start; margin: 0 !important; }
.as-creator__link {
	position: relative;
	display: block;
	aspect-ratio: 3 / 5;
	border-radius: 22px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: var(--as-surface-2);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), var(--wp--preset--shadow--card);
	transition: transform .35s var(--as-ease), box-shadow .35s var(--as-ease);
}
.as-creator__link:hover,
.as-creator__link:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--as-accent), 0 24px 50px -20px rgba(255, 84, 112, .6); }
.as-creator__media { position: absolute; inset: 0; display: block; }
.as-creator__img,
.as-creator__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-creator__video { opacity: 0; transition: opacity .35s var(--as-ease); }
.as-creator.is-playing .as-creator__video { opacity: 1; }
.as-creator__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background:
		radial-gradient(90% 55% at 30% 20%, rgba(255, 84, 112, .5), transparent 60%),
		radial-gradient(80% 55% at 80% 85%, rgba(255, 149, 72, .45), transparent 60%),
		var(--as-surface-2);
	font-size: .75rem;
	color: rgba(255, 255, 255, .7);
}
.as-creator__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(6, 8, 14, .88) 100%);
	pointer-events: none;
}
.as-creator__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: grid;
	gap: .2rem;
	padding: 1rem 1.1rem 1.1rem;
}
.as-creator__name {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-family: var(--as-display);
	font-size: clamp(1.125rem, 2.2vw, 1.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.as-verified {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	border-radius: 50%;
	background: var(--as-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}
.as-creator__ig { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 600; opacity: .92; }
.as-ig {
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.as-creator { position: relative; }
.as-creator__body { padding-bottom: 2.6rem; }
/* Internal link to the creator's series, laid over the bottom of the card (outside the card link). */
.as-creator__series {
	position: absolute;
	left: 1.1rem;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 4;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #FFB0BE;
	text-decoration: none;
}
.as-creator__series:hover { color: #fff; text-decoration: underline; }

/* Highlighted word in section headings ("Starring" Candy Creators) */
.wp-block-heading mark.has-accent-color { background: none; }

/* ---------- CTA band ---------- */

.as-cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
	border-radius: 28px;
	border: 1px solid transparent;
	background:
		radial-gradient(80% 120% at 50% 0%, rgba(255, 84, 112, .22), transparent 70%) padding-box,
		linear-gradient(var(--as-surface), var(--as-surface)) padding-box,
		var(--as-candy) border-box;
}
.as-cta-band__title { margin-top: 0; font-size: var(--wp--preset--font-size--xx-large); }
.as-cta-band__note { margin-bottom: 0; color: var(--as-muted); letter-spacing: .04em; }

/* ---------- Question pages ---------- */

.as-page__head { margin-bottom: 1.5rem; }
.as-page__title { margin: 0; text-wrap: balance; }

.as-answer {
	margin-block: 0 2.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--as-radius-m);
	background: linear-gradient(135deg, rgba(255, 84, 112, .10), rgba(255, 149, 72, .06)), var(--as-surface);
	border: 1px solid rgba(255, 84, 112, .35);
}
.as-answer > * { margin: 0; }
.as-answer__label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--as-accent); margin-bottom: .4rem; }
.as-answer__text { font-size: var(--wp--preset--font-size--large); line-height: 1.55; }

.as-prose { color: #E3E7F1; }
.as-prose > h2 { margin-top: 3rem; }
.as-prose > h3 { margin-top: 2rem; }
.as-prose li + li { margin-top: .35rem; }
.as-prose strong { color: var(--as-text); }
.as-prose .wp-block-table table { border-collapse: collapse; width: 100%; }
.as-prose .wp-block-table th,
.as-prose .wp-block-table td { padding: .7rem .9rem; border: 1px solid var(--as-border); text-align: left; vertical-align: top; }
.as-prose .wp-block-table thead th { background: var(--as-surface); font-family: var(--as-display); }
.as-prose .wp-block-table figcaption { color: var(--as-muted); font-size: var(--wp--preset--font-size--small); }

/* ---------- FAQ ---------- */

.as-faq { margin-top: 3.5rem; }
.as-faq > .wp-block-heading { margin-bottom: .75rem; }
.as-faq .wp-block-details {
	margin: 0;
	border-bottom: 1px solid var(--as-border);
}
.as-faq .wp-block-details summary {
	position: relative;
	padding: 1.1rem 2.75rem 1.1rem 0;
	list-style: none;
	cursor: pointer;
	font-family: var(--as-display);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
}
.as-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.as-faq .wp-block-details summary::after {
	content: "";
	position: absolute;
	right: .35rem;
	top: 50%;
	width: 1.6rem;
	height: 1.6rem;
	margin-top: -.8rem;
	border-radius: 50%;
	background: rgba(255, 84, 112, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23FF5470' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 55% no-repeat;
	transition: transform .25s var(--as-ease);
}
.as-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.as-faq .wp-block-details summary:hover { color: var(--as-accent); }
.as-faq .wp-block-details > :not(summary) { margin: 0 0 1.1rem; color: var(--as-muted); }

/* ---------- Series page ---------- */

.as-series__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.as-series__hero::before {
	content: "";
	position: absolute;
	inset: -30% auto auto -10%;
	z-index: -1;
	width: min(800px, 110vw);
	aspect-ratio: 1;
	background: radial-gradient(closest-side, rgba(255, 84, 112, .22), rgba(255, 149, 72, .10) 55%, transparent 75%);
}
.as-series__cols { gap: clamp(1.5rem, 5vw, 4rem); }
.as-series__media .as-poster { max-width: 340px; margin-inline: auto; }
.as-series__title { margin: 0; }
.as-series__excerpt { color: var(--as-muted); margin-bottom: 1.5rem; }
.as-series__excerpt p { margin: 0; }
.as-series .as-prose { padding-top: var(--wp--preset--spacing--60); }
.as-series .wp-block-buttons { gap: .75rem; }

/* ---------- Series page: poster + episode 1 player ---------- */

.as-player { position: relative; max-width: 340px; margin-inline: auto; }
.as-player__stage { transition: aspect-ratio .35s var(--as-ease); }
.as-player__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-player__play {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	align-content: center;
	gap: .9rem;
	width: 100%;
	padding: 0;
	border: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 14, .55) 100%);
	color: #fff;
	cursor: pointer;
	font: inherit;
}
.as-player__icon {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--as-accent-strong) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5l9 5.5-9 5.5z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 50% no-repeat;
	box-shadow: 0 0 0 8px rgba(255, 84, 112, .22), 0 18px 40px -10px rgba(255, 84, 112, .8);
	transition: transform .25s var(--as-ease), box-shadow .25s var(--as-ease);
}
.as-player__label {
	padding: .35rem .8rem;
	border-radius: 999px;
	background: rgba(10, 12, 20, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.as-player__play:hover .as-player__icon,
.as-player__play:focus-visible .as-player__icon { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(255, 84, 112, .25), 0 22px 50px -10px rgba(255, 84, 112, .9); }
.as-player__lock {
	position: absolute;
	left: .75rem;
	right: .75rem;
	bottom: .75rem;
	z-index: 3;
	padding: .6rem .8rem;
	border-radius: var(--as-radius-s);
	background: rgba(10, 12, 20, .78);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: .8125rem;
	font-weight: 600;
	text-align: center;
}
.as-player.is-playing .as-player__stage { aspect-ratio: 9 / 16; background: #000; }
.as-player.is-playing .as-player__stage::before,
.as-player.is-playing .as-player__stage::after,
.as-player.is-playing .as-player__play,
.as-player.is-playing .as-player__img { display: none; }
.as-player__video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #000; }
.as-player__end {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: .8rem;
	padding: 1.5rem;
	border-radius: var(--as-radius-m);
	background: rgba(6, 8, 14, .86);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	text-align: center;
}
.as-player__end[hidden] { display: none; }
.as-player__end-title { margin: 0; font-family: var(--as-display); font-size: 1.5rem; font-weight: 800; }
.as-player__cta { text-decoration: none; }
.as-player__replay { border: 0; background: none; color: var(--as-muted); font: inherit; font-size: var(--wp--preset--font-size--small); text-decoration: underline; cursor: pointer; }
.as-player__end-note { margin: 0; font-size: .75rem; color: var(--as-muted); }
.as-series__media .as-player .as-poster { max-width: none; }

/* Creators without a clip: slow "Ken Burns" zoom on hover instead. */
.as-creator:not(.has-video) .as-creator__img { transition: transform 5s cubic-bezier(.2, .6, .3, 1); transform-origin: 50% 30%; }
.as-creator:not(.has-video) .as-creator__link:hover .as-creator__img,
.as-creator:not(.has-video) .as-creator__link:focus-visible .as-creator__img { transform: scale(1.12) translateY(-1.5%); }

/* ---------- Footer ---------- */

.as-site-footer { border-top: 1px solid rgba(255, 255, 255, .06); }
.as-footer__cols { gap: clamp(1.5rem, 4vw, 3rem); }
.as-footer__title {
	margin: 0 0 .75rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--as-muted);
}
.as-footer__title:not(:first-child) { margin-top: 1.75rem; }
.as-footer__links { list-style: none; margin: 0; padding: 0; font-size: var(--wp--preset--font-size--small); }
.as-footer__links li + li { margin-top: .45rem; }
.as-footer__links a { color: var(--as-text); text-decoration: none; }
.as-footer__links a:hover { color: var(--as-accent); }
.as-footer .as-logo { margin-bottom: 1rem; }
.as-footer__legal {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: 1.5rem;
	border-top: 1px solid var(--as-border);
	gap: .5rem 2rem;
}
.as-footer__legal p { margin: 0; max-width: 70ch; }

/* ---------- 18+ notice ---------- */

.as-age {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	place-items: center;
	padding: 1rem;
	background: rgba(6, 8, 14, .82);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.as-age-pending { overflow: hidden; }
.as-age-pending .as-age { display: grid; }
.as-age__panel {
	width: min(440px, 100%);
	padding: clamp(1.5rem, 5vw, 2.25rem);
	border-radius: var(--as-radius-l);
	background: var(--as-surface);
	border: 1px solid var(--as-border);
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 84, 112, .12);
	text-align: center;
}
.as-age__badge {
	display: inline-grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--as-candy);
	font-family: var(--as-display);
	font-size: 1.125rem;
	font-weight: 800;
	color: #fff;
	box-shadow: 0 10px 30px -10px rgba(255, 84, 112, .8);
}
.as-age__title { margin: 1rem 0 .5rem; font-family: var(--as-display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.as-age__desc { margin: 0 0 1.5rem; color: var(--as-muted); font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.as-age__actions { display: grid; gap: .75rem; justify-items: center; }
.as-age__enter { width: 100%; border: 0; cursor: pointer; }
.as-age__leave { color: var(--as-muted); font-size: var(--wp--preset--font-size--small); }
.as-age__leave:hover { color: var(--as-text); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.as-hero-poster { transform: none; }
}

@media (max-width: 781px) {
	.as-hero-poster { transform: none; width: min(240px, 64vw); }
	.as-hero__media { margin-top: .5rem; }
}
@media (max-width: 599px) {
	.as-hero__actions,
	.as-series__info .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.as-hero__actions .wp-block-button,
	.as-series__info .wp-block-button { width: 100%; }
	.as-hero__actions .wp-block-button__link,
	.as-series__info .wp-block-button__link { display: block; width: 100%; text-align: center; }
}
@media (max-width: 781px) {
	.as-series__media .as-poster { max-width: min(240px, 64vw); }
}

/* Inline placeholder (e.g. episode titles still to come) */
.as-ph-inline { padding: 0 .35rem; border: 1px dashed rgba(255, 84, 112, .5); border-radius: 4px; color: #FFA3B3; font-size: .875em; }
.as-episodes { list-style: none; padding: 0; }
.as-episodes li { padding: .75rem 0; border-bottom: 1px solid var(--as-border); margin: 0 !important; }

/* Price line inside the "Members" tier card */
.as-tier__price { margin-top: 1rem !important; padding-top: .9rem; border-top: 1px solid var(--as-border); font-size: var(--wp--preset--font-size--small); color: var(--as-muted); }
.as-tier__price strong { color: var(--as-text); font-size: 1.125rem; }

/* Legal drafts: visible review note (removed when the client signs off). */
.as-draft { padding: .9rem 1rem; border: 1.5px dashed rgba(255, 178, 36, .6); border-radius: var(--as-radius-s); background: rgba(255, 178, 36, .07); color: #FFD58A; font-size: .875rem; line-height: 1.5; }
.as-legal code { padding: .1rem .35rem; border-radius: 4px; background: var(--as-surface-2); font-size: .9em; }

/* Tables on small screens: compact, horizontally scrollable with an edge shadow hint. */
@media (max-width: 600px) {
	.as-prose .wp-block-table {
		background:
			linear-gradient(90deg, var(--as-base) 30%, rgba(10, 12, 20, 0)) left / 24px 100% no-repeat local,
			linear-gradient(270deg, var(--as-base) 30%, rgba(10, 12, 20, 0)) right / 24px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(255, 84, 112, .35), transparent) left / 10px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(255, 84, 112, .35), transparent) right / 10px 100% no-repeat scroll;
	}
	.as-prose .wp-block-table th,
	.as-prose .wp-block-table td { padding: .5rem .6rem; font-size: .8125rem; line-height: 1.4; }
	.as-prose .wp-block-table td:first-child { min-width: 9rem; }
}

@media (max-width: 781px) {
	.as-hero-poster__tag { top: .7rem; left: .7rem; padding: .25rem .55rem; font-size: .5625rem; letter-spacing: .04em; white-space: nowrap; }
}

/* ======================================================================
 * candy-ai-shorts.net design layer
 * ====================================================================== */

/* Header: solid night bar with a thin ember line; mobile puts CTA + menu on the right. */
.as-site-header { border-bottom: 0; }
.as-site-header::before { background: rgba(10, 12, 20, .9); }
.as-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 84, 112, .55) 30%, rgba(255, 149, 72, .45) 70%, transparent);
	pointer-events: none;
}
.as-nav .wp-block-navigation-item__content { font-weight: 500; letter-spacing: .01em; }
@media (max-width: 599px) {
	.as-header__right { gap: .6rem; }
	.as-header__right .as-nav { order: 2; }
	.as-header__right .as-header__cta { order: 1; }
	.as-header__cta .wp-block-button__link { padding: .5rem .8rem; font-size: .8125rem; white-space: nowrap; }
	.as-nav .wp-block-navigation__responsive-container-open { padding: 4px; margin-right: -4px; }
}
.as-nav .is-menu-open .as-nav-cta .wp-block-navigation-item__content { border-radius: 8px; }

/* Logo: round mark + "AI" chip */
.as-logo { gap: .5rem; }
.as-logo__mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: 0 6px 18px -6px rgba(255, 84, 112, .8); }
.as-logo__mark::after { border-width: .34rem 0 .34rem .56rem; transform: translateX(1.5px); }
.as-logo__word { font-size: 1.125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 370px) { .as-logo__word { font-size: .9375rem; } }

/* Buttons: rectangles, softer glow */
.wp-block-button:not(.is-style-ghost) .wp-block-button__link { box-shadow: 0 10px 26px -14px rgba(255, 84, 112, .9); }
.wp-block-button.is-style-ghost .wp-block-button__link { border-color: rgba(255, 255, 255, .18); }

/* Hero: ember light from the bottom left, fine line grid instead of dots */
.as-hero { border-bottom: 1px solid var(--as-border); }
.as-hero::before {
	inset: auto auto -45% -15%;
	width: min(980px, 130vw);
	background: radial-gradient(closest-side, rgba(255, 84, 112, .24), rgba(255, 149, 72, .08) 55%, transparent 75%);
}
.as-hero::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.as-hero__title { font-weight: 700; letter-spacing: -.04em; line-height: 1.04; }
.as-eyebrow { letter-spacing: .18em; }

/* Hero poster stack */
.as-hero__media { display: flex; justify-content: center; }
.as-stack { position: relative; width: min(440px, 88vw); aspect-ratio: 1 / 1.02; margin: 0 auto; }
.as-stack > .wp-block-image,
.as-stack__item {
	position: absolute;
	width: 56%;
	margin: 0 !important;
	aspect-ratio: 240 / 342;
	border-radius: var(--as-radius-l);
	overflow: hidden;
	background: var(--as-surface-2);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -28px rgba(0, 0, 0, .95);
}
.as-stack__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.as-stack__item a { position: relative; display: block; height: 100%; }
.as-stack__item--back-l { left: 0; top: 11%; z-index: 1; transform: rotate(-7deg) scale(.86); filter: brightness(.55) saturate(.9); }
.as-stack__item--back-r { right: 0; top: 11%; z-index: 2; transform: rotate(7deg) scale(.86); filter: brightness(.55) saturate(.9); }
.as-stack__item--front { left: 22%; top: 2%; z-index: 3; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .95), 0 30px 80px -40px rgba(255, 84, 112, .7); }
.as-stack__item--back-l a:hover img, .as-stack__item--back-r a:hover img { filter: brightness(1.4); }
.as-stack__item--front a::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: rgba(226, 38, 74, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5l9 5.5-9 5.5z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 50% no-repeat;
	box-shadow: 0 0 0 7px rgba(255, 84, 112, .2), 0 18px 40px -10px rgba(255, 84, 112, .8);
	transition: transform .25s var(--as-ease);
}
.as-stack__item--front a:hover::after,
.as-stack__item--front a:focus-visible::after { transform: scale(1.08); }
.as-stack__tag {
	position: absolute;
	left: 22%;
	bottom: 4%;
	z-index: 4;
	width: 56%;
	margin: 0 !important;
	padding: .45rem .6rem;
	border-radius: 6px;
	background: rgba(10, 12, 20, .82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, .12);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
}
@media (max-width: 781px) {
	.as-stack { width: min(340px, 86vw); }
	.as-hero__media { margin-top: 1rem; }
}

/* Series cards: title and facts sit on the poster */
.as-card--series .as-poster::after { background: linear-gradient(180deg, rgba(10, 12, 20, .5) 0%, transparent 26%, transparent 46%, rgba(6, 8, 14, .96) 100%); }
.as-card__title {
	position: absolute;
	left: .8rem;
	right: .8rem;
	bottom: 2.15rem;
	z-index: 3;
	margin: 0;
	font-size: .9375rem;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.as-card__title a { color: #fff; }
.as-card--series > .as-card__meta,
.as-card--series > .as-facts--meta,
.as-card--series > p:last-child {
	position: absolute;
	left: .8rem;
	right: .8rem;
	bottom: .75rem;
	z-index: 3;
	margin: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: .75rem;
	color: rgba(255, 255, 255, .72);
}
.as-poster img { transition: transform .5s var(--as-ease); }
.as-card--series:hover .as-poster { transform: none; box-shadow: 0 0 0 1px rgba(255, 84, 112, .6), 0 22px 46px -22px rgba(255, 84, 112, .55); }
.as-card--series:hover .as-poster img { transform: scale(1.04); }
.as-card--series:hover .as-card__title a { color: #fff; }
.as-badge { border-radius: 6px; }

/* Section rhythm: banded sections on the home */
.as-section--band { background: var(--as-surface); border-block: 1px solid var(--as-border); margin-top: var(--wp--preset--spacing--70) !important; }
.as-step { background: var(--as-base); }
.as-step__num {
	display: inline-block;
	padding-top: .55rem;
	border-top: 2px solid var(--as-accent);
	background: none;
	color: var(--as-accent);
	-webkit-text-fill-color: currentColor;
	font-family: var(--wp--preset--font-family--body);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .16em;
}

/* Answer box: accent bar instead of a full frame */
.as-answer {
	border: 0;
	border-left: 4px solid var(--as-accent);
	border-radius: 0 var(--as-radius-m) var(--as-radius-m) 0;
	background: var(--as-surface);
}

/* CTA band: horizontal card */
.as-cta-band {
	gap: 1.25rem 2rem;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
	border-radius: var(--as-radius-l);
	border: 1px solid rgba(255, 84, 112, .35);
	background: linear-gradient(110deg, rgba(255, 84, 112, .16), rgba(255, 149, 72, .06) 60%, transparent), var(--as-surface);
}
.as-cta-band__copy { flex: 1 1 340px; }
.as-cta-band__copy > * { margin-block: 0; }
.as-cta-band__copy > * + * { margin-top: .5rem; }
.as-cta-band__title { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.as-cta-band__action { text-align: center; }
.as-cta-band__action .as-cta-band__note { margin: .6rem 0 0; color: var(--as-muted); letter-spacing: .06em; text-transform: uppercase; }

/* Answer cards: four across */
.as-ask-card { background: var(--as-surface); }

/* Footer */
.as-site-footer { border-top: 0; }
.as-footer { background: linear-gradient(180deg, var(--as-surface) 0%, var(--as-base) 100%); border-top: 1px solid var(--as-border); }
.as-footer__top { gap: 1.5rem; padding-bottom: 2rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--as-border); }
.as-footer__brand > * { margin-block: 0; }
.as-footer__about { max-width: 48ch; margin-top: .85rem !important; }
.as-footer__cols { gap: clamp(1rem, 3vw, 2.5rem); }
@media (max-width: 781px) {
	.as-footer__cols { display: grid !important; grid-template-columns: 1fr 1fr; }
	.as-footer__cols > .wp-block-column { flex-basis: auto !important; }
}

/* Series page: info on the left, player on the right */
.as-series__cols { flex-direction: row-reverse; }
@media (max-width: 781px) { .as-series__cols { flex-direction: column; } }
.as-series__title { letter-spacing: -.03em; }

/* FAQ icon */
.as-faq .wp-block-details summary::after { border-radius: 6px; }

/* Creators without a series on this site: plain label instead of a link. */
.as-creator__series--chat { pointer-events: none; color: rgba(255, 255, 255, .7); }

/* Hub intro line */
.as-lead { font-size: var(--wp--preset--font-size--large); color: var(--as-muted); line-height: 1.55; }

/* Narrow phones: keep logo, CTA and menu on one comfortable line */
@media (max-width: 599px) {
	.as-header__inner .as-logo__word { font-size: 1.0625rem; }
	.as-header__inner .as-logo__mark { width: 1.35rem; height: 1.35rem; }
	.as-header__inner .as-logo__mark::after { border-width: .29rem 0 .29rem .48rem; }
	.as-header__right { gap: .45rem; }
	.as-header__cta .wp-block-button__link { padding: .45rem .7rem; font-size: .75rem; }
}
@media (max-width: 370px) {
	.as-header__inner .as-logo__word { font-size: .9375rem; }
	.as-header__cta .wp-block-button__link { padding: .4rem .55rem; font-size: .6875rem; }
}

/* Long series names on creator cards stay on one line */
.as-creator__series { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Home hero: H1 is the bare keyword, the promise sits right under it */
.as-hero__title + .as-hero__sub {
	margin: -.35rem 0 1.25rem;
	font-family: var(--as-display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--as-text);
	text-wrap: balance;
}
.as-hero__sub::first-letter { color: inherit; }

/* Seven menu items: tighten the bar on laptops and tablets before it collapses at 600px */
@media (max-width: 1180px) {
	.as-nav .wp-block-navigation__container { gap: clamp(.6rem, 1.4vw, 1.1rem); }
	.as-nav .wp-block-navigation-item__content { font-size: .875rem; }
}
/* Tablets: seven links don't fit, so the hamburger takes over up to 1023px (WordPress alone switches at 600px). */
@media (min-width: 600px) and (max-width: 1023px) {
	.as-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.as-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.as-nav .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; flex-direction: column; position: fixed; inset: 0; z-index: 100000; }
	.as-nav .is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
	.as-nav .is-menu-open .wp-block-navigation__container { flex-direction: column !important; }
	.as-header__right { gap: .6rem; }
	.as-header__right .as-nav { order: 2; }
	.as-header__right .as-header__cta { order: 1; }
	.as-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.625rem !important; }
	.as-nav .is-menu-open .wp-block-navigation__responsive-dialog { max-width: 560px; margin-inline: auto; }
}

/* Logo is text only: no mark */
.as-logo { gap: 0; }
.as-logo__mark { display: none; }

/*
 * Whole card is the link. Title and meta become grid items stacked over the poster instead of
 * absolutely positioned children, so the title link's ::after (inset: 0) resolves against the card
 * and covers the entire poster.
 */
.as-card--series { display: grid; }
.as-card--series > * { grid-area: 1 / 1; min-width: 0; }
.as-card--series > .as-poster { z-index: 0; }
.as-card__title { position: static; z-index: 3; align-self: end; margin: 0 .8rem 2.15rem; }
.as-card--series > .as-card__meta,
.as-card--series > .as-facts--meta,
.as-card--series > p:last-child { position: static; z-index: 3; align-self: end; margin: 0 .8rem .75rem; pointer-events: none; }
.as-card__title a::after { cursor: pointer; }
