/* ==========================================================
   ALLEGORY WIDGET — BASE STRUCTURAL STYLES
   Colors, typography and spacing are mostly driven by Elementor's
   Style tab controls (see widgets/class-allegory-widget.php).
   This file only holds structure, layout and fallbacks so the
   widget still looks right before any control is touched.
   ========================================================== */

.alw {
	--alw-grad-start: #5A2A74;
	--alw-grad-mid: #8A3E62;
	--alw-grad-end: #BC5130;

	overflow-x: clip;
}

.alw * {
	box-sizing: border-box;
}

.alw img {
	max-width: 100%;
	display: block;
}

/* ---------------- HERO ---------------- */

.alw-hero {
	position: relative;
	padding: 96px 24px 80px;
	background: linear-gradient(100deg, var(--alw-grad-start) 0%, var(--alw-grad-mid) 46%, var(--alw-grad-end) 100%);
	overflow: hidden;
}

.alw-hero__inner {
	max-width: 680px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 2;
}

.alw-hero__title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	line-height: 1.05;
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.alw-hero__lede {
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 38ch;
	margin: 0 auto;
}

.alw-hero__marks {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.alw-hero__mark {
	position: absolute;
	font-size: 7rem;
	opacity: 0.14;
	line-height: 1;
}

.alw-hero__mark--moon {
	top: -16px;
	left: 4%;
	color: #221329;
}

.alw-hero__mark--sun {
	bottom: -32px;
	right: 5%;
	color: #FBF6F2;
}

/* ---------------- INTRO STRIP ---------------- */

.alw-intro {
	padding: 48px 24px;
}

.alw-intro__text {
	max-width: 34rem;
	margin: 0 auto;
	text-align: center;
	font-size: 1.05rem;
	line-height: 1.75;
	font-style: italic;
}

/* ---------------- ENTRIES ---------------- */

.alw-entries-wrap {
	width: 100%;
}

.alw-entries {
	max-width: 1088px;
	margin: 0 auto;
	padding: 80px 24px;
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.alw-entry {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.alw-entry__figure {
	flex: none;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}

.alw-entry__numeral {
	display: block;
	font-size: 3rem;
	line-height: 1;
	margin-bottom: 12px;
}

.alw-entry__cover {
	width: 100%;
	aspect-ratio: 3 / 4.4;
	border: 1.5px dashed #4A3A52;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	overflow: hidden;
}

.alw-entry__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.alw-entry__cover-hint {
	font-size: 0.85rem;
	max-width: 9rem;
}

.alw-entry__body {
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	min-width: 0;
}

.alw-entry__eyebrow {
	font-size: 0.9rem;
	margin: 0 0 6px;
}

.alw-entry__title {
	font-size: 1.9rem;
	line-height: 1.2;
	margin: 0 0 18px;
}

.alw-entry__notes {
	font-size: 1rem;
	line-height: 1.75;
	max-width: 58ch;
	min-height: 96px;
	padding: 18px 20px;
	border-left: 3px solid #BC5130;
}

.alw-entry__notes p:first-child {
	margin-top: 0;
}

.alw-entry__notes p:last-child {
	margin-bottom: 0;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 780px) {
	.alw-hero {
		padding: 72px 20px 56px;
	}

	.alw-hero__mark {
		font-size: 4.5rem;
	}

	.alw-entry {
		gap: 24px;
	}

	.alw-entry__figure {
		max-width: 260px !important;
	}
}

/* ---------------- ACCESSIBILITY ---------------- */

@media (prefers-reduced-motion: reduce) {
	.alw * {
		transition: none !important;
	}
}

.alw :focus-visible {
	outline: 2px solid var(--alw-grad-end);
	outline-offset: 2px;
}
