:root {
	color-scheme: dark;
	--bg: #141517;
	--card: #1b1c1f;
	--text: #ecebe8;
	--muted: #a0a3a8;
	--line: #2c2e32;
	--code: #25272b;
	--accent: #f06a6a;
}

* { box-sizing: border-box; margin: 0; }

body {
	padding: 0 20px;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 Arial, Helvetica, sans-serif;
	-webkit-font-smoothing: antialiased;
}

main, footer { max-width: 680px; margin: 0 auto; }

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; line-height: 1.2; }
h1 { font-size: clamp( 2.6rem, 9vw, 3.8rem ); letter-spacing: -0.02em; }
h2 { margin: 64px 0 18px; font-size: 1.7rem; }
h3 { margin-bottom: 6px; font-size: 1.15rem; }

p + p, p + ul, p + ol, ul + p, pre { margin-top: 12px; }
ul, ol { padding-left: 20px; }
li + li { margin-top: 8px; }

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

code, pre { font: 0.9em/1.5 Menlo, Consolas, monospace; background: var(--code); border-radius: 6px; }
code { padding: 2px 6px; }
pre { padding: 10px 14px; white-space: pre-wrap; }

.hero { display: flex; align-items: center; gap: 28px; padding: 96px 0 8px; }
.hero .mascot { flex-shrink: 0; width: 190px; height: auto; animation: bob 3.2s ease-in-out infinite; }
.lead { margin-top: 18px; color: var(--muted); font-size: 1.2rem; }

@keyframes bob {
	50% { transform: translateY( -10px ) rotate( -3deg ); }
}

.button {
	display: inline-block;
	margin-top: 30px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	transition: transform 0.15s;
}
.button:hover { color: #fff; transform: translateY( -2px ); }

.commands { border-top: 1px solid var(--line); }
.commands > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.commands dt code { font-weight: bold; }
.commands dd { margin: 0; }
.example { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

.cases { display: grid; grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) ); gap: 14px; padding: 0; list-style: none; }
.cases li { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cases img { display: block; width: auto; height: 96px; margin-bottom: 14px; transition: transform 0.25s; }
.cases li:hover img { transform: rotate( -6deg ) scale( 1.06 ); }
.cases p { color: var(--muted); font-size: 0.95rem; }

.legal .hero { display: block; padding: 72px 0 28px; }
.legal h1 { margin-top: 20px; font-size: clamp( 2.2rem, 7vw, 3rem ); }
.legal h2 { margin: 40px 0 10px; font-size: 1.3rem; }

footer { display: flow-root; margin-top: 80px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
footer .mascot { float: right; width: 120px; height: auto; margin: -110px 0 0 16px; }
footer p + p { margin-top: 6px; }
.small { font-size: 0.85rem; }

@media ( max-width: 540px ) {
	.hero { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding-top: 48px; }
	.hero .mascot { width: 130px; }
	.commands > div { grid-template-columns: 1fr; gap: 4px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.hero .mascot { animation: none; }
	.cases img { transition: none; }
}