/* SLOWROOM – base styles
   Loaded automatically by slowroom.php (upload both files to wp-content/mu-plugins/) */

:root {
	--sr-bg: #ffffff;
	--sr-ink: #1c1c1c;
	--sr-mute: #858585;
	--sr-line: #e8e8e8;
	--sr-gap: clamp(20px, 3vw, 44px);
	--sr-space: clamp(56px, 9vw, 128px);
	--sr-width: 1120px;
	--sr-font: "Helvetica Neue", Helvetica, "Nimbus Sans", Arial, sans-serif;
}

body {
	background: var(--sr-bg);
	color: var(--sr-ink);
	font-family: var(--sr-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Force the font inside our blocks, even if Oxygen sets its own global font */
.sr-wrap, .sr-wrap *,
.sr-single, .sr-single *,
.sr-intro, .sr-block, .sr-block * {
	font-family: var(--sr-font) !important;
}

/* Full width: Oxygen's flex containers shrink elements to their content width.
   :has() finds the wrapper element around our shortcode output, whatever its class is. */
.sr-wrap { display: block; }
*:has(> .sr-section),
*:has(> .sr-single),
.sr-block {
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch !important;
	flex: 0 0 auto !important;
	min-width: 0;
}
.sr-section { width: 100%; min-width: 0; }

:focus-visible { outline: 2px solid var(--sr-ink); outline-offset: 3px; }

/* ---- Layout helpers: add as classes to Oxygen sections/divs ---- */

.sr-wrap {
	width: 100%;
	max-width: var(--sr-width);
	margin-inline: auto;
	padding-inline: var(--sr-gap);
}

.sr-space { padding-block: var(--sr-space); }

/* Homepage intro: one quiet headline, nothing else */
.sr-intro {
	font-size: clamp(28px, 4.2vw, 52px);
	line-height: 1.15;
	font-weight: 400;
	letter-spacing: -0.02em;
	max-width: 20em;
	margin: 0;
}

/* ---- Sections ---- */

.sr-section { margin-top: var(--sr-space); }

.sr-section__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}

.sr-section__head h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
}

.sr-section__head a,
.sr-item__meta,
.sr-meta dt {
	color: var(--sr-mute);
	font-size: 14px;
}

.sr-section__head a:hover { color: var(--sr-ink); }

/* ---- Lists and grids ---- */

.sr-list--list { border-top: 1px solid var(--sr-line); }

.sr-list--list .sr-item {
	display: grid;
	grid-template-columns: minmax(120px, 200px) 1fr;
	gap: var(--sr-gap);
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--sr-line);
}

.sr-list--list .sr-item__img { display: none; }

.sr-list--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--sr-gap);
}

.sr-list--grid .sr-item { display: block; }

.sr-item__img {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--sr-line);
	margin-bottom: 12px;
}

.sr-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sr-item__meta,
.sr-item__title { display: block; }

.sr-item__title { font-size: 17px; line-height: 1.35; }

.sr-item { transition: opacity .2s ease; }
.sr-list:hover .sr-item:not(:hover) { opacity: .5; }

.sr-empty { color: var(--sr-mute); }

/* ---- Pagination ---- */

.sr-pagination {
	margin-top: 40px;
	display: flex;
	gap: 18px;
	font-size: 15px;
	color: var(--sr-mute);
}

.sr-pagination .current { color: var(--sr-ink); }

/* ---- Single pages (post, release, event) ---- */

.sr-single {
	max-width: 680px;
	margin-inline: auto;
	padding-inline: var(--sr-gap);
}

.sr-single h1 {
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.12;
	font-weight: 400;
	letter-spacing: -0.02em;
	margin: 0 0 12px;
}

.sr-prose p,
.sr-prose ul,
.sr-prose ol { margin: 0 0 1.3em; }

.sr-prose img { max-width: 100%; height: auto; }

.sr-prose h2,
.sr-prose h3 { font-weight: 500; margin: 2em 0 .6em; line-height: 1.25; }

.sr-prose a { border-bottom: 1px solid var(--sr-line); }
.sr-prose a:hover { border-color: var(--sr-ink); }

.sr-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px var(--sr-gap);
	margin: 28px 0;
	padding: 20px 0;
	border-block: 1px solid var(--sr-line);
}

.sr-meta dt { margin: 0 0 2px; }
.sr-meta dd { margin: 0; }

.sr-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid var(--sr-ink);
	font-size: 15px;
	transition: background .2s ease, color .2s ease;
}

.sr-btn:hover { background: var(--sr-ink); color: var(--sr-bg); }

@media (max-width: 640px) {
	.sr-list--list .sr-item { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	.sr-item, .sr-btn { transition: none; }
}

/* ---- Header: logo left, menu right ----
   Oxygen 4 divs default to a vertical flex column, so direction and alignment are set explicitly. */

.sr-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	padding-block: 28px;
}

.sr-logo {
	color: var(--sr-ink);
	font-weight: 600;
	letter-spacing: .02em;
	font-size: 16px;
	text-decoration: none;
}

.sr-nav {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 26px;
}

.sr-nav a {
	color: var(--sr-mute);
	font-size: 15px;
	transition: color .2s ease;
}

.sr-nav a:hover { color: var(--sr-ink); }
