/* Prompter website (GitHub Pages, served from docs/). */
:root {
	--bg: #0b0b0b;
	--panel: #171614;
	--line: #2c2a26;
	--text: #ece8e1;
	--muted: #a39d92;
	--accent: #f5a31a;
	--accent-text: #1c1200;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg: #ffffff;
		--panel: #f3f5f8;
		--line: #d5dbe4;
		--text: #17202e;
		--muted: #566275;
		--accent: #9a5b00;
		--accent-text: #ffffff;
	}
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; display: block; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main.wrap { padding-top: 44px; padding-bottom: 56px; }

h1 { font-size: 38px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h2 { font-size: 25px; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 720px; }
a { color: var(--accent); }
code, kbd { font: 15px/1.4 ui-monospace, Consolas, "Liberation Mono", monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; }
.btn small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary small { color: var(--accent-text); }
.btn:hover { border-color: var(--accent); }
.note { font-size: 15px; color: var(--muted); }

/* Download widget (download.js). Replaces the plain links inside .downloads[data-download]. */
.downloads.dl-ready { display: block; }
.dl-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.dl-icon { width: 16px; height: 16px; flex: none; }
.dl-main[hidden], .dl-mac[hidden], .dl-menu[hidden], .dl-this[hidden] { display: none; }
.dl-picker { position: relative; display: flex; }
.dl-trigger { display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.dl-chevron { width: 12px; height: 12px; color: var(--muted); }
.dl-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; min-width: 320px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.dl-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; white-space: nowrap; }
.dl-option:hover, .dl-option:focus-visible { background: var(--bg); outline: none; }
.dl-tick { width: 12px; height: 12px; color: var(--accent); visibility: hidden; }
.dl-option.on .dl-tick { visibility: visible; }
.dl-option-name { margin-right: auto; }
.dl-this { font-size: 12px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.dl-ext { font-size: 13px; color: var(--muted); min-width: 74px; text-align: right; }
.dl-mac { margin-top: 12px; max-width: 760px; }
.dl-cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.dl-cmd code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.dl-copy { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; min-width: 106px; justify-content: center; }
.dl-mac .note { margin: 8px 0 0; }

.shot { display: block; width: 100%; height: auto; margin: 34px 0 6px; border: 1px solid var(--line); border-radius: 10px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--accent); }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 34px; font-size: 15px; color: var(--muted); }
footer.site a { color: var(--muted); }

@media (max-width: 600px) {
	h1 { font-size: 30px; }
	h2 { font-size: 22px; }
	.lead { font-size: 18px; }
	main.wrap { padding-top: 30px; }
}
