/* SPDX-License-Identifier: GPL-3.0-or-later
 * Copyright (C) 2026 Artem Barkov */

/* Rosé Pine (dark) and Rosé Pine Dawn (light) */
:root {
	--base: #faf4ed;
	--surface: #fffaf3;
	--overlay: #f2e9e1;
	--text: #575279;
	--muted: #797593;
	--line: #dfdad9;
	--iris: #907aa9;
	--foam: #56949f;
	--pine: #286983;
	--gold: #ea9d34;
	--love: #b4637a;
	--mono: "JetBrains Mono", "Iosevka", "Fira Code", ui-monospace, "DejaVu Sans Mono", monospace;
	color-scheme: light;
	--sans: system-ui, -apple-system, "Segoe UI", "Noto Sans", "DejaVu Sans", sans-serif;
}
/* Dark theme: follows the system unless the visitor picked a theme with the button */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--base: #191724;
		--surface: #1f1d2e;
		--overlay: #26233a;
		--text: #e0def4;
		--muted: #908caa;
		--line: #403d52;
		--iris: #c4a7e7;
		--foam: #9ccfd8;
		--pine: #31748f;
		--gold: #f6c177;
		--love: #eb6f92;
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--base: #191724;
	--surface: #1f1d2e;
	--overlay: #26233a;
	--text: #e0def4;
	--muted: #908caa;
	--line: #403d52;
	--iris: #c4a7e7;
	--foam: #9ccfd8;
	--pine: #31748f;
	--gold: #f6c177;
	--love: #eb6f92;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--base);
	color: var(--text);
	font: 17px/1.6 var(--sans);
}
main {
	max-width: 46rem;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}
a { color: var(--foam); text-underline-offset: 0.2em; }
a:hover { color: var(--iris); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.start-link { font: 0.85rem var(--mono); color: var(--muted); }
.start-link:hover { color: var(--iris); }
.theme-toggle {
	font: 0.85rem var(--mono);
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 0.35rem 0.7rem;
	cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--iris); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--mono); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 .prompt { color: var(--iris); font-weight: 400; }
h2 { font-size: 1.25rem; margin: 3.5rem 0 1rem; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.4rem; }
p { margin: 0 0 1rem; max-width: 66ch; }

.intro { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.contacts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; list-style: none; font-family: var(--mono); font-size: 0.95rem; }

/* The request path: the one bold element of the page */
.path {
	margin: 1.5rem 0 1rem;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--mono);
	font-size: 0.85rem;
}
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.lane h3 { margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.lane ol { list-style: none; margin: 0; padding: 0; }
.lane li {
	position: relative;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent, var(--foam));
	border-radius: 6px;
	background: var(--base);
}
.lane li + li { margin-top: 1.1rem; }
.lane li + li::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: calc(-1.1rem - 1px);
	height: 1.1rem;
	border-left: 2px dotted var(--muted);
}
.lane li small { display: block; color: var(--muted); font-size: 0.78rem; }
.public { --accent: var(--foam); }
.admin { --accent: var(--iris); }
.services { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.services span { padding: 0.1rem 0.45rem; border-radius: 4px; background: var(--overlay); font-size: 0.78rem; }
.host {
	margin-top: 1.25rem;
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--gold);
	border-radius: 6px;
	background: var(--base);
}
.host strong { font-weight: 600; }
.host small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

.notes { padding-left: 1.2rem; margin: 0 0 1rem; max-width: 66ch; }
.notes li { margin-bottom: 0.4rem; }
.notes li::marker { color: var(--iris); }

dl { margin: 0; }
dt { font-family: var(--mono); font-weight: 600; margin-top: 1.25rem; }
dt .when { font-weight: 400; color: var(--muted); }
dd { margin: 0.2rem 0 0; max-width: 66ch; }

footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 600px) {
	main { padding-top: 1.5rem; }
	.lanes { grid-template-columns: 1fr; }
}
