/**
 * Curlo Text — free-form copy section layout glue.
 */

.curlo-text {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	color: var(--curlo-text);
}

.curlo-container .curlo-text.alignfull,
.entry-content .curlo-text.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.curlo-text--pro,
.curlo-text--code {
	background-color: var(--curlo-code-bg, #0b0e14);
	color: var(--curlo-code-text, #e6edf3);
}

.curlo-text--pro {
	background-image:
		radial-gradient(650px circle at 12% -5%, rgb(20 53 31 / 0.22), transparent 60%),
		radial-gradient(700px circle at 100% 10%, rgb(16 35 58 / 0.22), transparent 55%);
}

.curlo-text--ink { background: var(--curlo-ink); }
.curlo-text--surface { background: var(--curlo-surface); }
.curlo-text--surface-2 { background: var(--curlo-surface-2); }

.curlo-text__inner {
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.curlo-text--width-default .curlo-text__inner {
	max-width: 1100px;
}

.curlo-text--width-narrow .curlo-text__inner {
	max-width: 720px;
}

.curlo-text--width-wide .curlo-text__inner {
	max-width: 1280px;
}

.curlo-text--align-center .curlo-text__body {
	text-align: center;
}

.curlo-text--align-right .curlo-text__body {
	text-align: right;
}

.curlo-text--align-justify .curlo-text__body {
	text-align: justify;
}

.curlo-text__head {
	margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
}

.curlo-text__head .curlo-eyebrow {
	margin: 0 0 0.75rem;
}

.curlo-text--pro .curlo-text__head .curlo-eyebrow,
.curlo-text--code .curlo-text__head .curlo-eyebrow {
	color: var(--curlo-green, #4ade80);
}

.curlo-text__title {
	margin: 0;
	font-family: var(--curlo-font-sans, Inter, sans-serif);
	font-size: clamp(1.55rem, 1.15rem + 1.4vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: inherit;
}

.curlo-text__body {
	font-family: var(--curlo-font-sans, Inter, sans-serif);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
	line-height: 1.7;
	color: inherit;
}

.curlo-text__body > *:first-child {
	margin-top: 0;
}

.curlo-text__body > *:last-child {
	margin-bottom: 0;
}

.curlo-text__body p,
.curlo-text__body ul,
.curlo-text__body ol {
	margin: 0 0 1.1rem;
	color: var(--curlo-muted, #5b6675);
}

.curlo-text--pro .curlo-text__body p,
.curlo-text--pro .curlo-text__body ul,
.curlo-text--pro .curlo-text__body ol,
.curlo-text--code .curlo-text__body p,
.curlo-text--code .curlo-text__body ul,
.curlo-text--code .curlo-text__body ol {
	color: var(--curlo-code-muted, #7e8ca0);
}

.curlo-text__body h2,
.curlo-text__body h3,
.curlo-text__body h4 {
	color: inherit;
	margin: 1.75rem 0 0.65rem;
	letter-spacing: -0.02em;
}

.curlo-text__body a {
	color: var(--curlo-primary-ink, #15803d);
}

.curlo-text--pro .curlo-text__body a,
.curlo-text--code .curlo-text__body a {
	color: var(--curlo-green, #4ade80);
}

.curlo-text__body ul,
.curlo-text__body ol {
	padding-left: 1.25rem;
}

.curlo-text__body .wp-block-image,
.curlo-text__body figure {
	margin: 1.5rem 0;
}

.curlo-text__body .wp-block-image img,
.curlo-text__body figure img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--curlo-radius, 8px);
}

.curlo-text__body .wp-block-image figcaption,
.curlo-text__body figure figcaption {
	margin-top: 0.5rem;
	font-family: var(--curlo-font-mono, "JetBrains Mono", monospace);
	font-size: 0.8rem;
	color: var(--curlo-muted, #5b6675);
}

.curlo-text--pro .curlo-text__body .wp-block-image figcaption,
.curlo-text--pro .curlo-text__body figure figcaption,
.curlo-text--code .curlo-text__body .wp-block-image figcaption,
.curlo-text--code .curlo-text__body figure figcaption {
	color: var(--curlo-code-muted, #7e8ca0);
}

.curlo-text__body .wp-block-columns {
	margin: 1.5rem 0;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
}

.curlo-text__body .wp-block-column > *:first-child {
	margin-top: 0;
}

.curlo-text__body .wp-block-column > *:last-child {
	margin-bottom: 0;
}

.curlo-text__body .wp-block-media-text {
	margin: 1.5rem 0;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: center;
}

.curlo-text__body .wp-block-media-text .wp-block-media-text__media img {
	border-radius: var(--curlo-radius, 8px);
}

.curlo-text__body .wp-block-media-text .wp-block-media-text__content {
	padding: 0;
}

.curlo-text__body .wp-block-media-text .wp-block-media-text__content > *:first-child {
	margin-top: 0;
}

.curlo-text__body .wp-block-media-text .wp-block-media-text__content > *:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.curlo-text__body .wp-block-columns {
		flex-direction: column;
	}
}

.curlo-text__body .curlo-btn {
	margin-top: 0.35rem;
}

.curlo-text-editor__row {
	display: grid;
	gap: 0.4rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid #ddd;
}
