/* ============================================================
   www.senspix.net — shared base stylesheet (/assets/css/base.css)
   ------------------------------------------------------------
   Loaded by every section before its own stylesheet. Holds only
   what all sections share: reset, page frame, header, footer and
   the `.prose` styles for Markdown content.

   A section changes the look by overriding the variables below
   in its own file (src/<section>/static/css/...).
   ============================================================ */

/* ---- Design tokens (neutral defaults) --------------------- */
:root {
	--bg: #ffffff;
	--ink: #1f1b16;
	--muted: #6b635a;
	--accent: #a8472b;
	--card: #ffffff;
	--rule: #e6ded1;
	--code-bg: #efe8db;
	--heading-font: inherit;
	--text-font: inherit;      /* running text in .prose */
	--text-size: 18px;
}

/* ---- Base ------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
	max-width: 880px;
	margin: 0 auto;
	padding: 64px 24px 96px;
}

/* ---- Draft marker (pages with `draft: true`, preview only) --- */
.draft-banner {
	background: #fff3cd;
	color: #5c4a00;
	border: 1px solid #e6d28a;
	border-radius: 4px;
	padding: 8px 14px;
	margin-bottom: 28px;
	font-size: 14px;
}

/* ---- Site header ------------------------------------------ */
header.site {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--rule);
	flex-wrap: wrap;
}
header.site h1 {
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	margin: 0;
}
header.site h1 a { color: var(--ink); }
header.site p { margin: 0; color: var(--muted); max-width: 380px; }

/* ---- Site footer ------------------------------------------ */
footer.site {
	margin-top: 96px;
	padding-top: 24px;
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---- Content pages (Markdown via page.html) --------------- */
.page-title {
	font-family: var(--heading-font);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 48px 0 24px;
}
.prose { max-width: 680px; }
.prose > :first-child { margin-top: 48px; }
.prose h2 {
	font-family: var(--heading-font);
	font-weight: 600;
	font-size: 26px;
	margin: 40px 0 12px;
}
.prose h3 {
	font-family: var(--heading-font);
	font-weight: 600;
	font-size: 20px;
	margin: 32px 0 8px;
}
.prose p, .prose li, .prose blockquote {
	font-family: var(--text-font);
	font-size: var(--text-size);
	line-height: 1.65;
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	margin: 24px 0;
}
.prose blockquote {
	margin: 24px 0;
	padding: 4px 20px;
	border-left: 3px solid var(--rule);
	color: var(--muted);
	font-style: italic;
}
.prose code {
	background: var(--code-bg);
	padding: 1px 5px;
	border-radius: 3px;
	font-size: 0.9em;
}
.prose pre {
	background: var(--code-bg);
	padding: 16px;
	border-radius: 4px;
	overflow: auto;
}
.prose pre code { background: none; padding: 0; }
.prose a { text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* Full-size view (/assets/js/lightbox.js, front matter `lightbox: true`).
   The clicked image is scaled to fill the window, whatever its own size. */
.prose img.zoomable { cursor: zoom-in; }
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	display: none;
	z-index: 1000;
	cursor: zoom-out;
}
.lightbox.open { display: block; }
.lightbox img {
	position: absolute;
	top: 3%;
	left: 3%;
	width: 94%;
	height: 94%;
	object-fit: contain;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 520px) {
	.wrap { padding: 40px 20px 64px; }
	.page-title { font-size: 32px; }
}
