/*
 * Inner pages - Privatumo politika, Naudojimosi taisykles ir salygos and the Puslapis nerastas page
 * the 404 template shows. The design draws none of them; the operator accepted "plain, in the site's
 * own style" (intake question 6, veto 5), so nothing here is a new value:
 *
 *   - the top bar is the hero's own navigation row (30:208 / 33:561, hero.css) with only the logo,
 *     on the site's #0a0a09; its markup reuses the hero classes so the logo sits exactly where the
 *     front page draws it;
 *   - the footer line is the contact band's own footer (30:311 / 33:659, contact.css), reused whole;
 *   - the text uses the type the frames already draw: the section title (30:244 / 33:594) for the
 *     page title, the project type (30:255 / 33:604) for a sub-heading, the legal block (30:305 /
 *     33:653) for running text; the band padding is the projects band's (30:242 / 33:592); the gaps
 *     are the theme's spacing tokens.
 *
 * The words are page content (EDIT-1): this file only styles them. Paired values interpolate from
 * 390 to 1440 and the headings switch to the drawn Helvetica Neue at 768, as on the front page.
 */

/* The page: the theme's post-content main (page.html) or the 404 query (404.html). At least one
   screen tall, the text band taking the slack, so a short page (the 404) keeps its footer line at the
   bottom of the screen as the front page does, not halfway up it. */
.inv-inner {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	margin: 0;
}

.inv-inner > .inv-inner__text {
	flex: 1 0 auto;
}

/* The 404 template renders the Puslapis nerastas page through a one-item query; its list wrapper
   draws nothing, and passes the screen height down to the page's own sections. */
.inv-inner .inv-inner__loop,
.inv-inner .inv-inner__loop > li,
.inv-inner .inv-inner__loop .wp-block-post-content {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.inv-inner .inv-inner__loop .wp-block-post-content > .inv-inner__text {
	flex: 1 0 auto;
}

/* Top bar: the hero row with the logo only, on #0a0a09 (the site's dark band, 30:236 / 30:297). */
.inv-inner-bar {
	background: var(--wp--preset--color--c-01);
}

/* Text band: paper #fafaf8 with ink #0a0a09 (theme.json), 120 above and below at 1440 and 64 on the
   phone (the projects band, 30:242 / 33:592), sides on the site gutter. */
.inv-inner__text {
	box-sizing: border-box;
	margin: 0;
	padding: clamp(64px, calc(64px + 56 * (100vw - 390px) / 1050), 120px) var(--inv-inline);
	background: var(--wp--preset--color--c-06);
	color: var(--wp--preset--color--c-01);
}

/* A readable measure: running text and sub-headings stop at 720px; the page title takes the column. */
.inv-inner__text > * {
	max-width: 720px;
}

.inv-inner__text > h1 {
	max-width: none;
}

/* Page title: the section title, Helvetica Neue 500 80 / 80 at 1440 (30:244), Inter 500 48 / 48 on
   the phone (33:594). */
.inv-inner__text h1 {
	margin: 0 0 clamp(32px, calc(32px + 32 * (100vw - 390px) / 1050), 64px);
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(48px, calc(48px + 32 * (100vw - 390px) / 1050), 80px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-01);
}

/* Sub-heading: the project type, Helvetica Neue 500 30 / 36 at 1440 (30:255), Inter 500 25 / 30 on
   the phone (33:604). 32 above, 16 below (spacing tokens neutral-30 and neutral-20). */
.inv-inner__text h2,
.inv-inner__text h3 {
	margin: var(--wp--preset--spacing--neutral-30) 0 var(--wp--preset--spacing--neutral-20);
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(25px, calc(25px + 5 * (100vw - 390px) / 1050), 30px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-01);
}

/* Running text: the legal block's Inter 400 16 / 27.2 (170%) at 1440, 15 / 25.5 on the phone, in
   ink on paper. Paragraphs 16 apart (neutral-20). */
.inv-inner__text p,
.inv-inner__text ul,
.inv-inner__text ol {
	font-family: var(--wp--preset--font-family--inter);
	font-size: clamp(15px, calc(15px + 1 * (100vw - 390px) / 1050), 16px);
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0;
	color: var(--wp--preset--color--c-01);
}

.inv-inner__text :is(p, ul, ol) + :is(p, ul, ol) {
	margin-top: var(--wp--preset--spacing--neutral-20);
}

/* A link inside running text carries the site's drawn 1px link stroke (the email frame 30:303) as an
   underline; without it a link in ink on ink would be told apart by nothing (WCAG 1.4.1). */
.inv-inner__text a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

/* Desktop shape (768 and up): the headings in the drawn Helvetica Neue, as on the front page. */
@media (min-width: 768px) {
	.inv-inner__text h1,
	.inv-inner__text h2,
	.inv-inner__text h3 {
		font-family: var(--wp--preset--font-family--helvetica-neue);
	}
}
