/*
Theme Name: FotoLune
Theme URI: https://fotolune.com
Author: Raditude Forever
Description: Dark, classic-editor theme for FotoLune.com. Homepage sections (hero, features, videos, photos, Bluesky updates, launch signup) are filled from Appearance > Customize and the Features and Photos menus.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
License: All rights reserved
Text Domain: fotolune
*/

:root {
	--fl-bg: #0d0d0f;
	--fl-band: #111114;
	--fl-surface: #17171a;
	--fl-surface-2: #1e1e22;
	--fl-line: #232327;
	--fl-line-2: #3a3a40;
	--fl-text: #f5f2ea;
	--fl-soft: #c9c5bc;
	--fl-muted: #9a968e;
	--fl-gold: #f0b95a;
	--fl-moon: #a9c1f5;
	--fl-ink: #141210;
	--fl-head: "Space Grotesk", system-ui, sans-serif;
	--fl-body: Inter, system-ui, sans-serif;
	--fl-wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--fl-bg);
	color: var(--fl-text);
	font-family: var(--fl-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--fl-text); }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--fl-moon); outline-offset: 3px; }

.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: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
	background: var(--fl-gold); color: var(--fl-ink); padding: 10px 16px; border-radius: 8px;
}

.fl-wrap { max-width: var(--fl-wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.fl-band { background: var(--fl-band); border-top: 1px solid var(--fl-line); }
.fl-section { padding-top: 88px; padding-bottom: 88px; }

/* Header: logo left, menu right */
.fl-header { border-bottom: 1px solid var(--fl-line); }
.fl-header .fl-wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 20px; padding-top: 20px; padding-bottom: 20px;
}
.fl-logo { display: block; line-height: 0; }
.fl-logo img, .fl-logo .custom-logo { height: 46px; width: auto; display: block; }
.fl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.fl-nav a { color: var(--fl-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.fl-nav a:hover, .fl-nav .current-menu-item > a { color: var(--fl-moon); }

/* Type */
h1, h2, h3, h4 { font-family: var(--fl-head); line-height: 1.15; margin: 0 0 .5em; }
.fl-h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.fl-h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.fl-h3 { font-size: 23px; font-weight: 600; margin: 0; }
.fl-lede { color: var(--fl-soft); font-size: 19px; margin: 0; }
.fl-eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fl-moon); }

/* Buttons */
.fl-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px;
	border-radius: 10px; font-weight: 600; text-decoration: none; font-family: inherit; font-size: 16px;
	border: 1px solid transparent; cursor: pointer;
}
.fl-btn--gold { background: var(--fl-gold); color: var(--fl-ink); }
.fl-btn--gold:hover { color: var(--fl-ink); filter: brightness(1.08); }
.fl-btn--moon { border-color: var(--fl-moon); color: var(--fl-moon); background: transparent; }
.fl-btn--moon:hover { color: var(--fl-ink); background: var(--fl-moon); }
.fl-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.fl-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }

/* Media frames and placeholders */
.fl-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--fl-surface); border: 1px solid var(--fl-line); }
.fl-frame--glow { box-shadow: 0 0 80px -20px rgba(169, 193, 245, .33); }
.fl-frame iframe, .fl-frame img, .fl-frame video { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.fl-empty {
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
	color: #8f8b83; font-size: 14px; border: 1px dashed var(--fl-line-2); background: var(--fl-surface);
}

/* Hero */
.fl-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.fl-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.fl-hero__text .fl-lede { font-size: 20px; max-width: 520px; }
.fl-hero__media { flex: 1.3 1 520px; min-width: 0; }

/* Cards */
.fl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.fl-card { background: var(--fl-surface); border: 1px solid #26262b; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.fl-card__shot { aspect-ratio: 16 / 10; background: var(--fl-surface-2); border-bottom: 1px solid #26262b; }
.fl-card__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.fl-card__body p { margin: 0; color: #b8b4ab; font-size: 16px; }

/* Videos */
.fl-videos { display: flex; flex-wrap: wrap; gap: 28px; }
.fl-videos__main { flex: 2 1 560px; min-width: 0; }
.fl-videos__list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.fl-vid { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.fl-vid__thumb {
	flex: 0 0 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; position: relative;
	background: var(--fl-surface-2); border: 1px solid #2a2a2e; display: flex; align-items: center; justify-content: center; color: var(--fl-moon);
}
.fl-vid__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fl-vid__thumb svg { position: relative; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
.fl-vid__title { font-size: 16px; font-weight: 500; }

/* Photo reel: side-scrolling, swipeable, snaps to each photo */
.fl-reel { margin-top: 64px; }
.fl-reel:first-child { margin-top: 0; }
.fl-reel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.fl-reel__head .fl-h3 { font-size: 26px; }
.fl-reel__nav { display: flex; gap: 10px; }
.fl-reel--static .fl-reel__nav { display: none; }
.fl-reel__btn {
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--fl-moon); background: transparent;
	color: var(--fl-moon); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.fl-reel__btn:hover:not(:disabled) { background: var(--fl-moon); color: var(--fl-ink); }
.fl-reel__btn:disabled { opacity: .3; cursor: default; }
.fl-reel__track {
	list-style: none; margin: 0; padding: 0 0 14px; display: flex; gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: thin; scrollbar-color: var(--fl-line-2) transparent;
}
.fl-reel__track::-webkit-scrollbar { height: 6px; }
.fl-reel__track::-webkit-scrollbar-thumb { background: var(--fl-line-2); border-radius: 3px; }
.fl-reel__item { flex: 0 0 clamp(220px, 24vw, 290px); scroll-snap-align: start; }
.fl-photo { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--fl-surface); display: block; }
.fl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fl-photo:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
	.fl-reel__track { scroll-behavior: auto; }
	.fl-photo img { transition: none; }
}

/* Bluesky */
.fl-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.fl-post { background: var(--fl-surface); border: 1px solid #26262b; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--fl-text); }
.fl-post:hover { border-color: var(--fl-line-2); color: var(--fl-text); }
.fl-post__who { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.fl-post__who img { width: 40px; height: 40px; border-radius: 10px; }
.fl-post__name { font-weight: 600; font-size: 15px; }
.fl-post__meta { color: var(--fl-moon); font-size: 14px; }
.fl-post__text { margin: 0; color: var(--fl-soft); font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.fl-post__img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--fl-surface-2); }
.fl-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Launch */
.fl-launch { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.fl-launch__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fl-launch__box { flex: 1 1 380px; min-width: 0; background: var(--fl-surface); border: 1px solid #26262b; border-radius: 16px; padding: 28px; }
.fl-launch__box input[type="email"], .fl-launch__box input[type="text"] {
	min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--fl-line-2);
	background: var(--fl-bg); color: var(--fl-text); font: inherit; width: 100%;
}
.fl-launch__box button, .fl-launch__box input[type="submit"] {
	min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--fl-gold);
	color: var(--fl-ink); font: inherit; font-weight: 600; cursor: pointer;
}

/* Footer */
.fl-footer { border-top: 1px solid var(--fl-line); }
.fl-footer .fl-wrap {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
	padding-top: 36px; padding-bottom: 36px; font-size: 15px; color: var(--fl-muted);
}
.fl-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fl-footer a { color: var(--fl-soft); text-decoration: none; }
.fl-footer a:hover { color: var(--fl-moon); }
.fl-publisher { display: flex; align-items: center; gap: 12px; }
.fl-publisher img { height: 32px; width: auto; }

/* Regular pages and posts (Classic editor content) */
.fl-page { max-width: 780px; margin: 0 auto; padding: 72px 32px 96px; }
.fl-page .fl-h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.fl-meta { color: var(--fl-muted); font-size: 15px; margin-bottom: 36px; }
.fl-content { color: #dcd8cf; }
.fl-content > * { margin-top: 0; margin-bottom: 1.2em; }
.fl-content h2 { font-size: 32px; margin-top: 1.6em; }
.fl-content h3 { font-size: 24px; margin-top: 1.4em; }
.fl-content a { color: var(--fl-moon); }
.fl-content a:hover { color: #fff; }
.fl-content img { border-radius: 10px; }
.fl-content blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--fl-gold); color: var(--fl-soft); }
.fl-content code, .fl-content pre { background: var(--fl-surface); border-radius: 6px; font-size: .92em; }
.fl-content code { padding: 2px 6px; }
.fl-content pre { padding: 16px; overflow-x: auto; }
.fl-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.fl-content th, .fl-content td { border-bottom: 1px solid var(--fl-line); padding: 10px; text-align: left; }
.fl-content hr { border: 0; border-top: 1px solid var(--fl-line); margin: 2.5em 0; }
.fl-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; border: 0; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--fl-muted); font-size: 14px; margin-top: 6px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(var(--fl-cols, 3), minmax(0, 1fr)); }
.gallery-columns-1 { --fl-cols: 1; } .gallery-columns-2 { --fl-cols: 2; } .gallery-columns-4 { --fl-cols: 4; }
.gallery-columns-5 { --fl-cols: 5; } .gallery-columns-6 { --fl-cols: 6; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; display: block; }
.fl-list-item { padding: 28px 0; border-bottom: 1px solid var(--fl-line); }
.fl-list-item h2 { font-size: 28px; margin: 0 0 6px; }
.fl-list-item h2 a { text-decoration: none; }
.fl-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; }
.fl-pager a { color: var(--fl-moon); }

@media (max-width: 640px) {
	.fl-wrap, .fl-page { padding-left: 20px; padding-right: 20px; }
	.fl-section, .fl-hero { padding-top: 56px; padding-bottom: 56px; }
	.fl-hero { gap: 36px; }
	.gallery { --fl-cols: 2 !important; }
}
