/* Marketing desk - Escape Room PSL brand: near-black, warm gold, off-white. */
:root {
	--bg: #f6f3ee;
	--card: #ffffff;
	--ink: #1d1b19;
	--muted: #6b655d;
	--line: #e3ddd3;
	--gold: #c8962e;
	--gold-ink: #7a5710;
	--ok: #2f7d4f;
	--err: #b3261e;
	--warn-bg: #fff4d6;
	--top: #141210;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121110;
		--card: #1c1a18;
		--ink: #eeeae4;
		--muted: #a59e94;
		--line: #2f2b27;
		--gold: #e0b04a;
		--gold-ink: #f0cf86;
		--ok: #5cc28a;
		--err: #f2867e;
		--warn-bg: #3a3017;
		--top: #0a0908;
	}
}
* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold-ink); }
code { background: var(--line); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }

.top {
	background: var(--top);
	color: #f4efe6;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	padding: 10px 16px;
}
.brand { font-weight: 600; letter-spacing: 0.02em; }
.logo { background: var(--gold); color: #141210; border-radius: 4px; padding: 1px 6px; margin-right: 4px; font-weight: 800; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.top nav a { color: #d9d2c6; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
.top nav a.on, .top nav a:hover { background: #2a2622; color: #fff; }
.top nav a.out { margin-left: auto; opacity: 0.75; }
.badge { background: var(--gold); color: #141210; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 700; }

main { max-width: 860px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.filters a { margin-left: 10px; text-decoration: none; color: var(--muted); }
.filters a.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--gold); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 14px;
}
.card.narrow { max-width: 420px; margin: 40px auto; }
.card.status-posted, .card.status-skipped { opacity: 0.7; }
.card.status-error { border-color: var(--err); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.meta strong { color: var(--ink); font-size: 15px; }
.src { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; }
.stars.s1, .stars.s2, .stars.s3 { color: var(--err); }
.pill { margin-left: auto; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 12px; }

blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--bg); border-radius: 0 6px 6px 0; }
.cut { color: var(--muted); font-size: 13px; }
.posted { background: var(--bg); padding: 8px 12px; border-radius: 6px; }

label { display: block; font-weight: 600; margin: 6px 0 4px; }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; }
textarea, input[type="text"], input[type="password"] {
	width: 100%;
	font: inherit;
	color: var(--ink);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 8px 10px;
	margin: 0 0 8px;
}
textarea { resize: vertical; min-height: 90px; }
textarea:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }

.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row input[type="text"], .row input[type="password"] { flex: 1 1 220px; width: auto; margin: 0; }
.chk { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; margin: 0 8px 0 0; }

button {
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--ink);
	border-radius: 8px;
	padding: 7px 12px;
	cursor: pointer;
}
button:hover { border-color: var(--gold); }
button.primary { background: var(--gold); border-color: var(--gold); color: #141210; font-weight: 600; }
button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.ghost { background: transparent; color: var(--muted); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

.flash { background: var(--card); border: 1px solid var(--gold); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.warn { background: var(--warn-bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.err { color: var(--err); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log .when { white-space: nowrap; color: var(--muted); font-size: 12px; }
.log .detail { color: var(--muted); word-break: break-word; }
.conn td:first-child { font-weight: 600; width: 45%; }

/* v0.2: photos, graphics, post pictures */
button.danger { background: transparent; border-color: var(--err); color: var(--err); }
button.link { background: none; border: 0; padding: 0; color: var(--gold-ink); text-decoration: underline; font-size: 13px; cursor: pointer; }
a.btn { display: inline-block; text-decoration: none; border-radius: 8px; padding: 7px 12px; font-size: 14px; }
a.btn.primary { background: var(--gold); color: #141210; font-weight: 600; }
form.inline { display: inline; margin: 0; }
select { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; width: 100%; }
.chips { margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.chips a { font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.tile { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #1c1a18; }
.tile figcaption { padding: 6px 8px 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.tile .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .acts, .pic .acts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; margin-top: 4px; }
.tilebtn { padding: 0; border: 0; width: 100%; background: none; cursor: pointer; }
.tilebtn:hover img { outline: 3px solid var(--gold); outline-offset: -3px; }
.pickable { position: relative; cursor: pointer; }
.pickable input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: var(--gold); z-index: 1; }
.pickable:has(input:checked) { outline: 3px solid var(--gold); outline-offset: -1px; }
.pickable .hint { padding: 4px 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky { position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0; }
.preview { max-width: 100%; border-radius: 8px; display: block; margin: 0 0 10px; }
.postbody { display: grid; grid-template-columns: 1fr 200px; gap: 12px; align-items: start; }
.pic img { width: 100%; border-radius: 8px; display: block; }
.nopic { border: 1px dashed var(--line); border-radius: 8px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.ask { margin-top: -2px; }
.upload input[type="file"] { flex: 1 1 220px; }

@media (max-width: 560px) {
	.postbody { grid-template-columns: 1fr; }
	.pill { margin-left: 0; }
	.top nav a.out { margin-left: 0; }
}
