/* The wording and the small capitals come from the business card; the colours are the
   site's own: a cool off-white page, white boxes, and a deep green for the buttons and
   headings. Fonts are served from /fonts (SIL Open Font License, see fonts/OFL.txt), so
   the page loads nothing from other servers. */

@font-face { font-family: "Alegreya Sans SC"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-sc-500.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans SC"; font-weight: 700; font-display: swap; src: url("/fonts/alegreya-sans-sc-700.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url("/fonts/alegreya-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url("/fonts/alegreya-sans-500.woff2") format("woff2"); }

:root {
	--page: #f3f5f4;
	--card: #ffffff;
	--line: #dde4e1;
	--ink: #16211e;
	--muted: #4f5d59;
	--dash: #bccbc5;
	--accent: #1f5c4d;
	--accent-ink: #f3f5f4;
	--button: #1f5c4d;
	--button-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
	:root {
		--page: #111715;
		--card: #1a2220;
		--line: #26302d;
		--ink: #e8efec;
		--muted: #a7b6b1;
		--dash: #3a4844;
		--accent: #1d4a3f;
		--accent-ink: #eef5f2;
		--button: #8fc7b5;
		--button-ink: #0f1a17;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	background-color: var(--page);
	font: 19px/1.6 "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--ink); }
h1, h2, h3, .brand, nav, .motto, .call, .tagline, .button, .num {
	font-family: "Alegreya Sans SC", "Alegreya Sans", system-ui, sans-serif;
	font-weight: 700;
	line-height: 1.15;
}

/* The card: a dashed rule set in from the edge, as on the business card. */
.card {
	background: var(--card);
	border-radius: 10px;
	padding: 28px;
	position: relative;
	border: 1px solid var(--line);
	box-shadow: 0 1px 2px rgba(20, 40, 35, 0.05), 0 8px 24px rgba(20, 40, 35, 0.06);
}
.card::after {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1.5px dashed var(--dash);
	border-radius: 6px;
	pointer-events: none;
}

.top-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { font-size: 1.35rem; text-decoration: none; }
nav { display: flex; gap: 0 12px; flex-wrap: wrap; font-weight: 500; font-size: 1.05rem; }
/* Tall enough to tap comfortably on a phone (about 44px). */
nav a { text-decoration: none; color: var(--muted); padding: 10px 6px; }
nav a:hover { color: var(--ink); }

.hero { padding-top: 32px; padding-bottom: 24px; }
.hero-card { padding: 40px 0 24px; text-align: center; }
.hero-card h1 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); margin: 0 0 32px; }
.hero-row { display: flex; align-items: center; justify-content: center; gap: 24px 64px; flex-wrap: wrap; }
.motto { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 0; line-height: 1.3; }
.hero-call { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.call { font-weight: 500; font-size: clamp(1.5rem, 3.8vw, 2.2rem); margin: 0; max-width: 11em; }
.tagline { font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--muted); margin: 36px 0 0; }

.button {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 6px;
	background: var(--button);
	color: var(--button-ink);
	text-decoration: none;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	overflow-wrap: normal;
}
/* The email address button: small enough to stay on one line on the narrowest phones. */
.contact .button { font-size: clamp(0.8rem, 4.1vw, 1.1rem); padding: 12px 16px; letter-spacing: 0; white-space: nowrap; }
.button:hover { filter: brightness(1.25); }

.section { padding-top: 40px; padding-bottom: 8px; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 20px; }
.grid, .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps { list-style: none; padding: 0; margin: 0; }
.tile h3 { font-size: 1.45rem; margin: 4px 0 10px; color: var(--accent); }
@media (prefers-color-scheme: dark) { .tile h3 { color: var(--button); } }
.tile p { margin: 0; color: var(--muted); }
.num {
	display: inline-grid; place-items: center;
	width: 2.1rem; height: 2.1rem; border-radius: 50%;
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 1.15rem;
}

.example h2 { margin-bottom: 12px; }
.example p { margin: 0; color: var(--muted); max-width: 46em; }
.contact { text-align: center; padding: 44px 28px; }
.contact p { margin: 0 0 18px; }
.contact p:last-child { margin: 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 1rem; padding-top: 40px; padding-bottom: 40px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }

.notfound { padding-top: 64px; padding-bottom: 64px; }
.notfound .card { text-align: center; padding: 48px 28px; }
.notfound h1 { font-size: 2.2rem; margin: 0 0 12px; }
.notfound p { margin: 0; }

@media (max-width: 560px) {
	.wide { display: none; }
	.hero-card { padding: 24px 0 16px; }
	.card { padding: 26px 24px; }
}
