/*
Theme Name: Mark's Fantastic Photos
Theme URI: https://sites-unlimited.com
Author: Sites Unlimited Services LLC
Description: A viewfinder inspired portfolio for Mark's Fantastic Photos. The site opens like a camera lens, shows work as a living film contact sheet, plays videos in a film strip, and is ready for print sales with WooCommerce.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mfp
*/

:root {
	--ink: #07080d;
	--ink-2: #0d0f17;
	--navy: #0f1a33;
	--navy-2: #1b2a4d;
	--gold: #c9a227;
	--gold-2: #e6c65a;
	--cream: #efe6d2;
	--mute: #8d92a3;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ink);
	color: var(--cream);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; left: -9999px; }

.kicker {
	font-family: var(--sans);
	font-size: .72rem;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 1rem;
}
.wrap { width: min(1280px, 92vw); margin: 0 auto; }
section { padding: clamp(4rem, 9vw, 8rem) 0; position: relative; }
.section-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.section-lede { max-width: 46ch; color: var(--mute); margin: 0 0 2.5rem; }

/* ---------- Lens intro ---------- */
.iris {
	position: fixed; inset: 0; z-index: 200; pointer-events: none;
	background: radial-gradient(circle at 50% 50%, transparent 0, #000 1px);
	display: none;
}
.iris.on { display: block; }
.iris i {
	position: absolute; left: 50%; top: 50%; width: 0; height: 0;
	border: 2px solid var(--gold); border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 10px #000, 0 0 0 12px var(--gold);
}

/* ---------- Header ---------- */
.site-head {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: .7rem clamp(1rem, 4vw, 2.5rem);
	background: linear-gradient(#07080de6, #07080d00);
	transition: background .3s;
}
.site-head.solid { background: #07080df2; border-bottom: 1px solid #c9a22733; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--cream); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.site-nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); overflow-x: auto; scrollbar-width: none; }
.site-nav a {
	color: var(--cream); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
	padding: .5rem 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.site-nav a:hover { border-color: var(--gold); color: var(--gold-2); }
.site-nav a.cta { border: 1px solid var(--gold); padding: .5rem 1rem; color: var(--gold-2); }
.site-nav a.cta:hover { background: var(--gold); color: var(--ink); }
@media (max-width: 720px) { .brand span { display: none; } }

/* ---------- Hero: the viewfinder ---------- */
.hero {
	min-height: 100svh; padding: 6rem 0 4rem;
	display: grid; place-items: center; text-align: center; overflow: hidden;
	background: radial-gradient(ellipse at 50% 42%, var(--navy-2) 0, var(--navy) 28%, var(--ink) 70%);
}
.hero-slides, .hero-slides b { position: absolute; inset: 0; }
.hero-slides b {
	background-size: cover; background-position: center 30%;
	opacity: 0; transition: opacity 1.6s ease; filter: saturate(.85);
}
.hero-slides b.on { opacity: .34; }
.hero-slides::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse at 50% 45%, #07080d55 0, #07080de8 75%);
}
.hud { position: absolute; inset: clamp(4.6rem, 9vw, 6rem) clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem); pointer-events: none; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: #efe6d2aa; }
.hud::before, .hud::after, .hud span::before, .hud span::after { content: ""; position: absolute; width: 34px; height: 34px; border: 1px solid var(--gold); }
.hud::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hud::after { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.hud span::before { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.hud span::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hud em { position: absolute; font-style: normal; }
.hud .tl { left: 48px; top: 8px; } .hud .tr { right: 48px; top: 8px; }
.hud .bl { left: 48px; bottom: 8px; } .hud .br { right: 48px; bottom: 8px; }
.hud .rec::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d8392b; margin-right: .5em; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (max-width: 720px) { .hud .tr, .hud .bl { display: none; } }

.hero-inner { position: relative; z-index: 2; width: min(900px, 90vw); }
.lens { position: relative; width: clamp(220px, 34vw, 380px); aspect-ratio: 1; margin: 0 auto 2rem; }
.lens img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 30px 80px #000c; }
.lens::before, .lens::after { content: ""; position: absolute; border-radius: 50%; }
.lens::before { inset: -18px; border: 1px dashed #c9a22799; animation: spin 60s linear infinite; }
.lens::after { inset: -38px; border: 1px solid #c9a22733; border-top-color: var(--gold); animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { font-size: clamp(2.5rem, 7.4vw, 5.6rem); margin: 0; color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 400; }
.hero .modes { margin: 1.4rem 0 0; font-size: clamp(.62rem, 1.5vw, .82rem); letter-spacing: .5em; text-transform: uppercase; color: var(--cream); }
.hero .modes a { color: inherit; padding: 0 .3em; }
.hero .modes a:hover { color: var(--gold-2); }
.hero .tagline { color: var(--mute); max-width: 44ch; margin: 1.2rem auto 0; }
.scroll-cue { margin-top: 2.6rem; display: inline-flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .66rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Contact sheet ---------- */
.sheet-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.dial { display: flex; flex-wrap: wrap; gap: .5rem; }
.dial button {
	font: inherit; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
	color: var(--cream); background: none; border: 1px solid #efe6d233; border-radius: 99px;
	padding: .6rem 1.2rem; cursor: pointer; transition: .25s;
}
.dial button:hover { border-color: var(--gold); }
.dial button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.sheet { columns: 3 300px; column-gap: 18px; }
.frame {
	display: block; position: relative; break-inside: avoid; margin: 0 0 18px;
	background: #000; padding: 22px 10px 30px; color: var(--cream); cursor: zoom-in;
	border-radius: 3px;
}
.frame.hide { display: none; }
.frame::before, .frame::after {
	content: ""; position: absolute; left: 10px; right: 10px; height: 9px;
	background: repeating-linear-gradient(90deg, #23263a 0 12px, transparent 12px 24px);
	border-radius: 2px;
}
.frame::before { top: 7px; }
.frame::after { bottom: 6px; opacity: .0; }
.frame .shot { position: relative; overflow: hidden; background: var(--ink-2); }
.frame img, .frame video { width: 100%; filter: grayscale(1) contrast(1.05) brightness(.8); transform: scale(1.02); transition: filter .7s ease, transform 1.2s ease; }
.frame:hover img, .frame:hover video, .frame:focus-visible img { filter: none; transform: scale(1.06); }
.frame .no { position: absolute; left: 12px; bottom: 7px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--gold); }
.frame .cap { position: absolute; right: 12px; bottom: 6px; left: 64px; text-align: right; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #efe6d2bb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .shot::before, .frame .shot::after {
	content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border: 1px solid var(--gold-2);
	opacity: 0; transition: .35s; pointer-events: none;
}
.frame .shot::before { left: 26px; top: 26px; border-right: 0; border-bottom: 0; }
.frame .shot::after { right: 26px; bottom: 26px; border-left: 0; border-top: 0; }
.frame:hover .shot::before, .frame:hover .shot::after { opacity: 1; }
.frame:hover .shot::before { left: 12px; top: 12px; }
.frame:hover .shot::after { right: 12px; bottom: 12px; }
.frame .play { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; }
.frame .play::before { content: ""; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); background: #07080d99 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e6c65a' d='M9 6v12l10-6z'/%3E%3C/svg%3E") center/26px no-repeat; }
.frame .blank { aspect-ratio: 4/5; display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #efe6d255; background: repeating-linear-gradient(135deg, #0d0f17 0 14px, #10131d 14px 28px); }
.frame:nth-child(3n) .blank { aspect-ratio: 3/2; }

/* photos "develop" as they scroll into view */
.dev { opacity: 0; transform: translateY(26px); filter: sepia(1) brightness(.35) blur(4px); transition: opacity .9s ease, transform .9s ease, filter 1.6s ease; }
.dev.in { opacity: 1; transform: none; filter: none; }

/* ---------- Film strip (videos) ---------- */
.films { background: #000; }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 26px 4vw; scroll-snap-type: x mandatory; position: relative; background:
	repeating-linear-gradient(90deg, #23263a 0 16px, transparent 16px 34px) 0 6px / 100% 12px no-repeat local,
	repeating-linear-gradient(90deg, #23263a 0 16px, transparent 16px 34px) 0 calc(100% - 6px) / 100% 12px no-repeat local,
	#000; }
.strip .frame { flex: 0 0 min(560px, 78vw); margin: 0; padding: 0; scroll-snap-align: center; }
.strip .frame::before, .strip .frame::after { display: none; }
.strip .frame .shot { aspect-ratio: 16/9; }
.strip .frame img, .strip .frame video { height: 100%; object-fit: cover; }
.strip .frame .no, .strip .frame .cap { bottom: 12px; z-index: 4; text-shadow: 0 1px 6px #000; }

/* ---------- About ---------- */
.about { background: linear-gradient(var(--ink), var(--navy) 60%, var(--ink)); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about .portrait { position: relative; }
.about .portrait img { width: 100%; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.about .portrait.photo img { border-radius: 4px; aspect-ratio: 4/5; border: 1px solid var(--gold); padding: 10px; }
.about p { color: #d9d2c0; max-width: 56ch; }
.about .stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.about .stats b { display: block; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0; color: var(--gold-2); }
@media (max-width: 800px) { .about .wrap { grid-template-columns: 1fr; } .about .portrait { max-width: 320px; } }

/* ---------- Prints / WooCommerce ---------- */
.prints ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.prints ul.products::before, .prints ul.products::after { display: none; }
.prints ul.products li.product, .woocommerce ul.products li.product { width: auto; float: none; margin: 0; background: #fff; color: #111; padding: 12px 12px 18px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); color: #111; }
.woocommerce .price { color: #6b560f !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce button.button.alt { background: var(--gold); color: var(--ink); border-radius: 0; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }

/* ---------- Book ---------- */
.book { text-align: center; background: radial-gradient(ellipse at 50% 100%, var(--navy-2), var(--ink) 70%); }
.book h2 { font-size: clamp(2.4rem, 7vw, 5.5rem); }
.book h2 em { color: var(--gold-2); font-weight: 400; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.btn { display: inline-block; padding: 1rem 2rem; border: 1px solid var(--gold); color: var(--gold-2); font-size: .76rem; letter-spacing: .3em; text-transform: uppercase; transition: .25s; }
.btn:hover, .btn.fill { background: var(--gold); color: var(--ink); }
.btn.fill:hover { background: var(--gold-2); }
.reach { margin-top: 1.6rem; color: var(--mute); font-family: var(--mono); font-size: .82rem; }

/* ---------- Footer ---------- */
.site-foot { padding: 2.5rem 0; border-top: 1px solid #c9a22733; font-size: .78rem; color: var(--mute); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot a { color: var(--mute); margin-left: 1.2rem; }
.site-foot a:hover { color: var(--gold-2); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: #030407f5; display: none; grid-template-rows: 1fr auto; }
.lb.on { display: grid; }
.lb .stage { display: grid; place-items: center; min-height: 0; padding: 4.5rem 4rem 1rem; }
.lb .stage img, .lb .stage video { max-height: calc(100svh - 11.5rem); max-width: 100%; object-fit: contain; box-shadow: 0 30px 90px #000; }
.lb .stage iframe { width: min(1100px, 90vw); height: auto; aspect-ratio: 16/9; }
.lb .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 3rem) 1.4rem; }
.lb .bar h3 { margin: 0; font-size: 1.3rem; color: #fff; }
.lb .bar small { font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-size: .68rem; }
.lb button { position: absolute; background: none; border: 1px solid #efe6d244; color: var(--cream); width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lb button:hover { border-color: var(--gold); color: var(--gold-2); }
.lb .x { right: 1.2rem; top: 1.2rem; }
.lb .prev { left: 1rem; top: 46%; } .lb .next { right: 1rem; top: 46%; }
.lb .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.lb .flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
@media (max-width: 640px) { .lb .stage { padding: 4.5rem .6rem 1rem; } .lb .prev, .lb .next { top: auto; bottom: 6.5rem; } }

/* ---------- Focus cursor ---------- */
.reticle { position: fixed; z-index: 150; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; opacity: 0; transition: width .2s, height .2s, margin .2s, opacity .3s;
	background:
		linear-gradient(var(--gold-2), var(--gold-2)) 0 0 / 9px 1px, linear-gradient(var(--gold-2), var(--gold-2)) 0 0 / 1px 9px,
		linear-gradient(var(--gold-2), var(--gold-2)) 100% 0 / 9px 1px, linear-gradient(var(--gold-2), var(--gold-2)) 100% 0 / 1px 9px,
		linear-gradient(var(--gold-2), var(--gold-2)) 0 100% / 9px 1px, linear-gradient(var(--gold-2), var(--gold-2)) 0 100% / 1px 9px,
		linear-gradient(var(--gold-2), var(--gold-2)) 100% 100% / 9px 1px, linear-gradient(var(--gold-2), var(--gold-2)) 100% 100% / 1px 9px;
	background-repeat: no-repeat; }
.reticle.on { opacity: 1; }
.reticle.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* ---------- Inner pages ---------- */
.page-wrap { padding: 8rem 0 5rem; min-height: 70vh; }
.page-wrap .narrow { width: min(780px, 92vw); margin: 0 auto; }
.page-wrap h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.entry-content > * { margin-block: 0 1.4em; }
.entry-content .alignwide { width: min(1100px, 92vw); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.work-hero { display: grid; place-items: center; margin: 0 auto 2.5rem; width: min(1200px, 94vw); }
.work-hero img, .work-hero video { max-height: 82vh; width: auto; border: 1px solid #c9a22755; padding: 10px; background: #000; }
.work-hero iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.work-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; }
.list-item { padding: 2rem 0; border-bottom: 1px solid #efe6d222; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dev { opacity: 1; transform: none; filter: none; transition: none; }
	.lens::before, .lens::after, .hud .rec::before { animation: none; }
}

@media (max-width: 520px) {
	.site-nav { gap: .8rem; }
	.site-nav a { font-size: .62rem; letter-spacing: .16em; }
	.site-nav a.cta { padding: .45rem .7rem; }
	.hero .modes { letter-spacing: .22em; }
}
