/*
Theme Name: Christina Gordon
Theme URI: https://christinagordon.com
Description: Portfolio theme for actor Christina Gordon, recreating the design of the original site by Bryan Vallejo. Includes a one-click importer (Appearance > Import site content) that recreates the pages, news, photos and menu from the original site, and redirects old Joomla addresses to their new pages.
Version: 1.1.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: christina-gordon
*/

/* ---------- Tokens (sampled from the original site) ---------- */
:root {
	--text: #333333;
	--muted: #999999;
	--link: #0c7cc0;
	--accent: #839ea7;
	--navy: #3a5478;
	--rule: #eeeeee;
	--box: #ffffff;
	--footer: #e6e6e6;

	--sans: "Open Sans", "Helvetica Neue", Arial, sans-serif;
	--nav: "Roboto", "Helvetica Neue", Arial, sans-serif;

	--box-width: 950px;
}

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

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

body {
	margin: 0;
	background: #f2f2f2 linear-gradient(to bottom, #f1f1f1 0, #fdfdfd 700px) no-repeat;
	color: var(--text);
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

body.nav-open, body.lightbox-open { overflow: hidden; }

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	z-index: 100; top: .5rem; left: .5rem;
	padding: .75rem 1rem; background: #fff; color: var(--link);
}

/* Outlined button, as on the home page's "Contact Me" */
.button, button.button {
	display: inline-block;
	padding: .3em .9em;
	background: #fff;
	color: var(--accent);
	font: 400 30px/1.2 var(--nav);
	border: 3px solid var(--accent);
	border-radius: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}
.button:hover, button.button:hover { background: var(--accent); color: #fff; text-decoration: none; }
.button--small, button.button--small { font-size: 18px; border-width: 2px; }

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	border-top: 2px solid var(--navy);
	position: relative;
	z-index: 20;
}

.site-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 30px;
	display: flex;
	align-items: center;
	gap: 40px;
	min-height: 112px;
}

.site-logo img, .site-logo .custom-logo { max-height: 104px; width: auto; }
.site-logo a { display: block; }

.wordmark {
	font: italic 400 44px/1 Georgia, "Times New Roman", serif;
	color: #000;
	text-decoration: none;
}
.wordmark:hover { text-decoration: none; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }

.site-nav a {
	font: 400 21px/1.2 var(--nav);
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
	padding: 6px 0;
	display: block;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current_page_parent > a { color: var(--accent); }

.nav-toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	padding: 8px 0;
	font: 400 18px var(--nav);
	text-transform: uppercase;
	color: #000;
	cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block;
	width: 22px; height: 2px;
	background: currentColor;
	position: relative;
	transition: transform .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
	.site-nav a { font-size: 18px; }
	.site-nav .menu { gap: 0 12px; }
	.site-logo img, .site-logo .custom-logo { max-height: 80px; }
}

@media (max-width: 820px) {
	.site-header__inner { min-height: 80px; padding: 0 16px; gap: 16px; }
	.site-logo img, .site-logo .custom-logo { max-height: 64px; }
	.wordmark { font-size: 30px; }
	.nav-toggle { display: flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		border-top: 1px solid var(--rule);
		box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
		padding: 8px 16px 16px;
	}
	.nav-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; }
	.site-nav a { font-size: 22px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- Content box ---------- */
.site-main { flex: 1; padding: 30px 16px 40px; }

.box {
	max-width: var(--box-width);
	margin: 0 auto;
	background: var(--box);
	padding: 10px 10px 30px;
}

.page-header { border-bottom: 1px solid var(--rule); padding: 6px 2px 10px; margin-bottom: 14px; }

.page-title {
	font: 700 22px/1.3 var(--sans);
	color: var(--text);
	margin: 0;
}

.entry-content { padding: 0 2px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1em; }

.entry-content h2 { font: 700 18px/1.3 var(--sans); margin: 1.4em 0 .6em; }
.entry-content h3 { font: 700 15px/1.3 var(--sans); margin: 1.2em 0 .5em; }

.entry-content blockquote { margin: 0 0 1.25em; padding: 0 0 0 40px; }
.entry-content blockquote p { margin: 0 0 .25em; }
.entry-content blockquote cite { font-style: normal; color: #666; }

.wp-caption { max-width: 100%; margin: 0 0 1.5em; }
.wp-caption-text { margin-top: .75em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

/* ---------- Home ---------- */
.home-box { padding: 5px 24px 30px 10px; }

.home-grid {
	display: grid;
	grid-template-columns: 457px minmax(0, 1fr);
	gap: 7px;
	align-items: start;
}

.home-headshot img { width: 100%; height: auto; }

.home-strip {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 3px;
	margin-bottom: 10px;
}
.home-strip img { height: 133px; width: auto; max-width: none; }

.home-roles { padding-left: 7px; }
.home-roles h2 {
	font: 700 26px/1.2 var(--sans);
	color: var(--text);
	margin: 0 0 18px;
	padding-bottom: 12px;
	position: relative;
}
.home-roles h2::after {
	content: "";
	position: absolute;
	left: 1px; bottom: 0;
	width: 160px; height: 5px;
	background: var(--accent);
}
.home-roles ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 5px; }
.home-roles li, .home-roles p {
	font: 600 21px/1.6 var(--sans);
	color: var(--text);
	margin: 0;
}
.home-roles p { padding-left: 5px; margin-bottom: 40px; }

.home-cta { margin: 0 0 0 -7px; }

@media (max-width: 960px) {
	.home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
	.home-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home-strip img { height: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
@media (max-width: 640px) {
	.home-box { padding: 10px 10px 24px; }
	.home-grid { grid-template-columns: 1fr; gap: 16px; }
	.home-roles h2 { font-size: 22px; }
	.home-roles li, .home-roles p { font-size: 18px; }
	.home-cta { margin-left: 0; }
}

/* ---------- News ---------- */
.news-item { padding: 0 0 10px; }
.news-item + .news-item { margin-top: 14px; }

.news-title, .single .page-title {
	font: 400 22px/1.3 var(--sans);
	color: var(--link);
	margin: 0 0 6px;
}
.news-title a { color: var(--link); }

.news-meta { color: var(--muted); font: 12px/1.5 Arial, sans-serif; margin: 0 0 16px 8px; }

.news-body { padding: 0 34px 0 48px; font-size: 13px; }
.news-body .wp-caption, .news-body img { max-width: 430px; }

.single .page-header { border: 0; margin-bottom: 0; }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.pagination .nav-links { display: flex; border: 1px solid #ddd; border-radius: 3px; }
.pagination .page-numbers { padding: 4px 12px; border-left: 1px solid #ddd; color: var(--link); font-size: 13px; }
.pagination .page-numbers:first-child { border-left: 0; }
.pagination .page-numbers.current { background: #eee; color: #999; }
.pagination-count { font: 13px Arial, sans-serif; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; padding: 12px 2px 0; border-top: 1px solid var(--rule); }
.post-nav__adjacent { display: flex; gap: 16px; }

@media (max-width: 640px) {
	.news-body { padding: 0 0 0 12px; }
	.news-body .wp-caption, .news-body img { max-width: 100%; }
}

/* ---------- Resume ---------- */
.page-resume .entry-content { padding: 0 20px 0 36px; }
.page-resume .entry-content h2 { text-transform: uppercase; font-size: 18px; margin: 1.1em 0 .4em; }
.page-resume .entry-content > p { margin-bottom: .5em; }

.credits { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0; }
.credits td { padding: 12px 12px 12px 0; vertical-align: top; }
.credits td:nth-child(1) { width: 27%; }
.credits td:nth-child(2) { width: 21.5%; }
.credits td:nth-child(3) { width: 26.5%; }
.credits em { font-style: normal; }

.resume-download { margin: 1.5em 0 0 -26px; font: 13px Arial, sans-serif; }

@media (max-width: 700px) {
	.page-resume .entry-content { padding: 0 4px; }
	.resume-download { margin-left: 0; }
	.credits, .credits tbody, .credits tr, .credits td { display: block; width: auto !important; }
	.credits tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
	.credits td { padding: 0; }
	.credits td:first-child { font-weight: 600; }
}

/* ---------- Photos ---------- */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2px;
	margin: 0;
}
.gallery-item { margin: 0; display: flex; justify-content: center; }
.gallery-item a { display: block; }
.gallery-item img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.gallery br { display: none; }
.gallery-caption { display: none; }

@media (min-width: 900px) {
	.page-photos .gallery-item img { height: 200px; }
}
@media (max-width: 520px) {
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery-item img { height: 140px; }
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .9);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 88vw; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	font: 300 48px/1 var(--sans);
	padding: 8px 16px;
	cursor: pointer;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Media ---------- */
.page-media .entry-content h2 { text-align: center; font-size: 16px; margin: 1.2em 0 .8em; }
.media-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 40px;
	text-align: center;
	margin-bottom: 1em;
}
.media-pair p { margin: 0; }
.media-pair .media-caption { font: 700 12px/1.4 Arial, sans-serif; color: var(--link); margin-top: 4px; }
.media-pair .media-label { font: 700 11px/1.4 Arial, sans-serif; color: var(--text); margin-bottom: 4px; }
.entry-content iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; display: block; }
.media-pair iframe { max-width: 320px; margin: 0 auto; }
.media-note { text-align: center; }
.entry-content audio { width: 100%; }
@media (max-width: 600px) { .media-pair { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}
.contact-info { padding-left: 4px; font: 700 11px/1.6 Arial, sans-serif; }
.contact-info h2 { font: 700 15px/1.3 var(--sans); margin: 0 0 .6em; }
.contact-info h3 { font: 700 15px/1.3 var(--sans); margin: 1.2em 0 .6em; }
.contact-info p { margin: 0; }
.contact-photo { margin: 0; }
.contact-photo img { max-width: 420px; width: 100%; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.page-contact .entry-content > h2 { margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--rule); }
.cg-form { max-width: 420px; }
.cg-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.cg-form input, .cg-form textarea {
	width: 100%;
	padding: 8px 10px;
	font: inherit;
	color: var(--text);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 0;
}
.cg-form input:focus, .cg-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.cg-form__hp { position: absolute; left: -9999px; }

.cg-notice { padding: 10px 14px; border-left: 3px solid; margin-bottom: 16px; }
.cg-notice--ok { border-color: var(--accent); background: #eef3f5; }
.cg-notice--error { border-color: #b02a2a; background: #fbeeee; }
.cg-admin-note { color: #b02a2a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); }
.site-footer__inner {
	max-width: var(--box-width);
	margin: 0 auto;
	padding: 26px 16px 32px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 84px;
}
.site-footer__copy { margin: 0; font: 700 12px/1.5 Arial, sans-serif; color: var(--text); }
.site-footer__copy a { color: inherit; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px; height: 26px;
	color: #fff;
	border-radius: 2px;
}
.social a:hover { opacity: .85; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social--twitter a { background: #28c3f3; }
.social--youtube a { background: #d9352c; }
.social--linkedin a { background: #056cb9; }
.social--instagram a { background: #c13584; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Fine-tuning against the original ---------- */
.page-resume .entry-content { font-size: 15px; }
.news-body .wp-caption.aligncenter { margin-left: 0; }
.news-body .wp-caption-text { text-align: left; }
.news-body blockquote { padding-left: 0; }
.news-body blockquote cite::before { content: "– "; }
