/*
 * altidsec.com
 *
 * Palette: #233142 #455D7A #F95959 #FACF5A, plus softened near-white
 * and near-black. Never pure #000 or #fff.
 * Coral is below 4.5:1 on the background: use it for large text and
 * fills only, never for body text.
 */
:root {
	color-scheme: dark;
	--bg: #233142;
	--bg-deep: #1C2836;
	--slate: #455D7A;
	--slate-lt: #6F86A3;
	--coral: #F95959;
	--coral-hover: #FF7272;
	--sun: #FACF5A;
	--text: #E4E9F0;
	--muted: #A9B8CA;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace;
}

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

html {
	background: var(--bg);
	color: var(--text);
	font: 1.0625rem/1.65 var(--sans);
	-webkit-text-size-adjust: 100%;
}

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

a { color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: min(100% - 2rem, 58rem); margin-inline: auto; }
main.wrap { flex: 1; }

/* Running head */
.site-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding-block: 1.25rem 0.75rem;
	border-bottom: 1px solid var(--slate);
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-head .home { color: var(--text); text-decoration: none; font-weight: 600; }
.site-head nav ul { list-style: none; padding: 0; display: flex; gap: 1.25rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--text); }

/* Title block */
.title { padding-block: 3.5rem 1.5rem; text-align: center; }

.title .kicker {
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.title h1 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(3.25rem, 10vw, 6.5rem);
	line-height: 1.05;
	letter-spacing: 0.01em;
	margin-top: 0.5rem;
}

.title .motto {
	font-family: var(--serif);
	font-style: italic;
	color: var(--muted);
	font-size: 1.2rem;
	margin-top: 0.4rem;
}

.title .lede {
	max-width: 36rem;
	margin: 1.25rem auto 0;
	font-size: clamp(1.1rem, 2.3vw, 1.3rem);
	line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

.btn {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border: 1px solid var(--slate-lt);
	color: var(--text);
	text-decoration: none;
	font-weight: 550;
}

.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: var(--bg-deep); }
.btn.primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }

/* Plate: a framed figure with corner marks and a caption */
.plate {
	position: relative;
	margin-block: 2.5rem 1rem;
	padding: 1.75rem 1.5rem 1.25rem;
	border: 1px solid var(--slate);
}

.plate::before, .plate::after {
	content: "";
	position: absolute;
	width: 0.9rem;
	height: 0.9rem;
	border: 0 solid var(--slate-lt);
}
.plate::before { top: -0.45rem; left: -0.45rem; border-width: 1px 0 0 1px; }
.plate::after { bottom: -0.45rem; right: -0.45rem; border-width: 0 1px 1px 0; }

.plate img { display: block; width: 100%; height: auto; }

.plate figcaption {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--slate);
	font-family: var(--serif);
	font-size: 1rem;
	color: var(--muted);
}

/* Section break: two strata lines */
.divider {
	border: 0;
	height: 1rem;
	margin-block: 2.5rem;
	background: url("divider.svg") center / 20rem 1rem no-repeat;
}

/* Numbered sections */
.sections { display: grid; gap: 2.75rem; padding-bottom: 1rem; }

.sections section {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 1.5rem;
}

.sections h2 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 1.45rem;
	line-height: 1.25;
}

.sections h2 span {
	display: block;
	font-family: var(--sans);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	color: var(--sun);
	margin-bottom: 0.35rem;
}

.sections p + p { margin-top: 0.9rem; }
.sections ul { padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.sections li::marker { color: var(--slate-lt); content: "— "; }

.values { gap: 0.75rem; }
.values strong { font-weight: 600; color: var(--text); }

/* Specimen label */
.label {
	border: 1px solid var(--slate-lt);
	padding: 1rem 1.25rem;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.5rem;
	font-size: 0.97rem;
	background: rgba(28, 40, 54, 0.6);
}

.label dt {
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
	padding-top: 0.2rem;
}

/* Index card, on the front page */
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: 36rem; margin: 0 auto; }

.card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 0.5rem 1.25rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--slate-lt);
	color: var(--text);
	text-decoration: none;
}

.card:hover { border-color: var(--text); }
.card strong { grid-area: 1 / 1; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.card .desc { grid-area: 2 / 1; color: var(--muted); }
.card .go { grid-area: 1 / 2; color: var(--sun); }

/* Footer. Room is left for a contact entry in the list. */
.site-foot {
	margin-top: 3.5rem;
	padding-block: 1rem 2.5rem;
	border-top: 1px solid var(--slate);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.site-foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 40rem) {
	.title { padding-top: 2.5rem; }
	.sections section { grid-template-columns: 1fr; gap: 0.5rem; }
	.plate { padding: 0.75rem 0.5rem; }
	.label { grid-template-columns: 1fr; gap: 0; }
	.label dd + dt { margin-top: 0.6rem; }
}
