/* misconfig cloud
   The same idea as misconfig.ai: dark and quiet, with the yellow-green signal
   kept for the logo's dot, the main button and the brackets around labels. */

@font-face {
	font-family: "Recursive";
	src: url("/fonts/recursive-sans.woff2") format("woff2");
	font-weight: 300 1000;
	font-display: swap;
}
@font-face {
	font-family: "Recursive Mono";
	src: url("/fonts/recursive-mono.woff2") format("woff2");
	font-weight: 300 800;
	font-display: swap;
}

:root {
	--bg: #0a0b0d;
	--bg-1: #101216;
	--bg-2: #15181d;
	--line: rgba(244, 246, 252, 0.08);
	--line-2: rgba(244, 246, 252, 0.14);
	--line-3: rgba(244, 246, 252, 0.24);
	--text: #f4f6fc;
	--text-2: #a6acba;
	--text-3: #7c8291;
	--signal: #eaff57;
	--signal-hover: #f3ff94;
	--on-signal: #0a0b0d;
	--sans: "Recursive", ui-sans-serif, system-ui, sans-serif;
	--mono: "Recursive Mono", ui-monospace, Menlo, Consolas, monospace;
	--wrap: 1200px;
	--gutter: 32px;
	--radius: 16px;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16.5px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
	overflow-x: clip;
}
body > header,
body > main,
body > footer {
	width: 100%;
}
body > main {
	flex: 1 0 auto;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

code {
	font-family: var(--mono);
	font-size: 0.88em;
}

h1,
h2,
h3 {
	margin: 0;
	font-weight: 640;
	line-height: 1.2;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 50;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--signal);
	color: var(--on-signal);
	font-weight: 620;
}
.skip-link:focus {
	top: 12px;
}

/* --- Labels ------------------------------------------------------------------ */

.eyebrow {
	color: var(--text-2);
	font: 500 12.5px/1.2 var(--mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.eyebrow::before {
	content: "[ ";
	content: "[ " / "";
	color: var(--signal);
}
.eyebrow::after {
	content: " ]";
	content: " ]" / "";
	color: var(--signal);
}

/* --- Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--line);
	background: rgba(10, 11, 13, 0.78);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 64px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 760;
	font-size: 18px;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.brand img {
	display: block;
	width: 32px;
	height: auto;
}
/* The part of misconfig this site is. */
.brand-tag {
	margin-left: 2px;
	padding: 3px 8px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--signal);
	font: 500 11px/1.2 var(--mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.site-nav {
	display: flex;
	gap: 26px;
	margin-left: auto;
	font-size: 14.5px;
}
.site-nav a {
	color: var(--text-2);
	text-decoration: none;
	transition: color 0.15s;
}
.site-nav a:hover {
	color: var(--text);
}

/* --- Buttons ----------------------------------------------------------------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--signal);
	border-radius: 10px;
	background: var(--signal);
	color: var(--on-signal);
	font: 620 15.5px/1 var(--sans);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 24px -14px rgba(234, 255, 87, 0.4);
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.button:hover {
	border-color: var(--signal-hover);
	background: var(--signal-hover);
}
.button:active {
	transform: translateY(1px);
}
.button-ghost {
	border-color: var(--line-2);
	background: transparent;
	color: var(--text);
	box-shadow: none;
}
.button-ghost:hover {
	border-color: var(--line-3);
	background: var(--bg-2);
}
.button-small {
	min-height: 36px;
	padding: 0 13px;
	border-radius: 9px;
	font-size: 14.5px;
}

/* --- Hero -------------------------------------------------------------------- */

.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	align-items: center;
	gap: 40px 56px;
	padding-top: 88px;
	padding-bottom: 24px;
}
/* A soft glow behind the record, kept inside the page's width so nothing
   reaches past the edge of the screen. */
.hero::before {
	content: "";
	position: absolute;
	right: 0;
	top: 6%;
	z-index: -1;
	width: 620px;
	height: 520px;
	background: radial-gradient(closest-side, rgba(234, 255, 87, 0.09), rgba(234, 255, 87, 0));
	pointer-events: none;
}
.hero h1 {
	margin-top: 22px;
	font-size: clamp(42px, 5.6vw, 72px);
	line-height: 1;
	font-weight: 660;
	letter-spacing: -0.046em;
}
.hero h1 .dim {
	color: var(--text-3);
}
.lead {
	max-width: 31em;
	margin-top: 24px;
	color: var(--text-2);
	font-size: 19px;
	line-height: 1.55;
}
.status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 28px;
	color: var(--text-2);
	font-size: 15px;
}
.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 11px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	color: var(--text);
	font: 500 12px/1.2 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.status-pill::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--signal);
}
.status code {
	color: var(--text);
	white-space: nowrap;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

/* --- The record, as an example ------------------------------------------------ */

.record {
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--bg-1);
	box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.record-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}
.record-result {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--text);
	font-weight: 620;
	font-size: 15.5px;
}
.record-result::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: var(--signal);
}
.record dl {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 11px 20px;
	margin: 0;
	padding: 18px 20px;
	font: 400 13.5px/1.45 var(--mono);
}
.record dt {
	color: var(--text-3);
}
.record dd {
	margin: 0;
	color: var(--text);
	overflow-wrap: anywhere;
}
.record-foot {
	padding: 13px 20px;
	border-top: 1px solid var(--line);
	color: var(--text-3);
	font-size: 13px;
}

/* --- Sections and cards ------------------------------------------------------- */

.section {
	padding-top: 104px;
}
.section > h2 {
	max-width: 19em;
	margin-top: 16px;
	font-size: clamp(30px, 3.8vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}
.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.card {
	padding: 26px 26px 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-1);
}
.card h3 {
	font-size: 18px;
	letter-spacing: -0.015em;
}
.card p {
	margin-top: 10px;
	color: var(--text-2);
	font-size: 15.5px;
}
.until {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-top: 20px;
	padding: 22px 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text-2);
	font-size: 15.5px;
}
.until a {
	color: var(--text);
}

/* --- Footer ------------------------------------------------------------------- */

.site-footer {
	margin-top: 120px;
	border-top: 1px solid var(--line);
	color: var(--text-2);
	font-size: 14.5px;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 32px 64px;
	padding-top: 44px;
	padding-bottom: 36px;
}
.footer-brand p {
	max-width: 26em;
	margin-top: 12px;
	color: var(--text-3);
}
.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	align-content: start;
}
.footer-links a {
	color: var(--text-2);
	text-decoration: none;
	transition: color 0.15s;
}
.footer-links a:hover {
	color: var(--text);
}
.footer-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 36px;
	border-top: 1px solid var(--line);
	color: var(--text-3);
	font-size: 13.5px;
}
.footer-base a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}
.footer-base a:hover {
	color: var(--text);
}

/* --- A missing page ----------------------------------------------------------- */

.not-found {
	padding-top: 120px;
	padding-bottom: 40px;
}
.not-found h1 {
	margin-top: 22px;
	font-size: clamp(34px, 4.8vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.04em;
}
.not-found .button {
	margin-top: 28px;
}

/* --- Small screens ------------------------------------------------------------- */

@media (max-width: 900px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 56px;
	}
	.cards {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero::before {
		top: 0;
		width: min(620px, 100%);
	}
	.site-nav {
		display: none;
	}
	.header-inner .button {
		margin-left: auto;
	}
	.section {
		padding-top: 80px;
	}
}
@media (max-width: 600px) {
	:root {
		--gutter: 20px;
	}
	.hero h1 {
		font-size: 40px;
	}
	.lead {
		font-size: 17.5px;
	}
	.record dl {
		gap: 10px 14px;
		padding: 16px;
		font-size: 12.5px;
	}
	.record-head,
	.record-foot {
		padding-left: 16px;
		padding-right: 16px;
	}
	.site-footer {
		margin-top: 88px;
	}
}
/* On a narrow phone the name and its tag need the header's width. The same
   button is the first thing under the heading. */
@media (max-width: 480px) {
	.header-inner .button {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.button,
	.site-nav a,
	.footer-links a,
	.footer-base a {
		transition: none;
	}
}
