/* ==========================================================================
   PAGE — Blog article, Structure 1
   --------------------------------------------------------------------------
   Loaded on single posts only, after every shared layer.

   Two widths run through this view. The hero, the icon row, the product
   profile and the gallery all use the container's full content width; the written article sits in a 760px reading column centred inside it.
   That column is the design's, and it is applied to the content wrapper's
   children rather than to the wrapper, so an editor never has to choose a width
   and the article blocks can opt back out to full width.

   The page ground is --color-cream, inherited from base/global.css. The Make
   source's pure white is not the Avallone surface and is deliberately not
   reproduced here.

   Latest from the Journal is a component shared with Structure 2 and lives in
   components/blog-latest.css.
   ========================================================================== */

.blog-single {
	padding-block: var(--space-lg) var(--space-2xl);
}

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

   Mobile stacks in reading order — image, category, title, rule. The two-column
   split arrives at 1024 with the design's 80px gap.
   -------------------------------------------------------------------------- */

.blog-single__hero {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin-block-end: var(--space-2xl);
}

.blog-single__hero-media {
	overflow: hidden;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-gray);
}

.blog-single__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center;
}

.blog-single__hero-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.blog-single__category {
	margin: 0 0 var(--space-xs);
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-primary-dark);
}

.blog-single__title {
	margin: 0;
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 32px;
	line-height: 1.18;
	letter-spacing: -0.01em;
	color: var(--color-ink);
}

.blog-single__divider {
	display: block;
	width: 96px;
	height: 2px;
	margin-block-start: var(--space-md);
	background-color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   THE READING COLUMN

   Every direct child of the content wrapper is held to the reading measure and
   centred. Blocks that are meant to span the page release themselves below.
   -------------------------------------------------------------------------- */

.blog-single__content > * {
	max-width: 760px;
	margin-inline: auto;
}

/*
 * Vertical rhythm between article elements. 24px is the paragraph-to-paragraph
 * step and the frame agrees, but it is not the whole rhythm: the lead is set
 * off further, a quote is a section break, and the wide blocks below open a
 * bigger one still. Measured off UI Final rather than assumed — the ink-to-ink
 * gaps there are 60px after the lead, 35px between paragraphs, 82px before the
 * quote and 125px between blocks.
 */
.blog-single__content > * + * {
	margin-block-start: var(--space-md);
}

/* The lead paragraph is a standfirst; what follows it starts a new beat. */
.blog-single__content > .is-style-avallone-lead + * {
	margin-block-start: var(--space-lg);
}

/* A quote interrupts the writing, so it is spaced as a break rather than a
   paragraph — the frame leaves roughly three times the paragraph step. */
.blog-single__content > * + .article-quote {
	margin-block-start: var(--space-2xl);
}

/*
 * Default body copy. The editor picks nothing to get this — a plain paragraph
 * inside an article is already correct.
 *
 * Direct children only. Every Avallone article block sits at this level and
 * styles its own type; a descendant selector would reach inside them and win
 * on specificity, so the profile's 14px label and the banner's cream eyebrow
 * would both come out as 18px body brown. The same reason applies to the
 * headings, lists and images below.
 */
.blog-single__content > p {
	font-family: var(--font-ui);
	font-weight: 400;
	font-size: 18px;
	line-height: 28px;
	color: var(--color-text);
}

/*
 * The lead. A registered Paragraph style rather than an automatic first-child
 * rule, so an article without one is not given a lead it did not ask for.
 */
.blog-single__content > p.is-style-avallone-lead {
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.6;
	color: var(--color-ink);
}

.blog-single__content > h2,
.blog-single__content > h3,
.blog-single__content > h4 {
	margin-block-start: var(--space-lg);
	font-family: var(--font-heading);
	font-style: normal;
	font-weight: 400;
	color: var(--color-ink);
}

.blog-single__content > h2 {
	font-size: 26px;
	line-height: 1.25;
}

.blog-single__content > h3 {
	font-size: 21px;
	line-height: 1.3;
}

.blog-single__content > h4 {
	font-size: 18px;
	line-height: 1.35;
}

.blog-single__content > ul,
.blog-single__content > ol {
	padding-inline-start: var(--space-md);
	font-family: var(--font-ui);
	font-size: 18px;
	line-height: 28px;
	color: var(--color-text);
}

.blog-single__content > ul > li + li,
.blog-single__content > ol > li + li {
	margin-block-start: var(--space-xs);
}

.blog-single__content > figure img,
.blog-single__content > img {
	height: auto;
	border-radius: var(--radius-button);
}

/*
 * The three wide article blocks. They carry their own internal layout and are
 * released from the reading measure; the quote stays in the column, because the
 * design keeps it in the flow of the writing.
 */
.blog-single__content > .article-icons,
.blog-single__content > .article-profile,
.blog-single__content > .article-gallery {
	max-width: none;
	margin-block-start: var(--space-3xl);
}

/* ==========================================================================
   >= 768px
   ========================================================================== */

@media (min-width: 768px) {

	.blog-single__title {
		font-size: 40px;
	}

	.blog-single__content > p.is-style-avallone-lead {
		font-size: 24px;
		line-height: 39px;
	}

}

/* ==========================================================================
   >= 1024px
   ========================================================================== */

@media (min-width: 1024px) {

	.blog-single__hero {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--grid-gap);
		align-items: center;
	}

	/*
	 * No photograph, no split — the header runs as one column, in the same
	 * measure as the writing beneath it. Centred rather than flush left: the
	 * article's text column is centred, and a title starting 276px to the left
	 * of its own first paragraph reads as a mistake.
	 */
	.blog-single__hero--plain {
		display: block;
		max-width: 760px;
		margin-inline: auto;
	}

	.blog-single__hero-image {
		aspect-ratio: 1 / 1;
	}

	/*
	 * The hero's right column is 616px, but the frame does not let the title
	 * fill it — it wraps to four lines with visible air to the right, and the
	 * widest of those lines is 447px. Anything from 450 to 540 reproduces that
	 * wrap exactly; 500 sits in the middle so a font-rendering difference
	 * cannot tip it into three lines. The eyebrow and rule keep the column.
	 */
	.blog-single__title {
		max-width: 500px;
		font-size: 48px;
		line-height: 1.17;
	}

	.blog-single__content {
		padding-block: var(--space-2xl) 0;
	}

	

}

/* ==========================================================================
   SHORT DESKTOP WINDOW (>= 1024 wide, <= 880 tall; 820 until 19.11.2026)
   --------------------------------------------------------------------------
   Client 04.11.2026, 13" laptop (~1414 x 645 CSS px; 122px header, 81 of it
   sticky). The hero's square photograph was 603 x 603 at 1414 x 645 — taller
   than the whole window under the header — so the article opened on a
   cut-off picture with nothing of the writing in view, and 160px (80 + 80)
   separated the hero from the lead. Here the hero starts 24 under the header
   and the photograph is held to the window: it keeps its column width and is
   cropped by object-fit (cover) to at most the height left under the header,
   never below 360. 475 tall at 1414 x 645, 430 at 1280 x 600, 598 at
   1440 x 768; where the square is already shorter (1024 x 768: 468) nothing
   changes. Hero -> lead 160 -> 96, wide blocks 120 -> 80 apart. Taller
   windows keep the frame's square and spacing above.
   ========================================================================== */

@media (min-width: 1024px) and (max-height: 880px) {

	.blog-single {
		padding-block-start: var(--space-md);
	}

	.blog-single__hero {
		margin-block-end: var(--space-lg);
	}

	.blog-single__hero-image {
		max-height: max(360px, 100svh - 170px);
	}

	.blog-single__content {
		padding-block-start: var(--space-lg);
	}

	.blog-single__content > .article-icons,
	.blog-single__content > .article-profile,
	.blog-single__content > .article-gallery {
		margin-block-start: var(--space-2xl);
	}
}
