/*
Theme Name: Finklea Portfolio
Theme URI: https://www.linkedin.com/in/john-finklea-b51110427/
Author: John Finklea
Description: A child theme of Twenty Twenty-Five for John Finklea's ePortfolio. It adds the site palette and fonts, a full-width Landing template, card and panel styles, and the section dot navigator. All page text lives in the block editor, not in this theme.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: finklea-portfolio
*/

/* ---------- Basics ---------- */

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-2);
	outline-offset: 3px;
}

/* Full-width homepage sections sit flush against each other. */
.fp-section {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

.page-template-page-landing .wp-site-blocks > footer,
.home .wp-site-blocks > footer {
	margin-block-start: 0;
}

/* Small uppercase label above headings ("Works", "Resume"). */
.fp-eyebrow {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.8125rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-block-end: 0.25rem;
}

.fp-meta {
	font-family: var(--wp--preset--font-family--ui);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-4);
}

/* Header navigation: quiet links, underline on hover and for the current page. */
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* ---------- Dark sections (hero, Experience band, closing, footer) ---------- */

.fp-dark a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--accent-6);
}
.fp-dark a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--white);
}
.fp-dark :where(a, button):focus-visible {
	outline-color: var(--wp--preset--color--white);
}
.fp-dark .fp-meta { color: var(--wp--preset--color--accent-6); }

/* Light button for dark backgrounds. */
.fp-dark .wp-block-button:not(.is-style-outline) .wp-element-button {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
.fp-dark .wp-block-button:not(.is-style-outline) .wp-element-button:hover {
	background-color: var(--wp--preset--color--white);
}
.fp-dark .wp-block-button.is-style-outline .wp-element-button {
	color: var(--wp--preset--color--white);
	border-color: currentColor;
}

/* ---------- Hero ---------- */

.fp-hero h1 {
	font-size: clamp(3rem, 7vw, 5.5rem);
	line-height: 1;
	margin-block: 0.25rem 1rem;
}
.fp-hero .fp-tagline {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	max-width: 32ch;
}
.fp-hero .fp-photo-credit,
.fp-intro .fp-photo-credit {
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.75rem !important;
	margin-block-start: var(--wp--preset--spacing--50);
	opacity: 0.9;
}
/* On narrow screens the text spans the whole photo, so darken it evenly. */
@media (max-width: 781px) {
	.fp-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(28, 34, 38, 0.45) 0%, rgba(28, 34, 38, 0.62) 45%, rgba(28, 34, 38, 0.5) 100%) !important;
	}
}

/* ---------- Introduction panel over the clouds photo ---------- */

.fp-panel {
	box-shadow: 0 20px 60px rgba(30, 36, 40, 0.18);
	border-radius: 2px;
}
.fp-intro .fp-photo-credit {
	color: var(--wp--preset--color--accent-4);
}
@media (max-width: 600px) {
	.fp-panel,
	.fp-paper {
		padding: 1.5rem 1.25rem !important;
	}
	.fp-intro {
		min-height: 0 !important;
	}
}

/* ---------- Document-style cards and the resume "paper" ---------- */

.fp-card,
.fp-paper {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--accent-6);
	border-top: 4px solid var(--wp--preset--color--accent-1);
	box-shadow: 0 1px 2px rgba(30, 36, 40, 0.06), 0 12px 32px rgba(30, 36, 40, 0.08);
	border-radius: 2px;
}
.fp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fp-card > .wp-block-image:first-child {
	margin-block-start: 0;
}
.fp-card .wp-block-image img {
	width: 100%;
	display: block;
	border-radius: 1px;
}
.fp-card .fp-card-link {
	margin-block-start: auto;
	padding-top: 0.5rem;
	font-family: var(--wp--preset--font-family--ui);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}
@media (prefers-reduced-motion: no-preference) {
	.fp-card:hover,
	.fp-card:focus-within {
		transform: translateY(-3px);
		box-shadow: 0 2px 4px rgba(30, 36, 40, 0.08), 0 18px 40px rgba(30, 36, 40, 0.14);
	}
}

/* Experience items on the dark band. */
.fp-exp-item {
	border-top: 1px solid rgba(201, 211, 196, 0.45);
	padding-top: 1.25rem;
}

/* ---------- Long-form papers ---------- */

.fp-paper-body p { hyphens: manual; }
.fp-paper-body > ol li { margin-block-end: 0.6rem; }

.fp-works-cited p,
.fp-works-cited li {
	padding-left: 2.5rem;
	text-indent: -2.5rem;
	font-size: var(--wp--preset--font-size--small);
}
.fp-works-cited ul { list-style: none; padding-left: 0; }

.fp-about-box {
	border-left: 3px solid var(--wp--preset--color--accent-2);
}

/* ---------- Section dot navigator (built by assets/dot-nav.js) ---------- */

.fp-dots {
	position: fixed;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	background: rgba(44, 54, 60, 0.78);
	border-radius: 999px;
	padding: 0.4rem 0.2rem;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.fp-dots ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fp-dots a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
}
.fp-dots .fp-dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid currentColor;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.fp-dots a[aria-current="location"] .fp-dot {
	background: currentColor;
	transform: scale(1.15);
}
.fp-dots a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 0;
}
/* Visible label for sighted mouse and keyboard users. */
.fp-dots .fp-dot-label {
	position: absolute;
	right: calc(100% + 0.6rem);
	top: 50%;
	transform: translateY(-50%);
	white-space: nowrap;
	background: var(--wp--preset--color--accent-3);
	color: #fff;
	font-family: var(--wp--preset--font-family--ui);
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.25rem 0.6rem;
	border-radius: 2px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.fp-dots a:hover .fp-dot-label,
.fp-dots a:focus-visible .fp-dot-label {
	opacity: 1;
}
/* Phones and small tablets use the header menu instead. */
@media (max-width: 899px) {
	.fp-dots { display: none; }
}
@media print {
	.fp-dots { display: none; }
}
