/**
 * Living Manual brand layer for the demo site.
 *
 * Tokens, type scale, and component shapes are lifted from the marketing
 * site's assets/site.css so the demo reads as the same product rather than
 * as a WordPress theme wearing the same colours. Loaded after the starter's
 * main.css so it wins on the pieces it cares about.
 */

:root {
	--paper: #FCFBF8;
	--paper-2: #F5F1EA;
	--card: #FFFFFF;
	--ink: #16324F;
	--ink-2: #24425C;
	--amber: #E7A33C;
	--amber-ink: #B0653A;
	--slate: #64707C;
	--hair: #ECE6DB;
	--good: #2E7D57;

	--bg: var(--paper);
	--fg: var(--ink);
	--muted: var(--slate);
	--surface: var(--card);
	--line: var(--hair);
	--eyebrow: var(--amber-ink);

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Libre Franklin", system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

	--wrap: 1120px;
	--radius: 14px;
}

body {
	background: var(--bg);
	color: var(--fg);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
	margin: 0 0 18px;
}

h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
	margin: 44px 0 14px;
}

a {
	color: var(--ink);
}

/* Sticky footer ------------------------------------------------------
   Short pages (a 404, a thin page, the signup page once it is submitted)
   otherwise leave the footer floating mid-screen with a band of paper
   below it. svh rather than vh so a mobile browser's collapsing address
   bar does not add a scrollbar on a page that fits. */

html,
body {
	min-height: 100%;
}

.site-container {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.site-inner {
	flex: 1 0 auto;
}

.site-footer {
	margin-top: auto;
	flex-shrink: 0;
}

/* Header, matching livingmanual.ai ---------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: saturate(1.4) blur(8px);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	border-bottom: 1px solid var(--line);
}

/* The starter lays the header wrap out as a 200px + 1fr grid, which
   traps the nav in the first column and leaves margin-left:auto with no
   space to push the CTA into. The nav is a single flex row here. */
.site-header .wrap {
	display: block;
}

.site-header .wrap,
.site-footer .wrap,
.site-inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.nav-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 68px;
	width: 100%;
}

.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--fg);
	text-decoration: none;
	flex-shrink: 0;
	white-space: nowrap;
}

.brand svg {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
}

.nav-links {
	display: flex;
	gap: 26px;
	margin-left: 10px;
}

.nav-links a {
	color: var(--fg);
	text-decoration: none;
	font-size: 15.5px;
	white-space: nowrap;
}

.nav-links a:hover {
	color: var(--eyebrow);
}

.nav-cta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15.5px;
	padding: 13px 22px;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-ink {
	background: var(--ink);
	color: #fff;
}

.btn-ink:hover {
	background: var(--ink-2);
	color: #fff;
}

.btn-amber {
	background: var(--amber);
	color: var(--ink);
}

.btn-outline {
	border-color: var(--line);
	color: var(--fg);
	background: transparent;
}

.btn-outline:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.nav-burger {
	display: none;
	width: 38px;
	height: 38px;
	border-radius: 9px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
	place-items: center;
	font-size: 18px;
}

.mobile-menu {
	display: none;
}

.mobile-menu.open {
	display: block;
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.mobile-menu a {
	display: block;
	padding: 15px 24px;
	font-size: 17px;
	border-top: 1px solid var(--line);
	color: var(--fg);
	text-decoration: none;
}

.mobile-menu a:first-child {
	border-top: 0;
}

@media (max-width: 900px) {
	.nav-links {
		display: none;
	}

	.nav-cta .btn-ink {
		display: none;
	}

	.nav-burger {
		display: grid;
	}
}

/* Hero and page body ------------------------------------------------ */

.lm-hero {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	padding: 64px 0 56px;
}

.lm-eyebrow {
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eyebrow);
	margin: 0 0 18px;
}

.lm-lede {
	font-size: 19px;
	color: var(--ink-2);
	max-width: 62ch;
	text-wrap: pretty;
}

.site-inner {
	padding-top: 48px;
	padding-bottom: 64px;
}

/* One left edge for everything on the page. The starter centres each
   block with margin auto, which left the eyebrow, the prose, and the
   signup card on three different edges. */
.entry-content > *,
.block-area > *,
.lm-eyebrow,
.entry-header {
	max-width: 760px;
	margin-left: 0;
	margin-right: 0;
}

/* The front page carries its own headline in the content, so the
   template's page title would be a second, competing h1. */
.home .entry-header {
	display: none;
}

.home .entry-content > h1:first-of-type {
	margin-top: 0;
}

.entry-content ul {
	padding-left: 20px;
}

.entry-content li {
	margin-bottom: 8px;
}

/* The signup card --------------------------------------------------- */

.lmdemo-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px;
	max-width: 620px;
	box-shadow: 0 1px 2px rgba(22, 50, 79, 0.04), 0 8px 24px rgba(22, 50, 79, 0.06);
	font-family: var(--sans);
	color: var(--fg);
	margin-left: 0;
}

.lmdemo-label {
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--eyebrow);
	margin-bottom: 10px;
	display: block;
}

.lmdemo-input {
	flex: 1 1 260px;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--sans);
	font-size: 16px;
	color: var(--fg);
	background: var(--bg);
	width: auto;
	line-height: 1.4;
}

.lmdemo-input:focus {
	outline: 2px solid var(--amber);
	outline-offset: 1px;
	border-color: var(--amber);
}

.lmdemo-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 15.5px;
	padding: 13px 22px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: var(--ink);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.12s ease, background 0.2s ease;
}

.lmdemo-button:hover {
	background: var(--ink-2);
	color: #fff;
	transform: translateY(-1px);
}

.lmdemo-fine {
	font-size: 14px;
	color: var(--muted);
	margin: 16px 0 0;
}

.lmdemo-notice {
	max-width: 620px;
	margin: 0 0 18px;
	padding: 15px 18px;
	border-radius: 10px;
	font-size: 15.5px;
	font-family: var(--sans);
	border: 1px solid var(--line);
}

.lmdemo-notice-ok {
	background: var(--paper-2);
	border-left: 4px solid var(--amber);
	color: var(--ink);
}

.lmdemo-notice-error {
	background: #FDF4F3;
	border-left: 4px solid #B0463A;
	color: #7A2A22;
}

/* Footer, matching livingmanual.ai ---------------------------------- */

.site-footer {
	background: var(--ink);
	color: #EBE4D8;
	--fg: #EBE4D8;
	--muted: #9BA8B4;
	--line: #2A4258;
	border-top: 0;
	padding: 56px 0 46px;
	text-align: left;
	font-size: 15px;
	margin-top: auto;
	flex-shrink: 0;
}

.site-footer a {
	color: var(--muted);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--fg);
}

.site-footer .brand {
	font-size: 18px;
	color: var(--fg);
}

.foot-inner {
	display: flex;
	gap: 40px;
	justify-content: space-between;
	flex-wrap: wrap;
}

.foot-blurb {
	color: var(--muted);
	font-size: 14px;
	max-width: 30ch;
	margin-top: 14px;
}

.foot-cols {
	display: flex;
	gap: 56px;
	flex-wrap: wrap;
}

.foot-cols h4 {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 14px;
	font-weight: 500;
}

.foot-cols a {
	display: block;
	color: var(--muted);
	font-size: 14.5px;
	margin-bottom: 10px;
}

.foot-legal {
	margin-top: 34px;
	font-size: 13px;
	color: var(--muted);
	font-family: var(--mono);
}

@media (max-width: 640px) {
	.lm-header-links {
		gap: 14px;
		font-size: 14px;
	}

	.lm-header-links .lm-hide-sm {
		display: none;
	}

	.lm-hero {
		padding: 44px 0 38px;
	}
}

/* The orientation panel on the manual landing view ------------------ */

.lm-docs-intro {
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 30px;
	margin: 0 0 34px;
}

.lm-docs-lede {
	font-size: 17.5px;
	color: var(--ink-2);
	margin: 0 0 18px;
	max-width: 68ch;
	text-wrap: pretty;
}

.lm-docs-actions {
	margin: 0 0 26px;
}

.lm-docs-h {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--ink);
}

/* The plugin's manual takeover sits inside our chrome now. */

body.lman-manual {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--bg);
}

body.lman-manual .lman-page {
	flex: 1 0 auto;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 40px 24px 64px;
	width: 100%;
}

.lm-docs-help {
	margin: 18px 0 0;
	font-size: 15px;
	color: var(--muted);
}

.lm-docs-help a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The support and feedback forms ------------------------------------ */

.lmsup-form {
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 28px;
	margin: 0 0 30px;
	max-width: 62ch;
}

.lmsup-form label {
	display: block;
	font-weight: 600;
	color: var(--ink);
	margin: 0 0 6px;
}

.lmsup-field {
	margin: 0 0 18px;
}

.lmsup-form input[type="text"],
.lmsup-form input[type="email"],
.lmsup-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	color: var(--ink);
	font: inherit;
}

.lmsup-form textarea {
	min-height: 170px;
	resize: vertical;
}

.lmsup-form input:focus,
.lmsup-form textarea:focus {
	outline: none;
	border-color: var(--amber);
	box-shadow: 0 0 0 1px var(--amber);
}

.lmsup-hint {
	font-size: 14px;
	color: var(--muted);
	margin: 6px 0 0;
}

.lmsup-notice {
	border-left: 3px solid var(--amber);
	background: var(--paper-2);
	padding: 12px 16px;
	margin: 0 0 22px;
	border-radius: 0 8px 8px 0;
	max-width: 62ch;
}

.lmsup-notice.is-error {
	border-left-color: #b32d2e;
}
