:root{
	--cream:#f2ece1;  
	--cream-2:#faf6ee;
	--green: rgb(76, 116, 0);
	--overlay: rgb(76, 116, 0, .8);
	--ink:#22242a;
	--ink-soft:#6b6d75;
	--white:#ffffff;
	--gold:#e8a33d;
	--radius:18px;
	--shadow:0 10px 30px rgba(34,36,42,.10);
}

html,body {
	margin:0; 
	padding:0;
}

body {
	background:var(--cream);
	font-family:"Segoe UI", system-ui, -apple-system, Arial, sans-serif;
	text-align: center;
	padding: 14px;
	color: var(--green);
	display:flex; flex-direction:column; align-items:center;
}

h1{
	margin:10px 0 16px;
	color:var(--green);
	font-size:clamp(28px, 6vw, 40px); 	font-weight:900; 
	text-align:center; 
	letter-spacing:-.5px;
}

.controls {
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	justify-content:center;
	max-width:600px;
	margin: 12px auto;
}

.toggle {
	position: relative;
	width: 138px; 	height: 40px;
	background: var(--green);
	border-radius: 20px;
	cursor: pointer;
	display: flex;
	font-size:14px; font-weight:700;
	align-items: center;
	justify-content: space-between;
	padding: 0 12px;
	box-sizing: border-box;
	user-select: none;
	box-shadow:0 6px 16px rgba(31,63,191,.35);
}

.toggle .label {
	font-size: 12px;
	color: white;
	pointer-events: none;
}

.toggle .knob {
	position: absolute;
	top: 3px;
	left: calc(100% - 68px);
	width: 65px; height: 34px;
	background: white;
	opacity: 85%;
	border-radius: 17px;
	transition: left 0.25s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle.active .knob {
	left: 3px;
}

.btn{
	border-radius:999px; 
	padding: 0 12px; 
	height: 40px;
	font-size:14px; font-weight:700;
	cursor:pointer;
	transition:transform .12s ease, box-shadow .12s ease;
	background:var(--green);
	color:var(--white); 
	border:2px solid var(--green); 
	box-shadow:0 6px 16px rgba(31,63,191,.35);
}
.btn: active {
	transform: scale(.95);
}
.btn-primary {
	background: var(--green);
	color: var(--white);
	border: 2px solid var(--green);
	box-shadow: 0 6px 16px rgba(31,63,191,.35);
}
.btn-ghost {
	background: transparent;
	color: var(--green);
	border: 2px solid var(--green);
}

.btn.pressed {
	transform: translateY(3px);
	box-shadow:0 3px 8px rgba(31,63,191,.35);;
}

.tgl{
	width:40px; height:40px; 
	border-radius:50%; border:2px solid var(--green);
	background:transparent; color:var(--green); font-size:17px; cursor:pointer;
	display:flex; align-items:center; justify-content:center;
	transition:all .15s ease;
}

footer {
	font-size: small;
	margin-top: 24px;
	color: var(--green);
}
footer a {
	color: var(--green);
}