/* Custom and deliberately plain: the fleet allows a custom design for marketing, and a page about
   remembering your medication should read like a page, not like a landing funnel. No framework, no
   webfonts, no JavaScript - so it is fast, works in any browser, and has nothing to load from a CDN. */

:root {
	--ink: #1a1a1a;
	--muted: #595959;
	--line: #e2e2e2;
	--accent: #1c4f82;
	--note: #fbf7ec;
	--note-line: #d8c89b;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	padding: 0 1.25rem 4rem;
	font: 1.0625rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: #fff;
}

header, main, footer { max-width: 42rem; margin: 0 auto; }

header { padding: 1.5rem 0; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }

nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: baseline; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }
nav .brand { font-weight: 600; color: var(--ink); margin-right: auto; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.lead { font-size: 1.1875rem; color: var(--muted); margin-bottom: 1.5rem; }

a { color: var(--accent); }

/* Used for the one sentence that says the app is not a medical device. It is set apart because it is
   meant to be read, not skimmed past - and never in a colour that suggests an error. */
.note {
	background: var(--note);
	border: 1px solid var(--note-line);
	border-radius: 6px;
	padding: 0.875rem 1rem;
	margin: 1.5rem 0;
}

.cta {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
}
.cta:hover { background: #163f68; }

footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #ececec;
		--muted: #a8a8a8;
		--line: #333;
		--accent: #7fb3e0;
		--note: #2a2518;
		--note-line: #5c5133;
	}
	body { background: #121212; }
	nav .brand { color: var(--ink); }
	.cta { color: #10243a; }
	.cta:hover { background: #a3c9ea; }
}
