@font-face {
	font-family: Amiri;
	src: url("/fonts/Amiri-Regular.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	color-scheme: light;
	--ink: #153f36;
	--green: #176d57;
	--muted: #4e685d;
	--line: #cbdcd2;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: #f8f9fa url("/bg-6-full.jpg") center / cover fixed;
	color: var(--ink);
	font:
		1rem / 1.6 system-ui,
		sans-serif;
}

a {
	color: inherit;
}
a:focus-visible,
button:focus-visible {
	outline: 3px solid #bd7a0f;
	outline-offset: 4px;
}
[hidden] {
	display: none !important;
}

.wrap {
	width: min(1280px, calc(100% - 48px));
	margin-inline: auto;
}

.footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding-block: 20px;
	font-size: 0.875rem;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	padding-block: clamp(32px, 7vw, 80px) 40px;
}

h1 {
	margin: 0;
	font-size: clamp(2.25rem, 4.3vw, 4rem);
	letter-spacing: -0.05em;
	line-height: 1.06;
}

.lead {
	margin: 16px 0 23px;
	color: var(--muted);
	font-size: 1.125rem;
}
.note,
.verse cite {
	color: var(--muted);
	font-size: 0.875rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.button {
	padding: 10px 15px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

.primary {
	background: var(--green);
	border-color: var(--green);
	color: white;
}
.secondary {
	background: #fff;
}
.button:hover {
	text-decoration: underline;
}

.verse {
	margin: 30px 0 0;
	padding: 8px 0 8px 18px;
	border-left: 3px solid var(--green);
}

.verse p {
	margin: 0;
}
.verse .arabic {
	text-align: right;
	font:
		400 clamp(1.9rem, 5vw, 2.5rem) / 1.65 Amiri,
		"Noto Naskh Arabic",
		serif;
}

.ayah {
	display: block;
}

.ayah-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 1.5rem;
	block-size: 1.5rem;
	margin-inline-start: 0.3em;
	border: 1px solid var(--green);
	border-radius: 50%;
	color: var(--green);
	font-size: 1rem;
	line-height: 1;
	vertical-align: middle;
}
.verse .translation {
	font:
		italic 1.4rem / 1.4 Georgia,
		serif;
}
.verse cite {
	display: block;
	margin-top: 6px;
	font-style: normal;
}

.example {
	min-width: 0;
	padding: clamp(16px, 3vw, 26px);
	border-radius: 14px;
	background: #273c38;
	color: #e8f3ed;
}

.example h2 {
	margin: 0;
	font-size: 1.15rem;
}
.example p,
.example h3 {
	font-size: 0.875rem;
}
.example p {
	margin: 3px 0 12px;
	color: #b4d4c2;
}
.example h3 {
	margin: 14px 0 4px;
}

.request {
	display: flex;
	gap: 9px;
	padding: 9px 11px;
	border-radius: 7px;
	background: #0d3029;
	font-size: 0.875rem;
}

.request span {
	color: #cce99c;
	font-weight: 750;
}
.request code {
	min-width: 0;
	overflow-wrap: anywhere;
}

.example-actions {
	margin-bottom: 10px;
	font-size: 0.875rem;
}
.example button {
	border: 1px solid #729687;
	border-radius: 6px;
	padding: 6px 9px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.example-actions button {
	padding: 3px 7px;
	font-size: 0.75rem;
}
.copy-status {
	flex-basis: 100%;
	color: #b4d4c2;
}
.copy-status:empty {
	position: absolute;
}

.example-response-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}
.example-response-heading button {
	font-size: 0.75rem;
}

.example-code {
	display: grid;
	margin: 0;
	overflow: auto;
	font:
		0.8rem / 1.45 ui-monospace,
		monospace;
}
.example-code code {
	grid-area: 1 / 1;
}
.example-code .typing-source {
	opacity: 0;
	pointer-events: none;
	user-select: none;
}
.example .example-source {
	margin: 14px 0 0;
	padding-top: 10px;
	border-top: 1px solid #729687;
	font-size: 0.8125rem;
}

.features {
	padding-block: 6px 36px;
}
.features h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}
.features ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.features a {
	display: block;
	padding: 9px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #f1f8f3;
	font-weight: 650;
	text-decoration: none;
}
.features a:hover {
	border-color: var(--green);
	background: #deefe4;
}
.features small {
	margin-left: 3px;
	color: var(--muted);
}

footer {
	border-top: 1px solid var(--line);
	background: #ccded763;
}

@media (max-width: 740px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
	}
	h1 {
		text-wrap: balance;
	}
}

@media (max-width: 460px) {
	.wrap {
		width: calc(100% - 32px);
	}
}
