/*
 * AC Cook Portfolio — Front-end Styles
 *
 * All selectors use body .acp- prefix for Elementor override specificity.
 * Container: 1240px. No inline styles — everything lives here.
 *
 * Palette drawn from A. C. Cook's Instagram aesthetic:
 *   warm pastels, soft editorial tones, botanical delicacy.
 */

/* ── Custom Properties ────────────────────────────────────── */

:root {
	--acp-primary: #3b3a36;
	--acp-accent: #c9736e;
	--acp-accent-hover: #b55f5a;
	--acp-muted: #9a948b;
	--acp-card-bg: #fdfbf9;
	--acp-border: #ebe6df;
	--acp-bg-warm: #f8f5f0;
	--acp-bg-blush: #f5eeeb;
	--acp-text: #3b3a36;
	--acp-text-light: #7a756d;
	--acp-radius: 4px;
	--acp-radius-lg: 8px;
	--acp-shadow: 0 2px 12px rgba(59, 58, 54, 0.06);
	--acp-shadow-hover: 0 6px 24px rgba(59, 58, 54, 0.1);
	--acp-container: 1240px;
	--acp-gap: 28px;
	--acp-transition: 0.25s ease;
}

/* ── Container ────────────────────────────────────────────── */

body .acp-container {
	width: 100%;
	max-width: var(--acp-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

body .acp-listing {
	width: 100%;
	max-width: var(--acp-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* ── Filter Tabs ──────────────────────────────────────────── */

body .acp-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--acp-border);
}

body .acp-filter-tabs .acp-filter-tab {
	display: inline-block;
	padding: 8px 20px;
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--acp-text-light);
	background: transparent;
	border: 1px solid var(--acp-border);
	border-radius: 24px;
	transition: all var(--acp-transition);
	cursor: pointer;
}

body .acp-filter-tabs .acp-filter-tab:hover {
	color: var(--acp-accent);
	border-color: var(--acp-accent);
	background: rgba(201, 115, 110, 0.04);
}

body .acp-filter-tabs .acp-filter-tab.acp-filter-tab--active,
body .acp-filter-tabs .acp-filter-tab.acp-filter-tab--active:hover {
	color: #fff;
	background: var(--acp-accent);
	border-color: var(--acp-accent);
}

/* ── Grid ─────────────────────────────────────────────────── */

body .acp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--acp-gap);
}

@media (max-width: 1024px) {
	body .acp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	body .acp-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* ── Card ─────────────────────────────────────────────────── */

body .acp-card {
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-border);
	border-radius: var(--acp-radius-lg);
	overflow: hidden;
	box-shadow: var(--acp-shadow);
	transition: box-shadow var(--acp-transition), transform var(--acp-transition);
	position: relative;
}

body .acp-card:hover {
	box-shadow: var(--acp-shadow-hover);
	transform: translateY(-2px);
}

body .acp-card .acp-card-image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--acp-bg-warm);
}

body .acp-card .acp-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

body .acp-card .acp-card-image.acp-card-image--wide {
	object-fit: contain;
}

body .acp-card:hover .acp-card-image {
	transform: scale(1.03);
}

/* ── No-Image Card Variant ────────────────────────────────── */

body .acp-card.acp-card--no-image .acp-card-body {
	padding: 28px 24px 24px;
	border-top: 3px solid var(--acp-accent);
}

body .acp-card.acp-card--no-image .acp-card-title {
	font-size: 22px;
}

body .acp-card.acp-card--no-image .acp-card-summary {
	font-size: 15px;
	line-height: 1.65;
}

body .acp-card .acp-card-body {
	padding: 20px;
	position: relative;
}

body .acp-card .acp-card-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--acp-primary);
}

body .acp-card .acp-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color var(--acp-transition);
}

body .acp-card .acp-card-title a:hover {
	color: var(--acp-accent);
}

body .acp-card .acp-card-meta {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 13px;
	color: var(--acp-text-light);
	margin: 0 0 10px;
	letter-spacing: 0.01em;
}

body .acp-card .acp-card-meta .acp-meta-sep {
	margin: 0 6px;
	opacity: 0.5;
}

body .acp-card .acp-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

body .acp-card .acp-badge {
	display: inline-block;
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 10px;
	background: var(--acp-bg-blush);
	color: var(--acp-accent);
	border-radius: 12px;
}

body .acp-card .acp-card-summary {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--acp-text-light);
	margin: 0;
}

body .acp-card .acp-card-type-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--acp-muted);
	opacity: 0.4;
}

/* ── Featured Grid ────────────────────────────────────────── */

body .acp-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--acp-gap);
	max-width: var(--acp-container);
	margin: 0 auto;
}

@media (max-width: 1024px) {
	body .acp-featured-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	body .acp-featured-grid {
		grid-template-columns: 1fr;
	}
}

body .acp-featured-card {
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-border);
	border-radius: var(--acp-radius-lg);
	overflow: hidden;
	box-shadow: var(--acp-shadow);
	transition: box-shadow var(--acp-transition), transform var(--acp-transition);
}

body .acp-featured-card:hover {
	box-shadow: var(--acp-shadow-hover);
	transform: translateY(-2px);
}

body .acp-featured-card .acp-featured-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

body .acp-featured-card .acp-featured-card-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

body .acp-featured-card .acp-featured-card-image.acp-featured-card-image--wide {
	object-fit: contain;
	background: var(--acp-bg-warm);
}

body .acp-featured-card .acp-featured-card-body {
	padding: 18px 20px;
}

body .acp-featured-card .acp-featured-card-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 4px;
	color: var(--acp-primary);
}

body .acp-featured-card .acp-featured-card-pub {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 13px;
	color: var(--acp-text-light);
	margin: 0 0 6px;
}

body .acp-featured-card .acp-featured-card-summary {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: var(--acp-text-light);
	margin: 0;
}

/* No-image featured card */

body .acp-featured-card.acp-featured-card--no-image {
	border-top: 3px solid var(--acp-accent);
}

body .acp-featured-card.acp-featured-card--no-image .acp-featured-card-body {
	padding: 24px 22px;
}

body .acp-featured-card.acp-featured-card--no-image .acp-featured-card-title {
	font-size: 20px;
}

/* ── Single Item ──────────────────────────────────────────── */

body .acp-single {
	padding-top: 48px;
	padding-bottom: 60px;
}

body .acp-single .acp-single-header {
	text-align: center;
	margin-bottom: 40px;
}

body .acp-single .acp-single-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--acp-primary);
	margin: 0 0 16px;
}

body .acp-single .acp-meta {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	color: var(--acp-text-light);
	margin: 0 0 20px;
	letter-spacing: 0.01em;
}

body .acp-single .acp-meta .acp-meta-sep {
	margin: 0 8px;
	opacity: 0.5;
}

body .acp-single .acp-meta .acp-cat-link {
	color: var(--acp-accent);
	text-decoration: none;
	font-weight: 500;
}

body .acp-single .acp-meta .acp-cat-link:hover {
	text-decoration: underline;
}

body .acp-single .acp-external-link,
body .acp-inline-single .acp-external-link {
	display: inline-block;
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #fff;
	background: var(--acp-accent);
	padding: 12px 28px;
	border-radius: 28px;
	text-decoration: none;
	transition: background var(--acp-transition), transform var(--acp-transition);
}

body .acp-single .acp-external-link:hover,
body .acp-inline-single .acp-external-link:hover {
	background: var(--acp-accent-hover);
	transform: translateY(-1px);
}

body .acp-single .acp-external-link .acp-arrow,
body .acp-inline-single .acp-external-link .acp-arrow {
	margin-left: 6px;
}

/* ── Media Section ────────────────────────────────────────── */

body .acp-media-section {
	margin-bottom: 36px;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

body .acp-media-section.acp-media-images {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

body .acp-media-section .acp-media-figure {
	margin: 0 0 20px;
}

body .acp-media-section.acp-media-images .acp-media-figure {
	margin: 0;
}

body .acp-media-section .acp-media-image img {
	width: 100%;
	max-width: 720px;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: var(--acp-radius);
}

body .acp-media-section .acp-media-caption {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 13px;
	color: var(--acp-muted);
	font-style: italic;
	margin-top: 8px;
	text-align: center;
}

body .acp-media-section .acp-media-audio audio {
	width: 100%;
	max-width: 600px;
	display: block;
	margin: 0 auto;
}

body .acp-media-section .acp-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: var(--acp-radius);
}

body .acp-media-section .acp-video-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ── Body Content ─────────────────────────────────────────── */

body .acp-body-content {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 17px;
	line-height: 1.75;
	color: var(--acp-text);
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 40px;
}

body .acp-body-content p {
	margin-bottom: 1.4em;
}

body .acp-body-content a {
	color: var(--acp-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body .acp-body-content a:hover {
	color: var(--acp-accent-hover);
}

body .acp-body-content blockquote {
	border-left: 3px solid var(--acp-accent);
	padding-left: 20px;
	margin-left: 0;
	margin-right: 0;
	font-style: italic;
	color: var(--acp-text-light);
}

body .acp-body-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--acp-radius);
}

/* Figures from imported articles */
body .acp-body-content figure {
	margin: 2em auto;
	padding: 0;
	text-align: center;
	max-width: 100%;
}

body .acp-body-content figure img {
	max-width: 100%;
	height: auto;
	border-radius: var(--acp-radius-lg);
	box-shadow: var(--acp-shadow);
}

body .acp-body-content figure figcaption {
	font-size: 13px;
	color: var(--acp-muted);
	font-style: italic;
	margin-top: 10px;
	line-height: 1.5;
}

/* Embedded videos inside body content */
body .acp-body-content iframe {
	max-width: 100%;
	display: block;
	margin: 2em auto;
	border-radius: var(--acp-radius-lg);
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	border: 0;
}

/* Lists inside body content */
body .acp-body-content ul,
body .acp-body-content ol {
	padding-left: 1.5em;
	margin-bottom: 1.4em;
}

body .acp-body-content li {
	margin-bottom: 0.4em;
}

/* Headings inside body content */
body .acp-body-content h2 {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--acp-primary);
	margin: 2em 0 0.8em;
	line-height: 1.3;
}

body .acp-body-content h3 {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--acp-primary);
	margin: 1.6em 0 0.6em;
	line-height: 1.3;
}

/* ── Footer / Back Link ───────────────────────────────────── */

body .acp-single .acp-single-footer {
	text-align: center;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--acp-border);
}

body .acp-single .acp-back-link,
body .acp-back-link {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--acp-accent);
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: color var(--acp-transition);
}

body .acp-single .acp-back-link:hover,
body .acp-back-link:hover {
	color: var(--acp-accent-hover);
}

body .acp-back-link .acp-arrow {
	margin-right: 6px;
}

/* ── Inline Single (shortcode) ────────────────────────────── */

body .acp-inline-single {
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-border);
	border-radius: var(--acp-radius-lg);
	padding: 28px;
	margin-bottom: 24px;
}

body .acp-inline-single .acp-inline-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--acp-primary);
}

body .acp-inline-single .acp-inline-title a {
	color: inherit;
	text-decoration: none;
}

body .acp-inline-single .acp-inline-title a:hover {
	color: var(--acp-accent);
}

body .acp-inline-single .acp-inline-summary {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--acp-text-light);
	margin: 12px 0;
}

/* ── Archive Header ───────────────────────────────────────── */

body .acp-archive-header {
	text-align: center;
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--acp-border);
}

body .acp-archive-header .acp-archive-title {
	font-family: "Cormorant Garamond", "Georgia", serif;
	font-size: clamp(26px, 3.5vw, 36px);
	font-weight: 600;
	color: var(--acp-primary);
	margin: 0 0 8px;
}

body .acp-archive-header .acp-archive-desc {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--acp-text-light);
	margin: 0;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ── Pagination ───────────────────────────────────────────── */

body .acp-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--acp-border);
}

body .acp-pagination .acp-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--acp-text-light);
	text-decoration: none;
	border: 1px solid var(--acp-border);
	border-radius: 50%;
	transition: all var(--acp-transition);
}

body .acp-pagination .acp-page-num:hover {
	color: var(--acp-accent);
	border-color: var(--acp-accent);
}

body .acp-pagination .acp-page-num.acp-page-num--current {
	color: #fff;
	background: var(--acp-accent);
	border-color: var(--acp-accent);
}

/* ── No Items ─────────────────────────────────────────────── */

body .acp-no-items {
	font-family: "Lato", "Helvetica Neue", sans-serif;
	font-size: 16px;
	color: var(--acp-muted);
	text-align: center;
	padding: 60px 20px;
}

/* ── Lightbox ─────────────────────────────────────────────── */

body .acp-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(30, 28, 26, 0.92);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body .acp-lightbox-overlay.acp-lightbox--open {
	opacity: 1;
	visibility: visible;
}

body .acp-lightbox-overlay .acp-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--acp-radius);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
	cursor: default;
}

body .acp-lightbox-overlay .acp-lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	font-size: 32px;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	opacity: 0.7;
	transition: opacity var(--acp-transition);
}

body .acp-lightbox-overlay .acp-lightbox-close:hover {
	opacity: 1;
}
