/*
Theme Name: Loren Feldman
Theme URI: https://lorenfeldman.com
Author: Loren Feldman
Description: Personal site for a filmmaker and blogger. Home page with auto-updating YouTube videos and playlists, a Films section, and a link-blog.
Version: 1.0.0
Requires at least: 6.0
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: lorenfeldman
*/

:root {
	--lf-ink: #111110;
	--lf-ink-2: #3A3833;
	--lf-muted: #6B675F;
	--lf-line: #E2E0DA;
	--lf-line-strong: #8A867D;
	--lf-tile: #F1F0EC;
	--lf-bg: #FFFFFF;
	--lf-accent: #C2410C;
	--lf-display: "Anton", Impact, sans-serif;
	--lf-body: "Inter", system-ui, -apple-system, sans-serif;
	--lf-mono: "JetBrains Mono", ui-monospace, monospace;
	--lf-serif: "Newsreader", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--lf-bg); color: var(--lf-ink); font-family: var(--lf-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--lf-ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--lf-accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--lf-accent); 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: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; padding: 12px 16px; background: var(--lf-ink); color: #fff; }

.lf-wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.lf-narrow { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.lf-mono { font-family: var(--lf-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lf-muted); }
.lf-accent { color: var(--lf-accent); }
.lf-display { font-family: var(--lf-display); font-weight: 400; text-transform: uppercase; line-height: 0.95; margin: 0; }

/* Header */
.lf-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--lf-line); }
.lf-logo { font-family: var(--lf-display); font-size: 28px; letter-spacing: 0.02em; text-transform: uppercase; }
.lf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.lf-nav a { display: inline-block; padding: 12px 0; font-family: var(--lf-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.lf-nav .current-menu-item > a, .lf-nav .current_page_item > a, .lf-nav .lf-nav-contact > a { color: var(--lf-accent); }

/* Hero */
.lf-hero { padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.lf-hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.005em; }
.lf-hero p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--lf-ink-2); }

/* Sections */
.lf-section { padding-bottom: 112px; display: flex; flex-direction: column; gap: 40px; }
.lf-section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--lf-line); padding-top: 24px; }
.lf-section-head h2 { font-size: 56px; }
.lf-more { font-family: var(--lf-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lf-accent); padding: 12px 0; }

/* Playlist chips */
.lf-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: -12px 0 0; padding: 0; }
.lf-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--lf-line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; }
.lf-chip.is-active { background: var(--lf-ink); border-color: var(--lf-ink); color: #fff; }

/* Cards */
.lf-grid { display: flex; flex-wrap: wrap; gap: 40px 24px; }
.lf-card { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lf-grid--films .lf-card { flex: 1 1 calc(50% - 12px); min-width: min(100%, 320px); }
.lf-grid--films .lf-film-title { font-size: 56px; }
.lf-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--lf-tile); border: 1px solid var(--lf-line); overflow: hidden; }
.lf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lf-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--lf-ink); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lf-card:hover .lf-play { background: var(--lf-accent); }
.lf-film-title { position: absolute; left: 20px; bottom: 16px; right: 20px; font-family: var(--lf-display); font-size: 40px; line-height: 1; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.lf-film-num { position: absolute; left: 20px; top: 16px; font-family: var(--lf-mono); font-size: 12px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.lf-thumb.no-image .lf-film-title, .lf-thumb.no-image .lf-film-num { color: var(--lf-ink); text-shadow: none; }
.lf-card-body { display: flex; flex-direction: column; gap: 6px; }
.lf-card-tag { font-family: var(--lf-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lf-accent); }
.lf-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.lf-card-blurb { font-size: 15px; line-height: 1.5; color: var(--lf-ink-2); }

/* Blog list */
.lf-feed { display: flex; flex-wrap: wrap; gap: 64px; padding-bottom: 112px; }
.lf-feed-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--lf-line); padding-top: 24px; }
.lf-feed-intro h2 { font-size: 56px; line-height: 1; }
.lf-feed-intro p { margin: 0; color: var(--lf-ink-2); }
.lf-posts { flex: 999 1 640px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.lf-posts li { border-top: 1px solid var(--lf-line); }
.lf-posts a { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 22px 0; align-items: baseline; }
.lf-posts .lf-post-cat { flex: 0 0 120px; font-family: var(--lf-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lf-muted); }
.lf-posts .lf-post-title { flex: 1 1 360px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.lf-posts .lf-post-src { font-family: var(--lf-mono); font-size: 12px; color: var(--lf-muted); }

/* Page heads (Videos page, archives) */
.lf-pagehead { padding-top: 96px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.lf-pagehead h1 { font-size: clamp(72px, 11vw, 168px); line-height: 0.92; }
.lf-pagehead p { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.55; color: var(--lf-ink-2); }
.lf-pagehead .lf-chips { margin-top: 0; padding-top: 8px; }

.lf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 1px solid var(--lf-ink); border-radius: 2px; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--lf-ink); cursor: pointer; }
.lf-btn:hover { background: var(--lf-ink); color: #fff; }
.lf-btn--accent { background: var(--lf-accent); border-color: var(--lf-accent); color: #fff; }
.lf-btn--accent:hover { background: var(--lf-ink); border-color: var(--lf-ink); }
.lf-center { display: flex; justify-content: center; }

/* Single post */
.lf-article { padding-top: 96px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.lf-article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lf-article h1 { font-size: clamp(48px, 7vw, 88px); line-height: 0.98; }
.lf-article-image { border: 1px solid var(--lf-line); }
.lf-content { font-size: 21px; line-height: 1.6; }
.lf-content > *:first-child { margin-top: 0; }
.lf-content p { margin: 0 0 1.1em; }
.lf-content a { color: var(--lf-accent); text-decoration: underline; text-underline-offset: 3px; }
.lf-content blockquote, .lf-content .wp-block-quote { margin: 1.4em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--lf-accent); font-family: var(--lf-serif); font-style: italic; font-size: 24px; line-height: 1.5; color: var(--lf-ink-2); }
.lf-content blockquote cite { display: block; margin-top: 8px; font-family: var(--lf-mono); font-style: normal; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lf-muted); }
.lf-content h2, .lf-content h3 { font-family: var(--lf-display); font-weight: 400; text-transform: uppercase; line-height: 1; }
.lf-content figure { margin: 1.4em 0; }
.lf-content figcaption { font-size: 14px; color: var(--lf-muted); margin-top: 8px; }
.lf-content iframe { max-width: 100%; }
.lf-content .wp-block-embed__wrapper iframe, .lf-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.lf-source { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 20px 24px; border: 1px solid var(--lf-line-strong); border-radius: 2px; }
.lf-source span { display: block; }
.lf-source strong { font-size: 17px; font-weight: 500; }
.lf-source .lf-arrow { font-family: var(--lf-mono); font-size: 18px; color: var(--lf-accent); }

/* Comments */
.lf-comments { padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.lf-comments > h2, .lf-comments .comment-reply-title { margin: 0; border-top: 1px solid var(--lf-line); padding-top: 24px; font-family: var(--lf-display); font-weight: 400; font-size: 36px; text-transform: uppercase; }
.lf-comment-list { list-style: none; margin: 0; padding: 0; }
.lf-comment-list .children { list-style: none; padding-left: 24px; }
.lf-comment-list .comment-body { border-top: 1px solid var(--lf-line); padding: 20px 0; }
.lf-comment-list .comment-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--lf-mono); font-size: 12px; color: var(--lf-muted); }
.lf-comment-list .comment-meta img { display: none; }
.lf-comment-list .fn { font-family: var(--lf-body); font-style: normal; font-weight: 600; font-size: 15px; color: var(--lf-ink); }
.lf-comment-list .reply a { font-family: var(--lf-mono); font-size: 12px; text-transform: uppercase; color: var(--lf-accent); }
.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form label { font-size: 14px; color: var(--lf-muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { background: var(--lf-tile); border: 1px solid var(--lf-line-strong); border-radius: 2px; color: var(--lf-ink); font: inherit; font-size: 16px; padding: 14px; width: 100%; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 10px; }
.comment-form .submit { align-self: flex-start; min-height: 48px; padding: 0 24px; background: var(--lf-accent); color: #fff; border: 0; border-radius: 2px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.comment-form .submit:hover { background: var(--lf-ink); }

/* Post nav / pagination */
.lf-postnav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; border-top: 1px solid var(--lf-line); padding-top: 32px; padding-bottom: 64px; }
.lf-postnav a { display: flex; flex-direction: column; gap: 6px; flex: 1 1 280px; padding: 8px 0; font-size: 18px; font-weight: 500; }
.lf-postnav .lf-next { text-align: right; }
.lf-pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 40px 0 96px; font-family: var(--lf-mono); font-size: 14px; }
.lf-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--lf-line); }
.lf-pagination .current { background: var(--lf-ink); color: #fff; border-color: var(--lf-ink); }

/* Footer */
.lf-footer { padding-top: 96px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.lf-footer-cta { display: flex; flex-direction: column; gap: 16px; }
.lf-footer-email { font-family: var(--lf-display); font-size: clamp(36px, 6vw, 88px); line-height: 1; text-transform: uppercase; word-break: break-word; }
.lf-footer-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; border-top: 1px solid var(--lf-line); padding-top: 24px; font-family: var(--lf-mono); font-size: 12px; color: var(--lf-muted); }
.lf-footer-bar a { color: var(--lf-muted); }

.lf-notice { padding: 20px 24px; background: var(--lf-tile); border: 1px solid var(--lf-line); font-size: 15px; color: var(--lf-ink-2); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.wp-caption-text { font-size: 14px; color: var(--lf-muted); }
.sticky, .bypostauthor, .gallery-caption { }

@media (max-width: 760px) {
	body { font-size: 16px; }
	.lf-wrap { padding-left: 20px; padding-right: 20px; }
	.lf-header { padding-top: 16px; padding-bottom: 16px; }
	.lf-logo { font-size: 22px; }
	.lf-nav ul { gap: 0 20px; }
	.lf-hero { padding-top: 48px; padding-bottom: 40px; gap: 24px; }
	.lf-hero p, .lf-pagehead p { font-size: 17px; }
	.lf-section { padding-bottom: 56px; gap: 24px; }
	.lf-section-head h2, .lf-feed-intro h2 { font-size: 40px; }
	.lf-feed { gap: 24px; padding-bottom: 56px; }
	.lf-posts .lf-post-cat { flex-basis: 100%; }
	.lf-posts .lf-post-title { font-size: 18px; flex-basis: 100%; }
	.lf-film-title { font-size: 30px; }
	.lf-grid--home > .lf-card:nth-child(n+5) { display: none; }
	.lf-pagehead, .lf-article { padding-top: 48px; }
	.lf-content { font-size: 18px; }
	.lf-content blockquote { font-size: 20px; }
	.alignwide { margin-left: 0; margin-right: 0; }
	.lf-footer { padding-top: 56px; gap: 32px; }
	.lf-postnav .lf-next { text-align: left; }
}
