:root {
	--primer-color-deep: 0, 128, 255;
	--primer-color-light: 135, 255, 255;
	--color-deep: rgba(var(--primer-color-deep));
	--color-light: rgba(var(--primer-color-light));

	--border-style-width: 3px;
	--border-style: solid var(--border-style-width) rgba(var(--primer-color-deep), .1);

    --padding: 10px;
	--running-size: 70px;
	--max-width: 1400px;
}

/* # Cornerstones */

* {
    margin: 0;
    color: inherit;
	font-size: inherit;
    box-sizing: border-box;
	font-family: monospace;
}

body {
	font-size: 15px;
	min-height: 100svh;
	overflow-x: hidden;
    overscroll-behavior: none;
}

a {
	color: inherit;
    display: contents;
    text-decoration: none;
}

/* # Components */

:is(h1, h2, h3, p, li) > a {
	--underline-tickness: 3px;

    display: initial;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
	text-underline-offset: var(--underline-tickness);
    text-decoration-thickness: var(--underline-tickness);
}

@media (hover: hover) {
	:is(h1, h2, h3, p, li) > a:hover {
		text-decoration-color: var(--color-deep);
	}
}

h1 {
	font-size: 30px;
	color: var(--color-accent);
}

h2 {
	font-size: 25px;
}

h3 {
	font-size: 18px;
}

/* ## Sections */

/* ## Container */

container {
	margin: auto;
	height: 100%;
	display: flex;
	min-width: 900px;
	width: clamp(900px, 100%, 80vw);
	max-width: var(--max-width);
	align-items: center;
	gap: var(--padding);
	padding: var(--padding) 0;
}

container.split {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

container.split > div {
	display: flex;
	flex-direction: column;
	gap: var(--padding);
}

container.split > div:first-child {
	align-items: baseline;
	justify-content: center;
}

/* ## Button */

button {
	border: unset;
	cursor: pointer;
	padding: 10px 15px;
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0);
}

button.solid {
	color: white;
	background-color: var(--color-deep);
}

@media (hover: hover) {
	button:hover {
		background-color: rgba(0, 0, 0, .05);
	}

	button.solid:hover {
		color: var(--color-light);
		background-color: var(--color-deep);
	}
}

/* # Content */

header {
	--border-width: 2px;

	top: 0px;
	position: sticky;
	background-color: white;
	height: calc(var(--running-size) + var(--border-style-width));
	border-bottom: var(--border-style);
	z-index: 1000;
}

header .logo {
	height: 40px;
	padding: 5px;
	border-radius: 4px;
	background-color: var(--color-deep);
}

header ul {
	display: flex;
	padding-left: 0;
	list-style: none;
	gap: var(--padding);
}

header ul:last-child {
	margin-left: auto;
}

[vv-top-page="/help"] header a[href="/help"] button,
[vv-top-page^="/docs"] header a[href="/docs"] button,
[vv-top-page="/demos"] header a[href="/demos"] button,
[vv-top-page="/why"] header a[href="/why"] button {
	font-weight: bold;
	background-color: rgba(0, 0, 0, .05);
}