/*
Theme Name: Pauline Fernandez Portfolio
Theme URI: https://paulinefernandez.com/
Author: Pauline Fernandez
Description: A cinematic, editorial WordPress portfolio for creative direction, film, styling and independent projects.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pauline-fernandez-portfolio
*/

:root {
	--pf-paper: #f3f0e9;
	--pf-ink: #25211d;
	--pf-line: rgba(37, 33, 29, 0.22);
	--pf-rail: 59px;
	--pf-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
	--pf-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--pf-paper);
	color: var(--pf-ink);
	font-family: var(--pf-sans);
	font-size: 12px;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .project-header {
	top: 32px;
}

img,
video {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.portfolio {
	width: 100%;
	overflow: hidden;
	background: var(--pf-paper);
}

.numbered-section {
	display: grid;
	grid-template-columns: var(--pf-rail) minmax(0, 1fr);
	border-top: 1px solid var(--pf-line);
}

.numbered-section:first-child {
	border-top: 0;
}

.section-index {
	min-width: 0;
	padding-top: 19px;
	border-right: 1px solid var(--pf-line);
	font-family: var(--pf-serif);
	font-size: 11px;
	text-align: center;
}

.section-content {
	position: relative;
	min-width: 0;
}

.reference-crop {
	position: relative;
	display: block;
	min-width: 0;
	overflow: hidden;
	aspect-ratio: var(--crop-ratio);
	background: #ccc5b8;
}

.reference-crop > img {
	position: absolute;
	top: var(--crop-top);
	left: var(--crop-left);
	display: block;
	width: var(--crop-image-width);
	height: auto;
	max-width: none;
	user-select: none;
	pointer-events: none;
}

/* 01 — Hero */
.hero-content,
.hero-reference {
	height: auto;
	aspect-ratio: 1477 / 280;
}

.hero-media,
.hero-media img,
.hero-media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero-media img,
.hero-media video {
	object-fit: cover;
	object-position: center 42%;
}

.hero-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 7, 5, 0.88) 0%, rgba(8, 7, 5, 0.46) 30%, rgba(8, 7, 5, 0.02) 66%, rgba(8, 7, 5, 0.3) 100%);
}

.is-reference-demo .hero-shade {
	background: linear-gradient(90deg, #0b0907 0%, rgba(11, 9, 7, 0.99) 29%, rgba(11, 9, 7, 0.78) 39%, rgba(11, 9, 7, 0.1) 61%, rgba(11, 9, 7, 0.36) 100%);
}

.is-reference-demo .hero-content::after {
	position: absolute;
	z-index: 1;
	top: 0;
	right: 0;
	width: 32%;
	height: 55px;
	background: rgba(18, 14, 10, 0.82);
	content: "";
	pointer-events: none;
	backdrop-filter: blur(5px);
}

.hero-monogram {
	position: absolute;
	z-index: 2;
	top: 18px;
	left: 38px;
	color: #f8f5ef;
	font-family: var(--pf-serif);
	font-size: 15px;
}

.hero-panel {
	position: absolute;
	z-index: 2;
	top: 81px;
	left: 104px;
	color: #fff;
}

.hero-panel h1 {
	margin: 0;
	font-family: var(--pf-serif);
	font-size: clamp(42px, 3.04vw, 65px);
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.hero-panel p {
	margin: 20px 0 0;
	font-size: 7px;
	line-height: 1.35;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.hero-nav {
	position: absolute;
	z-index: 3;
	top: 18px;
	right: 65px;
	color: #fff;
}

.pf-menu {
	display: flex;
	gap: clamp(36px, 4.1vw, 72px);
	padding: 0;
	margin: 0;
	list-style: none;
	font-size: 6px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pf-menu a {
	transition: opacity 180ms ease;
}

.pf-menu a:hover {
	opacity: 0.55;
}

/* Shared titles and links */
.section-heading h2 {
	margin: 0;
	font-family: var(--pf-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.08;
	text-transform: uppercase;
}

.section-heading > a,
.section-heading > p {
	display: inline-block;
	margin: 9px 0 0;
	font-size: 7px;
	line-height: 1.3;
}

.section-heading > a {
	transition: opacity 180ms ease;
}

.section-heading > a:hover {
	opacity: 0.5;
}

/* 02 — Selected work */
.work-content {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr) 24px;
	gap: 11px;
	min-height: 187px;
	padding: 22px 35px 14px 48px;
}

.work-grid {
	display: grid;
	grid-template-columns: 1.084fr 1fr 1.084fr 1.09fr 1.102fr 1.102fr;
	gap: 11px;
	min-width: 0;
}

.project-card {
	display: block;
	min-width: 0;
}

.project-card .reference-crop,
.project-card .project-image {
	display: block;
	width: 100%;
	overflow: hidden;
	background: #cbc4b8;
	filter: saturate(0.82) contrast(0.98);
	transition: filter 280ms ease, transform 280ms ease;
}

.project-card .project-image,
.archive-grid .project-card .reference-crop {
	aspect-ratio: 1.5;
}

.project-card .project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card:hover .reference-crop,
.project-card:hover .project-image {
	filter: saturate(1) contrast(1.02);
	transform: translateY(-2px);
}

.project-title,
.project-type {
	display: block;
	font-size: 7px;
	line-height: 1.12;
}

.project-title {
	margin-top: 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.project-type {
	margin-top: 2px;
	font-family: var(--pf-serif);
}

.more-projects {
	display: block;
	margin-top: -3px;
	font-family: var(--pf-serif);
	font-size: 17px;
	line-height: 1;
	text-align: right;
}

/* 03 — Statement */
.statement-content,
.statement-reference {
	height: auto;
	aspect-ratio: 1477 / 150;
}

.statement-media,
.statement-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.statement-media img {
	object-fit: cover;
	filter: brightness(0.62) saturate(0.7);
}

.statement-content.is-reference-demo::after {
	position: absolute;
	z-index: 1;
	inset: 0 auto 0 0;
	width: min(330px, 30%);
	background: linear-gradient(90deg, #0c0b09 0%, rgba(12, 11, 9, 0.99) 73%, rgba(12, 11, 9, 0) 100%);
	content: "";
	pointer-events: none;
}

.statement-copy {
	position: absolute;
	z-index: 2;
	top: 15px;
	left: 73px;
	color: #fff;
}

.statement-copy p {
	margin: 0;
	font-family: var(--pf-serif);
	font-size: 17px;
	line-height: 1.13;
}

.statement-copy small {
	display: block;
	margin-top: 10px;
	font-size: 6px;
	line-height: 1.25;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* 04 — Independent work */
.independent-content {
	display: grid;
	grid-template-columns: 230px minmax(680px, 1017px) minmax(100px, 1fr);
	gap: 0;
	min-height: 174px;
	padding: 10px 0 10px 48px;
}

.independent-heading {
	padding-top: 37px;
}

.independent-heading > p {
	display: block;
	margin-top: 11px;
	font-family: var(--pf-sans);
	font-size: 7px;
	line-height: 1.45;
}

.independent-grid {
	display: grid;
	grid-template-columns: 1.053fr 1fr;
	gap: 4px;
	min-width: 0;
	height: auto;
	aspect-ratio: 1017 / 154;
}

.independent-card {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #898275;
	transition: opacity 200ms ease;
}

.independent-card::before {
	position: absolute;
	z-index: 1;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 15, 13, 0.62), rgba(16, 15, 13, 0.1) 68%);
	content: "";
	pointer-events: none;
}

.independent-card.is-reference-image::before {
	background: linear-gradient(90deg, rgba(46, 50, 48, 0.99) 0%, rgba(46, 50, 48, 0.96) 43%, rgba(46, 50, 48, 0.54) 59%, rgba(46, 50, 48, 0) 78%);
}

.oya-card.is-reference-image::before {
	background: linear-gradient(90deg, rgba(91, 71, 56, 0.99) 0%, rgba(91, 71, 56, 0.96) 43%, rgba(91, 71, 56, 0.5) 59%, rgba(91, 71, 56, 0) 78%);
}

.independent-card > .reference-crop,
.independent-media,
.independent-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
}

.independent-media img {
	object-fit: cover;
	filter: brightness(0.72) saturate(0.75);
	transition: transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.independent-card > .reference-crop > img {
	filter: brightness(0.84) saturate(0.78);
}

.independent-card:hover {
	opacity: 0.9;
}

.independent-card:hover .independent-media img {
	transform: scale(1.025);
}

.independent-overlay {
	position: absolute;
	z-index: 2;
	top: 38px;
	left: 36px;
	color: #fff;
}

.independent-overlay strong {
	display: block;
	font-family: var(--pf-serif);
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
}

.independent-overlay small {
	display: block;
	margin-top: 10px;
	font-size: 6px;
	line-height: 1.45;
}

.independent-overlay em {
	display: inline-block;
	margin-top: 19px;
	padding-bottom: 4px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.75);
	font-size: 6px;
	font-style: normal;
}

/* 05 — About */
.about-content {
	display: grid;
	grid-template-columns: 340px 317px 280px minmax(120px, 1fr);
	min-height: 124px;
	padding-left: 48px;
}

.about-content > .section-heading {
	padding-top: 39px;
}

.about-copy {
	align-self: center;
	max-width: 205px;
	margin: 0;
	font-family: var(--pf-serif);
	font-size: 11px;
	line-height: 1.45;
}

.about-image {
	width: 280px;
	height: 123px;
	aspect-ratio: auto;
	overflow: hidden;
}

.custom-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.text-link {
	align-self: end;
	justify-self: start;
	margin: 0 0 20px 25px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--pf-ink);
	font-size: 7px;
}

/* 06 — Contact */
.contact-content {
	display: grid;
	grid-template-columns: 195px minmax(500px, 896px) minmax(245px, 1fr);
	min-height: 108px;
	padding-left: 48px;
}

.contact-heading {
	padding-top: 19px;
}

.contact-heading h2 {
	font-size: 17px;
	line-height: 1.1;
}

.contact-heading > a {
	margin-top: 10px;
}

.contact-image {
	width: 100%;
	height: auto;
	aspect-ratio: 896 / 108;
	overflow: hidden;
}

.contact-details {
	padding: 20px 20px 12px 30px;
	font-size: 6px;
	line-height: 1.5;
}

.contact-details > a,
.contact-details > p {
	display: block;
	margin: 0;
}

.footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 17px;
	text-transform: uppercase;
}

.copyright {
	margin-top: 13px !important;
	text-transform: uppercase;
}

/* Interior pages */
.project-header {
	position: sticky;
	z-index: 20;
	top: 0;
	display: grid;
	grid-template-columns: var(--pf-rail) 1fr auto;
	align-items: center;
	height: 59px;
	border-bottom: 1px solid var(--pf-line);
	background: rgba(243, 240, 233, 0.94);
	backdrop-filter: blur(12px);
}

.project-header-index {
	align-self: stretch;
	display: grid;
	place-items: center;
	border-right: 1px solid var(--pf-line);
	font-family: var(--pf-serif);
}

.project-header-brand {
	padding-left: 38px;
	font-family: var(--pf-serif);
	font-size: 16px;
}

.project-header nav {
	padding-right: 48px;
}

.project-header .pf-menu {
	gap: 42px;
}

.archive-hero,
.standard-page-hero {
	display: grid;
	grid-template-columns: var(--pf-rail) 1fr;
	border-bottom: 1px solid var(--pf-line);
}

.archive-hero-copy,
.standard-page-hero-copy {
	padding: 86px 48px 52px;
}

.archive-hero h1,
.standard-page-hero h1,
.single-project-title {
	margin: 0;
	font-family: var(--pf-serif);
	font-size: clamp(48px, 6.8vw, 110px);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: -0.045em;
	text-transform: uppercase;
}

.archive-hero p,
.standard-page-hero p {
	max-width: 480px;
	margin: 26px 0 0;
	font-family: var(--pf-serif);
	font-size: 16px;
	line-height: 1.5;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 58px 10px;
	padding: 46px 48px 100px calc(var(--pf-rail) + 48px);
}

.archive-grid .project-card .project-title {
	margin-top: 12px;
	font-size: 9px;
}

.archive-grid .project-card .project-type {
	font-size: 9px;
}

.single-project {
	padding-bottom: 80px;
}

.single-project-intro {
	display: grid;
	grid-template-columns: var(--pf-rail) minmax(0, 1fr);
	border-bottom: 1px solid var(--pf-line);
}

.single-project-intro-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 60px;
	padding: 92px 48px 58px;
}

.single-project-kicker {
	margin: 0 0 22px;
	font-size: 8px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.single-project-meta {
	align-self: end;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.single-project-meta div {
	border-top: 1px solid var(--pf-line);
	padding-top: 9px;
}

.single-project-meta dt {
	margin-bottom: 6px;
	font-size: 7px;
	text-transform: uppercase;
}

.single-project-meta dd {
	margin: 0;
	font-family: var(--pf-serif);
	font-size: 13px;
}

.project-hero-media {
	width: calc(100% - var(--pf-rail));
	margin-left: var(--pf-rail);
	background: #27231e;
}

.project-hero-media > img,
.project-hero-media > video,
.project-hero-media > iframe {
	display: block;
	width: 100%;
	min-height: min(68vw, 820px);
	border: 0;
	object-fit: cover;
}

.project-reference-hero .reference-crop {
	width: 100%;
	height: min(56vw, 760px);
	aspect-ratio: auto;
}

.project-reference-hero .reference-crop > img {
	filter: saturate(0.78) contrast(0.96);
}

.project-hero-media .wp-video,
.project-hero-media .wp-video video {
	width: 100% !important;
	max-width: none !important;
}

.project-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.project-video-embed iframe,
.project-video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.project-content {
	max-width: 1140px;
	margin: 0 auto;
	padding: 86px 48px;
	font-family: var(--pf-serif);
	font-size: 18px;
	line-height: 1.65;
}

.project-content > * {
	max-width: 720px;
	margin-right: auto;
	margin-left: auto;
}

.project-content > .alignwide {
	max-width: 1050px;
}

.project-content > .alignfull {
	width: calc(100vw - var(--pf-rail));
	max-width: none;
	margin-left: calc((1140px - 100vw + var(--pf-rail)) / 2);
}

.project-content img {
	height: auto;
}

.project-content iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.project-pagination {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-left: var(--pf-rail);
	border-top: 1px solid var(--pf-line);
	border-bottom: 1px solid var(--pf-line);
}

.project-pagination a {
	display: block;
	min-height: 160px;
	padding: 34px 48px;
}

.project-pagination a + a {
	border-left: 1px solid var(--pf-line);
	text-align: right;
}

.project-pagination small {
	display: block;
	margin-bottom: 22px;
	font-size: 7px;
	text-transform: uppercase;
}

.project-pagination strong {
	font-family: var(--pf-serif);
	font-size: 25px;
	font-weight: 400;
	text-transform: uppercase;
}

.standard-page-content {
	max-width: 980px;
	margin: 0 auto;
	padding: 75px 48px 120px calc(var(--pf-rail) + 48px);
	font-family: var(--pf-serif);
	font-size: 18px;
	line-height: 1.65;
}

.standard-page-content .wp-block-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.empty-portfolio {
	grid-column: 1 / -1;
	padding: 40px 0 100px;
	font-family: var(--pf-serif);
	font-size: 17px;
}

/* Responsive */
@media (min-width: 1700px) {
	:root {
		--pf-rail: 65px;
	}

	body {
		font-size: 13px;
	}

	.work-content,
	.independent-content,
	.about-content,
	.contact-content {
		padding-left: 54px;
	}
}

@media (max-width: 1100px) {
	.work-content {
		grid-template-columns: 170px minmax(0, 1fr);
		min-height: 315px;
	}

	.more-projects {
		display: none;
	}

	.work-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 18px;
	}

	.independent-content {
		grid-template-columns: 170px minmax(0, 1fr);
		padding-right: 28px;
	}

	.about-content {
		grid-template-columns: 210px 1fr 280px;
	}

	.about-link {
		display: none;
	}

	.contact-content {
		grid-template-columns: 190px minmax(0, 1fr);
	}

	.contact-details {
		grid-column: 2;
		padding-left: 0;
	}

	.single-project-intro-inner {
		grid-template-columns: 1fr;
	}

	.single-project-meta {
		max-width: 520px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .project-header {
		top: 46px;
	}
}

@media (max-width: 720px) {
	:root {
		--pf-rail: 35px;
	}

	.section-index {
		padding-top: 16px;
		font-size: 10px;
	}

	.hero-content,
	.hero-reference {
		height: 69vw;
		min-height: 330px;
		aspect-ratio: auto;
	}

	.hero-reference > img {
		width: auto;
		height: 365.714%;
		top: 0;
		left: 50%;
		transform: translateX(-51.92%);
	}

	.is-reference-demo .hero-content::after {
		width: 48%;
		height: 52px;
		background: rgba(12, 10, 8, 0.84);
	}

	.hero-panel {
		top: 94px;
		left: 30px;
	}

	.hero-panel h1 {
		font-size: 39px;
	}

	.hero-monogram {
		left: 21px;
	}

	.hero-nav {
		right: 18px;
	}

	.hero-nav .pf-menu {
		gap: 16px;
		font-size: 6px;
	}

	.work-content,
	.independent-content,
	.about-content,
	.contact-content {
		display: block;
		padding: 31px 22px 38px;
	}

	.section-heading h2 {
		font-size: 20px;
	}

	.work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 10px;
		margin-top: 28px;
	}

	.work-grid .reference-crop {
		aspect-ratio: 1.5;
	}

	.project-title,
	.project-type {
		font-size: 8px;
	}

	.statement-content,
	.statement-reference {
		height: 225px;
		aspect-ratio: auto;
	}

	.statement-reference > img {
		width: auto;
		height: 682.667%;
		top: -312%;
		left: 50%;
		transform: translateX(-51.92%);
	}

	.statement-copy {
		left: 28px;
	}

	.independent-heading {
		padding: 0;
	}

	.independent-grid {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(2, 43vw);
		height: auto;
		aspect-ratio: auto;
		margin-top: 30px;
	}

	.independent-card,
	.independent-card > .reference-crop {
		height: 43vw;
	}

	.independent-card > .reference-crop > img {
		width: auto;
		height: 664.935%;
		top: -408.442%;
		left: 50%;
	}

	.muse-card > .reference-crop > img {
		transform: translateX(-38.9%);
	}

	.oya-card > .reference-crop > img {
		transform: translateX(-72.1%);
	}

	.independent-overlay {
		top: 23px;
		left: 22px;
	}

	.about-content > .section-heading {
		padding: 0;
	}

	.about-copy {
		max-width: none;
		margin-top: 28px;
		font-size: 14px;
	}

	.about-image {
		width: 100%;
		height: auto;
		margin-top: 28px;
		aspect-ratio: 2.1;
	}

	.about-link {
		display: inline-block;
		margin: 20px 0 0;
	}

	.contact-heading {
		padding: 0;
	}

	.contact-image {
		height: 220px;
		aspect-ratio: auto;
		margin-top: 28px;
	}

	.contact-image.reference-crop > img {
		width: auto;
		height: 948.148%;
		top: -848.148%;
		left: 50%;
		transform: translateX(-48.83%);
	}

	.contact-details {
		padding: 28px 0 0;
		font-size: 9px;
	}

	.project-header {
		grid-template-columns: var(--pf-rail) 1fr auto;
	}

	.project-header-brand {
		padding-left: 18px;
	}

	.project-header nav {
		padding-right: 16px;
	}

	.project-header .pf-menu {
		gap: 13px;
		font-size: 6px;
	}

	.archive-hero-copy,
	.standard-page-hero-copy {
		padding: 58px 22px 38px;
	}

	.archive-grid {
		grid-template-columns: 1fr;
		gap: 42px;
		padding: 32px 22px 80px calc(var(--pf-rail) + 22px);
	}

	.single-project-intro-inner {
		gap: 42px;
		padding: 64px 22px 42px;
	}

	.single-project-title {
		font-size: 53px;
	}

	.single-project-meta {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.project-content {
		padding: 48px 25px 70px calc(var(--pf-rail) + 22px);
		font-size: 16px;
	}

	.project-content > .alignfull {
		width: calc(100vw - var(--pf-rail));
		margin-left: -22px;
	}

	.project-pagination {
		grid-template-columns: 1fr;
	}

	.project-pagination a {
		min-height: 120px;
		padding: 25px 22px;
	}

	.project-pagination a + a {
		border-top: 1px solid var(--pf-line);
		border-left: 0;
	}

	.standard-page-content {
		padding: 48px 22px 80px calc(var(--pf-rail) + 22px);
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
