/* ==========================================================================
   Clone baseline wrapper.

   The reference theme had no reset: her pages render on browser defaults.
   Inside .ek-skye every element is reverted to those defaults, so our base
   stylesheet cannot alter her look; her rules (scoped to .ek-skye-{page},
   one class more specific) then apply exactly as she wrote them.
   Invisible upgrades are re-added afterwards: focus ring, screen-reader text,
   placeholder badge.
   ========================================================================== */

.ek-skye {
	display: block;
	font-family: var(--ek-font-sans);
	font-size: 16px;
	line-height: normal;
	color: var(--ek-earth-dark);
}

.ek-skye :where(*) { all: revert; }

/* The reset above also undid base.css's line wrapping (3 Nov sweep: 67 headings
   and lines ended on one word). Same rules again: headings and card titles
   balance their lines, paragraphs avoid a one-word last line. */
.ek-skye :is(h1, h2, h3, h4, h5, h6, .ek-continue__title, .order-edition__name) { text-wrap: balance; }
.ek-skye p { text-wrap: pretty; }

/* One shared edge (3 Nov): every page's wide container sits on the header and
   footer's edge (tokens.css). The post's centred reading column keeps its width. */
html .ek-skye .container-wide:not(.single-entry__wrap),
html .ek-skye-book .container { max-width: calc(var(--ek-grid) + 2 * var(--ek-edge)); padding-left: var(--ek-edge); padding-right: var(--ek-edge); }

/* Her header CSS forced border-box everywhere. */
.ek-skye *,
.ek-skye *::before,
.ek-skye *::after { box-sizing: border-box; }

.ek-skye :focus-visible { outline: 2px solid var(--ek-gold-ink); outline-offset: 2px; }

.ek-skye .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* A neutral frame in her palette where an image is still to come: no text. */
.ek-skye .ek-placeholder-frame {
	display: block;
	width: 100%;
	height: auto;
	background-color: var(--ek-frame-ground);
	background-image:
		linear-gradient(160deg, var(--ek-white-a55) 0%, var(--ek-white-a00) 55%),
		linear-gradient(0deg, var(--ek-earth-dark-a06) 0%, var(--ek-earth-dark-a00) 40%);
	border: 1px solid var(--ek-border);
	box-shadow: inset 0 0 0 10px var(--ek-linen), inset 0 0 0 11px var(--ek-frame-line);
}
.ek-skye .ek-placeholder-frame--cover     { aspect-ratio: 2 / 3; }
.ek-skye .ek-placeholder-frame--portrait  { aspect-ratio: 4 / 5; }
.ek-skye .ek-placeholder-frame--landscape { aspect-ratio: 3 / 2; }
.ek-skye .ek-placeholder-frame--hero      { aspect-ratio: 16 / 9; }
.ek-skye .ek-placeholder-frame--square    { aspect-ratio: 1 / 1; }

@media (prefers-reduced-motion: reduce) {
	.ek-skye *,
	.ek-skye *::before,
	.ek-skye *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Afrikaans terms keep one style inside her pages too ([ek_af] / ek_af()). */
.ek-skye .ek-af { font-style: normal; font-family: inherit; font-size: inherit; font-weight: 700; }
