/* ============================================
   Article — prose pages (about, privacy, etc.)
   ============================================ */

.article {
	padding-top: clamp(6rem, 12vh, 10rem); /* clear fixed header */
	padding-bottom: var(--section-padding);
}

.article__header {
	max-width: var(--content-width);
	margin-inline: auto;	margin-bottom: 3rem;
}

.article__title {
	margin-bottom: 0.5em;
}

.article:has(img.full-bleed) .article__title {
	text-align: center;
}

.article__meta {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.article__body {
	max-width: var(--content-width);
	margin-inline: auto;}

.article__body h2 {
	margin-top: 2.5em;
	margin-bottom: 0.6em;
}

.article__body h2:first-child {
	margin-top: 0;
}

.article__body h3 {
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.article__body p {
	max-width: 65ch;
}

.article__body ul,
.article__body ol {
	max-width: 65ch;
	margin-top: 0.8em;
	margin-bottom: 0.8em;
	padding-left: 1.5em;
}

.article__body li {
	margin-bottom: 0.4em;
}

.article__body li::marker {
	color: var(--sand-dark);
}

/* Feature glossary — the description list directly under the full-bleed
   diagram on /what-is-muwav/. A <dl> so term→definition is real structure,
   laid out as a two-column glossary: term in a left rail, definition beside
   it. Fills the article column (now --content-width). Scoped via :has() so
   ordinary body content elsewhere stays single-column. */
.article__body p:has(> img.full-bleed) + dl {
	display: grid;
	grid-template-columns: minmax(9rem, 15rem) 1fr;
	/* column-gap: 2.5rem; */
	row-gap: 1.5rem;
	align-items: baseline;
}

/* Term rail — brand nouns set in the display serif and the golden-foam
   accent so they read as legend entries against the sand definitions. */
.article__body p:has(> img.full-bleed) + dl dt {
	font-family: 'Fraunces', 'Georgia', serif;
	font-weight: 700;
	color: var(--golden-foam);
}

.article__body p:has(> img.full-bleed) + dl dd {
	margin: 0;
	max-width: 65ch;
	color: var(--text-secondary);
}

/* iPhone / narrow: collapse the rail and stack term above its definition. */
@media (max-width: 40rem) {
	.article__body p:has(> img.full-bleed) + dl {
		display: block;
	}
	.article__body p:has(> img.full-bleed) + dl dt {
		margin-top: 1.5rem;
	}
	.article__body p:has(> img.full-bleed) + dl dd {
		margin-top: 0.3rem;
	}
}

.article__body blockquote {
	margin-block: 1.5em;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--surfboard-mid);
	background: var(--surface-subtle);
	color: var(--text-secondary);
	border-radius: 0 6px 6px 0;
}

.article__body code {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.88em;
	padding: 0.15em 0.4em;
	background: var(--surface-card);
	border-radius: 3px;
	color: var(--ocean-foam);
}

.article__body pre {
	margin-block: 1.5em;
	padding: 1.25rem;
	background: var(--surface-card);
	border: 1px solid var(--border-card);
	border-radius: 6px;
	overflow-x: auto;
}

.article__body pre code {
	padding: 0;
	background: none;
	border-radius: 0;
}

.article__body hr {
	/* Invisible section spacer — the source uses `---` between sections for
	   rhythm, but we don't want a visible rule (nor the double rule it made
	   when it landed right above an h2's old border-top). */
	border: none;
	margin-block: 2.5em;
}

.article__body a {
	border-bottom: 1px solid rgba(191, 230, 245, 0.3);
}

.article__body a:hover {
	border-bottom-color: var(--text-primary);
}

/* === Aside Card — highlighted callout block === */
.aside-card {
	background: var(--surface-card);
	border: 1px solid var(--border-card);
	border-radius: 8px;
	padding: clamp(1.5rem, 3vw, 2rem);
	margin: 2rem 0;
	position: relative;
	overflow: hidden;
}
.aside-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--golden);
}
.aside-card p {
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 500;
	line-height: 1.5;
	color: var(--golden-foam);
	max-width: 65ch;
}

/* Images in articles */
.article__body img {
	margin-block: 2em;
	border-radius: 12px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

/* On pages with a full-bleed image, uncap all paragraphs so prose fills
   the article column and the full-bleed centering math stays correct. */
.article__body:has(img.full-bleed) p {
	max-width: none;
}

/* Full-bleed: break the image out of the centered, gutter-padded column
   so it spans the whole viewport. The container is margin-auto centered,
   so 50% + translateX(-50%) of a 100vw box re-anchors it to the viewport.
   No radius since the edges meet the viewport. */
.article__body img.full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
	border-radius: 0;
}

.article__body figure {
	margin-block: 2em;
}

.article__body figcaption {
	margin-top: 0.75em;
	font-size: 0.85rem;
	color: var(--text-muted);
	text-align: center;
}

/* === Download page — app cards === */
.download-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.download-card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--surface-card);
	border: 1px solid var(--border-card);
	border-radius: 12px;
}

/* Beats .article__body h2 on source order (same specificity, declared later). */
.download-card h2 {
	margin: 0 0 0.2em;
	font-size: clamp(1.4rem, 2.2vw, 1.8rem);
	color: var(--text-primary);
}

.download-card__price {
	margin: 0 0 1.25rem;
	font-family: 'Fraunces', 'Georgia', serif;
	font-size: 1.15rem;
	color: var(--golden-foam);
}

.download-card__price span {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.download-card__desc {
	margin: 0 0 1.75rem;
	max-width: none;
	color: var(--text-secondary);
	flex: 1; /* push the button to the card's bottom edge */
}

.download-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.9rem 1.5rem;
	background: var(--surface-subtle);
	border: 1px solid var(--border-card);
	border-radius: 10px;
	color: var(--text-primary);
	text-align: center;
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.15s ease;
}

.download-btn:hover {
	border-color: var(--golden);
	transform: translateY(-1px);
}

.download-btn__label {
	font-family: 'Fraunces', 'Georgia', serif;
	font-weight: 600;
	font-size: 1.05rem;
}

.download-btn__meta {
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* Primary (free macOS) — golden fill so it reads as the hero action. */
.download-btn--primary {
	background: var(--golden);
	border-color: var(--golden);
	color: var(--bg-black);
}

.download-btn--primary:hover {
	background: var(--golden-foam);
	border-color: var(--golden-foam);
}

.download-btn--primary .download-btn__meta {
	color: rgba(0, 0, 0, 0.6);
}
