/**
 * HOME
 *
 * One quiet column. The home page doesn't load the design-system
 * showcase (styles/index.css); this file is all it wears.
 */

:root {
	--paper: #fbfaf8;
	--ink: #1b1a19;
	--ink-quiet: #6f6b66;
	--accent: #d6005a;
	--accent-soft: #ffc2d6;
	--rule: #e7e3de;

	--line-thin: 1px;
	--corners-small: 0.25rem;
	--column: 42rem;
	--gutter: 1.5rem;
	--box: 1rem;
	--box-gap: 0.75rem;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-family: 'General Sans', system-ui, sans-serif;
	font-synthesis-style: none;
	text-wrap: pretty;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-size: 1.125rem;
	line-height: 1.55;
}

a {
	color: var(--accent);
	text-decoration-thickness: var(--line-thin);
	text-underline-offset: 0.2em;
}

/* A link that's there if you want it, without pulling at the sentence. */
.subtle-link {
	color: inherit;
	text-decoration-color: var(--ink-quiet);
}

.no-break {
	white-space: nowrap;
}

.home {
	max-width: var(--column);
	margin: 0 auto;
	padding: clamp(2.5rem, 8vh, 5rem) var(--gutter) 6rem;

	> * + * {
		margin-top: 1.25rem;
	}

	.mark {
		display: block;
		width: 3.25rem;

		.left {
			fill: var(--accent-soft);
		}

		.right {
			fill: var(--accent);
		}
	}

	.status {
		margin-top: 3rem;
		font-size: 1.5rem;
		line-height: 1.3;
		font-weight: 500;
		letter-spacing: -0.01em;
		text-wrap: balance;
	}

	.identity {
		color: var(--ink-quiet);
	}
}

/* Later than .home's flow spacing, so these margins win.
   Nothing to send shows until a box is checked: :has() does it,
   so it works without JavaScript. */
.needs {
	margin-top: 3rem;
	margin-bottom: 3rem;

	ul {
		list-style: none;
		margin-top: 1rem;
		display: grid;
		gap: 0.5rem;
	}

	label {
		display: flex;
		gap: var(--box-gap);
		align-items: baseline;
		cursor: pointer;
	}

	input {
		flex: none;
		width: var(--box);
		height: var(--box);
		accent-color: var(--accent);
		transform: translateY(0.15em);
	}

	.send {
		display: none;
		margin-top: 2rem;
	}

	&:has(input:checked) .send {
		display: block;
	}

	.send-link {
		display: inline-block;
		margin-top: 1rem;
		padding: 0.5rem 1rem;
		border-radius: var(--corners-small);
		font-size: 1rem;
		background: var(--accent);
		color: var(--paper);
		text-decoration: none;
		font-weight: 500;
	}
}

.links {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: var(--line-thin) solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 1rem;
}
