/*
 * Llano 26 — content styles (one source for the site AND the block editor).
 *
 * On the site these apply inside `.llano-content` (page and product text).
 * In the editor, functions.php feeds this same file to the editor canvas,
 * swapping `.llano-content` for the editor's own wrapper, so what you write
 * looks the same in both places. Edit here, never in two places.
 */

.llano-content {
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
}

/* Vertical rhythm between blocks */
.llano-content > * { margin-top: 0; margin-bottom: 0; }
.llano-content > * + * { margin-top: 1em; }
.llano-content > :is(h1, h2, h3, h4, h5, h6) { margin-top: 1.6em; }
.llano-content > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
.llano-content > :is(h1, h2, h3, h4, h5, h6) + * { margin-top: .6em; }

/* Headings — light display type, like the rest of the site */
.llano-content :is(h1, h2, h3, h4) {
	font-family: var(--display);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
}
.llano-content h1 { font-size: 64px; letter-spacing: -0.04em; }
.llano-content h2 { font-size: 44px; }
.llano-content h3 { font-size: 28px; }
.llano-content h4 { font-size: 20px; letter-spacing: -0.02em; }
.llano-content :is(h5, h6) {
	font-family: var(--sans); font-size: 12px; font-weight: 500;
	letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}

/* Text */
.llano-content p { margin: 0; }
.llano-content strong, .llano-content b { font-weight: 600; }
.llano-content a:not(.wp-block-button__link) {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.llano-content a:not(.wp-block-button__link):hover { text-decoration-color: var(--ink-2); }
.llano-content .has-small-font-size { font-size: 14px; }
.llano-content .has-large-font-size { font-size: 22px; line-height: 1.4; }

/* Fixed sizes (not tied to window width) so the editor canvas, which is narrower
   than a browser window, shows headings at exactly the size the site does. */
@media (max-width: 900px) {
	.llano-content h1 { font-size: 48px; }
	.llano-content h2 { font-size: 34px; }
	.llano-content h3 { font-size: 24px; }
	.llano-content blockquote, .llano-content .wp-block-quote { font-size: 24px; }
}
@media (max-width: 640px) {
	.llano-content h1 { font-size: 40px; }
	.llano-content h2 { font-size: 30px; }
	.llano-content h3 { font-size: 22px; }
	.llano-content blockquote, .llano-content .wp-block-quote { font-size: 22px; }
}

/* Lists */
.llano-content ul, .llano-content ol { padding-left: 1.3em; }
.llano-content ul { list-style: disc; }
.llano-content ol { list-style: decimal; }
.llano-content li + li { margin-top: .35em; }
.llano-content li::marker { color: var(--ink-2); }

/* Quotes */
.llano-content blockquote,
.llano-content .wp-block-quote {
	margin: 1.4em 0; padding: 0 0 0 1em;
	border-left: 1px solid var(--ink);
	font-family: var(--display); font-weight: 300;
	font-size: 30px; line-height: 1.2; letter-spacing: -0.02em;
}
.llano-content blockquote > *,
.llano-content .wp-block-quote > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.llano-content blockquote > * + *,
.llano-content .wp-block-quote > * + * { margin-top: .6em; }
.llano-content blockquote cite,
.llano-content .wp-block-quote cite {
	display: block; margin-top: .8em;
	font-family: var(--sans); font-size: 13px; font-style: normal; letter-spacing: 0; color: var(--ink-2);
}

/* Media */
.llano-content img { max-width: 100%; height: auto; }
.llano-content .wp-block-image img { border-radius: var(--radius); }
.llano-content figcaption, .llano-content .wp-element-caption {
	margin-top: .6em; font-size: 13px; color: var(--ink-2); text-align: left;
}

/* Rules and tables */
.llano-content hr, .llano-content .wp-block-separator {
	border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; opacity: 1;
}
.llano-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.llano-content th, .llano-content td { padding: 10px 12px 10px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.llano-content thead th {
	font-size: 11px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
	color: var(--ink-2); border-bottom-color: var(--ink);
}

/* Buttons block — identical to the theme's .btn / .btn--ghost. Colours chosen in the editor still win. */
.llano-content .wp-block-buttons { gap: 10px; }
.llano-content .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 22px;
	border: 0; border-radius: 999px;
	font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
	text-decoration: none; white-space: nowrap;
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}
.llano-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--ink); }
.llano-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-text-color) { color: var(--paper); }
.llano-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover { background: #333; }
.llano-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.llano-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) { color: var(--ink); }
.llano-content .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.llano-content .wp-block-button .wp-block-button__link:active { transform: scale(.97); }
