/* Nebula Sound System: a hardware panel. Warm black, bone text, one signal orange. Tall condensed capitals, square corners, thick rules. */

:root:has(.page) {
	color-scheme: dark;
	--background: #15110e;
	--surface: #1d1814;
	--surface-hover: #272019;
	--sunken: #1d1814;
	--line: #3a3028;
	--line-strong: #efe6d6;
	--text: #efe6d6;
	--muted: #b9ad98;
	--subtle: #8a7f6c;
	--on-primary: #15110e;
	--accent: #ff5a1f;
	--radius: 0;
	--colour-text: #efe6d6;
	--colour-line: #3a3028;
	--navbar-background-colour: #15110e;
	--navbar-text-colour: #efe6d6;
	--onhover-background-colour: #ff5a1f;
	--onhover-text-colour: #15110e;
	--onactive-text-colour: #efe6d6;
	--onclick-background-colour: #ff5a1f;
	--onclick-text-colour: #15110e;
	--bs-body-bg: #15110e;
	--bs-body-color: #efe6d6;
	--bs-border-color: #3a3028;
	--display: "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

body:has(.page) {
	background: #15110e;
}

.page {
	background: var(--background);
	color: var(--text);
	font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

::selection {
	background: var(--accent);
	color: var(--on-primary);
}

.page h1,
.page h2,
.page h3,
.page .eyebrow,
.page .menu-brand h1,
.page .main-nav a,
.page main a.button,
.page .badge {
	font-family: var(--display);
	font-stretch: condensed;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* The bar at the top: a thick bone line under it, entries light up orange */
.page .main-nav {
	border-bottom: 4px solid var(--text);
}

.page .main-nav a {
	border-radius: 0;
	font-size: 0.95rem;
	font-weight: 700;
}

.page .main-nav a.active {
	box-shadow: inset 0 -4px 0 var(--accent);
	border-radius: 0;
}

.page .main-nav .menu-brand h1 {
	color: var(--accent);
	font-size: 1.35rem;
	font-weight: 800;
}

.page .submenu {
	border: 2px solid var(--text);
	border-radius: 0;
	background: var(--background);
}

/* Headings and the small links next to them keep the colours of the theme */
.page h1,
.page h2,
.page h3 {
	color: var(--text);
}

.page .section-head a,
.page a.more {
	color: var(--accent);
}

/* Headings */
.page h2 {
	border-bottom: 3px solid var(--text);
	font-weight: 800;
}

.hero h1 {
	padding-left: 1rem;
	border-left: 12px solid var(--accent);
	font-size: clamp(2.6rem, 9vw, 5.5rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: 0;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--accent);
	font-size: 0.85rem;
	font-weight: 700;
}

.eyebrow::before {
	content: "";
	width: 0.7rem;
	height: 0.7rem;
	background: var(--accent);
}

.page .lead {
	color: var(--muted);
}

/* Links and lists in the text */
.prose a,
.lead a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
}

.prose ul {
	list-style: none;
	padding-left: 1.4rem;
}

.prose ul li::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin: 0 0.6rem 0 -1.3rem;
	background: var(--accent);
}

/* Buttons: orange keys with a dark lower edge, the other one framed */
.page main a.button,
.page main a.button:visited {
	border: 0;
	border-bottom: 4px solid #a63a0f;
	border-radius: 0;
	background: var(--accent);
	color: var(--on-primary);
	font-weight: 800;
}

.page main a.button:hover {
	background: var(--text);
	border-bottom-color: #8a7f6c;
	color: var(--on-primary);
}

.page main a.button.secondary,
.page main a.button.secondary:visited {
	border: 2px solid var(--text);
	border-bottom-width: 4px;
	background: transparent;
	color: var(--text);
}

.page main a.button.secondary:hover {
	background: var(--text);
	color: var(--on-primary);
}

/* Cards and boxes: square, framed in bone */
.page .project-card,
.page .banner,
.page .download-card {
	border: 2px solid var(--text);
	border-radius: 0;
	background: var(--surface);
}

.page .project-card:hover {
	border-color: var(--accent);
}

.page .badge {
	border-radius: 0;
	font-weight: 700;
}

.page footer.site-footer {
	border-top: 4px solid var(--text);
}

.page .site-notice,
.page .cookie-notice {
	border-radius: 0;
}

/* The search box */
.page .menu-search input {
	border: 2px solid var(--text);
	border-radius: 0;
	background: var(--surface);
	color: var(--text);
}
