/* ============================================================================
   Release notes (/release-notes) — reworked 2026-10-26 for launch
   Loaded after site.css, company.css (the cover, .c-page-hero) and heyu.css
   (the blurred-photo ground and the screens' fan, .h-fan), so the page reads
   like the HeyU page it belongs to. build-content.mjs writes the markup from
   content/release-notes/*.md: the hero on Sota's ground, then one section per
   version on its own ground (front-matter `ground:`), with a sticky version
   numeral beside the title, the intro, up to three real app screens fanned
   (`screens:`) and the changes grouped by kind. A change's bold lead is its
   title, the rest its line.
   ========================================================================== */

/* ---- hero ---- */
.rn-hero { min-height: min(78svh, 820px); }
@media (max-width: 760px) { .rn-hero { min-height: 0; } }
.rn-hero-foot { align-items: end; }
.rn-hero-foot .lede { max-width: 24ch; font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
/* the platform switch under the headline: one link per platform's page,
   a quiet segmented pill with the current page filled */
.rn-platforms {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: clamp(1.2rem, 2.4vw, 1.8rem);
	padding: 0.25rem;
	border-radius: var(--radius-pill);
	background: rgba(12, 12, 14, 0.42);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.rn-platforms a {
	padding: 0.5rem 1rem;
	border-radius: var(--radius-pill);
	color: var(--text-mute);
	font-size: 0.92rem;
	font-weight: 600;
	transition: color 0.2s ease, background 0.2s ease;
}
.rn-platforms a:hover { color: var(--text); }
.rn-platforms a[aria-current="page"] { background: rgba(253, 253, 252, 0.14); color: var(--text); }

/* the latest version, on a frosted card: icon, version and title, the
   devices, then the store's button and a jump to the notes */
.rn-get {
	display: grid;
	gap: 1.3rem;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	border-radius: 26px;
	background: rgba(12, 12, 14, 0.42);
	-webkit-backdrop-filter: blur(22px) saturate(1.2);
	backdrop-filter: blur(22px) saturate(1.2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 70px rgba(0, 0, 0, 0.35);
}
.rn-get-id { display: flex; align-items: center; gap: 1rem; }
.rn-get-icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 13px;
	box-shadow: 0 10px 26px rgba(107, 94, 246, 0.45);
}
.rn-get-text { display: grid; gap: 0.3rem; justify-items: start; min-width: 0; }
.rn-get-text strong {
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 1.5vw, 1.3rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.15;
}
.rn-get-sub { color: var(--text-mute); font-size: 0.92rem; }
.rn-get-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem 1.4rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--hairline-2);
}
.rn-jump {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	white-space: nowrap;
	font-weight: 600;
	color: var(--text);
	transition: color 0.25s var(--ease);
}
.rn-jump span { color: var(--accent-2); transition: transform 0.25s var(--ease); }
.rn-jump:hover, .rn-jump:focus-visible { color: var(--accent-2); }
.rn-jump:hover span, .rn-jump:focus-visible span { transform: translateY(3px); }

/* ---- a version ---- */
.rn-entry {
	padding-block: clamp(4rem, 9vw, 8rem);
	border-top: 1px solid var(--hairline);
}
.rn-entry-grid {
	display: grid;
	grid-template-columns: minmax(200px, 0.42fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
}
.rn-side {
	position: sticky;
	top: 6.5rem;
	align-self: start;
	display: grid;
	gap: 0.6rem;
	justify-items: start;
	container-type: inline-size;
}
.rn-ver {
	font-family: var(--font-display);
	font-size: min(13rem, calc(100cqw / (var(--len, 3) * 0.6)));
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.82;
	margin: 0.4rem 0 0.6rem -0.04em;
	font-variant-numeric: lining-nums;
	text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.rn-pt { color: var(--accent-2); }
.rn-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; }
.rn-latest {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.36rem 0.75rem;
	border-radius: var(--radius-pill);
	background: rgba(139, 123, 255, 0.16);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent-2);
}
.rn-latest::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent-2);
	flex: none;
}

.rn-body { container-type: inline-size; min-width: 0; }
.rn-body h2 {
	font-size: clamp(2.2rem, 4.6vw, 4.6rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.96;
	max-width: 15ch;
}
.rn-intro { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
.rn-intro p { color: var(--text-soft); font-size: clamp(1.1rem, 1.5vw, 1.35rem); max-width: 46ch; }
.rn-intro p + p { margin-top: 0.8rem; }
.rn-intro ul { margin-top: 0.8rem; display: grid; gap: 0.4rem; color: var(--text-soft); }

/* the screens: heyu.css's fan, sized to the text column, not the window */
.rn-fan { margin-top: clamp(2.6rem, 5vw, 4rem); }
.rn-fan .h-fan-item { width: 29cqw; }
.rn-fan .h-fan-item.is-center { width: 33cqw; }
.rn-fan .h-fan-item.is-center:only-child { width: 40cqw; }

/* ---- the changes ---- */
.rn-groups { display: grid; gap: clamp(2.6rem, 5vw, 3.6rem); margin-top: clamp(3rem, 6vw, 4.6rem); }
.rn-g-feature { --rn-tint: var(--accent-2); }
.rn-g-change  { --rn-tint: #7da2ff; }
.rn-g-fix     { --rn-tint: #5dd39e; }
.rn-g-removed { --rn-tint: #ff8a8a; }
.rn-group-head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding-bottom: 1rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rn-tint);
}
.rn-group-head::before {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--rn-tint);
	flex: none;
}
.rn-count { color: var(--text-faint); }
.rn-items { display: grid; column-gap: clamp(1.6rem, 3vw, 2.6rem); }
.rn-items li {
	display: grid;
	gap: 0.35rem;
	align-content: start;
	padding-block: clamp(1rem, 1.8vw, 1.3rem);
	border-top: 1px solid var(--hairline-2);
}
.rn-items strong {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--text);
}
.rn-items span { color: var(--text-mute); font-size: 1rem; line-height: 1.5; max-width: 52ch; }
/* a long list runs in two columns once the text column has room */
@container (min-width: 720px) {
	.rn-items:has(li:nth-child(4)) { grid-template-columns: 1fr 1fr; }
}

.rn-foot { padding-block: 0 clamp(4rem, 8vw, 6rem); }

@media (max-width: 860px) {
	.rn-fan .h-fan-item { width: 30cqw; }
	.rn-fan .h-fan-item.is-center { width: 36cqw; }
}
@media (max-width: 720px) {
	.rn-entry-grid { grid-template-columns: 1fr; gap: 1.2rem; }
	.rn-side { position: static; }
	.rn-ver { font-size: min(7.5rem, calc(100cqw / (var(--len, 3) * 0.6))); }
}

@media print {
	.h-ground, .rn-fan { display: none; }
	.rn-side { position: static; }
}
