/* The palette and typefaces are the application's own. */

@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/fraunces-latin-700-normal.woff2') format('woff2');
}

:root {
	--bg: #f3f5f5;
	--fg: #1d2224;
	--muted: #6c7a7e;
	--accent: #53676c;
	--gold: #a08242;
	--card: #fdfefe;
	--border: #dbe1e2;
	--code: #e9edee;
	--shadow: 0 1px 3px rgba(25, 35, 38, 0.1), 0 4px 14px rgba(25, 35, 38, 0.06);
	--shadow-big: 0 2px 6px rgba(25, 35, 38, 0.1), 0 18px 48px rgba(25, 35, 38, 0.14);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15181a;
		--fg: #e4e8e9;
		--muted: #8d9a9e;
		--accent: #94b0b8;
		--gold: #c0a567;
		--card: #1d2124;
		--border: #333a3d;
		--code: #24292c;
		--shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
		--shadow-big: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 48px rgba(0, 0, 0, 0.45);
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: 'Inter Variable', system-ui, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: 'Fraunces', Georgia, serif;
	line-height: 1.15;
	margin: 0;
}

p {
	margin: 0;
}

a {
	color: var(--accent);
	text-underline-offset: 0.15em;
}

a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

img {
	max-width: 100%;
	height: auto;
}

main,
.hero,
footer {
	width: min(100% - 2rem, 68rem);
	margin-inline: auto;
}

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

.hero {
	padding: 4.5rem 0 3rem;
	text-align: center;
}

.doves {
	width: 9.5rem;
	display: block;
	margin: 0 auto 1.25rem;
}

h1 {
	font-size: clamp(3rem, 9vw, 4.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* The asterisk by the name, and what it stands for under the buttons. */
h1 {
	position: relative;
	display: inline-block;
}

.mark {
	position: absolute;
	top: 0.15em;
	left: 100%;
	margin-left: 0.08em;
	font-family: 'Inter Variable', system-ui, sans-serif;
	font-size: 0.3em;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--muted);
	text-decoration: none;
}

.note {
	margin-top: 1.75rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.tagline {
	margin-top: 0.6rem;
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: clamp(1.3rem, 3.4vw, 1.75rem);
	color: var(--accent);
	text-wrap: balance;
}

.lede {
	max-width: 38rem;
	margin: 1.25rem auto 0;
	color: var(--muted);
	font-size: 1.125rem;
	text-wrap: pretty;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--fg);
	font-weight: 500;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: translate 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
}

.button:hover {
	translate: 0 -1px;
	box-shadow: var(--shadow-big);
}

/* ---- Screenshots --------------------------------------------------------- */

.shot {
	margin: 0;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--card);
	box-shadow: var(--shadow-big);
}

.shot img {
	display: block;
	width: 100%;
}

/* ---- Features ------------------------------------------------------------ */

section {
	margin-top: 5.5rem;
}

h2 {
	font-size: clamp(1.75rem, 4.5vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.features h2 {
	text-align: center;
}

.features ul {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
	gap: 1.1rem;
}

.features li {
	padding: 1.4rem 1.4rem 1.5rem;
	border: 1px solid var(--border);
	border-top: 3px solid var(--gold);
	border-radius: 10px;
	background: var(--card);
	box-shadow: var(--shadow);
}

.features h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

.features p {
	margin-top: 0.55rem;
	color: var(--muted);
	font-size: 0.975rem;
}

.features .aside {
	max-width: 40rem;
	margin: 2.5rem auto 0;
	padding-left: 1rem;
	border-left: 3px solid var(--gold);
}

/* ---- Running it ---------------------------------------------------------- */

.run {
	max-width: 46rem;
	margin-inline: auto;
	text-align: center;
}

.run > p {
	margin-top: 1rem;
	color: var(--muted);
}

pre {
	margin: 1.75rem 0 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--card);
	box-shadow: var(--shadow);
	text-align: left;
	overflow-x: auto;
}

code {
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 0.875em;
}

p code {
	padding: 0.1em 0.35em;
	border-radius: 4px;
	background: var(--code);
	color: var(--fg);
}

pre code {
	font-size: 0.85rem;
	line-height: 1.7;
}

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

footer {
	margin-top: 6rem;
	padding: 2.5rem 0 3rem;
	border-top: 1px solid var(--border);
	text-align: center;
	color: var(--muted);
	font-size: 0.925rem;
}

footer img {
	width: 3rem;
	display: block;
	margin: 0 auto 1rem;
	opacity: 0.85;
}

footer p + p {
	margin-top: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.button {
		transition: none;
	}
}
