/* UK Benefits Check — one stylesheet for four pages.
   Colours and type come from Design/AppIcon/README.md in the app repository;
   the wordmark's own rules (clear space, minimum size) are respected here by
   using the committed SVG rather than re-setting the name in live type. */

@font-face {
	font-family: "Figtree";
	src: url("fonts/Figtree-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Figtree";
	src: url("fonts/Figtree-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f6f8f7;
	--panel: #ffffff;
	--ink: #0f1514;
	--muted: #4a5a59;
	--rule: #d6dfdd;
	--accent-text: #006e6c;
	--accent-fill: #007a78;
	--accent-fill-hover: #006e6c;
	--on-accent: #ffffff;
	--navy: #06232b;
	--on-navy: #e9efee;
	--focus: #006e6c;
	--measure: 34rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0d1313;
		--panel: #141c1c;
		--ink: #e9efee;
		--muted: #9aacaa;
		--rule: #22302f;
		--accent-text: #4ad0bf;
		--accent-fill: #4ad0bf;
		--accent-fill-hover: #7cdfd2;
		--on-accent: #001b1a;
		--navy: #06232b;
		--on-navy: #e9efee;
		--focus: #4ad0bf;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Keyboard users get a visible target before anything else on the page. */
.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent-fill);
	color: var(--on-accent);
	padding: 0.75rem 1rem;
	z-index: 10;
}

.skip:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: 2px;
}

a {
	color: var(--accent-text);
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

.shell {
	max-width: 46rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ---- header ---- */

.site-header {
	border-bottom: 1px solid var(--rule);
	background: var(--panel);
}

.site-header .shell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	/* The lockup carries its own clear space, so the link adds none. */
	padding: 0.25rem 0;
}

.brand img {
	height: 2rem;
	width: auto;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.site-nav a {
	display: inline-block;
	padding: 0.5rem 0;
	color: var(--muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.site-nav a:hover {
	color: var(--ink);
	border-bottom-color: var(--accent-text);
}

.site-nav a[aria-current="page"] {
	color: var(--ink);
	border-bottom-color: var(--accent-text);
}

/* ---- type ---- */

main {
	padding: 2.5rem 0 3.5rem;
}

h1 {
	font-size: clamp(1.85rem, 1.4rem + 2vw, 2.6rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 0 0 1rem;
	max-width: 20ch;
	text-wrap: balance;
}

h2 {
	font-size: 1.3rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	font-weight: 600;
	margin: 2.5rem 0 0.75rem;
	text-wrap: balance;
}

h3 {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 1.75rem 0 0.5rem;
}

p,
li {
	max-width: var(--measure);
}

p {
	margin: 0 0 1rem;
}

ul,
ol {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}

li {
	margin-bottom: 0.5rem;
}

.lede {
	font-size: 1.2rem;
	color: var(--muted);
	max-width: 32rem;
}

.updated {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 2rem;
}

.contact {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* ---- pieces ---- */

.cta {
	display: inline-block;
	background: var(--accent-fill);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
	padding: 0.85rem 1.4rem;
	border-radius: 999px;
	margin: 0.5rem 0 1.5rem;
}

.cta:hover {
	background: var(--accent-fill-hover);
	color: var(--on-accent);
}

.steps {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
	display: grid;
	gap: 1.25rem;
}

.steps li {
	margin: 0;
	max-width: var(--measure);
}

.steps strong {
	display: block;
}

.note {
	border-left: 3px solid var(--accent-text);
	padding-left: 1rem;
	margin: 1.5rem 0;
}

.independence {
	background: var(--navy);
	color: var(--on-navy);
	padding: 1.5rem 0;
	margin-top: 3rem;
}

.independence p {
	margin: 0;
	max-width: 40rem;
}

/* ---- footer ---- */

.site-footer {
	border-top: 1px solid var(--rule);
	background: var(--panel);
	padding: 1.75rem 0 2.5rem;
	font-size: 0.95rem;
	color: var(--muted);
}

.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin: 0;
}

.site-footer a {
	display: inline-block;
	padding: 0.35rem 0;
}

.site-footer p {
	margin: 0;
	max-width: 40rem;
}

@media (min-width: 40rem) {
	main {
		padding: 3.5rem 0 4.5rem;
	}
}
