:root {
	--accent: #009A00;
	--bg: #eee;
	--panel: white;
	--fg: #051505;
	--fg-on-accent: white;
	--radius: 8px;
	--divider: rgba(100,100,100,0.2);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #192119;
		--panel: #141c14;
		--fg: white;
		--accent: rgb(101, 225, 101)
	}
}
html {
	background: var(--bg);
	accent-color: var(--accent);
}
html, body {
	display: flex;
	overflow-x: hidden;
	margin: 0;
	color: var(--fg);
	width: 100%;
	scrollbar-color: var(--accent) transparent;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
* {
	box-sizing: border-box;
}

h1 {
	color: var(--accent);
}
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child
{
	margin-top: 0;
}
p {
	line-height: 1.5;
}

a {
	color: var(--accent);
}

hr {
	border-color: var(--divider);
	margin-block: 30px;
}
.links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.details-content h5 {
	margin-bottom: 5px;
}
.button {
	display: inline-block;
	padding: 10px 16px;
	/* border-radius: 100px; */
	border-radius: 8px;
	/* background: rgba(100,200,100,0.2); */
	border: 1px solid var(--divider);
	font-weight: bold;
	text-decoration: none;
	margin-inline-end: 8px;
	color: var(--fg);
	font-size: .9em;
	transition: transform .4s cubic-bezier(0,0,0,2.5), color .2s;
}
.button span {
	text-decoration: transparent underline dashed;
	transition: text-decoration-color .2s;
}
.button span:nth-child(2) {
	display: block;
	font-size: .8em;
	color: var(--fg);
	text-decoration: none;
}
.button:hover, 
.button:focus 
{
	transform: translateY(-1px);
	color: var(--accent);
}
.button:hover span:first-child, 
.button:focus span:first-child
{
	text-decoration-color: var(--accent);
}

/* Layout */

.split-sections {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	/* align-items: center; */
	margin: auto;
	padding-top: 5vw;
	gap: 80px;
}

.section {
	max-width: 25em;
	padding: 30px 20px;
	border-radius: var(--radius);
}

.left .content {
	position: sticky;
	top: calc(5vw + 30px);
	max-height: 100vh;
	height: max-content;
}

.right {
	position: relative;
	max-width: 40em;
	display: flex;
	flex-direction: column;
	padding-bottom: 0;
}

.line {
	display: block;
	position: relative;
	margin-block: 0 10px;
}
.right .content {
	position: relative;
	min-height: 100vh;
	padding-block: 20px 400px;
	z-index: 2;
}
.right .content::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 200vw;
	inset-inline-start: -50px;
	border-top-left-radius: 40px;
	background: var(--panel);
	z-index: -1;
	/* box-shadow: 0 0 800px -200px var(--accent); */
}

details {
	position: relative;
	border-radius: var(--radius);
	margin-bottom: 20px;
	border: 1px solid transparent;
	transition: border-color .4s;
}
details::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--accent);
	opacity: .1;
	z-index: -1;
	transition: opacity .2s;
	border-radius: inherit;
}
summary {
	color: var(--fg);
	font-weight: bold;
	padding: 15px;
	border-radius: var(--radius);
	transition: color .4s;
}
.details-content {
	padding: 15px;
	background: var(--panel);
	border-radius: calc(var(--radius) - 4px);
	margin: 4px;
	margin-top: 0;
}
details[open] .details-content {
	animation: fadeDown .4s cubic-bezier(0,1,0,1.2) .02s backwards;
}
details[open] {
	border-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
	@keyframes fadeDown {
		from {
			transform: translateY(-10px);
			opacity: 0;
		}
	}
}
