/*
Theme Name: Photoblog
Theme URI: https://example.com/photoblog
Author: David Dasinger
Author URI: https://example.com
Description: A minimalist black-and-white WordPress theme for featuring photographs. Clean design, little distraction, with a Tumblr-inspired feed. Primary font: AR One Sans.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photoblog
Tags: photography, minimalist, black-and-white, one-column, blog
*/

/* ---------- Design tokens ---------- */
:root {
	--pb-bg: #ffffff;
	--pb-fg: #000000;
	--pb-muted: #6b6b6b;
	--pb-line: #e6e6e6;
	--pb-max-width: 720px;
	--pb-gap: 4rem;
	--pb-font: "AR One Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--pb-bg);
	color: var(--pb-fg);
	font-family: var(--pb-font);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

a:hover,
a:focus {
	text-decoration: underline;
}

/* ---------- Layout ---------- */
.pb-container {
	max-width: var(--pb-max-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ---------- Site header ---------- */
.pb-site-header {
	padding: 3rem 0 2rem;
	text-align: center;
}

.pb-site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	//text-transform: uppercase;
}

.pb-site-description {
	margin: 0.5rem 0 0;
	color: var(--pb-muted);
	font-size: 0.95rem;
}

.pb-nav {
	margin-top: 1.25rem;
}

.pb-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 0.9rem;
}

/* ---------- Feed (Tumblr-inspired single column) ---------- */
.pb-feed {
	display: flex;
	flex-direction: column;
	gap: var(--pb-gap);
	padding: 2rem 0 4rem;
}

.pb-post-media img {
	width: 100%;
}

.pb-post-body {
	margin-top: 1rem;
}

.pb-post-title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 400;
}

.pb-post-meta {
	color: var(--pb-muted);
	font-size: 0.6rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.pb-post-content p:first-child {
	margin-top: 0.75rem;
}

/* ---------- Single post ---------- */
.pb-single {
	padding: 2rem 0 4rem;
}

.pb-single .pb-post-media {
	margin-bottom: 1.5rem;
}

/* ---------- Pagination ---------- */
.pb-pagination {
	display: flex;
	justify-content: space-between;
	padding: 2rem 0 4rem;
	font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.pb-site-footer {
	border-top: 1px solid var(--pb-line);
	padding: 2rem 0;
	text-align: center;
	color: var(--pb-muted);
	font-size: 0.8rem;
}

/* ---------- Tags ---------- */
.pb-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.75rem;
}

.pb-tag {
	font-size: 0.65rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pb-fg);
	border: 1px solid var(--pb-fg);
	padding: 0.15rem 0.4rem;
	transition: opacity 0.15s;
}

.pb-tag:hover,
.pb-tag:focus {
	opacity: 0.5;
	text-decoration: none;
}

/* ---------- Lightbox overlay ---------- */
.pb-post-media a {
	cursor: zoom-in;
}

#pb-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9000;
	align-items: center;
	justify-content: center;
}

#pb-lightbox.is-open {
	display: flex;
}

.pb-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

.pb-lightbox-close {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	z-index: 1;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.pb-lightbox-close:hover,
.pb-lightbox-close:focus {
	opacity: 1;
	outline: none;
}

.pb-lightbox-frame {
	position: relative;
	z-index: 1;
	max-width: min(90vw, 1600px);
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pb-lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	:root {
		--pb-gap: 2.5rem;
	}

	body {
		font-size: 16px;
	}
}
