/*
Theme Name: Captivating Felicity Jones
Theme URI: https://felicity-jones.com
Author: Captivating Felicity Jones
Description: An elegant, classic-Hollywood fan site theme with an art-deco header, a full-post updates column and a widget sidebar. Built for the Classic Editor and Classic Widgets (no blocks). Includes styling for the MND Fan Sidebar and MND Filmography plugins.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
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: captivating-felicity
Tags: two-columns, right-sidebar, custom-menu, threaded-comments, translation-ready, entertainment, blog
*/

:root {
	--noir: #15110e;
	--noir-2: #241c16;
	--ivory: #f7f0e0;
	--paper: #fffdf7;
	--gold: #b9923f;
	--gold-light: #f0dc9a;
	--butter: #f0dc6a;
	--velvet: #7d1f2e;
	--ink: #2a231d;
	--muted: #7a6d5c;
	--line: #dccaa0;
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
	--display: 'Limelight', 'Cormorant Garamond', Georgia, serif;
	--deco-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0 10h78M122 10h78' stroke='%23b9923f' stroke-width='1'/%3E%3Cpath d='M100 1l9 9-9 9-9-9z' fill='none' stroke='%23b9923f' stroke-width='1.2'/%3E%3Cpath d='M100 6l4 4-4 4-4-4z' fill='%23b9923f'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.7;
	color: var(--ink);
	background-color: var(--ivory);
	background-image:
		radial-gradient(circle at 50% -10%, rgba(255,255,255,.7), transparent 55%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M24 0l24 24-24 24L0 24z' fill='none' stroke='%23b9923f' stroke-opacity='.10'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; }
a { color: var(--velvet); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--noir); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.screen-reader-text:focus { background: var(--paper); clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000; font-family: var(--sans); }

/* ---------- Header / hero ---------- */
.site-header { position: relative; }
.hero {
	position: relative;
	background: radial-gradient(ellipse at 50% 120%, #3a2b1d 0%, var(--noir) 65%);
	color: var(--gold-light);
	overflow: hidden;
	border-bottom: 3px solid var(--gold);
}
.sunburst { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(185,146,63,.13); pointer-events: none; }
.hero-grid {
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 2.2rem 1.25rem 2.6rem;
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1.35fr) minmax(0,1fr);
	align-items: end;
	gap: 2rem;
}
.arch {
	margin: 0;
	border-radius: 999px 999px 0 0;
	padding: 7px;
	border: 1px solid var(--gold);
	background: linear-gradient(180deg, rgba(185,146,63,.35), rgba(185,146,63,.05));
	box-shadow: 0 0 0 5px var(--noir), 0 0 0 6px rgba(185,146,63,.55), 0 18px 40px rgba(0,0,0,.45);
}
.arch img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; border-radius: 999px 999px 0 0; filter: saturate(.92) contrast(1.02); }
.arch-left { margin-bottom: -2.6rem; }
.arch-right { margin-bottom: -2.6rem; }
.hero-title { text-align: center; align-self: center; padding: 1rem 0 .5rem; }
.crest { width: 150px; height: auto; color: var(--gold); display: block; margin: 0 auto .8rem; }
.site-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.08; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.site-title a { color: var(--gold-light); text-decoration: none; }
.site-title a:hover { color: #fff; }
.site-tagline { margin: 1rem 0 0; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--gold); letter-spacing: .04em; }
.site-tagline::before, .site-tagline::after { content: ''; display: inline-block; width: 1.6em; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 .7em; opacity: .7; }

/* Marquee bulbs */
.bulbs { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--noir); border-top: 1px solid rgba(185,146,63,.5); }
.bulbs::before, .bulbs::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #fff3c4 0 2px, #e2b84f 3px, rgba(226,184,79,.0) 6px) 0 0 / 30px 16px repeat-x; }
.bulbs::after { background-position: 15px 0; opacity: .25; animation: cfj-chase 2.4s steps(1) infinite; }
.bulbs::before { animation: cfj-chase-rev 2.4s steps(1) infinite; }
@keyframes cfj-chase { 0%, 49% { opacity: .25; } 50%, 100% { opacity: 1; } }
@keyframes cfj-chase-rev { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .25; } }

/* ---------- Navigation ---------- */
.main-nav { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 6px 18px rgba(60,40,10,.08); position: relative; z-index: 20; padding-top: 1.4rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul, .main-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .4rem; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.main-nav a { display: block; padding: .95rem 1.15rem; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--noir); text-decoration: none; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 50%; bottom: .55rem; width: 0; height: 1px; background: var(--gold); transition: width .25s, left .25s; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--velvet); }
.main-nav a:hover::after, .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { width: 60%; left: 20%; }
.main-nav li { position: relative; }
.main-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold); box-shadow: 0 14px 30px rgba(60,40,10,.18); padding: .4rem 0; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul, .main-nav li.is-focus > ul { display: block; }
.main-nav ul ul a { padding: .6rem 1.2rem; }
.main-nav ul ul a::after { display: none; }
.nav-toggle { display: none; width: 100%; background: none; border: 0; padding: 1rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--noir); cursor: pointer; }
.nav-toggle-bars { display: inline-block; width: 18px; height: 2px; background: var(--noir); box-shadow: 0 -6px 0 var(--noir), 0 6px 0 var(--noir); margin-right: .8rem; vertical-align: middle; }

/* ---------- Layout ---------- */
.site-content { padding: 3rem 1.25rem 4rem; }
.layout { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.site-main { min-width: 0; }

/* ---------- Entries ---------- */
.entry {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--line), 0 12px 30px rgba(60,40,10,.07);
	padding: 2.6rem 2.8rem 2rem;
	margin: 0 0 2.5rem;
}
.entry-header { text-align: center; margin-bottom: 1.6rem; }
.entry-header::after { content: ''; display: block; height: 20px; margin: 1.1rem auto 0; background: var(--deco-rule) center / 200px 20px no-repeat; }
.entry-meta { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; color: var(--muted); }
.entry-meta .byline::before { content: '\2022'; margin: 0 .6em; color: var(--gold); }
.entry-title { margin: .5rem 0 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.entry-title a { color: var(--noir); text-decoration: none; }
.entry-title a:hover { color: var(--velvet); }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 .5em; }
.entry-content img { height: auto; }
.entry-content blockquote { margin: 1.5em 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--gold); font-style: italic; font-size: 1.15em; color: #4b3f33; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95em; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5em .8em; text-align: left; }
.entry-content th { background: #f3e9cf; font-family: var(--sans); font-size: .8em; letter-spacing: .08em; }
.entry-content hr { border: 0; height: 20px; background: var(--deco-rule) center / 200px 20px no-repeat; margin: 2em 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content .aligncenter, .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .9rem; font-style: italic; color: var(--muted); text-align: center; }
.entry-content img.alignleft, .entry-content img.alignright { border: 5px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(60,40,10,.15); }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 1.5em 0; }
.gallery-item { margin: 0; }
.gallery-icon img { width: 100%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.entry-footer { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; justify-content: center; font-family: var(--sans); font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.entry-footer a { color: var(--velvet); }
.page-title { font-size: clamp(1.8rem, 3vw, 2.4rem); text-align: center; margin: 0 0 1.5rem; }

.archive-header {
	position: relative; margin: 0 0 2.5rem; padding: 3.2rem 1.5rem; text-align: center; color: var(--gold-light);
	background: linear-gradient(rgba(21,17,14,.72), rgba(21,17,14,.82)), var(--page-img) center 30% / cover;
	border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px var(--noir), inset 0 0 0 7px rgba(185,146,63,.6);
}
.archive-header .page-title { color: var(--gold-light); margin: 0; font-family: var(--display); font-weight: 400; }
.archive-description { margin-top: .6rem; font-style: italic; color: #e7d9b5; }

/* ---------- Pagination ---------- */
.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; align-items: center; }
.pagination { margin: 0 0 2rem; }
.page-numbers { display: inline-block; min-width: 2.6em; text-align: center; padding: .55em 1em; background: var(--paper); border: 1px solid var(--line); font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-decoration: none; color: var(--noir); }
a.page-numbers:hover { background: var(--noir); color: var(--gold-light); border-color: var(--noir); }
.page-numbers.current { background: var(--noir); color: var(--gold-light); border-color: var(--noir); }
.post-navigation { margin: 0 0 2.5rem; }
.post-navigation .nav-links { justify-content: space-between; align-items: stretch; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 240px; background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.2rem; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { text-decoration: none; color: var(--noir); font-weight: 600; }
.nav-sub { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

/* ---------- Buttons & forms ---------- */
.button, button, input[type=submit], .search-submit {
	display: inline-block; cursor: pointer; padding: .7em 1.6em; background: var(--noir); color: var(--gold-light); border: 1px solid var(--noir);
	font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s;
}
.button:hover, button:hover, input[type=submit]:hover, .search-submit:hover { background: var(--gold); border-color: var(--gold); color: var(--noir); }
.nav-toggle:hover { background: none; color: var(--velvet); }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], textarea, select {
	width: 100%; padding: .7em .9em; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0;
}
input:focus, textarea:focus { border-color: var(--gold); outline: 2px solid rgba(185,146,63,.35); }
.search-form { display: flex; gap: 0; }
.search-form .search-field { flex: 1; min-width: 0; }
.search-submit { padding-left: 1em; padding-right: 1em; }

/* ---------- Comments ---------- */
.comments-area { background: var(--paper); border: 1px solid var(--line); padding: 2rem 2.4rem; margin: 0 0 2.5rem; }
.comments-title, .comment-reply-title { margin-top: 0; font-size: 1.7rem; text-align: center; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-left: 1.5rem; border-left: 1px solid var(--line); margin-left: .5rem; }
.comment-body { padding: 1.2rem 0; border-bottom: 1px dotted var(--line); }
.comment-author img { border-radius: 50%; border: 2px solid var(--gold); float: left; margin-right: .9rem; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-metadata, .reply { font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { clear: both; padding-top: .5rem; }
.comment-form label { display: block; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; margin-bottom: .3rem; }
.comment-form p { margin: 0 0 1rem; }

/* ---------- Sidebar widgets ---------- */
.widget-area { font-size: 1.05rem; line-height: 1.55; }
.widget { background: var(--paper); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line); padding: 1.8rem 1.6rem 1.4rem; margin: 0 0 2rem; overflow-wrap: break-word; }
.widget-title { margin: -2.7rem auto 1.2rem; max-width: 100%; text-align: center; font-size: 1rem; line-height: 1.3; }
.widget-title span {
	display: inline-block; padding: .55rem 1.8rem; background: var(--noir); color: var(--gold-light);
	font-family: var(--display); font-weight: 400; letter-spacing: .06em; font-size: 1.05rem;
	clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
	filter: drop-shadow(0 0 0 var(--gold));
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px dotted var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; color: var(--noir); }
.widget li a:hover { color: var(--velvet); }
.widget .children, .widget .sub-menu { padding-left: 1rem; margin-top: .3rem; }
.widget select { max-width: 100%; }
.widget p:first-child { margin-top: 0; }
.widget_calendar table { width: 100%; text-align: center; border-collapse: collapse; font-size: .95rem; }
.widget_calendar caption { font-family: var(--sans); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; padding-bottom: .5rem; }
.widget_calendar th, .widget_calendar td { padding: .3rem; }
.widget_calendar tbody a { background: var(--gold); color: #fff; display: block; border-radius: 2px; }
.widget_tag_cloud a, .tagcloud a { display: inline-block; font-size: .85rem !important; padding: .15em .7em; margin: 0 .2em .4em 0; border: 1px solid var(--line); text-decoration: none; color: var(--noir); }
.tagcloud a:hover { background: var(--noir); color: var(--gold-light); }
.widget-welcome .arch-small { max-width: 220px; margin: 0 auto 1.2rem; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); background: none; }
.widget-welcome .arch-small img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.widget-welcome p { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { color: #d9cba5; }
.footer-banner {
	text-align: center; padding: 4rem 1.25rem 3.4rem; border-top: 3px solid var(--gold);
	background: linear-gradient(rgba(21,17,14,.80), rgba(21,17,14,.90)), var(--footer-img) center 35% / cover;
}
.footer-banner .crest { color: var(--gold); }
.footer-name { margin: 0; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--gold-light); }
.footer-tag { margin: .3rem 0 1.4rem; font-style: italic; color: var(--gold); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem; margin: 0; padding: 0; }
.footer-nav a { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #e9dcb8; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-small { background: var(--noir); text-align: center; padding: 1.6rem 1.25rem 2rem; font-size: .95rem; border-top: 1px solid rgba(185,146,63,.5); }
.footer-small p { max-width: 760px; margin: 0 auto .6rem; }
.footer-small .disclaimer { font-style: italic; color: #a99c82; }
.footer-small a { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.6rem 2rem; }
	.widget { margin-bottom: 0; }
}
@media (max-width: 820px) {
	.hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "left right"; gap: 1.4rem 1.2rem; padding-bottom: 2.4rem; align-items: start; }
	.hero-title { grid-area: title; }
	.arch-left { grid-area: left; margin-bottom: 0; }
	.arch-right { grid-area: right; margin-bottom: 0; }
	.arch { max-width: 260px; justify-self: center; width: 100%; }
	.site-tagline::before, .site-tagline::after { display: none; }
	.main-nav { padding-top: 1.2rem; }
	.nav-toggle { display: block; }
	.main-nav > ul, .main-nav .menu { display: none; flex-direction: column; padding: 0 0 .6rem; }
	.main-nav.is-open > ul, .main-nav.is-open .menu { display: flex; }
	.main-nav a { text-align: center; padding: .8rem 1rem; }
	.main-nav ul ul { position: static; display: block; border: 0; box-shadow: none; padding: 0; background: transparent; }
	.entry { padding: 2rem 1.4rem 1.6rem; }
	.site-content { padding-top: 2rem; }
}
@media (max-width: 480px) {
	body { font-size: 1.1rem; }
	.crest { width: 110px; }
	.alignleft, .alignright { float: none; display: block; margin: 1em auto; }
	.comments-area { padding: 1.4rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.bulbs::before, .bulbs::after { animation: none; }
	.bulbs::after { opacity: .6; }
	* { transition: none !important; }
}
@media print {
	.hero, .main-nav, .widget-area, .site-footer, .comments-area { display: none; }
	.layout { display: block; }
	.entry { box-shadow: none; border: 0; }
}
