/*
Theme Name: Korbitz Photo
Theme URI: https://seankorbitzphoto.com
Author: Sean Korbitz
Description: A minimal, dark photography portfolio theme. Posts with featured images become a full-bleed gallery grid; pages hold About, Contact, and anything else.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: korbitz-photo
*/

:root {
	--bg: #0b0d12;
	--surface: #141821;
	--text: #e8e6e1;
	--muted: #8a8f9a;
	--accent: #c9a227;
	--line: rgba(255, 255, 255, 0.08);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1280px;
	--gap: 12px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: 0.01em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--accent); color: #000; padding: 8px 14px;
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 13, 18, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px 32px; min-height: 72px; padding-top: 10px; padding-bottom: 10px;
}
.site-title {
	font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.04em;
	text-decoration: none; margin: 0;
}
.custom-logo { max-height: 48px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.main-nav a {
	text-decoration: none; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); }

/* Hero */
.hero {
	position: relative; min-height: 78vh; display: flex; align-items: flex-end;
	background: var(--surface) center / cover no-repeat;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(11, 13, 18, 0.95) 0%, rgba(11, 13, 18, 0.2) 55%, rgba(11, 13, 18, 0.35) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 8vh; width: 100%; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0; }

/* Section headings */
.section { padding: 72px 0; }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }

/* Gallery grid (masonry-style columns) */
.gallery-grid { columns: 3 320px; column-gap: var(--gap); }
.card {
	position: relative; display: block; margin: 0 0 var(--gap); break-inside: avoid;
	overflow: hidden; background: var(--surface); text-decoration: none;
}
.card img { width: 100%; transition: transform 0.6s ease, opacity 0.3s ease; }
.card:hover img { transform: scale(1.03); opacity: 0.85; }
.card-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
	opacity: 0; transform: translateY(6px); transition: all 0.3s ease;
}
.card:hover .card-caption, .card:focus .card-caption { opacity: 1; transform: none; }
.card-caption h3 { font-size: 1.3rem; margin: 0; color: #fff; }
.card-caption span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card--text { padding: 28px; }

/* Single / page */
.entry-header { padding: 64px 0 28px; }
.entry-meta { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.entry-hero img { width: 100%; max-height: 88vh; object-fit: contain; background: #000; }
.entry-content { padding: 36px 0 80px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content .alignwide { max-width: 1100px; margin-left: 50%; transform: translateX(-50%); width: 100vw; padding: 0 24px; }
.entry-content .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry-content figcaption, .wp-element-caption { color: var(--muted); font-size: 0.85rem; text-align: center; }
.wp-block-gallery { gap: var(--gap) !important; }

input, textarea, select {
	width: 100%; background: var(--surface); color: var(--text);
	border: 1px solid var(--line); padding: 12px 14px; font: inherit;
}
button, input[type="submit"], .wp-block-button__link {
	background: var(--accent); color: #000; border: 0; padding: 12px 22px; font: inherit;
	font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
	width: auto; text-decoration: none;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; padding: 40px 0 80px; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { border-color: var(--accent); color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.hero { min-height: 62vh; }
	.card-caption { opacity: 1; transform: none; }
}
