/* Placeholder stylesheet. The real CSS pass happens last (build order step 8). */
:root {
	--bg: #faf9f6;
	--panel: #efedea;
	--text: #1a1a1a;
	--link: #1a4b8f;
	--accent: #b5842a;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
}

a {
	color: var(--link);
}

.site-header,
main,
.site-footer {
	max-width: 60rem;
	margin: 0 auto;
	padding: 1rem;
}

.site-title {
	font-weight: 700;
	text-decoration: none;
	color: var(--text);
}

h1 {
	margin-bottom: 0;
}

.site-subtitle {
	margin-top: 0.25rem;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #555;
}

.entry-image img,
.location-maps img {
	max-width: 100%;
	height: auto;
	background: var(--panel);
}

.catalog {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.25rem;
	background: var(--panel);
	padding: 1rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
}

.catalog dt {
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
}

.catalog dd {
	margin: 0;
}

.location-maps {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	gap: 1rem;
}

.locations-index .count {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.85rem;
	color: #555;
	margin-left: 0.5rem;
}

/* ---- Homepage gallery ---- */
.gallery-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 0 0.5rem;
}

.shuffle-btn {
	font: inherit;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
	padding: 0.35rem 0.9rem;
	color: var(--link);
	background: #fff;
	border: 1px solid var(--link);
	border-radius: 2px;
	cursor: pointer;
}

.shuffle-btn:hover {
	background: var(--link);
	color: #fff;
}

.gallery-count {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	color: #555;
}

.home-gallery {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1rem;
}

.gallery-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: var(--panel);
	border: 1px solid #dcd9d3;
	border-radius: 2px;
	overflow: hidden;
}

.gallery-card a:hover {
	border-color: var(--link);
}

.gallery-frame {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e4e1db;
	overflow: hidden;
}

/* Absolutely positioned so a tall/portrait image can't stretch the card —
   every tile keeps the same 4:3 height regardless of the source dimensions. */
.gallery-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.6rem 0.7rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8rem;
}

.gallery-title {
	color: var(--text);
	line-height: 1.3;
}

.gallery-creator {
	color: #555;
	font-size: 0.72rem;
}

.full-list {
	margin-top: 1.5rem;
	font-size: 0.9rem;
}

.full-list summary {
	cursor: pointer;
	color: var(--link);
}

.archive-list {
	margin-top: 0.75rem;
}
